* NEWS: Document x86_64/MinGW as a new native configuration.
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
979273e3 3# Generated by GNU Autoconf 2.59.
252b5132 4#
979273e3 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.
979273e3
NN
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
979273e3
NN
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
979273e3
NN
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
979273e3
NN
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="z8k-dis.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
1927a18f 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 AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir SHARED_LDFLAGS SHARED_LIBADD SHARED_DEPENDENCIES archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
979273e3 462ac_subst_files=''
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
979273e3
NN
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.
979273e3 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
979273e3
NN
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
979273e3 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
979273e3 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=*)
979273e3 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
979273e3 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 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=*)
979273e3
NN
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=*)
979273e3 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
979273e3 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
979273e3
NN
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-*)
979273e3 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
979273e3
NN
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
979273e3 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=*)
979273e3 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
979273e3
NN
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)
979273e3 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
979273e3 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=*)
979273e3 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=*)
979273e3 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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 \
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
979273e3 711 site=$ac_optarg ;;
1fe1f39c 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 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=*)
979273e3 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
979273e3
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
979273e3 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
979273e3
NN
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'`
979273e3
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
979273e3 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
979273e3 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
979273e3
NN
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=*)
979273e3 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=*)
979273e3 774 x_libraries=$ac_optarg ;;
252b5132 775
979273e3
NN
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
979273e3
NN
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 *)
979273e3
NN
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
979273e3
NN
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 806fi
252b5132 807
979273e3
NN
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
979273e3
NN
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
979273e3
NN
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
979273e3
NN
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
252b5132 848
979273e3
NN
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.
979273e3
NN
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
979273e3
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
979273e3
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
979273e3
NN
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
979273e3
NN
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
979273e3 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
979273e3
NN
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
979273e3 938Defaults for the options are specified in brackets.
ac48eca1 939
979273e3
NN
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
979273e3
NN
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
979273e3 965For better control, use the options below.
ac48eca1 966
979273e3
NN
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
979273e3 982 cat <<\_ACEOF
252b5132 983
979273e3
NN
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
979273e3
NN
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
979273e3 996if test -n "$ac_init_help"; then
252b5132 997
979273e3 998 cat <<\_ACEOF
252b5132 999
979273e3
NN
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ae85421
AM
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
979273e3
NN
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
8ae85421
AM
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
979273e3
NN
1018 --enable-install-libbfd controls installation of libbfd and related headers
1019 --disable-nls do not use Native Language Support
1020 --enable-cgen-maint=dir build cgen generated files
1021
1022Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1028
979273e3
NN
1029Some influential environment variables:
1030 CC C compiler command
1031 CFLAGS C compiler flags
1032 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1033 nonstandard directory <lib dir>
1034 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1035 headers in a nonstandard directory <include dir>
1036 CPP C preprocessor
a2d91340 1037
979273e3
NN
1038Use these variables to override the choices made by `configure' or to help
1039it to find libraries and programs with nonstandard names/locations.
1040
1041_ACEOF
a2d91340
AC
1042fi
1043
979273e3
NN
1044if test "$ac_init_help" = "recursive"; then
1045 # If there are subdirs, report their specific --help.
1046 ac_popdir=`pwd`
1047 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1048 test -d $ac_dir || continue
1049 ac_builddir=.
1050
1051if test "$ac_dir" != .; then
1052 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1053 # A "../" for each directory in $ac_dir_suffix.
1054 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055else
1056 ac_dir_suffix= ac_top_builddir=
1057fi
a2d91340 1058
979273e3
NN
1059case $srcdir in
1060 .) # No --srcdir option. We are building in place.
1061 ac_srcdir=.
1062 if test -z "$ac_top_builddir"; then
1063 ac_top_srcdir=.
1064 else
1065 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
a2d91340 1066 fi ;;
979273e3
NN
1067 [\\/]* | ?:[\\/]* ) # Absolute path.
1068 ac_srcdir=$srcdir$ac_dir_suffix;
1069 ac_top_srcdir=$srcdir ;;
1070 *) # Relative path.
1071 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a2d91340
AC
1073esac
1074
979273e3
NN
1075# Do not use `cd foo && pwd` to compute absolute paths, because
1076# the directories may not exist.
1077case `pwd` in
1078.) ac_abs_builddir="$ac_dir";;
1079*)
1080 case "$ac_dir" in
1081 .) ac_abs_builddir=`pwd`;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1083 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1084 esac;;
a2d91340 1085esac
979273e3
NN
1086case $ac_abs_builddir in
1087.) ac_abs_top_builddir=${ac_top_builddir}.;;
1088*)
1089 case ${ac_top_builddir}. in
1090 .) ac_abs_top_builddir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_srcdir=$ac_srcdir;;
1097*)
1098 case $ac_srcdir in
1099 .) ac_abs_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1101 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1102 esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_top_srcdir=$ac_top_srcdir;;
1106*)
1107 case $ac_top_srcdir in
1108 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1111 esac;;
a2d91340
AC
1112esac
1113
979273e3
NN
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
8ae85421 1129 cd $ac_popdir
979273e3
NN
1130 done
1131fi
a2d91340 1132
979273e3
NN
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
252b5132 1136
979273e3
NN
1137Copyright (C) 2003 Free Software Foundation, Inc.
1138This configure script is free software; the Free Software Foundation
1139gives unlimited permission to copy, distribute and modify it.
1140_ACEOF
1141 exit 0
1142fi
1143exec 5>config.log
1144cat >&5 <<_ACEOF
1145This file contains any messages produced by compilers while
1146running configure, to aid debugging if configure makes a mistake.
2c73f9d8 1147
979273e3
NN
1148It was created by $as_me, which was
1149generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1150
979273e3 1151 $ $0 $@
252b5132 1152
979273e3
NN
1153_ACEOF
1154{
1155cat <<_ASUNAME
1156## --------- ##
1157## Platform. ##
1158## --------- ##
1159
1160hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165
1166/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168
1169/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1170/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1171/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1173/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1174/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1175/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176
1177_ASUNAME
1178
1179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180for as_dir in $PATH
1181do
1182 IFS=$as_save_IFS
1183 test -z "$as_dir" && as_dir=.
1184 echo "PATH: $as_dir"
1185done
252b5132 1186
979273e3 1187} >&5
75798298 1188
979273e3 1189cat >&5 <<_ACEOF
252b5132 1190
252b5132 1191
979273e3
NN
1192## ----------- ##
1193## Core tests. ##
1194## ----------- ##
1195
1196_ACEOF
1197
1198
1199# Keep a trace of the command line.
1200# Strip out --no-create and --no-recursion so they do not pile up.
1201# Strip out --silent because we don't want to record it for future runs.
1202# Also quote any args containing shell meta-characters.
1203# Make two passes to allow for proper duplicate-argument suppression.
1204ac_configure_args=
1205ac_configure_args0=
1206ac_configure_args1=
1207ac_sep=
1208ac_must_keep_next=false
1209for ac_pass in 1 2
1210do
1211 for ac_arg
1212 do
1213 case $ac_arg in
1214 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 continue ;;
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1220 esac
1221 case $ac_pass in
1222 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 2)
1224 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225 if test $ac_must_keep_next = true; then
1226 ac_must_keep_next=false # Got value, back to normal.
1227 else
1228 case $ac_arg in
1229 *=* | --config-cache | -C | -disable-* | --disable-* \
1230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232 | -with-* | --with-* | -without-* | --without-* | --x)
1233 case "$ac_configure_args0 " in
1234 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235 esac
1236 ;;
1237 -* ) ac_must_keep_next=true ;;
1238 esac
1239 fi
1240 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241 # Get rid of the leading space.
1242 ac_sep=" "
1243 ;;
1244 esac
1245 done
1246done
1247$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249
1250# When interrupted or exit'd, cleanup temporary files, and complete
1251# config.log. We remove comments because anyway the quotes in there
1252# would cause problems or look ugly.
1253# WARNING: Be sure not to use single quotes in there, as some shells,
1254# such as our DU 5.0 friend, will then `close' the trap.
1255trap 'exit_status=$?
1256 # Save into config.log some information that might help in debugging.
1257 {
1258 echo
1259
1260 cat <<\_ASBOX
1261## ---------------- ##
1262## Cache variables. ##
1263## ---------------- ##
1264_ASBOX
1265 echo
1266 # The following way of writing the cache mishandles newlines in values,
1267{
1268 (set) 2>&1 |
1269 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270 *ac_space=\ *)
1271 sed -n \
1272 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274 ;;
1275 *)
1276 sed -n \
1277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278 ;;
1279 esac;
1280}
1281 echo
1282
1283 cat <<\_ASBOX
1284## ----------------- ##
1285## Output variables. ##
1286## ----------------- ##
1287_ASBOX
1288 echo
1289 for ac_var in $ac_subst_vars
1290 do
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1293 done | sort
1294 echo
1295
1296 if test -n "$ac_subst_files"; then
1297 cat <<\_ASBOX
1298## ------------- ##
1299## Output files. ##
1300## ------------- ##
1301_ASBOX
1302 echo
1303 for ac_var in $ac_subst_files
1304 do
1305 eval ac_val=$`echo $ac_var`
1306 echo "$ac_var='"'"'$ac_val'"'"'"
1307 done | sort
1308 echo
1309 fi
1310
1311 if test -s confdefs.h; then
1312 cat <<\_ASBOX
1313## ----------- ##
1314## confdefs.h. ##
1315## ----------- ##
1316_ASBOX
1317 echo
1318 sed "/^$/d" confdefs.h | sort
1319 echo
1320 fi
1321 test "$ac_signal" != 0 &&
1322 echo "$as_me: caught signal $ac_signal"
1323 echo "$as_me: exit $exit_status"
1324 } >&5
1325 rm -f core *.core &&
1326 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1327 exit $exit_status
1328 ' 0
1329for ac_signal in 1 2 13 15; do
1330 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331done
1332ac_signal=0
1333
1334# confdefs.h avoids OS command line length limits that DEFS can exceed.
1335rm -rf conftest* confdefs.h
1336# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337echo >confdefs.h
1338
1339# Predefined preprocessor variables.
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_NAME "$PACKAGE_NAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_VERSION "$PACKAGE_VERSION"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_STRING "$PACKAGE_STRING"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363_ACEOF
1364
1365
1366# Let the site file select an alternate cache file if it wants to.
1367# Prefer explicitly selected file to automatically selected ones.
1368if test -z "$CONFIG_SITE"; then
1369 if test "x$prefix" != xNONE; then
1370 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 else
1372 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373 fi
1374fi
1375for ac_site_file in $CONFIG_SITE; do
1376 if test -r "$ac_site_file"; then
1377 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378echo "$as_me: loading site script $ac_site_file" >&6;}
1379 sed 's/^/| /' "$ac_site_file" >&5
1380 . "$ac_site_file"
1381 fi
1382done
1383
1384if test -r "$cache_file"; then
1385 # Some versions of bash will fail to source /dev/null (special
1386 # files actually), so we avoid doing that.
1387 if test -f "$cache_file"; then
1388 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389echo "$as_me: loading cache $cache_file" >&6;}
1390 case $cache_file in
1391 [\\/]* | ?:[\\/]* ) . $cache_file;;
1392 *) . ./$cache_file;;
1393 esac
1394 fi
1395else
1396 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397echo "$as_me: creating cache $cache_file" >&6;}
1398 >$cache_file
1399fi
1400
1401# Check that the precious variables saved in the cache have kept the same
1402# value.
1403ac_cache_corrupted=false
1404for ac_var in `(set) 2>&1 |
1405 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407 eval ac_new_set=\$ac_env_${ac_var}_set
1408 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409 eval ac_new_val="\$ac_env_${ac_var}_value"
1410 case $ac_old_set,$ac_new_set in
1411 set,)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,set)
1416 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418 ac_cache_corrupted=: ;;
1419 ,);;
1420 *)
1421 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1422 # differences in whitespace do not lead to failure.
1423 ac_old_val_w=`echo x $ac_old_val`
1424 ac_new_val_w=`echo x $ac_new_val`
1425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1426 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
979273e3 1427echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1428 ac_cache_corrupted=:
1429 else
1430 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1431echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1432 eval $ac_var=\$ac_old_val
1433 fi
1434 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1435echo "$as_me: former value: \`$ac_old_val'" >&2;}
1436 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1437echo "$as_me: current value: \`$ac_new_val'" >&2;}
979273e3
NN
1438 fi;;
1439 esac
1440 # Pass precious variables to config.status.
1441 if test "$ac_new_set" = set; then
1442 case $ac_new_val in
1443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 *) ac_arg=$ac_var=$ac_new_val ;;
1446 esac
1447 case " $ac_configure_args " in
1448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1449 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450 esac
1451 fi
1452done
1453if $ac_cache_corrupted; then
7a283e07
RW
1454 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1455echo "$as_me: error: in \`$ac_pwd':" >&2;}
979273e3
NN
1456 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1457echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1458 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1459echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1460 { (exit 1); exit 1; }; }
1461fi
1462
1463ac_ext=c
1464ac_cpp='$CPP $CPPFLAGS'
1465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1467ac_compiler_gnu=$ac_cv_c_compiler_gnu
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
7a283e07
RW
1485
1486
1487
979273e3
NN
1488
1489
1490
1491
1492ac_aux_dir=
1493for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1494 if test -f $ac_dir/install-sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install-sh -c"
1497 break
1498 elif test -f $ac_dir/install.sh; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/install.sh -c"
1501 break
1502 elif test -f $ac_dir/shtool; then
1503 ac_aux_dir=$ac_dir
1504 ac_install_sh="$ac_aux_dir/shtool install -c"
1505 break
1506 fi
1507done
1508if test -z "$ac_aux_dir"; then
1509 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1510echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1511 { (exit 1); exit 1; }; }
1512fi
1513ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1514ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1515ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1516
1517# Make sure we can run config.sub.
1518$ac_config_sub sun4 >/dev/null 2>&1 ||
1519 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1520echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523echo "$as_me:$LINENO: checking build system type" >&5
1524echo $ECHO_N "checking build system type... $ECHO_C" >&6
1525if test "${ac_cv_build+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527else
1528 ac_cv_build_alias=$build_alias
1529test -z "$ac_cv_build_alias" &&
1530 ac_cv_build_alias=`$ac_config_guess`
1531test -z "$ac_cv_build_alias" &&
1532 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1533echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1534 { (exit 1); exit 1; }; }
1535ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1536 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1537echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1538 { (exit 1); exit 1; }; }
1539
1540fi
1541echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1542echo "${ECHO_T}$ac_cv_build" >&6
1543build=$ac_cv_build
1544build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549echo "$as_me:$LINENO: checking host system type" >&5
1550echo $ECHO_N "checking host system type... $ECHO_C" >&6
1551if test "${ac_cv_host+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 ac_cv_host_alias=$host_alias
1555test -z "$ac_cv_host_alias" &&
1556 ac_cv_host_alias=$ac_cv_build_alias
1557ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1559echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1561
1562fi
1563echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1564echo "${ECHO_T}$ac_cv_host" >&6
1565host=$ac_cv_host
1566host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571echo "$as_me:$LINENO: checking target system type" >&5
1572echo $ECHO_N "checking target system type... $ECHO_C" >&6
1573if test "${ac_cv_target+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 ac_cv_target_alias=$target_alias
1577test "x$ac_cv_target_alias" = "x" &&
1578 ac_cv_target_alias=$ac_cv_host_alias
1579ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1581echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584fi
1585echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1586echo "${ECHO_T}$ac_cv_target" >&6
1587target=$ac_cv_target
1588target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593# The aliases save the names the user supplied, while $host etc.
1594# will get canonicalized.
1595test -n "$target_alias" &&
1596 test "$program_prefix$program_suffix$program_transform_name" = \
1597 NONENONEs,x,x, &&
1598 program_prefix=${target_alias}-
1599ac_ext=c
1600ac_cpp='$CPP $CPPFLAGS'
1601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1603ac_compiler_gnu=$ac_cv_c_compiler_gnu
1604if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1606set dummy ${ac_tool_prefix}gcc; ac_word=$2
1607echo "$as_me:$LINENO: checking for $ac_word" >&5
1608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1614else
1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626done
1627done
1628
1629fi
1630fi
1631CC=$ac_cv_prog_CC
1632if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634echo "${ECHO_T}$CC" >&6
1635else
1636 echo "$as_me:$LINENO: result: no" >&5
1637echo "${ECHO_T}no" >&6
1638fi
1639
1640fi
1641if test -z "$ac_cv_prog_CC"; then
1642 ac_ct_CC=$CC
1643 # Extract the first word of "gcc", so it can be a program name with args.
1644set dummy gcc; ac_word=$2
1645echo "$as_me:$LINENO: checking for $ac_word" >&5
1646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652else
1653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="gcc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1663 fi
1664done
1665done
1666
1667fi
1668fi
1669ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672echo "${ECHO_T}$ac_ct_CC" >&6
1673else
1674 echo "$as_me:$LINENO: result: no" >&5
1675echo "${ECHO_T}no" >&6
1676fi
1677
1678 CC=$ac_ct_CC
1679else
1680 CC="$ac_cv_prog_CC"
1681fi
1682
1683if test -z "$CC"; then
1684 if test -n "$ac_tool_prefix"; then
1685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1686set dummy ${ac_tool_prefix}cc; ac_word=$2
1687echo "$as_me:$LINENO: checking for $ac_word" >&5
1688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691else
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1694else
1695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696for as_dir in $PATH
1697do
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_CC="${ac_tool_prefix}cc"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 break 2
1705 fi
1706done
1707done
1708
1709fi
1710fi
1711CC=$ac_cv_prog_CC
1712if test -n "$CC"; then
1713 echo "$as_me:$LINENO: result: $CC" >&5
1714echo "${ECHO_T}$CC" >&6
1715else
1716 echo "$as_me:$LINENO: result: no" >&5
1717echo "${ECHO_T}no" >&6
1718fi
1719
1720fi
1721if test -z "$ac_cv_prog_CC"; then
1722 ac_ct_CC=$CC
1723 # Extract the first word of "cc", so it can be a program name with args.
1724set dummy cc; ac_word=$2
1725echo "$as_me:$LINENO: checking for $ac_word" >&5
1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732else
1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734for as_dir in $PATH
1735do
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="cc"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1743 fi
1744done
1745done
1746
1747fi
1748fi
1749ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752echo "${ECHO_T}$ac_ct_CC" >&6
1753else
1754 echo "$as_me:$LINENO: result: no" >&5
1755echo "${ECHO_T}no" >&6
1756fi
1757
1758 CC=$ac_ct_CC
1759else
1760 CC="$ac_cv_prog_CC"
1761fi
1762
1763fi
1764if test -z "$CC"; then
1765 # Extract the first word of "cc", so it can be a program name with args.
1766set dummy cc; ac_word=$2
1767echo "$as_me:$LINENO: checking for $ac_word" >&5
1768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769if test "${ac_cv_prog_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1774else
1775 ac_prog_rejected=no
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1784 ac_prog_rejected=yes
1785 continue
1786 fi
1787 ac_cv_prog_CC="cc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 break 2
1790 fi
1791done
1792done
1793
1794if test $ac_prog_rejected = yes; then
1795 # We found a bogon in the path, so make sure we never use it.
1796 set dummy $ac_cv_prog_CC
1797 shift
1798 if test $# != 0; then
1799 # We chose a different compiler from the bogus one.
1800 # However, it has the same basename, so the bogon will be chosen
1801 # first if we set CC to just the basename; use the full file name.
1802 shift
1803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1804 fi
1805fi
1806fi
1807fi
1808CC=$ac_cv_prog_CC
1809if test -n "$CC"; then
1810 echo "$as_me:$LINENO: result: $CC" >&5
1811echo "${ECHO_T}$CC" >&6
1812else
1813 echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817fi
1818if test -z "$CC"; then
1819 if test -n "$ac_tool_prefix"; then
1820 for ac_prog in cl
1821 do
1822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1824echo "$as_me:$LINENO: checking for $ac_word" >&5
1825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831else
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1842 fi
1843done
1844done
1845
1846fi
1847fi
1848CC=$ac_cv_prog_CC
1849if test -n "$CC"; then
1850 echo "$as_me:$LINENO: result: $CC" >&5
1851echo "${ECHO_T}$CC" >&6
1852else
1853 echo "$as_me:$LINENO: result: no" >&5
1854echo "${ECHO_T}no" >&6
1855fi
1856
1857 test -n "$CC" && break
1858 done
1859fi
1860if test -z "$CC"; then
1861 ac_ct_CC=$CC
1862 for ac_prog in cl
1863do
1864 # Extract the first word of "$ac_prog", so it can be a program name with args.
1865set dummy $ac_prog; ac_word=$2
1866echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC="$ac_prog"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885done
1886done
1887
1888fi
1889fi
1890ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893echo "${ECHO_T}$ac_ct_CC" >&6
1894else
1895 echo "$as_me:$LINENO: result: no" >&5
1896echo "${ECHO_T}no" >&6
1897fi
1898
1899 test -n "$ac_ct_CC" && break
1900done
1901
1902 CC=$ac_ct_CC
1903fi
1904
1905fi
1906
1907
7a283e07
RW
1908test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1909echo "$as_me: error: in \`$ac_pwd':" >&2;}
1910{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
979273e3
NN
1911See \`config.log' for more details." >&5
1912echo "$as_me: error: no acceptable C compiler found in \$PATH
1913See \`config.log' for more details." >&2;}
7a283e07 1914 { (exit 1); exit 1; }; }; }
979273e3
NN
1915
1916# Provide some information about the compiler.
1917echo "$as_me:$LINENO:" \
1918 "checking for C compiler version" >&5
1919ac_compiler=`set X $ac_compile; echo $2`
1920{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1921 (eval $ac_compiler --version </dev/null >&5) 2>&5
1922 ac_status=$?
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }
1925{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1926 (eval $ac_compiler -v </dev/null >&5) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }
1930{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1931 (eval $ac_compiler -V </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935
1936cat >conftest.$ac_ext <<_ACEOF
1937/* confdefs.h. */
1938_ACEOF
1939cat confdefs.h >>conftest.$ac_ext
1940cat >>conftest.$ac_ext <<_ACEOF
1941/* end confdefs.h. */
1942
1943int
1944main ()
1945{
1946
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951ac_clean_files_save=$ac_clean_files
1952ac_clean_files="$ac_clean_files a.out a.exe b.out"
1953# Try to create an executable without -o first, disregard a.out.
1954# It will help us diagnose broken compilers, and finding out an intuition
1955# of exeext.
1956echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1957echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1958ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1959if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1960 (eval $ac_link_default) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; then
1964 # Find the output, starting from the most likely. This scheme is
1965# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1966# resort.
1967
1968# Be careful to initialize this variable, since it used to be cached.
1969# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1970ac_cv_exeext=
1971# b.out is created by i960 compilers.
1972for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1973do
1974 test -f "$ac_file" || continue
1975 case $ac_file in
1976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1977 ;;
1978 conftest.$ac_ext )
1979 # This is the source file.
1980 ;;
1981 [ab].out )
1982 # We found the default executable, but exeext='' is most
1983 # certainly right.
1984 break;;
1985 *.* )
1986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987 # FIXME: I believe we export ac_cv_exeext for Libtool,
1988 # but it would be cool to find out if it's true. Does anybody
1989 # maintain Libtool? --akim.
1990 export ac_cv_exeext
1991 break;;
1992 * )
1993 break;;
1994 esac
1995done
1996else
1997 echo "$as_me: failed program was:" >&5
1998sed 's/^/| /' conftest.$ac_ext >&5
1999
7a283e07
RW
2000{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001echo "$as_me: error: in \`$ac_pwd':" >&2;}
979273e3
NN
2002{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2003See \`config.log' for more details." >&5
2004echo "$as_me: error: C compiler cannot create executables
2005See \`config.log' for more details." >&2;}
7a283e07 2006 { (exit 77); exit 77; }; }; }
979273e3
NN
2007fi
2008
2009ac_exeext=$ac_cv_exeext
2010echo "$as_me:$LINENO: result: $ac_file" >&5
2011echo "${ECHO_T}$ac_file" >&6
2012
2013# Check the compiler produces executables we can run. If not, either
2014# the compiler is broken, or we cross compile.
2015echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2016echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2017# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2018# If not cross compiling, check that we can run a simple program.
2019if test "$cross_compiling" != yes; then
2020 if { ac_try='./$ac_file'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 (eval $ac_try) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2026 cross_compiling=no
2027 else
2028 if test "$cross_compiling" = maybe; then
2029 cross_compiling=yes
2030 else
7a283e07
RW
2031 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2032echo "$as_me: error: in \`$ac_pwd':" >&2;}
2033{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
979273e3
NN
2034If you meant to cross compile, use \`--host'.
2035See \`config.log' for more details." >&5
2036echo "$as_me: error: cannot run C compiled programs.
2037If you meant to cross compile, use \`--host'.
2038See \`config.log' for more details." >&2;}
7a283e07 2039 { (exit 1); exit 1; }; }; }
979273e3
NN
2040 fi
2041 fi
2042fi
2043echo "$as_me:$LINENO: result: yes" >&5
2044echo "${ECHO_T}yes" >&6
2045
2046rm -f a.out a.exe conftest$ac_cv_exeext b.out
2047ac_clean_files=$ac_clean_files_save
2048# Check the compiler produces executables we can run. If not, either
2049# the compiler is broken, or we cross compile.
2050echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2051echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2052echo "$as_me:$LINENO: result: $cross_compiling" >&5
2053echo "${ECHO_T}$cross_compiling" >&6
2054
2055echo "$as_me:$LINENO: checking for suffix of executables" >&5
2056echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2058 (eval $ac_link) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; then
2062 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2063# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2064# work properly (i.e., refer to `conftest.exe'), while it won't with
2065# `rm'.
2066for ac_file in conftest.exe conftest conftest.*; do
2067 test -f "$ac_file" || continue
2068 case $ac_file in
2069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2070 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2071 export ac_cv_exeext
2072 break;;
2073 * ) break;;
2074 esac
2075done
2076else
7a283e07
RW
2077 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2078echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
979273e3
NN
2080See \`config.log' for more details." >&5
2081echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2082See \`config.log' for more details." >&2;}
7a283e07 2083 { (exit 1); exit 1; }; }; }
979273e3
NN
2084fi
2085
2086rm -f conftest$ac_cv_exeext
2087echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2088echo "${ECHO_T}$ac_cv_exeext" >&6
2089
2090rm -f conftest.$ac_ext
2091EXEEXT=$ac_cv_exeext
2092ac_exeext=$EXEEXT
2093echo "$as_me:$LINENO: checking for suffix of object files" >&5
2094echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2095if test "${ac_cv_objext+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098 cat >conftest.$ac_ext <<_ACEOF
2099/* confdefs.h. */
2100_ACEOF
2101cat confdefs.h >>conftest.$ac_ext
2102cat >>conftest.$ac_ext <<_ACEOF
2103/* end confdefs.h. */
2104
2105int
2106main ()
2107{
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113rm -f conftest.o conftest.obj
2114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2120 case $ac_file in
2121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2123 break;;
2124 esac
2125done
2126else
2127 echo "$as_me: failed program was:" >&5
2128sed 's/^/| /' conftest.$ac_ext >&5
2129
7a283e07
RW
2130{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2131echo "$as_me: error: in \`$ac_pwd':" >&2;}
979273e3
NN
2132{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133See \`config.log' for more details." >&5
2134echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135See \`config.log' for more details." >&2;}
7a283e07 2136 { (exit 1); exit 1; }; }; }
979273e3
NN
2137fi
2138
2139rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140fi
2141echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142echo "${ECHO_T}$ac_cv_objext" >&6
2143OBJEXT=$ac_cv_objext
2144ac_objext=$OBJEXT
2145echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150 cat >conftest.$ac_ext <<_ACEOF
2151/* confdefs.h. */
2152_ACEOF
2153cat confdefs.h >>conftest.$ac_ext
2154cat >>conftest.$ac_ext <<_ACEOF
2155/* end confdefs.h. */
2156
2157int
2158main ()
2159{
2160#ifndef __GNUC__
2161 choke me
2162#endif
2163
2164 ;
2165 return 0;
2166}
2167_ACEOF
2168rm -f conftest.$ac_objext
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
8ae85421
AM
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
979273e3
NN
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_compiler_gnu=yes
2191else
2192 echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195ac_compiler_gnu=no
2196fi
2197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199
2200fi
2201echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203GCC=`test $ac_compiler_gnu = yes && echo yes`
2204ac_test_CFLAGS=${CFLAGS+set}
2205ac_save_CFLAGS=$CFLAGS
2206CFLAGS="-g"
2207echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 cat >conftest.$ac_ext <<_ACEOF
2213/* confdefs.h. */
2214_ACEOF
2215cat confdefs.h >>conftest.$ac_ext
2216cat >>conftest.$ac_ext <<_ACEOF
2217/* end confdefs.h. */
2218
2219int
2220main ()
2221{
2222
2223 ;
2224 return 0;
2225}
2226_ACEOF
2227rm -f conftest.$ac_objext
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
8ae85421
AM
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
979273e3
NN
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 ac_cv_prog_cc_g=yes
2250else
2251 echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254ac_cv_prog_cc_g=no
2255fi
2256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257fi
2258echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260if test "$ac_test_CFLAGS" = set; then
2261 CFLAGS=$ac_save_CFLAGS
2262elif test $ac_cv_prog_cc_g = yes; then
2263 if test "$GCC" = yes; then
2264 CFLAGS="-g -O2"
2265 else
2266 CFLAGS="-g"
2267 fi
2268else
2269 if test "$GCC" = yes; then
2270 CFLAGS="-O2"
2271 else
2272 CFLAGS=
2273 fi
2274fi
2275echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280 ac_cv_prog_cc_stdc=no
2281ac_save_CC=$CC
2282cat >conftest.$ac_ext <<_ACEOF
2283/* confdefs.h. */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h. */
2288#include <stdarg.h>
2289#include <stdio.h>
2290#include <sys/types.h>
2291#include <sys/stat.h>
2292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2293struct buf { int x; };
2294FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295static char *e (p, i)
2296 char **p;
2297 int i;
2298{
2299 return p[i];
2300}
2301static char *f (char * (*g) (char **, int), char **p, ...)
2302{
2303 char *s;
2304 va_list v;
2305 va_start (v,p);
2306 s = g (p, va_arg (v,int));
2307 va_end (v);
2308 return s;
2309}
2310
2311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2312 function prototypes and stuff, but not '\xHH' hex character constants.
2313 These don't provoke an error unfortunately, instead are silently treated
2314 as 'x'. The following induces an error, until -std1 is added to get
2315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2316 array size at least. It's necessary to write '\x00'==0 to get something
2317 that's true only with -std1. */
2318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
2320int test (int i, double x);
2321struct s1 {int (*f) (int a);};
2322struct s2 {int (*f) (double a);};
2323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324int argc;
2325char **argv;
2326int
2327main ()
2328{
2329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334# Don't try gcc -ansi; that turns off useful extensions and
2335# breaks some systems' header files.
2336# AIX -qlanglvl=ansi
2337# Ultrix and OSF/1 -std1
2338# HP-UX 10.20 and later -Ae
2339# HP-UX older versions -Aa -D_HPUX_SOURCE
2340# SVR4 -Xc -D__EXTENSIONS__
2341for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342do
2343 CC="$ac_save_CC $ac_arg"
2344 rm -f conftest.$ac_objext
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
8ae85421
AM
2353 { ac_try='test -z "$ac_c_werror_flag"
2354 || test ! -s conftest.err'
979273e3
NN
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_cv_prog_cc_stdc=$ac_arg
2367break
2368else
2369 echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372fi
2373rm -f conftest.err conftest.$ac_objext
2374done
2375rm -f conftest.$ac_ext conftest.$ac_objext
2376CC=$ac_save_CC
2377
2378fi
2379
2380case "x$ac_cv_prog_cc_stdc" in
2381 x|xno)
2382 echo "$as_me:$LINENO: result: none needed" >&5
2383echo "${ECHO_T}none needed" >&6 ;;
2384 *)
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387 CC="$CC $ac_cv_prog_cc_stdc" ;;
2388esac
2389
2390# Some people use a C++ compiler to compile C. Since we use `exit',
2391# in C++ we need to declare it. In case someone uses the same compiler
2392# for both compiling C and C++ we need to have the C++ compiler decide
2393# the declaration of exit, since it's the most demanding environment.
2394cat >conftest.$ac_ext <<_ACEOF
2395#ifndef __cplusplus
2396 choke me
2397#endif
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
8ae85421
AM
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
979273e3
NN
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 for ac_declaration in \
2422 '' \
2423 'extern "C" void std::exit (int) throw (); using std::exit;' \
2424 'extern "C" void std::exit (int); using std::exit;' \
2425 'extern "C" void exit (int) throw ();' \
2426 'extern "C" void exit (int);' \
2427 'void exit (int);'
2428do
2429 cat >conftest.$ac_ext <<_ACEOF
2430/* confdefs.h. */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h. */
2435$ac_declaration
2436#include <stdlib.h>
2437int
2438main ()
2439{
2440exit (42);
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
8ae85421
AM
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
979273e3
NN
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 :
2468else
2469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472continue
2473fi
2474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h. */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h. */
2481$ac_declaration
2482int
2483main ()
2484{
2485exit (42);
2486 ;
2487 return 0;
2488}
2489_ACEOF
2490rm -f conftest.$ac_objext
2491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
8ae85421
AM
2499 { ac_try='test -z "$ac_c_werror_flag"
2500 || test ! -s conftest.err'
979273e3
NN
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2512 break
2513else
2514 echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517fi
2518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519done
2520rm -f conftest*
2521if test -n "$ac_declaration"; then
2522 echo '#ifdef __cplusplus' >>confdefs.h
2523 echo $ac_declaration >>confdefs.h
2524 echo '#endif' >>confdefs.h
2525fi
2526
2527else
2528 echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531fi
2532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
8ae85421
AM
2540echo "$as_me:$LINENO: checking for library containing strerror" >&5
2541echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2542if test "${ac_cv_search_strerror+set}" = set; then
979273e3
NN
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
8ae85421
AM
2545 ac_func_search_save_LIBS=$LIBS
2546ac_cv_search_strerror=no
979273e3
NN
2547cat >conftest.$ac_ext <<_ACEOF
2548/* confdefs.h. */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
2552/* end confdefs.h. */
2553
2554/* Override any gcc2 internal prototype to avoid an error. */
2555#ifdef __cplusplus
2556extern "C"
2557#endif
2558/* We use char because int might match the return type of a gcc2
2559 builtin and then its argument prototype would still apply. */
2560char strerror ();
2561int
2562main ()
2563{
2564strerror ();
2565 ;
2566 return 0;
2567}
2568_ACEOF
2569rm -f conftest.$ac_objext conftest$ac_exeext
2570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2571 (eval $ac_link) 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
8ae85421
AM
2578 { ac_try='test -z "$ac_c_werror_flag"
2579 || test ! -s conftest.err'
979273e3
NN
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest$ac_exeext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
8ae85421 2591 ac_cv_search_strerror="none required"
979273e3
NN
2592else
2593 echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
979273e3
NN
2596fi
2597rm -f conftest.err conftest.$ac_objext \
2598 conftest$ac_exeext conftest.$ac_ext
8ae85421
AM
2599if test "$ac_cv_search_strerror" = no; then
2600 for ac_lib in cposix; do
2601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2602 cat >conftest.$ac_ext <<_ACEOF
2603/* confdefs.h. */
2604_ACEOF
2605cat confdefs.h >>conftest.$ac_ext
2606cat >>conftest.$ac_ext <<_ACEOF
2607/* end confdefs.h. */
2608
2609/* Override any gcc2 internal prototype to avoid an error. */
2610#ifdef __cplusplus
2611extern "C"
2612#endif
2613/* We use char because int might match the return type of a gcc2
2614 builtin and then its argument prototype would still apply. */
2615char strerror ();
2616int
2617main ()
2618{
2619strerror ();
2620 ;
2621 return 0;
2622}
2623_ACEOF
2624rm -f conftest.$ac_objext conftest$ac_exeext
2625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626 (eval $ac_link) 2>conftest.er1
2627 ac_status=$?
2628 grep -v '^ *+' conftest.er1 >conftest.err
2629 rm -f conftest.er1
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest$ac_exeext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 ac_cv_search_strerror="-l$ac_lib"
2647break
2648else
2649 echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
979273e3 2652fi
8ae85421
AM
2653rm -f conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2655 done
979273e3 2656fi
8ae85421
AM
2657LIBS=$ac_func_search_save_LIBS
2658fi
2659echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2660echo "${ECHO_T}$ac_cv_search_strerror" >&6
2661if test "$ac_cv_search_strerror" != no; then
2662 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
979273e3 2663
8ae85421 2664fi
979273e3
NN
2665
2666
2667# We currently only use the version number for the name of any shared
2668# library. For user convenience, we always use the same version
2669# number that BFD is using.
2670BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2671
8ae85421 2672am__api_version="1.9"
979273e3
NN
2673# Find a good install program. We prefer a C program (faster),
2674# so one script is as good as another. But avoid the broken or
2675# incompatible versions:
2676# SysV /etc/install, /usr/sbin/install
2677# SunOS /usr/etc/install
2678# IRIX /sbin/install
2679# AIX /bin/install
2680# AmigaOS /C/install, which installs bootblocks on floppy discs
2681# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2682# AFS /usr/afsws/bin/install, which mishandles nonexistent args
252b5132 2683# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 2684# OS/2's system install, which has a completely different semantic
252b5132 2685# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2686# Reject install programs that cannot install multiple files.
979273e3
NN
2687echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2688echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2689if test -z "$INSTALL"; then
979273e3
NN
2690if test "${ac_cv_path_install+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2692else
979273e3
NN
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 # Account for people who put trailing slashes in PATH elements.
2699case $as_dir/ in
2700 ./ | .// | /cC/* | \
2701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2702 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2703 /usr/ucb/* ) ;;
2704 *)
2705 # OSF1 and SCO ODT 3.0 have their own names for install.
2706 # Don't use installbsd from OSF since it installs stuff as root
2707 # by default.
2708 for ac_prog in ginstall scoinst install; do
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2711 if test $ac_prog = install &&
979273e3 2712 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2713 # AIX install. It has an incompatible calling convention.
2714 :
979273e3
NN
2715 elif test $ac_prog = install &&
2716 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717 # program-specific install script used by HP pwplus--don't use.
2718 :
252b5132 2719 else
58c85be7
RW
2720 rm -rf conftest.one conftest.two conftest.dir
2721 echo one > conftest.one
2722 echo two > conftest.two
2723 mkdir conftest.dir
2724 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2725 test -s conftest.one && test -s conftest.two &&
2726 test -s conftest.dir/conftest.one &&
2727 test -s conftest.dir/conftest.two
2728 then
2729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2730 break 3
2731 fi
252b5132
RH
2732 fi
2733 fi
2734 done
979273e3
NN
2735 done
2736 ;;
2737esac
2738done
2739
58c85be7 2740rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2741
2742fi
2743 if test "${ac_cv_path_install+set}" = set; then
979273e3 2744 INSTALL=$ac_cv_path_install
252b5132 2745 else
58c85be7
RW
2746 # As a last resort, use the slow shell script. Don't cache a
2747 # value for INSTALL within a source directory, because that will
252b5132 2748 # break other packages using the cache if that directory is
58c85be7 2749 # removed, or if the value is a relative name.
979273e3 2750 INSTALL=$ac_install_sh
252b5132
RH
2751 fi
2752fi
979273e3
NN
2753echo "$as_me:$LINENO: result: $INSTALL" >&5
2754echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2755
2756# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2757# It thinks the first close brace ends the variable substitution.
2758test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2759
979273e3 2760test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2761
2762test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763
979273e3
NN
2764echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2765echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2766# Just in case
2767sleep 1
8ae85421 2768echo timestamp > conftest.file
252b5132
RH
2769# Do `set' in a subshell so we don't clobber the current shell's
2770# arguments. Must try -L first in case configure is actually a
2771# symlink; some systems play weird games with the mod time of symlinks
2772# (eg FreeBSD returns the mod time of the symlink's containing
2773# directory).
2774if (
8ae85421 2775 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2776 if test "$*" = "X"; then
2777 # -L didn't work.
8ae85421 2778 set X `ls -t $srcdir/configure conftest.file`
252b5132 2779 fi
8ae85421
AM
2780 rm -f conftest.file
2781 if test "$*" != "X $srcdir/configure conftest.file" \
2782 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2783
2784 # If neither matched, then we have a broken ls. This can happen
2785 # if, for instance, CONFIG_SHELL is bash and it inherits a
2786 # broken ls alias from the environment. This has actually
2787 # happened. Such a system could not be considered "sane".
979273e3
NN
2788 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2789alias in your environment" >&5
2790echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2791alias in your environment" >&2;}
2792 { (exit 1); exit 1; }; }
252b5132
RH
2793 fi
2794
8ae85421 2795 test "$2" = conftest.file
252b5132
RH
2796 )
2797then
2798 # Ok.
2799 :
2800else
979273e3
NN
2801 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2802Check your system clock" >&5
2803echo "$as_me: error: newly created file is older than distributed files!
2804Check your system clock" >&2;}
2805 { (exit 1); exit 1; }; }
252b5132 2806fi
979273e3
NN
2807echo "$as_me:$LINENO: result: yes" >&5
2808echo "${ECHO_T}yes" >&6
252b5132 2809test "$program_prefix" != NONE &&
979273e3 2810 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2811# Use a double $ so make ignores it.
2812test "$program_suffix" != NONE &&
979273e3
NN
2813 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2814# Double any \ or $. echo might interpret backslashes.
2815# By default was `s,x,x', remove it if useless.
2816cat <<\_ACEOF >conftest.sed
2817s/[\\$]/&&/g;s/;s,x,x,$//
2818_ACEOF
2819program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2820rm conftest.sed
2821
8ae85421
AM
2822# expand $ac_aux_dir to an absolute path
2823am_aux_dir=`cd $ac_aux_dir && pwd`
2824
2825test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2826# Use eval to expand $SHELL
2827if eval "$MISSING --run true"; then
2828 am_missing_run="$MISSING --run "
2829else
2830 am_missing_run=
2831 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2832echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2833fi
2834
2835if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2836 # We used to keeping the `.' as first argument, in order to
2837 # allow $(mkdir_p) to be used without argument. As in
2838 # $(mkdir_p) $(somedir)
2839 # where $(somedir) is conditionally defined. However this is wrong
2840 # for two reasons:
2841 # 1. if the package is installed by a user who cannot write `.'
2842 # make install will fail,
2843 # 2. the above comment should most certainly read
2844 # $(mkdir_p) $(DESTDIR)$(somedir)
2845 # so it does not work when $(somedir) is undefined and
2846 # $(DESTDIR) is not.
2847 # To support the latter case, we have to write
2848 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2849 # so the `.' trick is pointless.
2850 mkdir_p='mkdir -p --'
2851else
2852 # On NextStep and OpenStep, the `mkdir' command does not
2853 # recognize any option. It will interpret all options as
2854 # directories to create, and then abort because `.' already
2855 # exists.
2856 for d in ./-p ./--version;
2857 do
2858 test -d $d && rmdir $d
2859 done
2860 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2861 if test -f "$ac_aux_dir/mkinstalldirs"; then
2862 mkdir_p='$(mkinstalldirs)'
2863 else
2864 mkdir_p='$(install_sh) -d'
2865 fi
2866fi
2867
2868for ac_prog in gawk mawk nawk awk
2869do
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871set dummy $ac_prog; ac_word=$2
2872echo "$as_me:$LINENO: checking for $ac_word" >&5
2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874if test "${ac_cv_prog_AWK+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877 if test -n "$AWK"; then
2878 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_AWK="$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891done
2892done
2893
2894fi
2895fi
2896AWK=$ac_cv_prog_AWK
2897if test -n "$AWK"; then
2898 echo "$as_me:$LINENO: result: $AWK" >&5
2899echo "${ECHO_T}$AWK" >&6
2900else
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903fi
2904
2905 test -n "$AWK" && break
2906done
2907
979273e3
NN
2908echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2909echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2910set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2911if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913else
2914 cat >conftest.make <<\_ACEOF
252b5132 2915all:
979273e3
NN
2916 @echo 'ac_maketemp="$(MAKE)"'
2917_ACEOF
252b5132 2918# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979273e3 2919eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2920if test -n "$ac_maketemp"; then
2921 eval ac_cv_prog_make_${ac_make}_set=yes
2922else
2923 eval ac_cv_prog_make_${ac_make}_set=no
2924fi
979273e3 2925rm -f conftest.make
252b5132
RH
2926fi
2927if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979273e3
NN
2928 echo "$as_me:$LINENO: result: yes" >&5
2929echo "${ECHO_T}yes" >&6
252b5132
RH
2930 SET_MAKE=
2931else
979273e3
NN
2932 echo "$as_me:$LINENO: result: no" >&5
2933echo "${ECHO_T}no" >&6
252b5132
RH
2934 SET_MAKE="MAKE=${MAKE-make}"
2935fi
2936
8ae85421
AM
2937rm -rf .tst 2>/dev/null
2938mkdir .tst 2>/dev/null
2939if test -d .tst; then
2940 am__leading_dot=.
2941else
2942 am__leading_dot=_
2943fi
2944rmdir .tst 2>/dev/null
2945
2946DEPDIR="${am__leading_dot}deps"
2947
2948 ac_config_commands="$ac_config_commands depfiles"
2949
2950
2951am_make=${MAKE-make}
2952cat > confinc << 'END'
2953am__doit:
2954 @echo done
2955.PHONY: am__doit
2956END
2957# If we don't find an include directive, just comment out the code.
2958echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2959echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2960am__include="#"
2961am__quote=
2962_am_result=none
2963# First try GNU make style include.
2964echo "include confinc" > confmf
2965# We grep out `Entering directory' and `Leaving directory'
2966# messages which can occur if `w' ends up in MAKEFLAGS.
2967# In particular we don't look at `^make:' because GNU make might
2968# be invoked under some other name (usually "gmake"), in which
2969# case it prints its new name instead of `make'.
2970if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2971 am__include=include
2972 am__quote=
2973 _am_result=GNU
2974fi
2975# Now try BSD make style include.
2976if test "$am__include" = "#"; then
2977 echo '.include "confinc"' > confmf
2978 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2979 am__include=.include
2980 am__quote="\""
2981 _am_result=BSD
2982 fi
2983fi
2984
2985
2986echo "$as_me:$LINENO: result: $_am_result" >&5
2987echo "${ECHO_T}$_am_result" >&6
2988rm -f confinc confmf
2989
2990# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2991if test "${enable_dependency_tracking+set}" = set; then
2992 enableval="$enable_dependency_tracking"
2993
2994fi;
2995if test "x$enable_dependency_tracking" != xno; then
2996 am_depcomp="$ac_aux_dir/depcomp"
2997 AMDEPBACKSLASH='\'
2998fi
2999
3000
3001if test "x$enable_dependency_tracking" != xno; then
3002 AMDEP_TRUE=
3003 AMDEP_FALSE='#'
3004else
3005 AMDEP_TRUE='#'
3006 AMDEP_FALSE=
3007fi
252b5132 3008
252b5132 3009
252b5132 3010
8ae85421
AM
3011# test to see if srcdir already configured
3012if test "`cd $srcdir && pwd`" != "`pwd`" &&
3013 test -f $srcdir/config.status; then
979273e3
NN
3014 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3015echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3016 { (exit 1); exit 1; }; }
252b5132 3017fi
979273e3 3018
8ae85421
AM
3019# test whether we have cygpath
3020if test -z "$CYGPATH_W"; then
3021 if (cygpath --version) >/dev/null 2>/dev/null; then
3022 CYGPATH_W='cygpath -w'
3023 else
3024 CYGPATH_W=echo
3025 fi
3026fi
3027
3028
3029# Define the identity of the package.
3030 PACKAGE=opcodes
3031 VERSION=${BFD_VERSION}
3032
3033
979273e3 3034cat >>confdefs.h <<_ACEOF
252b5132 3035#define PACKAGE "$PACKAGE"
979273e3 3036_ACEOF
252b5132 3037
979273e3
NN
3038
3039cat >>confdefs.h <<_ACEOF
252b5132 3040#define VERSION "$VERSION"
979273e3 3041_ACEOF
252b5132 3042
8ae85421 3043# Some tools Automake needs.
252b5132 3044
8ae85421 3045ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 3046
8ae85421
AM
3047
3048AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3049
3050
3051AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3052
3053
3054AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3055
3056
3057MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3058
3059install_sh=${install_sh-"$am_aux_dir/install-sh"}
3060
3061# Installed binaries are usually stripped using `strip' when the user
3062# run `make install-strip'. However `strip' might not be the right
3063# tool to use in cross-compilation environments, therefore Automake
3064# will honor the `STRIP' environment variable to overrule this program.
3065if test "$cross_compiling" != no; then
3066 if test -n "$ac_tool_prefix"; then
3067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3068set dummy ${ac_tool_prefix}strip; ac_word=$2
3069echo "$as_me:$LINENO: checking for $ac_word" >&5
3070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3071if test "${ac_cv_prog_STRIP+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
3074 if test -n "$STRIP"; then
3075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088done
3089done
3090
3091fi
3092fi
3093STRIP=$ac_cv_prog_STRIP
3094if test -n "$STRIP"; then
3095 echo "$as_me:$LINENO: result: $STRIP" >&5
3096echo "${ECHO_T}$STRIP" >&6
252b5132 3097else
8ae85421
AM
3098 echo "$as_me:$LINENO: result: no" >&5
3099echo "${ECHO_T}no" >&6
252b5132
RH
3100fi
3101
8ae85421
AM
3102fi
3103if test -z "$ac_cv_prog_STRIP"; then
3104 ac_ct_STRIP=$STRIP
3105 # Extract the first word of "strip", so it can be a program name with args.
3106set dummy strip; ac_word=$2
3107echo "$as_me:$LINENO: checking for $ac_word" >&5
3108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112 if test -n "$ac_ct_STRIP"; then
3113 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_STRIP="strip"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126done
3127done
3128
3129 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3130fi
3131fi
3132ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3133if test -n "$ac_ct_STRIP"; then
3134 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3135echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3136else
8ae85421
AM
3137 echo "$as_me:$LINENO: result: no" >&5
3138echo "${ECHO_T}no" >&6
252b5132
RH
3139fi
3140
8ae85421 3141 STRIP=$ac_ct_STRIP
252b5132 3142else
8ae85421 3143 STRIP="$ac_cv_prog_STRIP"
252b5132
RH
3144fi
3145
8ae85421
AM
3146fi
3147INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3148
3149# We need awk for the "check" target. The system "awk" is bad on
3150# some platforms.
3151# Always define AMTAR for backward compatibility.
3152
3153AMTAR=${AMTAR-"${am_missing_run}tar"}
3154
3155am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3156
3157
3158
3159
3160depcc="$CC" am_compiler_list=
3161
3162echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3163echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3164if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3166else
8ae85421
AM
3167 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3168 # We make a subdir and do the tests there. Otherwise we can end up
3169 # making bogus files that we don't know about and never remove. For
3170 # instance it was reported that on HP-UX the gcc test will end up
3171 # making a dummy file named `D' -- because `-MD' means `put the output
3172 # in D'.
3173 mkdir conftest.dir
3174 # Copy depcomp to subdir because otherwise we won't find it if we're
3175 # using a relative directory.
3176 cp "$am_depcomp" conftest.dir
3177 cd conftest.dir
3178 # We will build objects and dependencies in a subdirectory because
3179 # it helps to detect inapplicable dependency modes. For instance
3180 # both Tru64's cc and ICC support -MD to output dependencies as a
3181 # side effect of compilation, but ICC will put the dependencies in
3182 # the current directory while Tru64 will put them in the object
3183 # directory.
3184 mkdir sub
3185
3186 am_cv_CC_dependencies_compiler_type=none
3187 if test "$am_compiler_list" = ""; then
3188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3189 fi
3190 for depmode in $am_compiler_list; do
3191 # Setup a source with many dependencies, because some compilers
3192 # like to wrap large dependency lists on column 80 (with \), and
3193 # we should not choose a depcomp mode which is confused by this.
3194 #
3195 # We need to recreate these files for each test, as the compiler may
3196 # overwrite some of them when testing with obscure command lines.
3197 # This happens at least with the AIX C compiler.
3198 : > sub/conftest.c
3199 for i in 1 2 3 4 5 6; do
3200 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3201 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3202 # Solaris 8's {/usr,}/bin/sh.
3203 touch sub/conftst$i.h
3204 done
3205 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3206
3207 case $depmode in
3208 nosideeffect)
3209 # after this tag, mechanisms are not by side-effect, so they'll
3210 # only be used when explicitly requested
3211 if test "x$enable_dependency_tracking" = xyes; then
3212 continue
3213 else
3214 break
3215 fi
3216 ;;
3217 none) break ;;
3218 esac
3219 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3220 # mode. It turns out that the SunPro C++ compiler does not properly
3221 # handle `-M -o', and we need to detect this.
3222 if depmode=$depmode \
3223 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3225 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3226 >/dev/null 2>conftest.err &&
3227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3228 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3230 # icc doesn't choke on unknown options, it will just issue warnings
3231 # or remarks (even with -Werror). So we grep stderr for any message
3232 # that says an option was ignored or not supported.
3233 # When given -MP, icc 7.0 and 7.1 complain thusly:
3234 # icc: Command line warning: ignoring option '-M'; no argument required
3235 # The diagnosis changed in icc 8.0:
3236 # icc: Command line remark: option '-MP' not supported
3237 if (grep 'ignoring option' conftest.err ||
3238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3239 am_cv_CC_dependencies_compiler_type=$depmode
3240 break
3241 fi
3242 fi
3243 done
3244
3245 cd ..
3246 rm -rf conftest.dir
3247else
3248 am_cv_CC_dependencies_compiler_type=none
3249fi
3250
252b5132 3251fi
8ae85421
AM
3252echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3253echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3254CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3255
3256
252b5132 3257
8ae85421
AM
3258if
3259 test "x$enable_dependency_tracking" != xno \
3260 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3261 am__fastdepCC_TRUE=
3262 am__fastdepCC_FALSE='#'
252b5132 3263else
8ae85421
AM
3264 am__fastdepCC_TRUE='#'
3265 am__fastdepCC_FALSE=
252b5132
RH
3266fi
3267
3268
3269
8ae85421 3270
dabbade6
L
3271ac_ext=c
3272ac_cpp='$CPP $CPPFLAGS'
3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_c_compiler_gnu
979273e3 3276if test -n "$ac_tool_prefix"; then
dabbade6
L
3277 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3278set dummy ${ac_tool_prefix}gcc; ac_word=$2
979273e3
NN
3279echo "$as_me:$LINENO: checking for $ac_word" >&5
3280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3281if test "${ac_cv_prog_CC+set}" = set; then
979273e3 3282 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3283else
dabbade6
L
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3286else
979273e3
NN
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3294 ac_cv_prog_CC="${ac_tool_prefix}gcc"
979273e3
NN
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298done
3299done
3300
252b5132
RH
3301fi
3302fi
dabbade6
L
3303CC=$ac_cv_prog_CC
3304if test -n "$CC"; then
3305 echo "$as_me:$LINENO: result: $CC" >&5
3306echo "${ECHO_T}$CC" >&6
252b5132 3307else
979273e3
NN
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310fi
3311
252b5132 3312fi
dabbade6
L
3313if test -z "$ac_cv_prog_CC"; then
3314 ac_ct_CC=$CC
3315 # Extract the first word of "gcc", so it can be a program name with args.
3316set dummy gcc; ac_word=$2
979273e3
NN
3317echo "$as_me:$LINENO: checking for $ac_word" >&5
3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3319if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
979273e3
NN
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
dabbade6
L
3322 if test -n "$ac_ct_CC"; then
3323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
979273e3
NN
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3332 ac_cv_prog_ac_ct_CC="gcc"
979273e3
NN
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336done
3337done
252b5132 3338
979273e3
NN
3339fi
3340fi
dabbade6
L
3341ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342if test -n "$ac_ct_CC"; then
3343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3344echo "${ECHO_T}$ac_ct_CC" >&6
979273e3
NN
3345else
3346 echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6
3348fi
252b5132 3349
dabbade6 3350 CC=$ac_ct_CC
979273e3 3351else
dabbade6 3352 CC="$ac_cv_prog_CC"
979273e3 3353fi
252b5132 3354
dabbade6
L
3355if test -z "$CC"; then
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358set dummy ${ac_tool_prefix}cc; ac_word=$2
979273e3
NN
3359echo "$as_me:$LINENO: checking for $ac_word" >&5
3360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3361if test "${ac_cv_prog_CC+set}" = set; then
979273e3 3362 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3363else
dabbade6
L
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3366else
979273e3
NN
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3374 ac_cv_prog_CC="${ac_tool_prefix}cc"
979273e3
NN
3375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378done
3379done
3380
252b5132
RH
3381fi
3382fi
dabbade6
L
3383CC=$ac_cv_prog_CC
3384if test -n "$CC"; then
3385 echo "$as_me:$LINENO: result: $CC" >&5
3386echo "${ECHO_T}$CC" >&6
252b5132 3387else
979273e3
NN
3388 echo "$as_me:$LINENO: result: no" >&5
3389echo "${ECHO_T}no" >&6
252b5132
RH
3390fi
3391
979273e3 3392fi
dabbade6
L
3393if test -z "$ac_cv_prog_CC"; then
3394 ac_ct_CC=$CC
3395 # Extract the first word of "cc", so it can be a program name with args.
3396set dummy cc; ac_word=$2
979273e3
NN
3397echo "$as_me:$LINENO: checking for $ac_word" >&5
3398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3399if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
979273e3 3400 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3401else
dabbade6
L
3402 if test -n "$ac_ct_CC"; then
3403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3404else
979273e3
NN
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3412 ac_cv_prog_ac_ct_CC="cc"
979273e3
NN
3413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416done
3417done
3418
252b5132
RH
3419fi
3420fi
dabbade6
L
3421ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422if test -n "$ac_ct_CC"; then
3423 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3424echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3425else
979273e3
NN
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
252b5132
RH
3428fi
3429
dabbade6 3430 CC=$ac_ct_CC
252b5132 3431else
dabbade6 3432 CC="$ac_cv_prog_CC"
252b5132
RH
3433fi
3434
dabbade6
L
3435fi
3436if test -z "$CC"; then
3437 # Extract the first word of "cc", so it can be a program name with args.
3438set dummy cc; ac_word=$2
3439echo "$as_me:$LINENO: checking for $ac_word" >&5
3440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441if test "${ac_cv_prog_CC+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446else
3447 ac_prog_rejected=no
3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH
3450do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456 ac_prog_rejected=yes
3457 continue
3458 fi
3459 ac_cv_prog_CC="cc"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463done
3464done
252b5132 3465
dabbade6
L
3466if test $ac_prog_rejected = yes; then
3467 # We found a bogon in the path, so make sure we never use it.
3468 set dummy $ac_cv_prog_CC
3469 shift
3470 if test $# != 0; then
3471 # We chose a different compiler from the bogus one.
3472 # However, it has the same basename, so the bogon will be chosen
3473 # first if we set CC to just the basename; use the full file name.
3474 shift
3475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476 fi
3477fi
3478fi
3479fi
3480CC=$ac_cv_prog_CC
3481if test -n "$CC"; then
3482 echo "$as_me:$LINENO: result: $CC" >&5
3483echo "${ECHO_T}$CC" >&6
252b5132 3484else
dabbade6
L
3485 echo "$as_me:$LINENO: result: no" >&5
3486echo "${ECHO_T}no" >&6
3487fi
252b5132 3488
dabbade6
L
3489fi
3490if test -z "$CC"; then
3491 if test -n "$ac_tool_prefix"; then
3492 for ac_prog in cl
3493 do
3494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3496echo "$as_me:$LINENO: checking for $ac_word" >&5
3497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498if test "${ac_cv_prog_CC+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500else
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503else
3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3514 fi
3515done
3516done
d7040cdb 3517
dabbade6
L
3518fi
3519fi
3520CC=$ac_cv_prog_CC
3521if test -n "$CC"; then
3522 echo "$as_me:$LINENO: result: $CC" >&5
3523echo "${ECHO_T}$CC" >&6
3524else
3525 echo "$as_me:$LINENO: result: no" >&5
3526echo "${ECHO_T}no" >&6
3527fi
d7040cdb 3528
dabbade6
L
3529 test -n "$CC" && break
3530 done
3531fi
3532if test -z "$CC"; then
3533 ac_ct_CC=$CC
3534 for ac_prog in cl
3535do
3536 # Extract the first word of "$ac_prog", so it can be a program name with args.
3537set dummy $ac_prog; ac_word=$2
3538echo "$as_me:$LINENO: checking for $ac_word" >&5
3539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543 if test -n "$ac_ct_CC"; then
3544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_ac_ct_CC="$ac_prog"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557done
3558done
d7040cdb 3559
dabbade6
L
3560fi
3561fi
3562ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563if test -n "$ac_ct_CC"; then
3564 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3565echo "${ECHO_T}$ac_ct_CC" >&6
3566else
3567 echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6
3569fi
d7040cdb 3570
dabbade6
L
3571 test -n "$ac_ct_CC" && break
3572done
d7040cdb 3573
dabbade6
L
3574 CC=$ac_ct_CC
3575fi
d7040cdb 3576
dabbade6 3577fi
d7040cdb
SE
3578
3579
7a283e07
RW
3580test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3581echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
dabbade6
L
3583See \`config.log' for more details." >&5
3584echo "$as_me: error: no acceptable C compiler found in \$PATH
3585See \`config.log' for more details." >&2;}
7a283e07 3586 { (exit 1); exit 1; }; }; }
d7040cdb 3587
dabbade6
L
3588# Provide some information about the compiler.
3589echo "$as_me:$LINENO:" \
3590 "checking for C compiler version" >&5
3591ac_compiler=`set X $ac_compile; echo $2`
3592{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3593 (eval $ac_compiler --version </dev/null >&5) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }
3597{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3598 (eval $ac_compiler -v </dev/null >&5) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3603 (eval $ac_compiler -V </dev/null >&5) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }
d7040cdb 3607
dabbade6
L
3608echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3609echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3610if test "${ac_cv_c_compiler_gnu+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3612else
dabbade6
L
3613 cat >conftest.$ac_ext <<_ACEOF
3614/* confdefs.h. */
3615_ACEOF
3616cat confdefs.h >>conftest.$ac_ext
3617cat >>conftest.$ac_ext <<_ACEOF
3618/* end confdefs.h. */
d7040cdb 3619
dabbade6
L
3620int
3621main ()
3622{
3623#ifndef __GNUC__
3624 choke me
3625#endif
d7040cdb 3626
dabbade6
L
3627 ;
3628 return 0;
3629}
3630_ACEOF
3631rm -f conftest.$ac_objext
3632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3633 (eval $ac_compile) 2>conftest.er1
3634 ac_status=$?
3635 grep -v '^ *+' conftest.er1 >conftest.err
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } &&
3640 { ac_try='test -z "$ac_c_werror_flag"
3641 || test ! -s conftest.err'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 (eval $ac_try) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; } &&
3647 { ac_try='test -s conftest.$ac_objext'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; }; then
3653 ac_compiler_gnu=yes
d7040cdb 3654else
dabbade6
L
3655 echo "$as_me: failed program was:" >&5
3656sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3657
dabbade6
L
3658ac_compiler_gnu=no
3659fi
3660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3661ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3662
dabbade6
L
3663fi
3664echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3665echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3666GCC=`test $ac_compiler_gnu = yes && echo yes`
3667ac_test_CFLAGS=${CFLAGS+set}
3668ac_save_CFLAGS=$CFLAGS
3669CFLAGS="-g"
3670echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3671echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3672if test "${ac_cv_prog_cc_g+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3674else
dabbade6
L
3675 cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h. */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h. */
d7040cdb 3681
dabbade6
L
3682int
3683main ()
3684{
d7040cdb 3685
dabbade6
L
3686 ;
3687 return 0;
3688}
3689_ACEOF
3690rm -f conftest.$ac_objext
3691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692 (eval $ac_compile) 2>conftest.er1
3693 ac_status=$?
3694 grep -v '^ *+' conftest.er1 >conftest.err
3695 rm -f conftest.er1
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try='test -z "$ac_c_werror_flag"
3700 || test ! -s conftest.err'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; } &&
3706 { ac_try='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 ac_cv_prog_cc_g=yes
3713else
3714 echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3716
dabbade6
L
3717ac_cv_prog_cc_g=no
3718fi
3719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720fi
3721echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3722echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3723if test "$ac_test_CFLAGS" = set; then
3724 CFLAGS=$ac_save_CFLAGS
3725elif test $ac_cv_prog_cc_g = yes; then
3726 if test "$GCC" = yes; then
3727 CFLAGS="-g -O2"
3728 else
3729 CFLAGS="-g"
3730 fi
3731else
3732 if test "$GCC" = yes; then
3733 CFLAGS="-O2"
3734 else
3735 CFLAGS=
3736 fi
3737fi
3738echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3739echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3740if test "${ac_cv_prog_cc_stdc+set}" = set; then
d7040cdb
SE
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
dabbade6
L
3743 ac_cv_prog_cc_stdc=no
3744ac_save_CC=$CC
3745cat >conftest.$ac_ext <<_ACEOF
3746/* confdefs.h. */
3747_ACEOF
3748cat confdefs.h >>conftest.$ac_ext
3749cat >>conftest.$ac_ext <<_ACEOF
3750/* end confdefs.h. */
3751#include <stdarg.h>
3752#include <stdio.h>
3753#include <sys/types.h>
3754#include <sys/stat.h>
3755/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3756struct buf { int x; };
3757FILE * (*rcsopen) (struct buf *, struct stat *, int);
3758static char *e (p, i)
3759 char **p;
3760 int i;
3761{
3762 return p[i];
3763}
3764static char *f (char * (*g) (char **, int), char **p, ...)
3765{
3766 char *s;
3767 va_list v;
3768 va_start (v,p);
3769 s = g (p, va_arg (v,int));
3770 va_end (v);
3771 return s;
3772}
d7040cdb 3773
dabbade6
L
3774/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3775 function prototypes and stuff, but not '\xHH' hex character constants.
3776 These don't provoke an error unfortunately, instead are silently treated
3777 as 'x'. The following induces an error, until -std1 is added to get
3778 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3779 array size at least. It's necessary to write '\x00'==0 to get something
3780 that's true only with -std1. */
3781int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3782
dabbade6
L
3783int test (int i, double x);
3784struct s1 {int (*f) (int a);};
3785struct s2 {int (*f) (double a);};
3786int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787int argc;
3788char **argv;
3789int
3790main ()
3791{
3792return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3793 ;
3794 return 0;
3795}
3796_ACEOF
3797# Don't try gcc -ansi; that turns off useful extensions and
3798# breaks some systems' header files.
3799# AIX -qlanglvl=ansi
3800# Ultrix and OSF/1 -std1
3801# HP-UX 10.20 and later -Ae
3802# HP-UX older versions -Aa -D_HPUX_SOURCE
3803# SVR4 -Xc -D__EXTENSIONS__
3804for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805do
3806 CC="$ac_save_CC $ac_arg"
3807 rm -f conftest.$ac_objext
3808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -z "$ac_c_werror_flag"
3817 || test ! -s conftest.err'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try='test -s conftest.$ac_objext'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3829 ac_cv_prog_cc_stdc=$ac_arg
3830break
d7040cdb 3831else
dabbade6
L
3832 echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3834
d7040cdb 3835fi
dabbade6
L
3836rm -f conftest.err conftest.$ac_objext
3837done
3838rm -f conftest.$ac_ext conftest.$ac_objext
3839CC=$ac_save_CC
d7040cdb 3840
dabbade6 3841fi
d7040cdb 3842
dabbade6
L
3843case "x$ac_cv_prog_cc_stdc" in
3844 x|xno)
3845 echo "$as_me:$LINENO: result: none needed" >&5
3846echo "${ECHO_T}none needed" >&6 ;;
252b5132 3847 *)
dabbade6
L
3848 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3849echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3850 CC="$CC $ac_cv_prog_cc_stdc" ;;
3851esac
252b5132 3852
dabbade6
L
3853# Some people use a C++ compiler to compile C. Since we use `exit',
3854# in C++ we need to declare it. In case someone uses the same compiler
3855# for both compiling C and C++ we need to have the C++ compiler decide
3856# the declaration of exit, since it's the most demanding environment.
3857cat >conftest.$ac_ext <<_ACEOF
3858#ifndef __cplusplus
3859 choke me
3860#endif
3861_ACEOF
3862rm -f conftest.$ac_objext
3863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_c_werror_flag"
3872 || test ! -s conftest.err'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 (eval $ac_try) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 for ac_declaration in \
3885 '' \
3886 'extern "C" void std::exit (int) throw (); using std::exit;' \
3887 'extern "C" void std::exit (int); using std::exit;' \
3888 'extern "C" void exit (int) throw ();' \
3889 'extern "C" void exit (int);' \
3890 'void exit (int);'
3891do
3892 cat >conftest.$ac_ext <<_ACEOF
3893/* confdefs.h. */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
3897/* end confdefs.h. */
3898$ac_declaration
3899#include <stdlib.h>
3900int
3901main ()
3902{
3903exit (42);
3904 ;
3905 return 0;
3906}
3907_ACEOF
3908rm -f conftest.$ac_objext
3909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>conftest.er1
3911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_c_werror_flag"
3918 || test ! -s conftest.err'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 :
252b5132 3931else
dabbade6
L
3932 echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935continue
252b5132 3936fi
dabbade6
L
3937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938 cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h. */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
3943/* end confdefs.h. */
3944$ac_declaration
3945int
3946main ()
3947{
3948exit (42);
3949 ;
3950 return 0;
3951}
3952_ACEOF
3953rm -f conftest.$ac_objext
3954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955 (eval $ac_compile) 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } &&
3962 { ac_try='test -z "$ac_c_werror_flag"
3963 || test ! -s conftest.err'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 (eval $ac_try) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; } &&
3969 { ac_try='test -s conftest.$ac_objext'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 (eval $ac_try) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 break
252b5132 3976else
dabbade6
L
3977 echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3979
dabbade6
L
3980fi
3981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3982done
3983rm -f conftest*
3984if test -n "$ac_declaration"; then
3985 echo '#ifdef __cplusplus' >>confdefs.h
3986 echo $ac_declaration >>confdefs.h
3987 echo '#endif' >>confdefs.h
3988fi
ac48eca1 3989
dabbade6
L
3990else
3991 echo "$as_me: failed program was:" >&5
3992sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3993
dabbade6
L
3994fi
3995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996ac_ext=c
3997ac_cpp='$CPP $CPPFLAGS'
3998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4001
4002
dabbade6
L
4003cat >>confdefs.h <<\_ACEOF
4004#define _GNU_SOURCE 1
4005_ACEOF
d7040cdb
SE
4006
4007
7357c5b6
AM
4008ac_ext=c
4009ac_cpp='$CPP $CPPFLAGS'
4010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4014echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4015# On Suns, sometimes $CPP names a directory.
4016if test -n "$CPP" && test -d "$CPP"; then
4017 CPP=
4018fi
4019if test -z "$CPP"; then
4020 if test "${ac_cv_prog_CPP+set}" = set; then
dabbade6
L
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
7357c5b6
AM
4023 # Double quotes because CPP needs to be expanded
4024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4025 do
4026 ac_preproc_ok=false
4027for ac_c_preproc_warn_flag in '' yes
dabbade6 4028do
7357c5b6
AM
4029 # Use a header file that comes with gcc, so configuring glibc
4030 # with a fresh cross-compiler works.
4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032 # <limits.h> exists even on freestanding compilers.
4033 # On the NeXT, cc -E runs the code through the compiler's parser,
4034 # not just through cpp. "Syntax error" is here to catch this case.
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
4041#ifdef __STDC__
4042# include <limits.h>
4043#else
4044# include <assert.h>
4045#endif
4046 Syntax error
4047_ACEOF
4048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } >/dev/null; then
4056 if test -s conftest.err; then
4057 ac_cpp_err=$ac_c_preproc_warn_flag
4058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4059 else
4060 ac_cpp_err=
dabbade6 4061 fi
dabbade6 4062else
7357c5b6 4063 ac_cpp_err=yes
dabbade6 4064fi
7357c5b6
AM
4065if test -z "$ac_cpp_err"; then
4066 :
252b5132 4067else
7357c5b6
AM
4068 echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
dabbade6 4070
7357c5b6
AM
4071 # Broken: fails on valid input.
4072continue
252b5132 4073fi
7357c5b6
AM
4074rm -f conftest.err conftest.$ac_ext
4075
4076 # OK, works on sane cases. Now check whether non-existent headers
4077 # can be detected and how.
4078 cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h. */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h. */
4084#include <ac_nonexistent.h>
4085_ACEOF
4086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } >/dev/null; then
4094 if test -s conftest.err; then
4095 ac_cpp_err=$ac_c_preproc_warn_flag
4096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097 else
4098 ac_cpp_err=
4099 fi
252b5132 4100else
7357c5b6 4101 ac_cpp_err=yes
dabbade6 4102fi
7357c5b6
AM
4103if test -z "$ac_cpp_err"; then
4104 # Broken: success on invalid input.
4105continue
dabbade6 4106else
7357c5b6
AM
4107 echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 # Passes both tests.
4111ac_preproc_ok=:
4112break
dabbade6 4113fi
7357c5b6 4114rm -f conftest.err conftest.$ac_ext
dabbade6 4115
d7040cdb 4116done
7357c5b6
AM
4117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4118rm -f conftest.err conftest.$ac_ext
4119if $ac_preproc_ok; then
4120 break
4121fi
4122
4123 done
4124 ac_cv_prog_CPP=$CPP
d7040cdb
SE
4125
4126fi
7357c5b6
AM
4127 CPP=$ac_cv_prog_CPP
4128else
4129 ac_cv_prog_CPP=$CPP
d7040cdb 4130fi
7357c5b6
AM
4131echo "$as_me:$LINENO: result: $CPP" >&5
4132echo "${ECHO_T}$CPP" >&6
4133ac_preproc_ok=false
4134for ac_c_preproc_warn_flag in '' yes
4135do
4136 # Use a header file that comes with gcc, so configuring glibc
4137 # with a fresh cross-compiler works.
4138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4139 # <limits.h> exists even on freestanding compilers.
4140 # On the NeXT, cc -E runs the code through the compiler's parser,
4141 # not just through cpp. "Syntax error" is here to catch this case.
4142 cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
4148#ifdef __STDC__
4149# include <limits.h>
4150#else
4151# include <assert.h>
4152#endif
4153 Syntax error
4154_ACEOF
4155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } >/dev/null; then
4163 if test -s conftest.err; then
4164 ac_cpp_err=$ac_c_preproc_warn_flag
4165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4166 else
4167 ac_cpp_err=
4168 fi
d7040cdb 4169else
7357c5b6 4170 ac_cpp_err=yes
d7040cdb 4171fi
7357c5b6
AM
4172if test -z "$ac_cpp_err"; then
4173 :
4174else
4175 echo "$as_me: failed program was:" >&5
4176sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4177
7357c5b6
AM
4178 # Broken: fails on valid input.
4179continue
d7040cdb 4180fi
7357c5b6 4181rm -f conftest.err conftest.$ac_ext
d7040cdb 4182
7357c5b6
AM
4183 # OK, works on sane cases. Now check whether non-existent headers
4184 # can be detected and how.
4185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
4190/* end confdefs.h. */
4191#include <ac_nonexistent.h>
4192_ACEOF
4193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } >/dev/null; then
4201 if test -s conftest.err; then
4202 ac_cpp_err=$ac_c_preproc_warn_flag
4203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4204 else
4205 ac_cpp_err=
4206 fi
d7040cdb 4207else
7357c5b6 4208 ac_cpp_err=yes
d7040cdb 4209fi
7357c5b6
AM
4210if test -z "$ac_cpp_err"; then
4211 # Broken: success on invalid input.
4212continue
dabbade6 4213else
7357c5b6
AM
4214 echo "$as_me: failed program was:" >&5
4215sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4216
7357c5b6
AM
4217 # Passes both tests.
4218ac_preproc_ok=:
4219break
4220fi
4221rm -f conftest.err conftest.$ac_ext
d7040cdb 4222
7357c5b6
AM
4223done
4224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4225rm -f conftest.err conftest.$ac_ext
4226if $ac_preproc_ok; then
4227 :
dabbade6 4228else
7357c5b6
AM
4229 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4230echo "$as_me: error: in \`$ac_pwd':" >&2;}
4231{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4232See \`config.log' for more details." >&5
4233echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4234See \`config.log' for more details." >&2;}
4235 { (exit 1); exit 1; }; }; }
4236fi
d7040cdb 4237
7357c5b6
AM
4238ac_ext=c
4239ac_cpp='$CPP $CPPFLAGS'
4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4243
4244
7357c5b6
AM
4245echo "$as_me:$LINENO: checking for egrep" >&5
4246echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4247if test "${ac_cv_prog_egrep+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4251 then ac_cv_prog_egrep='grep -E'
4252 else ac_cv_prog_egrep='egrep'
4253 fi
4254fi
4255echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4256echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4257 EGREP=$ac_cv_prog_egrep
d7040cdb
SE
4258
4259
7357c5b6
AM
4260echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4261echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4262if test "${ac_cv_header_stdc+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265 cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h. */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h. */
4271#include <stdlib.h>
4272#include <stdarg.h>
4273#include <string.h>
4274#include <float.h>
d7040cdb 4275
7357c5b6
AM
4276int
4277main ()
4278{
d7040cdb 4279
7357c5b6
AM
4280 ;
4281 return 0;
4282}
4283_ACEOF
4284rm -f conftest.$ac_objext
4285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -z "$ac_c_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_header_stdc=yes
4307else
4308 echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4310
7357c5b6
AM
4311ac_cv_header_stdc=no
4312fi
4313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4314
7357c5b6
AM
4315if test $ac_cv_header_stdc = yes; then
4316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4317 cat >conftest.$ac_ext <<_ACEOF
4318/* confdefs.h. */
4319_ACEOF
4320cat confdefs.h >>conftest.$ac_ext
4321cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h. */
4323#include <string.h>
d7040cdb 4324
7357c5b6
AM
4325_ACEOF
4326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4327 $EGREP "memchr" >/dev/null 2>&1; then
4328 :
4329else
4330 ac_cv_header_stdc=no
4331fi
4332rm -f conftest*
d7040cdb 4333
7357c5b6 4334fi
d7040cdb 4335
7357c5b6
AM
4336if test $ac_cv_header_stdc = yes; then
4337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4338 cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h. */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h. */
4344#include <stdlib.h>
d7040cdb 4345
7357c5b6
AM
4346_ACEOF
4347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4348 $EGREP "free" >/dev/null 2>&1; then
4349 :
4350else
4351 ac_cv_header_stdc=no
4352fi
4353rm -f conftest*
d7040cdb 4354
7357c5b6 4355fi
d7040cdb 4356
7357c5b6
AM
4357if test $ac_cv_header_stdc = yes; then
4358 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4359 if test "$cross_compiling" = yes; then
4360 :
4361else
4362 cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h. */
4368#include <ctype.h>
4369#if ((' ' & 0x0FF) == 0x020)
4370# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372#else
4373# define ISLOWER(c) \
4374 (('a' <= (c) && (c) <= 'i') \
4375 || ('j' <= (c) && (c) <= 'r') \
4376 || ('s' <= (c) && (c) <= 'z'))
4377# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4378#endif
d7040cdb 4379
7357c5b6
AM
4380#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4381int
4382main ()
4383{
4384 int i;
4385 for (i = 0; i < 256; i++)
4386 if (XOR (islower (i), ISLOWER (i))
4387 || toupper (i) != TOUPPER (i))
4388 exit(2);
4389 exit (0);
4390}
4391_ACEOF
4392rm -f conftest$ac_exeext
4393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4394 (eval $ac_link) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 :
4404else
4405 echo "$as_me: program exited with status $ac_status" >&5
4406echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4408
7357c5b6
AM
4409( exit $ac_status )
4410ac_cv_header_stdc=no
4411fi
4412rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4413fi
4414fi
4415fi
4416echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4417echo "${ECHO_T}$ac_cv_header_stdc" >&6
4418if test $ac_cv_header_stdc = yes; then
d7040cdb 4419
7357c5b6
AM
4420cat >>confdefs.h <<\_ACEOF
4421#define STDC_HEADERS 1
4422_ACEOF
d7040cdb 4423
7357c5b6 4424fi
d7040cdb 4425
7357c5b6 4426# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4427
4428
4429
d7040cdb 4430
d7040cdb
SE
4431
4432
d7040cdb
SE
4433
4434
dabbade6 4435
7357c5b6
AM
4436for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4437 inttypes.h stdint.h unistd.h
4438do
4439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4440echo "$as_me:$LINENO: checking for $ac_header" >&5
4441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 4444else
7357c5b6
AM
4445 cat >conftest.$ac_ext <<_ACEOF
4446/* confdefs.h. */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h. */
4451$ac_includes_default
d7040cdb 4452
7357c5b6
AM
4453#include <$ac_header>
4454_ACEOF
4455rm -f conftest.$ac_objext
4456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>conftest.er1
4458 ac_status=$?
4459 grep -v '^ *+' conftest.er1 >conftest.err
4460 rm -f conftest.er1
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try='test -z "$ac_c_werror_flag"
4465 || test ! -s conftest.err'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try='test -s conftest.$ac_objext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 eval "$as_ac_Header=yes"
4478else
4479 echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4481
7357c5b6
AM
4482eval "$as_ac_Header=no"
4483fi
4484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4485fi
4486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4488if test `eval echo '${'$as_ac_Header'}'` = yes; then
4489 cat >>confdefs.h <<_ACEOF
4490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4491_ACEOF
d7040cdb 4492
7357c5b6 4493fi
d7040cdb 4494
7357c5b6 4495done
d7040cdb
SE
4496
4497
4498
7357c5b6
AM
4499 if test "${ac_cv_header_minix_config_h+set}" = set; then
4500 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4501echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4502if test "${ac_cv_header_minix_config_h+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504fi
4505echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4506echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
dabbade6 4507else
7357c5b6
AM
4508 # Is the header compilable?
4509echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4510echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4511cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
4517$ac_includes_default
4518#include <minix/config.h>
4519_ACEOF
4520rm -f conftest.$ac_objext
4521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522 (eval $ac_compile) 2>conftest.er1
4523 ac_status=$?
4524 grep -v '^ *+' conftest.er1 >conftest.err
4525 rm -f conftest.er1
4526 cat conftest.err >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } &&
4529 { ac_try='test -z "$ac_c_werror_flag"
4530 || test ! -s conftest.err'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; } &&
4536 { ac_try='test -s conftest.$ac_objext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 ac_header_compiler=yes
4543else
4544 echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4546
7357c5b6
AM
4547ac_header_compiler=no
4548fi
4549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4550echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4551echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4552
7357c5b6
AM
4553# Is the header present?
4554echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4555echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4556cat >conftest.$ac_ext <<_ACEOF
4557/* confdefs.h. */
4558_ACEOF
4559cat confdefs.h >>conftest.$ac_ext
4560cat >>conftest.$ac_ext <<_ACEOF
4561/* end confdefs.h. */
4562#include <minix/config.h>
4563_ACEOF
4564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } >/dev/null; then
4572 if test -s conftest.err; then
4573 ac_cpp_err=$ac_c_preproc_warn_flag
4574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4575 else
4576 ac_cpp_err=
4577 fi
4578else
4579 ac_cpp_err=yes
4580fi
4581if test -z "$ac_cpp_err"; then
4582 ac_header_preproc=yes
4583else
4584 echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4586
7357c5b6
AM
4587 ac_header_preproc=no
4588fi
4589rm -f conftest.err conftest.$ac_ext
4590echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4591echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4592
7357c5b6
AM
4593# So? What about this header?
4594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4595 yes:no: )
4596 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4597echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4599echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4600 ac_header_preproc=yes
4601 ;;
4602 no:yes:* )
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4604echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4606echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4608echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4609 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4610echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4611 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4612echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4613 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4614echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4615 (
4616 cat <<\_ASBOX
4617## ------------------------------------------ ##
4618## Report this to the AC_PACKAGE_NAME lists. ##
4619## ------------------------------------------ ##
4620_ASBOX
4621 ) |
4622 sed "s/^/$as_me: WARNING: /" >&2
4623 ;;
4624esac
4625echo "$as_me:$LINENO: checking for minix/config.h" >&5
4626echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4627if test "${ac_cv_header_minix_config_h+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629else
4630 ac_cv_header_minix_config_h=$ac_header_preproc
4631fi
4632echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4633echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4634
7357c5b6
AM
4635fi
4636if test $ac_cv_header_minix_config_h = yes; then
4637 MINIX=yes
4638else
4639 MINIX=
4640fi
d7040cdb
SE
4641
4642
7357c5b6 4643 if test "$MINIX" = yes; then
d7040cdb 4644
7357c5b6
AM
4645cat >>confdefs.h <<\_ACEOF
4646#define _POSIX_SOURCE 1
4647_ACEOF
dabbade6 4648
252b5132 4649
7357c5b6
AM
4650cat >>confdefs.h <<\_ACEOF
4651#define _POSIX_1_SOURCE 2
4652_ACEOF
d7040cdb
SE
4653
4654
7357c5b6
AM
4655cat >>confdefs.h <<\_ACEOF
4656#define _MINIX 1
4657_ACEOF
d7040cdb 4658
7357c5b6 4659 fi
d7040cdb
SE
4660
4661
4662
7357c5b6
AM
4663 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4664echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4665if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
979273e3 4666 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4667else
7357c5b6
AM
4668 cat >conftest.$ac_ext <<_ACEOF
4669/* confdefs.h. */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h. */
ac48eca1 4674
7357c5b6
AM
4675# define __EXTENSIONS__ 1
4676 $ac_includes_default
4677int
4678main ()
4679{
87e6d782 4680
7357c5b6
AM
4681 ;
4682 return 0;
4683}
4684_ACEOF
4685rm -f conftest.$ac_objext
4686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4687 (eval $ac_compile) 2>conftest.er1
4688 ac_status=$?
4689 grep -v '^ *+' conftest.er1 >conftest.err
4690 rm -f conftest.er1
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } &&
4694 { ac_try='test -z "$ac_c_werror_flag"
4695 || test ! -s conftest.err'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; } &&
4701 { ac_try='test -s conftest.$ac_objext'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 ac_cv_safe_to_define___extensions__=yes
4708else
4709 echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4711
7357c5b6
AM
4712ac_cv_safe_to_define___extensions__=no
4713fi
4714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4715fi
4716echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4717echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4718 test $ac_cv_safe_to_define___extensions__ = yes &&
4719 cat >>confdefs.h <<\_ACEOF
4720#define __EXTENSIONS__ 1
4721_ACEOF
ac48eca1 4722
7357c5b6
AM
4723 cat >>confdefs.h <<\_ACEOF
4724#define _ALL_SOURCE 1
4725_ACEOF
d7040cdb 4726
7357c5b6
AM
4727 cat >>confdefs.h <<\_ACEOF
4728#define _GNU_SOURCE 1
4729_ACEOF
d7040cdb 4730
7357c5b6
AM
4731 cat >>confdefs.h <<\_ACEOF
4732#define _POSIX_PTHREAD_SEMANTICS 1
4733_ACEOF
ac48eca1 4734
7357c5b6
AM
4735 cat >>confdefs.h <<\_ACEOF
4736#define _TANDEM_SOURCE 1
4737_ACEOF
ac48eca1 4738
ac48eca1 4739
87e6d782 4740
7357c5b6
AM
4741if test -n "$ac_tool_prefix"; then
4742 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4743set dummy ${ac_tool_prefix}ar; ac_word=$2
4744echo "$as_me:$LINENO: checking for $ac_word" >&5
4745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746if test "${ac_cv_prog_AR+set}" = set; then
dabbade6
L
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
7357c5b6
AM
4749 if test -n "$AR"; then
4750 ac_cv_prog_AR="$AR" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_prog_AR="${ac_tool_prefix}ar"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763done
4764done
ac48eca1 4765
7357c5b6
AM
4766fi
4767fi
4768AR=$ac_cv_prog_AR
4769if test -n "$AR"; then
4770 echo "$as_me:$LINENO: result: $AR" >&5
4771echo "${ECHO_T}$AR" >&6
dabbade6 4772else
7357c5b6
AM
4773 echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
dabbade6 4775fi
6be7c12c 4776
7357c5b6
AM
4777fi
4778if test -z "$ac_cv_prog_AR"; then
4779 ac_ct_AR=$AR
4780 # Extract the first word of "ar", so it can be a program name with args.
4781set dummy ar; ac_word=$2
4782echo "$as_me:$LINENO: checking for $ac_word" >&5
4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787 if test -n "$ac_ct_AR"; then
4788 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_ac_ct_AR="ar"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801done
4802done
4803
4804fi
4805fi
4806ac_ct_AR=$ac_cv_prog_ac_ct_AR
4807if test -n "$ac_ct_AR"; then
4808 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4809echo "${ECHO_T}$ac_ct_AR" >&6
4810else
4811 echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813fi
4814
4815 AR=$ac_ct_AR
4816else
4817 AR="$ac_cv_prog_AR"
4818fi
4819
4820if test -n "$ac_tool_prefix"; then
4821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4822set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4823echo "$as_me:$LINENO: checking for $ac_word" >&5
4824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825if test "${ac_cv_prog_RANLIB+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828 if test -n "$RANLIB"; then
4829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4841 fi
4842done
4843done
4844
4845fi
4846fi
4847RANLIB=$ac_cv_prog_RANLIB
4848if test -n "$RANLIB"; then
4849 echo "$as_me:$LINENO: result: $RANLIB" >&5
4850echo "${ECHO_T}$RANLIB" >&6
4851else
4852 echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6
4854fi
4855
4856fi
4857if test -z "$ac_cv_prog_RANLIB"; then
4858 ac_ct_RANLIB=$RANLIB
4859 # Extract the first word of "ranlib", so it can be a program name with args.
4860set dummy ranlib; ac_word=$2
4861echo "$as_me:$LINENO: checking for $ac_word" >&5
4862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4863if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866 if test -n "$ac_ct_RANLIB"; then
4867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4868else
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_prog_ac_ct_RANLIB="ranlib"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880done
4881done
4882
4883 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4884fi
4885fi
4886ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4887if test -n "$ac_ct_RANLIB"; then
4888 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4889echo "${ECHO_T}$ac_ct_RANLIB" >&6
4890else
4891 echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
4893fi
4894
4895 RANLIB=$ac_ct_RANLIB
4896else
4897 RANLIB="$ac_cv_prog_RANLIB"
4898fi
4899
4900
4901# Check whether --enable-shared or --disable-shared was given.
4902if test "${enable_shared+set}" = set; then
4903 enableval="$enable_shared"
4904 p=${PACKAGE-default}
4905 case $enableval in
4906 yes) enable_shared=yes ;;
4907 no) enable_shared=no ;;
4908 *)
4909 enable_shared=no
4910 # Look at the argument we got. We use all the common list separators.
4911 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4912 for pkg in $enableval; do
4913 IFS="$lt_save_ifs"
4914 if test "X$pkg" = "X$p"; then
4915 enable_shared=yes
4916 fi
4917 done
4918 IFS="$lt_save_ifs"
4919 ;;
4920 esac
4921else
4922 enable_shared=no
4923fi;
4924
4925
4926
4927
4928
4929
4930
4931
4932
1927a18f
L
4933case `pwd` in
4934 *\ * | *\ *)
4935 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4936echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4937esac
7357c5b6
AM
4938
4939
7357c5b6 4940
1927a18f
L
4941macro_version='2.2.6'
4942macro_revision='1.3012'
7357c5b6
AM
4943
4944
4945
4946
4947
4948
7357c5b6
AM
4949
4950
4951
4952
4953
4954
4955
1927a18f 4956ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
4957
4958echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4959echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4960if test "${lt_cv_path_SED+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962else
4963 # Loop through the user's path and test for sed and gsed.
4964# Then use that list of sed's as ones to test for truncation.
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for lt_ac_prog in sed gsed; do
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4973 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4974 fi
4975 done
4976 done
4977done
4978IFS=$as_save_IFS
4979lt_ac_max=0
4980lt_ac_count=0
4981# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4982# along with /bin/sed that truncates output.
4983for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4984 test ! -f $lt_ac_sed && continue
4985 cat /dev/null > conftest.in
4986 lt_ac_count=0
4987 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4988 # Check for GNU sed and select it if it is found.
4989 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4990 lt_cv_path_SED=$lt_ac_sed
4991 break
4992 fi
4993 while true; do
4994 cat conftest.in conftest.in >conftest.tmp
4995 mv conftest.tmp conftest.in
4996 cp conftest.in conftest.nl
4997 echo >>conftest.nl
4998 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4999 cmp -s conftest.out conftest.nl || break
5000 # 10000 chars as input seems more than enough
5001 test $lt_ac_count -gt 10 && break
5002 lt_ac_count=`expr $lt_ac_count + 1`
5003 if test $lt_ac_count -gt $lt_ac_max; then
5004 lt_ac_max=$lt_ac_count
5005 lt_cv_path_SED=$lt_ac_sed
5006 fi
5007 done
5008done
5009
5010fi
5011
5012SED=$lt_cv_path_SED
5013
5014echo "$as_me:$LINENO: result: $SED" >&5
5015echo "${ECHO_T}$SED" >&6
5016
5017test -z "$SED" && SED=sed
5018Xsed="$SED -e 1s/^X//"
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030echo "$as_me:$LINENO: checking for fgrep" >&5
5031echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5032if test "${ac_cv_prog_fgrep+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5036 then ac_cv_prog_fgrep='grep -F'
5037 else ac_cv_prog_fgrep='fgrep'
5038 fi
5039fi
5040echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5041echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5042 FGREP=$ac_cv_prog_fgrep
5043
5044
5045test -z "$GREP" && GREP=grep
d7040cdb 5046
d7040cdb 5047
d7040cdb 5048
ac48eca1
AO
5049
5050
5051
ac48eca1 5052
ac48eca1 5053
ac48eca1 5054
ac48eca1 5055
ac48eca1 5056
ac48eca1 5057
ac48eca1 5058
ac48eca1 5059
ac48eca1 5060
ac48eca1 5061
dabbade6
L
5062
5063
5064
5065# Check whether --with-gnu-ld or --without-gnu-ld was given.
5066if test "${with_gnu_ld+set}" = set; then
5067 withval="$with_gnu_ld"
5068 test "$withval" = no || with_gnu_ld=yes
5069else
5070 with_gnu_ld=no
5071fi;
5072ac_prog=ld
5073if test "$GCC" = yes; then
5074 # Check if gcc -print-prog-name=ld gives a path.
5075 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5076echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5077 case $host in
5078 *-*-mingw*)
5079 # gcc leaves a trailing carriage return which upsets mingw
5080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5081 *)
5082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5083 esac
5084 case $ac_prog in
5085 # Accept absolute paths.
5086 [\\/]* | ?:[\\/]*)
5087 re_direlt='/[^/][^/]*/\.\./'
5088 # Canonicalize the pathname of ld
5089 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5090 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5091 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5092 done
5093 test -z "$LD" && LD="$ac_prog"
5094 ;;
5095 "")
5096 # If it fails, then pretend we aren't using GCC.
5097 ac_prog=ld
5098 ;;
5099 *)
5100 # If it is relative, then search for the first ld in PATH.
5101 with_gnu_ld=unknown
5102 ;;
5103 esac
5104elif test "$with_gnu_ld" = yes; then
5105 echo "$as_me:$LINENO: checking for GNU ld" >&5
5106echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5107else
5108 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5109echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5110fi
5111if test "${lt_cv_path_LD+set}" = set; then
979273e3 5112 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5113else
dabbade6
L
5114 if test -z "$LD"; then
5115 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5116 for ac_dir in $PATH; do
5117 IFS="$lt_save_ifs"
5118 test -z "$ac_dir" && ac_dir=.
5119 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5120 lt_cv_path_LD="$ac_dir/$ac_prog"
5121 # Check to see if the program is GNU ld. I'd rather use --version,
5122 # but apparently some variants of GNU ld only accept -v.
5123 # Break only if it was the GNU/non-GNU ld that we prefer.
5124 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5125 *GNU* | *'with BFD'*)
5126 test "$with_gnu_ld" != no && break
5127 ;;
5128 *)
5129 test "$with_gnu_ld" != yes && break
5130 ;;
5131 esac
5132 fi
5133 done
5134 IFS="$lt_save_ifs"
ac48eca1 5135else
dabbade6 5136 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ac48eca1
AO
5137fi
5138fi
dabbade6
L
5139
5140LD="$lt_cv_path_LD"
5141if test -n "$LD"; then
5142 echo "$as_me:$LINENO: result: $LD" >&5
5143echo "${ECHO_T}$LD" >&6
ac48eca1 5144else
979273e3
NN
5145 echo "$as_me:$LINENO: result: no" >&5
5146echo "${ECHO_T}no" >&6
ac48eca1 5147fi
dabbade6
L
5148test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5149echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5150 { (exit 1); exit 1; }; }
5151echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5152echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5153if test "${lt_cv_prog_gnu_ld+set}" = set; then
979273e3 5154 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5155else
dabbade6
L
5156 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5157case `$LD -v 2>&1 </dev/null` in
5158*GNU* | *'with BFD'*)
5159 lt_cv_prog_gnu_ld=yes
5160 ;;
5161*)
5162 lt_cv_prog_gnu_ld=no
5163 ;;
5164esac
ac48eca1 5165fi
dabbade6
L
5166echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5167echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5168with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5169
5170
5171
5172
5173
5174
5175
5176
5177
dabbade6
L
5178echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5179echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5180if test "${lt_cv_path_NM+set}" = set; then
979273e3 5181 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5182else
dabbade6
L
5183 if test -n "$NM"; then
5184 # Let the user override the test.
5185 lt_cv_path_NM="$NM"
ac48eca1 5186else
dabbade6
L
5187 lt_nm_to_check="${ac_tool_prefix}nm"
5188 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5189 lt_nm_to_check="$lt_nm_to_check nm"
979273e3 5190 fi
dabbade6
L
5191 for lt_tmp_nm in $lt_nm_to_check; do
5192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5193 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5194 IFS="$lt_save_ifs"
5195 test -z "$ac_dir" && ac_dir=.
5196 tmp_nm="$ac_dir/$lt_tmp_nm"
5197 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5198 # Check to see if the nm accepts a BSD-compat flag.
5199 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5200 # nm: unknown option "B" ignored
5201 # Tru64's nm complains that /dev/null is an invalid object file
5202 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5203 */dev/null* | *'Invalid file or object type'*)
5204 lt_cv_path_NM="$tmp_nm -B"
5205 break
5206 ;;
5207 *)
5208 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5209 */dev/null*)
5210 lt_cv_path_NM="$tmp_nm -p"
5211 break
5212 ;;
5213 *)
5214 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5215 continue # so that we can try to find one that supports BSD flags
5216 ;;
5217 esac
5218 ;;
5219 esac
5220 fi
5221 done
5222 IFS="$lt_save_ifs"
5223 done
5224 : ${lt_cv_path_NM=no}
ac48eca1
AO
5225fi
5226fi
dabbade6
L
5227echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5228echo "${ECHO_T}$lt_cv_path_NM" >&6
5229if test "$lt_cv_path_NM" != "no"; then
5230 NM="$lt_cv_path_NM"
ac48eca1 5231else
dabbade6
L
5232 # Didn't find any BSD compatible name lister, look for dumpbin.
5233 if test -n "$ac_tool_prefix"; then
5234 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5235 do
5236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5237set dummy $ac_tool_prefix$ac_prog; ac_word=$2
979273e3
NN
5238echo "$as_me:$LINENO: checking for $ac_word" >&5
5239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 5240if test "${ac_cv_prog_DUMPBIN+set}" = set; then
979273e3 5241 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5242else
dabbade6
L
5243 if test -n "$DUMPBIN"; then
5244 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ac48eca1 5245else
979273e3
NN
5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 5253 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
979273e3
NN
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257done
5258done
5259
ac48eca1
AO
5260fi
5261fi
dabbade6
L
5262DUMPBIN=$ac_cv_prog_DUMPBIN
5263if test -n "$DUMPBIN"; then
5264 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5265echo "${ECHO_T}$DUMPBIN" >&6
ac48eca1 5266else
979273e3
NN
5267 echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
ac48eca1
AO
5269fi
5270
dabbade6
L
5271 test -n "$DUMPBIN" && break
5272 done
ac48eca1 5273fi
dabbade6
L
5274if test -z "$DUMPBIN"; then
5275 ac_ct_DUMPBIN=$DUMPBIN
5276 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5277do
5278 # Extract the first word of "$ac_prog", so it can be a program name with args.
5279set dummy $ac_prog; ac_word=$2
d7040cdb
SE
5280echo "$as_me:$LINENO: checking for $ac_word" >&5
5281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 5282if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
d7040cdb 5283 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5284else
dabbade6
L
5285 if test -n "$ac_ct_DUMPBIN"; then
5286 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7040cdb
SE
5287else
5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH
5290do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 5295 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
d7040cdb
SE
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
252b5132 5298 fi
d7040cdb
SE
5299done
5300done
252b5132 5301
d7040cdb
SE
5302fi
5303fi
dabbade6
L
5304ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5305if test -n "$ac_ct_DUMPBIN"; then
5306 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5307echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
d7040cdb
SE
5308else
5309 echo "$as_me:$LINENO: result: no" >&5
5310echo "${ECHO_T}no" >&6
5311fi
4867be41 5312
dabbade6 5313 test -n "$ac_ct_DUMPBIN" && break
d7040cdb 5314done
dabbade6 5315test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
32fba81d 5316
dabbade6 5317 DUMPBIN=$ac_ct_DUMPBIN
d7040cdb 5318fi
979273e3
NN
5319
5320
dabbade6
L
5321 if test "$DUMPBIN" != ":"; then
5322 NM="$DUMPBIN"
5323 fi
5324fi
5325test -z "$NM" && NM=nm
ac48eca1 5326
252b5132 5327
252b5132 5328
979273e3 5329
ac48eca1 5330
d7040cdb 5331
dabbade6
L
5332echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5333echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5334if test "${lt_cv_nm_interface+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337 lt_cv_nm_interface="BSD nm"
5338 echo "int some_variable = 0;" > conftest.$ac_ext
1927a18f 5339 (eval echo "\"\$as_me:5339: $ac_compile\"" >&5)
dabbade6
L
5340 (eval "$ac_compile" 2>conftest.err)
5341 cat conftest.err >&5
1927a18f 5342 (eval echo "\"\$as_me:5342: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
dabbade6
L
5343 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5344 cat conftest.err >&5
1927a18f 5345 (eval echo "\"\$as_me:5345: output\"" >&5)
dabbade6
L
5346 cat conftest.out >&5
5347 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5348 lt_cv_nm_interface="MS dumpbin"
5349 fi
5350 rm -f conftest*
5351fi
5352echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5353echo "${ECHO_T}$lt_cv_nm_interface" >&6
d7040cdb 5354
dabbade6
L
5355echo "$as_me:$LINENO: checking whether ln -s works" >&5
5356echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5357LN_S=$as_ln_s
5358if test "$LN_S" = "ln -s"; then
5359 echo "$as_me:$LINENO: result: yes" >&5
5360echo "${ECHO_T}yes" >&6
5361else
5362 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5363echo "${ECHO_T}no, using $LN_S" >&6
5364fi
5365
5366# find the maximum length of command line arguments
5367echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5368echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5369if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371else
5372 i=0
5373 teststring="ABCD"
5374
5375 case $build_os in
5376 msdosdjgpp*)
5377 # On DJGPP, this test can blow up pretty badly due to problems in libc
5378 # (any single argument exceeding 2000 bytes causes a buffer overrun
5379 # during glob expansion). Even if it were fixed, the result of this
5380 # check would be larger than it should be.
5381 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5382 ;;
5383
5384 gnu*)
5385 # Under GNU Hurd, this test is not required because there is
5386 # no limit to the length of command line arguments.
5387 # Libtool will interpret -1 as no limit whatsoever
5388 lt_cv_sys_max_cmd_len=-1;
5389 ;;
5390
1927a18f 5391 cygwin* | mingw* | cegcc*)
dabbade6
L
5392 # On Win9x/ME, this test blows up -- it succeeds, but takes
5393 # about 5 minutes as the teststring grows exponentially.
5394 # Worse, since 9x/ME are not pre-emptively multitasking,
5395 # you end up with a "frozen" computer, even though with patience
5396 # the test eventually succeeds (with a max line length of 256k).
5397 # Instead, let's just punt: use the minimum linelength reported by
5398 # all of the supported platforms: 8192 (on NT/2K/XP).
5399 lt_cv_sys_max_cmd_len=8192;
5400 ;;
5401
5402 amigaos*)
5403 # On AmigaOS with pdksh, this test takes hours, literally.
5404 # So we just punt and use a minimum line length of 8192.
5405 lt_cv_sys_max_cmd_len=8192;
5406 ;;
5407
5408 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5409 # This has been around since 386BSD, at least. Likely further.
5410 if test -x /sbin/sysctl; then
5411 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5412 elif test -x /usr/sbin/sysctl; then
5413 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5414 else
5415 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5416 fi
5417 # And add a safety zone
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5420 ;;
5421
5422 interix*)
5423 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5424 lt_cv_sys_max_cmd_len=196608
5425 ;;
5426
5427 osf*)
5428 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5429 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5430 # nice to cause kernel panics so lets avoid the loop below.
5431 # First set a reasonable default.
5432 lt_cv_sys_max_cmd_len=16384
5433 #
5434 if test -x /sbin/sysconfig; then
5435 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5436 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5437 esac
5438 fi
5439 ;;
5440 sco3.2v5*)
5441 lt_cv_sys_max_cmd_len=102400
5442 ;;
5443 sysv5* | sco5v6* | sysv4.2uw2*)
5444 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5445 if test -n "$kargmax"; then
5446 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5447 else
5448 lt_cv_sys_max_cmd_len=32768
5449 fi
d7040cdb
SE
5450 ;;
5451 *)
1927a18f
L
5452 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5453 if test -n "$lt_cv_sys_max_cmd_len"; then
dabbade6
L
5454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5456 else
5457 # Make teststring a little bigger before we do anything with it.
5458 # a 1K string should be a reasonable start.
5459 for i in 1 2 3 4 5 6 7 8 ; do
5460 teststring=$teststring$teststring
5461 done
5462 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5463 # If test is not a shell built-in, we'll probably end up computing a
5464 # maximum length that is only half of the actual maximum length, but
5465 # we can't tell.
5466 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5467 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5468 test $i != 17 # 1/2 MB should be enough
5469 do
5470 i=`expr $i + 1`
5471 teststring=$teststring$teststring
5472 done
5473 # Only check the string length outside the loop.
5474 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5475 teststring=
5476 # Add a significant safety factor because C++ compilers can tack on
5477 # massive amounts of additional arguments before passing them to the
5478 # linker. It appears as though 1/2 is a usable value.
5479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5480 fi
d7040cdb
SE
5481 ;;
5482 esac
252b5132 5483
dabbade6 5484fi
252b5132 5485
dabbade6
L
5486if test -n $lt_cv_sys_max_cmd_len ; then
5487 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5488echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5489else
5490 echo "$as_me:$LINENO: result: none" >&5
5491echo "${ECHO_T}none" >&6
5492fi
5493max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5494
252b5132 5495
979273e3 5496
979273e3 5497
252b5132 5498
252b5132 5499
dabbade6
L
5500: ${CP="cp -f"}
5501: ${MV="mv -f"}
5502: ${RM="rm -f"}
252b5132 5503
dabbade6
L
5504echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5505echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5506# Try some XSI features
5507xsi_shell=no
5508( _lt_dummy="a/b/c"
5509 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
1927a18f
L
5510 = c,a/b,, \
5511 && eval 'test $(( 1 + 1 )) -eq 2 \
5512 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
dabbade6
L
5513 && xsi_shell=yes
5514echo "$as_me:$LINENO: result: $xsi_shell" >&5
5515echo "${ECHO_T}$xsi_shell" >&6
252b5132 5516
252b5132 5517
dabbade6
L
5518echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5519echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5520lt_shell_append=no
5521( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5522 >/dev/null 2>&1 \
5523 && lt_shell_append=yes
5524echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5525echo "${ECHO_T}$lt_shell_append" >&6
252b5132 5526
ac48eca1 5527
dabbade6
L
5528if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5529 lt_unset=unset
5530else
5531 lt_unset=false
5532fi
979273e3
NN
5533
5534
5535
5536
ac48eca1 5537
dabbade6
L
5538# test EBCDIC or ASCII
5539case `echo X|tr X '\101'` in
5540 A) # ASCII based system
5541 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5542 lt_SP2NL='tr \040 \012'
5543 lt_NL2SP='tr \015\012 \040\040'
5544 ;;
5545 *) # EBCDIC based system
5546 lt_SP2NL='tr \100 \n'
5547 lt_NL2SP='tr \r\n \100\100'
5548 ;;
5549esac
9e9b66a9 5550
1ad12f97 5551
1ad12f97 5552
9e9b66a9 5553
1ad12f97 5554
a541e3ce 5555
9e9b66a9 5556
a2d91340
AC
5557
5558
dabbade6
L
5559echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5560echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5561if test "${lt_cv_ld_reload_flag+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564 lt_cv_ld_reload_flag='-r'
5565fi
5566echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5567echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5568reload_flag=$lt_cv_ld_reload_flag
5569case $reload_flag in
5570"" | " "*) ;;
5571*) reload_flag=" $reload_flag" ;;
5572esac
5573reload_cmds='$LD$reload_flag -o $output$reload_objs'
5574case $host_os in
5575 darwin*)
5576 if test "$GCC" = yes; then
5577 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5578 else
5579 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5580 fi
5581 ;;
5582esac
9e9b66a9
AM
5583
5584
5585
252b5132 5586
252b5132 5587
252b5132 5588
252b5132 5589
252b5132 5590
d7040cdb 5591
1927a18f
L
5592if test -n "$ac_tool_prefix"; then
5593 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5594set dummy ${ac_tool_prefix}objdump; ac_word=$2
5595echo "$as_me:$LINENO: checking for $ac_word" >&5
5596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5597if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600 if test -n "$OBJDUMP"; then
5601 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5602else
5603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604for as_dir in $PATH
5605do
5606 IFS=$as_save_IFS
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5610 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 break 2
5613 fi
5614done
5615done
5616
5617fi
5618fi
5619OBJDUMP=$ac_cv_prog_OBJDUMP
5620if test -n "$OBJDUMP"; then
5621 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5622echo "${ECHO_T}$OBJDUMP" >&6
5623else
5624 echo "$as_me:$LINENO: result: no" >&5
5625echo "${ECHO_T}no" >&6
5626fi
5627
5628fi
5629if test -z "$ac_cv_prog_OBJDUMP"; then
5630 ac_ct_OBJDUMP=$OBJDUMP
5631 # Extract the first word of "objdump", so it can be a program name with args.
5632set dummy objdump; ac_word=$2
5633echo "$as_me:$LINENO: checking for $ac_word" >&5
5634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5635if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638 if test -n "$ac_ct_OBJDUMP"; then
5639 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652done
5653done
5654
5655 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5656fi
5657fi
5658ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5659if test -n "$ac_ct_OBJDUMP"; then
5660 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5661echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5662else
5663 echo "$as_me:$LINENO: result: no" >&5
5664echo "${ECHO_T}no" >&6
5665fi
5666
5667 OBJDUMP=$ac_ct_OBJDUMP
5668else
5669 OBJDUMP="$ac_cv_prog_OBJDUMP"
5670fi
5671
5672test -z "$OBJDUMP" && OBJDUMP=objdump
5673
5674
5675
5676
5677
5678
5679
5680
d7040cdb 5681
dabbade6
L
5682echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5683echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5684if test "${lt_cv_deplibs_check_method+set}" = set; then
d7040cdb 5685 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5686else
dabbade6
L
5687 lt_cv_file_magic_cmd='$MAGIC_CMD'
5688lt_cv_file_magic_test_file=
5689lt_cv_deplibs_check_method='unknown'
5690# Need to set the preceding variable on all platforms that support
5691# interlibrary dependencies.
5692# 'none' -- dependencies not supported.
5693# `unknown' -- same as none, but documents that we really don't know.
5694# 'pass_all' -- all dependencies passed with no checks.
5695# 'test_compile' -- check by making test program.
5696# 'file_magic [[regex]]' -- check by looking for files in library path
5697# which responds to the $file_magic_cmd with a given extended regex.
5698# If you have `file' or equivalent on your system and you're not sure
5699# whether `pass_all' will *always* work, you probably want this one.
8ae85421 5700
dabbade6 5701case $host_os in
50e7d84b 5702aix[4-9]*)
dabbade6
L
5703 lt_cv_deplibs_check_method=pass_all
5704 ;;
979273e3 5705
dabbade6
L
5706beos*)
5707 lt_cv_deplibs_check_method=pass_all
5708 ;;
24443139 5709
dabbade6
L
5710bsdi[45]*)
5711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5712 lt_cv_file_magic_cmd='/usr/bin/file -L'
5713 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 5714 ;;
dabbade6
L
5715
5716cygwin*)
5717 # func_win32_libid is a shell function defined in ltmain.sh
5718 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5719 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5720 ;;
dabbade6
L
5721
5722mingw* | pw32*)
5723 # Base MSYS/MinGW do not provide the 'file' command needed by
5724 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5725 # unless we find 'file', for example because we are cross-compiling.
5726 if ( file / ) >/dev/null 2>&1; then
5727 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5728 lt_cv_file_magic_cmd='func_win32_libid'
5729 else
5730 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5731 lt_cv_file_magic_cmd='$OBJDUMP -f'
d7040cdb
SE
5732 fi
5733 ;;
dabbade6 5734
1927a18f
L
5735cegcc)
5736 # use the weaker test based on 'objdump'. See mingw*.
5737 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5738 lt_cv_file_magic_cmd='$OBJDUMP -f'
5739 ;;
5740
dabbade6
L
5741darwin* | rhapsody*)
5742 lt_cv_deplibs_check_method=pass_all
d7040cdb 5743 ;;
dabbade6
L
5744
5745freebsd* | dragonfly*)
5746 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5747 case $host_cpu in
5748 i*86 )
5749 # Not sure whether the presence of OpenBSD here was a mistake.
5750 # Let's accept both of them until this is cleared up.
5751 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5752 lt_cv_file_magic_cmd=/usr/bin/file
5753 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5754 ;;
5755 esac
5756 else
5757 lt_cv_deplibs_check_method=pass_all
5758 fi
d7040cdb 5759 ;;
dabbade6
L
5760
5761gnu*)
5762 lt_cv_deplibs_check_method=pass_all
d7040cdb 5763 ;;
dabbade6
L
5764
5765hpux10.20* | hpux11*)
5766 lt_cv_file_magic_cmd=/usr/bin/file
5767 case $host_cpu in
5768 ia64*)
5769 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5770 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5771 ;;
5772 hppa*64*)
5773 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]'
5774 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5775 ;;
5776 *)
5777 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5778 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5779 ;;
5780 esac
d7040cdb 5781 ;;
24443139 5782
dabbade6
L
5783interix[3-9]*)
5784 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5786 ;;
24443139 5787
dabbade6
L
5788irix5* | irix6* | nonstopux*)
5789 case $LD in
5790 *-32|*"-32 ") libmagic=32-bit;;
5791 *-n32|*"-n32 ") libmagic=N32;;
5792 *-64|*"-64 ") libmagic=64-bit;;
5793 *) libmagic=never-match;;
5794 esac
5795 lt_cv_deplibs_check_method=pass_all
5796 ;;
8ae85421 5797
dabbade6
L
5798# This must be Linux ELF.
5799linux* | k*bsd*-gnu)
5800 lt_cv_deplibs_check_method=pass_all
5801 ;;
24443139 5802
dabbade6
L
5803netbsd*)
5804 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5806 else
5807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5808 fi
d7040cdb 5809 ;;
24443139 5810
dabbade6
L
5811newos6*)
5812 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5813 lt_cv_file_magic_cmd=/usr/bin/file
5814 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5815 ;;
d7040cdb 5816
dabbade6
L
5817*nto* | *qnx*)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
d7040cdb 5820
dabbade6
L
5821openbsd*)
5822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
d7040cdb 5824 else
dabbade6 5825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d7040cdb 5826 fi
dabbade6 5827 ;;
24443139 5828
dabbade6
L
5829osf3* | osf4* | osf5*)
5830 lt_cv_deplibs_check_method=pass_all
5831 ;;
24443139 5832
dabbade6
L
5833rdos*)
5834 lt_cv_deplibs_check_method=pass_all
5835 ;;
81172ff2 5836
dabbade6
L
5837solaris*)
5838 lt_cv_deplibs_check_method=pass_all
5839 ;;
81172ff2 5840
dabbade6
L
5841sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5842 lt_cv_deplibs_check_method=pass_all
5843 ;;
252b5132 5844
dabbade6
L
5845sysv4 | sysv4.3*)
5846 case $host_vendor in
5847 motorola)
5848 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]'
5849 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5850 ;;
5851 ncr)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
5854 sequent)
5855 lt_cv_file_magic_cmd='/bin/file'
5856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5857 ;;
5858 sni)
5859 lt_cv_file_magic_cmd='/bin/file'
5860 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5861 lt_cv_file_magic_test_file=/lib/libc.so
5862 ;;
5863 siemens)
5864 lt_cv_deplibs_check_method=pass_all
5865 ;;
5866 pc)
5867 lt_cv_deplibs_check_method=pass_all
5868 ;;
5869 esac
5870 ;;
252b5132 5871
dabbade6
L
5872tpf*)
5873 lt_cv_deplibs_check_method=pass_all
5874 ;;
5875esac
979273e3 5876
dabbade6
L
5877fi
5878echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5879echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5880file_magic_cmd=$lt_cv_file_magic_cmd
5881deplibs_check_method=$lt_cv_deplibs_check_method
5882test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5883
979273e3 5884
979273e3 5885
dabbade6
L
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895if test -n "$ac_tool_prefix"; then
5896 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5897set dummy ${ac_tool_prefix}ar; ac_word=$2
5898echo "$as_me:$LINENO: checking for $ac_word" >&5
5899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900if test "${ac_cv_prog_AR+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903 if test -n "$AR"; then
5904 ac_cv_prog_AR="$AR" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913 ac_cv_prog_AR="${ac_tool_prefix}ar"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
252b5132 5916 fi
979273e3 5917done
dabbade6 5918done
979273e3 5919
dabbade6
L
5920fi
5921fi
5922AR=$ac_cv_prog_AR
5923if test -n "$AR"; then
5924 echo "$as_me:$LINENO: result: $AR" >&5
5925echo "${ECHO_T}$AR" >&6
5926else
5927 echo "$as_me:$LINENO: result: no" >&5
5928echo "${ECHO_T}no" >&6
979273e3 5929fi
d7040cdb 5930
252b5132 5931fi
dabbade6
L
5932if test -z "$ac_cv_prog_AR"; then
5933 ac_ct_AR=$AR
5934 # Extract the first word of "ar", so it can be a program name with args.
5935set dummy ar; ac_word=$2
5936echo "$as_me:$LINENO: checking for $ac_word" >&5
5937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 5940else
dabbade6
L
5941 if test -n "$ac_ct_AR"; then
5942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_ac_ct_AR="ar"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955done
5956done
5957
5958 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5959fi
5960fi
5961ac_ct_AR=$ac_cv_prog_ac_ct_AR
5962if test -n "$ac_ct_AR"; then
5963 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5964echo "${ECHO_T}$ac_ct_AR" >&6
5965else
5966 echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6
252b5132
RH
5968fi
5969
dabbade6
L
5970 AR=$ac_ct_AR
5971else
5972 AR="$ac_cv_prog_AR"
5973fi
252b5132 5974
dabbade6
L
5975test -z "$AR" && AR=ar
5976test -z "$AR_FLAGS" && AR_FLAGS=cru
252b5132 5977
979273e3 5978
979273e3 5979
979273e3 5980
252b5132 5981
979273e3 5982
979273e3 5983
252b5132 5984
979273e3 5985
979273e3 5986
979273e3 5987
dabbade6
L
5988if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5990set dummy ${ac_tool_prefix}strip; ac_word=$2
5991echo "$as_me:$LINENO: checking for $ac_word" >&5
5992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5993if test "${ac_cv_prog_STRIP+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995else
5996 if test -n "$STRIP"; then
5997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010done
6011done
979273e3 6012
dabbade6
L
6013fi
6014fi
6015STRIP=$ac_cv_prog_STRIP
6016if test -n "$STRIP"; then
6017 echo "$as_me:$LINENO: result: $STRIP" >&5
6018echo "${ECHO_T}$STRIP" >&6
6019else
6020 echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6
6022fi
979273e3 6023
dabbade6
L
6024fi
6025if test -z "$ac_cv_prog_STRIP"; then
6026 ac_ct_STRIP=$STRIP
6027 # Extract the first word of "strip", so it can be a program name with args.
6028set dummy strip; ac_word=$2
6029echo "$as_me:$LINENO: checking for $ac_word" >&5
6030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6031if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033else
6034 if test -n "$ac_ct_STRIP"; then
6035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6036else
6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044 ac_cv_prog_ac_ct_STRIP="strip"
6045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048done
6049done
979273e3 6050
dabbade6
L
6051 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6052fi
6053fi
6054ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055if test -n "$ac_ct_STRIP"; then
6056 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6057echo "${ECHO_T}$ac_ct_STRIP" >&6
6058else
6059 echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
6061fi
979273e3 6062
dabbade6
L
6063 STRIP=$ac_ct_STRIP
6064else
6065 STRIP="$ac_cv_prog_STRIP"
6066fi
979273e3 6067
dabbade6 6068test -z "$STRIP" && STRIP=:
979273e3 6069
d7040cdb 6070
979273e3 6071
d7040cdb 6072
979273e3 6073
979273e3 6074
dabbade6
L
6075if test -n "$ac_tool_prefix"; then
6076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6077set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6078echo "$as_me:$LINENO: checking for $ac_word" >&5
6079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6080if test "${ac_cv_prog_RANLIB+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 6082else
dabbade6
L
6083 if test -n "$RANLIB"; then
6084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6085else
6086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087for as_dir in $PATH
6088do
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6096 fi
6097done
6098done
979273e3 6099
979273e3 6100fi
979273e3 6101fi
dabbade6
L
6102RANLIB=$ac_cv_prog_RANLIB
6103if test -n "$RANLIB"; then
6104 echo "$as_me:$LINENO: result: $RANLIB" >&5
6105echo "${ECHO_T}$RANLIB" >&6
6106else
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
6109fi
d7040cdb 6110
d7040cdb 6111fi
dabbade6
L
6112if test -z "$ac_cv_prog_RANLIB"; then
6113 ac_ct_RANLIB=$RANLIB
6114 # Extract the first word of "ranlib", so it can be a program name with args.
6115set dummy ranlib; ac_word=$2
6116echo "$as_me:$LINENO: checking for $ac_word" >&5
6117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6118if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
979273e3
NN
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120else
dabbade6
L
6121 if test -n "$ac_ct_RANLIB"; then
6122 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6123else
6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125for as_dir in $PATH
d7040cdb 6126do
dabbade6
L
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_ac_ct_RANLIB="ranlib"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
979273e3 6134 fi
dabbade6
L
6135done
6136done
6137
6138 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
979273e3 6139fi
dabbade6
L
6140fi
6141ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6142if test -n "$ac_ct_RANLIB"; then
6143 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6144echo "${ECHO_T}$ac_ct_RANLIB" >&6
979273e3 6145else
dabbade6
L
6146 echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6
d7040cdb 6148fi
d7040cdb 6149
dabbade6 6150 RANLIB=$ac_ct_RANLIB
d7040cdb 6151else
dabbade6 6152 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6153fi
979273e3 6154
dabbade6 6155test -z "$RANLIB" && RANLIB=:
979273e3 6156
252b5132 6157
252b5132 6158
d7040cdb 6159
d7040cdb 6160
d7040cdb 6161
dabbade6 6162# Determine commands to create old-style static archives.
1927a18f 6163old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
dabbade6
L
6164old_postinstall_cmds='chmod 644 $oldlib'
6165old_postuninstall_cmds=
d7040cdb 6166
dabbade6
L
6167if test -n "$RANLIB"; then
6168 case $host_os in
6169 openbsd*)
6170 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6171 ;;
6172 *)
6173 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6174 ;;
6175 esac
6176 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb
SE
6177fi
6178
d7040cdb
SE
6179
6180
d7040cdb 6181
d7040cdb 6182
252b5132 6183
d7040cdb 6184
d7040cdb 6185
d7040cdb
SE
6186
6187
6188
d7040cdb 6189
d7040cdb 6190
d7040cdb 6191
252b5132 6192
d7040cdb
SE
6193
6194
6195
d7040cdb 6196
d7040cdb
SE
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
dabbade6
L
6212# If no C compiler was specified, use CC.
6213LTCC=${LTCC-"$CC"}
d7040cdb 6214
dabbade6
L
6215# If no C compiler flags were specified, use CFLAGS.
6216LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6217
dabbade6
L
6218# Allow CC to be a program name with arguments.
6219compiler=$CC
d7040cdb
SE
6220
6221
dabbade6
L
6222# Check for command to grab the raw symbol name followed by C symbol from nm.
6223echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6224echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6225if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
d7040cdb 6228
dabbade6
L
6229# These are sane defaults that work on at least a few old systems.
6230# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6231
dabbade6
L
6232# Character class describing NM global symbol codes.
6233symcode='[BCDEGRST]'
d7040cdb 6234
dabbade6
L
6235# Regexp to match symbols that can be accessed directly from C.
6236sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 6237
dabbade6
L
6238# Define system-specific variables.
6239case $host_os in
6240aix*)
6241 symcode='[BCDT]'
6242 ;;
1927a18f 6243cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
6244 symcode='[ABCDGISTW]'
6245 ;;
6246hpux*)
6247 if test "$host_cpu" = ia64; then
6248 symcode='[ABCDEGRST]'
6249 fi
6250 ;;
6251irix* | nonstopux*)
6252 symcode='[BCDEGRST]'
6253 ;;
6254osf*)
6255 symcode='[BCDEGQRST]'
6256 ;;
6257solaris*)
6258 symcode='[BDRT]'
6259 ;;
6260sco3.2v5*)
6261 symcode='[DT]'
6262 ;;
6263sysv4.2uw2*)
6264 symcode='[DT]'
6265 ;;
6266sysv5* | sco5v6* | unixware* | OpenUNIX*)
6267 symcode='[ABDT]'
6268 ;;
6269sysv4)
6270 symcode='[DFNSTU]'
6271 ;;
6272esac
6273
6274# If we're using GNU nm, then use its standard symbol codes.
6275case `$NM -V 2>&1` in
6276*GNU* | *'with BFD'*)
6277 symcode='[ABCDGIRSTW]' ;;
6278esac
d7040cdb 6279
dabbade6
L
6280# Transform an extracted symbol line into a proper C declaration.
6281# Some systems (esp. on ia64) link data and code symbols differently,
6282# so use this general approach.
6283lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6284
dabbade6 6285# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6286lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
1927a18f 6287lt_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 6288
7357c5b6
AM
6289# Handle CRLF in mingw tool chain
6290opt_cr=
6291case $build_os in
6292mingw*)
6293 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6294 ;;
6295esac
d7040cdb 6296
7357c5b6
AM
6297# Try without a prefix underscore, then with it.
6298for ac_symprfx in "" "_"; do
d7040cdb 6299
7357c5b6
AM
6300 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6301 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6302
7357c5b6
AM
6303 # Write the raw and C identifiers.
6304 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6305 # Fake it for dumpbin and say T for any non-static function
6306 # and D for any global variable.
6307 # Also find C++ and __fastcall symbols from MSVC++,
6308 # which start with @ or ?.
6309 lt_cv_sys_global_symbol_pipe="$AWK '"\
6310" {last_section=section; section=\$ 3};"\
6311" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6312" \$ 0!~/External *\|/{next};"\
6313" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6314" {if(hide[section]) next};"\
6315" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6316" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6317" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6318" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6319" ' prfx=^$ac_symprfx"
6320 else
6321 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6322 fi
d7040cdb 6323
7357c5b6
AM
6324 # Check to see that the pipe works correctly.
6325 pipe_works=no
d7040cdb 6326
7357c5b6
AM
6327 rm -f conftest*
6328 cat > conftest.$ac_ext <<_LT_EOF
6329#ifdef __cplusplus
6330extern "C" {
6331#endif
6332char nm_test_var;
6333void nm_test_func(void);
6334void nm_test_func(void){}
6335#ifdef __cplusplus
dabbade6 6336}
7357c5b6
AM
6337#endif
6338int main(){nm_test_var='a';nm_test_func();return(0);}
6339_LT_EOF
6340
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>&5
dabbade6
L
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6345 (exit $ac_status); }; then
6346 # Now try to grab the symbols.
6347 nlist=conftest.nm
6348 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6349 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
dabbade6
L
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6352 (exit $ac_status); } && test -s "$nlist"; then
6353 # Try sorting and uniquifying the output.
6354 if sort "$nlist" | uniq > "$nlist"T; then
6355 mv -f "$nlist"T "$nlist"
6356 else
6357 rm -f "$nlist"T
6358 fi
d7040cdb 6359
7357c5b6
AM
6360 # Make sure that we snagged all the symbols we need.
6361 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6362 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6363 cat <<_LT_EOF > conftest.$ac_ext
6364#ifdef __cplusplus
6365extern "C" {
6366#endif
d7040cdb 6367
7357c5b6
AM
6368_LT_EOF
6369 # Now generate the symbol file.
6370 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6371
7357c5b6 6372 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6373
7357c5b6
AM
6374/* The mapping between symbol names and symbols. */
6375const struct {
6376 const char *name;
6377 void *address;
6378}
6379lt__PROGRAM__LTX_preloaded_symbols[] =
6380{
6381 { "@PROGRAM@", (void *) 0 },
6382_LT_EOF
6383 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6384 cat <<\_LT_EOF >> conftest.$ac_ext
6385 {0, (void *) 0}
6386};
d7040cdb 6387
7357c5b6
AM
6388/* This works around a problem in FreeBSD linker */
6389#ifdef FREEBSD_WORKAROUND
6390static const void *lt_preloaded_setup() {
6391 return lt__PROGRAM__LTX_preloaded_symbols;
6392}
dabbade6 6393#endif
d7040cdb 6394
7357c5b6 6395#ifdef __cplusplus
dabbade6 6396}
7357c5b6
AM
6397#endif
6398_LT_EOF
6399 # Now try linking the two files.
6400 mv conftest.$ac_objext conftstm.$ac_objext
6401 lt_save_LIBS="$LIBS"
6402 lt_save_CFLAGS="$CFLAGS"
6403 LIBS="conftstm.$ac_objext"
6404 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
dabbade6
L
6406 (eval $ac_link) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6409 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6410 pipe_works=yes
6411 fi
6412 LIBS="$lt_save_LIBS"
6413 CFLAGS="$lt_save_CFLAGS"
6414 else
6415 echo "cannot find nm_test_func in $nlist" >&5
6416 fi
6417 else
6418 echo "cannot find nm_test_var in $nlist" >&5
6419 fi
6420 else
6421 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6422 fi
6423 else
6424 echo "$progname: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6426 fi
1927a18f 6427 rm -rf conftest* conftst*
7357c5b6
AM
6428
6429 # Do not use the global_symbol_pipe unless it works.
6430 if test "$pipe_works" = yes; then
6431 break
6432 else
6433 lt_cv_sys_global_symbol_pipe=
6434 fi
6435done
d7040cdb 6436
dabbade6 6437fi
7357c5b6
AM
6438
6439if test -z "$lt_cv_sys_global_symbol_pipe"; then
6440 lt_cv_sys_global_symbol_to_cdecl=
dabbade6 6441fi
7357c5b6
AM
6442if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6443 echo "$as_me:$LINENO: result: failed" >&5
6444echo "${ECHO_T}failed" >&6
6445else
6446 echo "$as_me:$LINENO: result: ok" >&5
6447echo "${ECHO_T}ok" >&6
dabbade6 6448fi
d7040cdb 6449
d7040cdb 6450
d7040cdb 6451
d7040cdb 6452
d7040cdb 6453
d7040cdb 6454
d7040cdb 6455
d7040cdb 6456
d7040cdb 6457
d7040cdb 6458
d7040cdb 6459
d7040cdb 6460
7357c5b6
AM
6461
6462
6463
1927a18f
L
6464
6465
6466
6467
6468
7357c5b6
AM
6469
6470
6471# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6472if test "${enable_libtool_lock+set}" = set; then
6473 enableval="$enable_libtool_lock"
6474
6475fi;
6476test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6477
6478# Some flags need to be propagated to the compiler or linker for good
6479# libtool support.
6480case $host in
6481ia64-*-hpux*)
6482 # Find out which ABI we are using.
6483 echo 'int i;' > conftest.$ac_ext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; then
6489 case `/usr/bin/file conftest.$ac_objext` in
6490 *ELF-32*)
6491 HPUX_IA64_MODE="32"
6492 ;;
6493 *ELF-64*)
6494 HPUX_IA64_MODE="64"
6495 ;;
6496 esac
6497 fi
6498 rm -rf conftest*
6499 ;;
6500*-*-irix6*)
6501 # Find out which ABI we are using.
1927a18f 6502 echo '#line 6502 "configure"' > conftest.$ac_ext
7357c5b6
AM
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; then
6508 if test "$lt_cv_prog_gnu_ld" = yes; then
6509 case `/usr/bin/file conftest.$ac_objext` in
6510 *32-bit*)
6511 LD="${LD-ld} -melf32bsmip"
6512 ;;
6513 *N32*)
6514 LD="${LD-ld} -melf32bmipn32"
6515 ;;
6516 *64-bit*)
6517 LD="${LD-ld} -melf64bmip"
6518 ;;
6519 esac
6520 else
6521 case `/usr/bin/file conftest.$ac_objext` in
6522 *32-bit*)
6523 LD="${LD-ld} -32"
6524 ;;
6525 *N32*)
6526 LD="${LD-ld} -n32"
6527 ;;
6528 *64-bit*)
6529 LD="${LD-ld} -64"
6530 ;;
6531 esac
6532 fi
6533 fi
6534 rm -rf conftest*
6535 ;;
6536
6537x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6538s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6539 # Find out which ABI we are using.
6540 echo 'int i;' > conftest.$ac_ext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; then
6546 case `/usr/bin/file conftest.o` in
6547 *32-bit*)
6548 case $host in
6549 x86_64-*kfreebsd*-gnu)
6550 LD="${LD-ld} -m elf_i386_fbsd"
6551 ;;
6552 x86_64-*linux*)
6553 LD="${LD-ld} -m elf_i386"
6554 ;;
6555 ppc64-*linux*|powerpc64-*linux*)
6556 LD="${LD-ld} -m elf32ppclinux"
6557 ;;
6558 s390x-*linux*)
6559 LD="${LD-ld} -m elf_s390"
6560 ;;
6561 sparc64-*linux*)
6562 LD="${LD-ld} -m elf32_sparc"
6563 ;;
6564 esac
6565 ;;
6566 *64-bit*)
6567 case $host in
6568 x86_64-*kfreebsd*-gnu)
6569 LD="${LD-ld} -m elf_x86_64_fbsd"
6570 ;;
6571 x86_64-*linux*)
6572 LD="${LD-ld} -m elf_x86_64"
6573 ;;
6574 ppc*-*linux*|powerpc*-*linux*)
6575 LD="${LD-ld} -m elf64ppc"
6576 ;;
6577 s390*-*linux*|s390*-*tpf*)
6578 LD="${LD-ld} -m elf64_s390"
6579 ;;
6580 sparc*-*linux*)
6581 LD="${LD-ld} -m elf64_sparc"
6582 ;;
6583 esac
6584 ;;
6585 esac
6586 fi
6587 rm -rf conftest*
6588 ;;
6589
6590*-*-sco3.2v5*)
6591 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6592 SAVE_CFLAGS="$CFLAGS"
6593 CFLAGS="$CFLAGS -belf"
6594 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6595echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6596if test "${lt_cv_cc_needs_belf+set}" = set; then
dabbade6
L
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598else
7357c5b6
AM
6599 ac_ext=c
6600ac_cpp='$CPP $CPPFLAGS'
6601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603ac_compiler_gnu=$ac_cv_c_compiler_gnu
6604
6605 cat >conftest.$ac_ext <<_ACEOF
dabbade6
L
6606/* confdefs.h. */
6607_ACEOF
6608cat confdefs.h >>conftest.$ac_ext
6609cat >>conftest.$ac_ext <<_ACEOF
6610/* end confdefs.h. */
d7040cdb 6611
7357c5b6
AM
6612int
6613main ()
6614{
6615
6616 ;
6617 return 0;
6618}
dabbade6 6619_ACEOF
7357c5b6
AM
6620rm -f conftest.$ac_objext conftest$ac_exeext
6621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6622 (eval $ac_link) 2>conftest.er1
dabbade6
L
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -z "$ac_c_werror_flag"
6630 || test ! -s conftest.err'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; } &&
7357c5b6 6636 { ac_try='test -s conftest$ac_exeext'
dabbade6
L
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
7357c5b6 6642 lt_cv_cc_needs_belf=yes
dabbade6
L
6643else
6644 echo "$as_me: failed program was:" >&5
6645sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6646
7357c5b6 6647lt_cv_cc_needs_belf=no
dabbade6 6648fi
7357c5b6
AM
6649rm -f conftest.err conftest.$ac_objext \
6650 conftest$ac_exeext conftest.$ac_ext
6651 ac_ext=c
6652ac_cpp='$CPP $CPPFLAGS'
6653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6655ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6656
dabbade6 6657fi
7357c5b6
AM
6658echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6659echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6660 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6661 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6662 CFLAGS="$SAVE_CFLAGS"
6663 fi
6664 ;;
6665sparc*-*solaris*)
6666 # Find out which ABI we are using.
6667 echo 'int i;' > conftest.$ac_ext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; then
6673 case `/usr/bin/file conftest.o` in
6674 *64-bit*)
6675 case $lt_cv_prog_gnu_ld in
6676 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1927a18f
L
6677 *)
6678 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6679 LD="${LD-ld} -64"
6680 fi
6681 ;;
7357c5b6
AM
6682 esac
6683 ;;
6684 esac
6685 fi
6686 rm -rf conftest*
6687 ;;
6688esac
d7040cdb 6689
7357c5b6 6690need_locks="$enable_libtool_lock"
d7040cdb 6691
d7040cdb 6692
1927a18f
L
6693 case $host_os in
6694 rhapsody* | darwin*)
6695 if test -n "$ac_tool_prefix"; then
6696 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6697set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6698echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6700if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 if test -n "$DSYMUTIL"; then
6704 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718done
6719
6720fi
6721fi
6722DSYMUTIL=$ac_cv_prog_DSYMUTIL
6723if test -n "$DSYMUTIL"; then
6724 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6725echo "${ECHO_T}$DSYMUTIL" >&6
6726else
6727 echo "$as_me:$LINENO: result: no" >&5
6728echo "${ECHO_T}no" >&6
6729fi
6730
6731fi
6732if test -z "$ac_cv_prog_DSYMUTIL"; then
6733 ac_ct_DSYMUTIL=$DSYMUTIL
6734 # Extract the first word of "dsymutil", so it can be a program name with args.
6735set dummy dsymutil; ac_word=$2
6736echo "$as_me:$LINENO: checking for $ac_word" >&5
6737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6738if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 if test -n "$ac_ct_DSYMUTIL"; then
6742 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6743else
6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6754 fi
6755done
6756done
6757
6758 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6759fi
6760fi
6761ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6762if test -n "$ac_ct_DSYMUTIL"; then
6763 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6764echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6765else
6766 echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6
6768fi
6769
6770 DSYMUTIL=$ac_ct_DSYMUTIL
6771else
6772 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6773fi
6774
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6777set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6778echo "$as_me:$LINENO: checking for $ac_word" >&5
6779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6780if test "${ac_cv_prog_NMEDIT+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783 if test -n "$NMEDIT"; then
6784 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798done
6799
6800fi
6801fi
6802NMEDIT=$ac_cv_prog_NMEDIT
6803if test -n "$NMEDIT"; then
6804 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6805echo "${ECHO_T}$NMEDIT" >&6
6806else
6807 echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6
6809fi
6810
6811fi
6812if test -z "$ac_cv_prog_NMEDIT"; then
6813 ac_ct_NMEDIT=$NMEDIT
6814 # Extract the first word of "nmedit", so it can be a program name with args.
6815set dummy nmedit; ac_word=$2
6816echo "$as_me:$LINENO: checking for $ac_word" >&5
6817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6818if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821 if test -n "$ac_ct_NMEDIT"; then
6822 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835done
6836done
6837
6838 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6839fi
6840fi
6841ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6842if test -n "$ac_ct_NMEDIT"; then
6843 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6844echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6845else
6846 echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6
6848fi
6849
6850 NMEDIT=$ac_ct_NMEDIT
6851else
6852 NMEDIT="$ac_cv_prog_NMEDIT"
6853fi
6854
6855 if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6857set dummy ${ac_tool_prefix}lipo; ac_word=$2
6858echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6860if test "${ac_cv_prog_LIPO+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863 if test -n "$LIPO"; then
6864 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6865else
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877done
6878done
6879
6880fi
6881fi
6882LIPO=$ac_cv_prog_LIPO
6883if test -n "$LIPO"; then
6884 echo "$as_me:$LINENO: result: $LIPO" >&5
6885echo "${ECHO_T}$LIPO" >&6
6886else
6887 echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6
6889fi
6890
6891fi
6892if test -z "$ac_cv_prog_LIPO"; then
6893 ac_ct_LIPO=$LIPO
6894 # Extract the first word of "lipo", so it can be a program name with args.
6895set dummy lipo; ac_word=$2
6896echo "$as_me:$LINENO: checking for $ac_word" >&5
6897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6898if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900else
6901 if test -n "$ac_ct_LIPO"; then
6902 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911 ac_cv_prog_ac_ct_LIPO="lipo"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6914 fi
6915done
6916done
6917
6918 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6919fi
6920fi
6921ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6922if test -n "$ac_ct_LIPO"; then
6923 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6924echo "${ECHO_T}$ac_ct_LIPO" >&6
6925else
6926 echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6
6928fi
6929
6930 LIPO=$ac_ct_LIPO
6931else
6932 LIPO="$ac_cv_prog_LIPO"
6933fi
6934
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6937set dummy ${ac_tool_prefix}otool; ac_word=$2
6938echo "$as_me:$LINENO: checking for $ac_word" >&5
6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6940if test "${ac_cv_prog_OTOOL+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943 if test -n "$OTOOL"; then
6944 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957done
6958done
6959
6960fi
6961fi
6962OTOOL=$ac_cv_prog_OTOOL
6963if test -n "$OTOOL"; then
6964 echo "$as_me:$LINENO: result: $OTOOL" >&5
6965echo "${ECHO_T}$OTOOL" >&6
6966else
6967 echo "$as_me:$LINENO: result: no" >&5
6968echo "${ECHO_T}no" >&6
6969fi
6970
6971fi
6972if test -z "$ac_cv_prog_OTOOL"; then
6973 ac_ct_OTOOL=$OTOOL
6974 # Extract the first word of "otool", so it can be a program name with args.
6975set dummy otool; ac_word=$2
6976echo "$as_me:$LINENO: checking for $ac_word" >&5
6977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6978if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980else
6981 if test -n "$ac_ct_OTOOL"; then
6982 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991 ac_cv_prog_ac_ct_OTOOL="otool"
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6994 fi
6995done
6996done
6997
6998 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6999fi
7000fi
7001ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7002if test -n "$ac_ct_OTOOL"; then
7003 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7004echo "${ECHO_T}$ac_ct_OTOOL" >&6
7005else
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
7008fi
7009
7010 OTOOL=$ac_ct_OTOOL
7011else
7012 OTOOL="$ac_cv_prog_OTOOL"
7013fi
7014
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7017set dummy ${ac_tool_prefix}otool64; ac_word=$2
7018echo "$as_me:$LINENO: checking for $ac_word" >&5
7019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7020if test "${ac_cv_prog_OTOOL64+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 if test -n "$OTOOL64"; then
7024 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7025else
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037done
7038done
7039
7040fi
7041fi
7042OTOOL64=$ac_cv_prog_OTOOL64
7043if test -n "$OTOOL64"; then
7044 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7045echo "${ECHO_T}$OTOOL64" >&6
7046else
7047 echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
7049fi
7050
7051fi
7052if test -z "$ac_cv_prog_OTOOL64"; then
7053 ac_ct_OTOOL64=$OTOOL64
7054 # Extract the first word of "otool64", so it can be a program name with args.
7055set dummy otool64; ac_word=$2
7056echo "$as_me:$LINENO: checking for $ac_word" >&5
7057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7058if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060else
7061 if test -n "$ac_ct_OTOOL64"; then
7062 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7063else
7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 ac_cv_prog_ac_ct_OTOOL64="otool64"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075done
7076done
7077
7078 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7079fi
7080fi
7081ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7082if test -n "$ac_ct_OTOOL64"; then
7083 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7084echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7085else
7086 echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6
7088fi
7089
7090 OTOOL64=$ac_ct_OTOOL64
7091else
7092 OTOOL64="$ac_cv_prog_OTOOL64"
7093fi
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7122echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7123if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126 lt_cv_apple_cc_single_mod=no
7127 if test -z "${LT_MULTI_MODULE}"; then
7128 # By default we will add the -single_module flag. You can override
7129 # by either setting the environment variable LT_MULTI_MODULE
7130 # non-empty at configure time, or by adding -multi_module to the
7131 # link flags.
7132 rm -rf libconftest.dylib*
7133 echo "int foo(void){return 1;}" > conftest.c
7134 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7135-dynamiclib -Wl,-single_module conftest.c" >&5
7136 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7137 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7138 _lt_result=$?
7139 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7140 lt_cv_apple_cc_single_mod=yes
7141 else
7142 cat conftest.err >&5
7143 fi
7144 rm -rf libconftest.dylib*
7145 rm -f conftest.*
7146 fi
7147fi
7148echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7149echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7150 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7151echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7152if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155 lt_cv_ld_exported_symbols_list=no
7156 save_LDFLAGS=$LDFLAGS
7157 echo "_main" > conftest.sym
7158 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7159 cat >conftest.$ac_ext <<_ACEOF
7160/* confdefs.h. */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h. */
7165
7166int
7167main ()
7168{
7169
7170 ;
7171 return 0;
7172}
7173_ACEOF
7174rm -f conftest.$ac_objext conftest$ac_exeext
7175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7176 (eval $ac_link) 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try='test -z "$ac_c_werror_flag"
7184 || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try='test -s conftest$ac_exeext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 lt_cv_ld_exported_symbols_list=yes
7197else
7198 echo "$as_me: failed program was:" >&5
7199sed 's/^/| /' conftest.$ac_ext >&5
7200
7201lt_cv_ld_exported_symbols_list=no
7202fi
7203rm -f conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7205 LDFLAGS="$save_LDFLAGS"
7206
7207fi
7208echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7209echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7210 case $host_os in
7211 rhapsody* | darwin1.[012])
7212 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7213 darwin1.*)
7214 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7215 darwin*) # darwin 5.x on
7216 # if running on 10.5 or later, the deployment target defaults
7217 # to the OS version, if on x86, and 10.4, the deployment
7218 # target defaults to 10.4. Don't you love it?
7219 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7220 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7221 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7222 10.[012]*)
7223 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7224 10.*)
7225 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7226 esac
7227 ;;
7228 esac
7229 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7230 _lt_dar_single_mod='$single_module'
7231 fi
7232 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7233 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7234 else
7235 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7236 fi
7237 if test "$DSYMUTIL" != ":"; then
7238 _lt_dsymutil='~$DSYMUTIL $lib || :'
7239 else
7240 _lt_dsymutil=
7241 fi
7242 ;;
7243 esac
7244
7245
dabbade6
L
7246for ac_header in dlfcn.h
7247do
7248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7249echo "$as_me:$LINENO: checking for $ac_header" >&5
7250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7251if eval "test \"\${$as_ac_Header+set}\" = set"; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
7254 cat >conftest.$ac_ext <<_ACEOF
7255/* confdefs.h. */
7256_ACEOF
7257cat confdefs.h >>conftest.$ac_ext
7258cat >>conftest.$ac_ext <<_ACEOF
7259/* end confdefs.h. */
7260$ac_includes_default
d7040cdb 7261
dabbade6
L
7262#include <$ac_header>
7263_ACEOF
7264rm -f conftest.$ac_objext
7265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266 (eval $ac_compile) 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try='test -z "$ac_c_werror_flag"
7274 || test ! -s conftest.err'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; } &&
7280 { ac_try='test -s conftest.$ac_objext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 (eval $ac_try) 2>&5
7283 ac_status=$?
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 eval "$as_ac_Header=yes"
7287else
7288 echo "$as_me: failed program was:" >&5
7289sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7290
dabbade6
L
7291eval "$as_ac_Header=no"
7292fi
7293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7294fi
7295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7297if test `eval echo '${'$as_ac_Header'}'` = yes; then
7298 cat >>confdefs.h <<_ACEOF
7299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7300_ACEOF
d7040cdb 7301
dabbade6 7302fi
d7040cdb 7303
dabbade6 7304done
d7040cdb 7305
d7040cdb 7306
d7040cdb 7307
1927a18f
L
7308# Set options
7309
7310
7311
7312 enable_dlopen=no
7313
7314
7315 enable_win32_dll=no
7316
7317
7318
7319 # Check whether --enable-static or --disable-static was given.
7320if test "${enable_static+set}" = set; then
7321 enableval="$enable_static"
7322 p=${PACKAGE-default}
7323 case $enableval in
7324 yes) enable_static=yes ;;
7325 no) enable_static=no ;;
7326 *)
7327 enable_static=no
7328 # Look at the argument we got. We use all the common list separators.
7329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7330 for pkg in $enableval; do
7331 IFS="$lt_save_ifs"
7332 if test "X$pkg" = "X$p"; then
7333 enable_static=yes
7334 fi
7335 done
7336 IFS="$lt_save_ifs"
7337 ;;
7338 esac
7339else
7340 enable_static=yes
7341fi;
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351# Check whether --with-pic or --without-pic was given.
7352if test "${with_pic+set}" = set; then
7353 withval="$with_pic"
7354 pic_mode="$withval"
7355else
7356 pic_mode=default
7357fi;
7358
7359test -z "$pic_mode" && pic_mode=default
7360
7361
7362
7363
7364
7365
7366
7367 # Check whether --enable-fast-install or --disable-fast-install was given.
7368if test "${enable_fast_install+set}" = set; then
7369 enableval="$enable_fast_install"
7370 p=${PACKAGE-default}
7371 case $enableval in
7372 yes) enable_fast_install=yes ;;
7373 no) enable_fast_install=no ;;
7374 *)
7375 enable_fast_install=no
7376 # Look at the argument we got. We use all the common list separators.
7377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378 for pkg in $enableval; do
7379 IFS="$lt_save_ifs"
7380 if test "X$pkg" = "X$p"; then
7381 enable_fast_install=yes
7382 fi
7383 done
7384 IFS="$lt_save_ifs"
7385 ;;
7386 esac
7387else
7388 enable_fast_install=yes
7389fi;
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
dabbade6
L
7400# This can be used to rebuild libtool when needed
7401LIBTOOL_DEPS="$ltmain"
d7040cdb 7402
dabbade6
L
7403# Always use our own libtool.
7404LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7405
d7040cdb 7406
d7040cdb 7407
d7040cdb
SE
7408
7409
7410
7411
7412
7413
d7040cdb 7414
d7040cdb 7415
d7040cdb 7416
d7040cdb
SE
7417
7418
7419
7420
7421
7422
d7040cdb 7423
d7040cdb 7424
d7040cdb
SE
7425
7426
7427
7428
7429
dabbade6 7430test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7431
7432
d7040cdb 7433
d7040cdb 7434
d7040cdb
SE
7435
7436
7437
7438
7439
7440
dabbade6
L
7441
7442
7443
7444
7445if test -n "${ZSH_VERSION+set}" ; then
7446 setopt NO_GLOB_SUBST
7447fi
7448
7449echo "$as_me:$LINENO: checking for objdir" >&5
7450echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7451if test "${lt_cv_objdir+set}" = set; then
d7040cdb
SE
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
dabbade6
L
7454 rm -f .libs 2>/dev/null
7455mkdir .libs 2>/dev/null
7456if test -d .libs; then
7457 lt_cv_objdir=.libs
7458else
7459 # MS-DOS does not allow filenames that begin with a dot.
7460 lt_cv_objdir=_libs
d7040cdb 7461fi
dabbade6
L
7462rmdir .libs 2>/dev/null
7463fi
7464echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7465echo "${ECHO_T}$lt_cv_objdir" >&6
7466objdir=$lt_cv_objdir
d7040cdb
SE
7467
7468
7469
7470
d7040cdb 7471
dabbade6
L
7472cat >>confdefs.h <<_ACEOF
7473#define LT_OBJDIR "$lt_cv_objdir/"
7474_ACEOF
d7040cdb
SE
7475
7476
7477
7478
7479
d7040cdb 7480
d7040cdb 7481
d7040cdb 7482
d7040cdb 7483
d7040cdb 7484
d7040cdb 7485
d7040cdb 7486
d7040cdb 7487
d7040cdb 7488
d7040cdb 7489
d7040cdb 7490
d7040cdb 7491
dabbade6
L
7492case $host_os in
7493aix3*)
7494 # AIX sometimes has problems with the GCC collect2 program. For some
7495 # reason, if we set the COLLECT_NAMES environment variable, the problems
7496 # vanish in a puff of smoke.
7497 if test "X${COLLECT_NAMES+set}" != Xset; then
7498 COLLECT_NAMES=
7499 export COLLECT_NAMES
7500 fi
7501 ;;
7502esac
d7040cdb 7503
dabbade6
L
7504# Sed substitution that helps us do robust quoting. It backslashifies
7505# metacharacters that are still active within double-quoted strings.
7506sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 7507
dabbade6
L
7508# Same as above, but do not quote variable references.
7509double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 7510
dabbade6
L
7511# Sed substitution to delay expansion of an escaped shell variable in a
7512# double_quote_subst'ed string.
7513delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 7514
dabbade6
L
7515# Sed substitution to delay expansion of an escaped single quote.
7516delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 7517
dabbade6
L
7518# Sed substitution to avoid accidental globbing in evaled expressions
7519no_glob_subst='s/\*/\\\*/g'
d7040cdb 7520
dabbade6
L
7521# Global variables:
7522ofile=libtool
7523can_build_shared=yes
d7040cdb 7524
dabbade6
L
7525# All known linkers require a `.a' archive for static linking (except MSVC,
7526# which needs '.lib').
7527libext=a
d7040cdb 7528
dabbade6 7529with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7530
dabbade6
L
7531old_CC="$CC"
7532old_CFLAGS="$CFLAGS"
d7040cdb 7533
dabbade6
L
7534# Set sane defaults for various variables
7535test -z "$CC" && CC=cc
7536test -z "$LTCC" && LTCC=$CC
7537test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7538test -z "$LD" && LD=ld
7539test -z "$ac_objext" && ac_objext=o
7540
7541for cc_temp in $compiler""; do
7542 case $cc_temp in
7543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7545 \-*) ;;
7546 *) break;;
7547 esac
7548done
7549cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7550
7551
7552# Only perform the check for file, if the check method requires it
7553test -z "$MAGIC_CMD" && MAGIC_CMD=file
7554case $deplibs_check_method in
7555file_magic*)
7556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7557 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7558echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7559if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561else
7562 case $MAGIC_CMD in
7563[\\/*] | ?:[\\/]*)
7564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7565 ;;
7566*)
7567 lt_save_MAGIC_CMD="$MAGIC_CMD"
7568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7570 for ac_dir in $ac_dummy; do
7571 IFS="$lt_save_ifs"
7572 test -z "$ac_dir" && ac_dir=.
7573 if test -f $ac_dir/${ac_tool_prefix}file; then
7574 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7575 if test -n "$file_magic_test_file"; then
7576 case $deplibs_check_method in
7577 "file_magic "*)
7578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7581 $EGREP "$file_magic_regex" > /dev/null; then
7582 :
d7040cdb 7583 else
dabbade6 7584 cat <<_LT_EOF 1>&2
d7040cdb 7585
dabbade6
L
7586*** Warning: the command libtool uses to detect shared libraries,
7587*** $file_magic_cmd, produces output that libtool cannot recognize.
7588*** The result is that libtool may fail to recognize shared libraries
7589*** as such. This will affect the creation of libtool libraries that
7590*** depend on shared libraries, but programs linked with such libtool
7591*** libraries will work regardless of this problem. Nevertheless, you
7592*** may want to report the problem to your system manager and/or to
7593*** bug-libtool@gnu.org
d7040cdb 7594
dabbade6
L
7595_LT_EOF
7596 fi ;;
7597 esac
d7040cdb 7598 fi
dabbade6 7599 break
d7040cdb 7600 fi
dabbade6
L
7601 done
7602 IFS="$lt_save_ifs"
7603 MAGIC_CMD="$lt_save_MAGIC_CMD"
7604 ;;
7605esac
7606fi
d7040cdb 7607
dabbade6
L
7608MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609if test -n "$MAGIC_CMD"; then
7610 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7611echo "${ECHO_T}$MAGIC_CMD" >&6
7612else
7613 echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
7615fi
d7040cdb 7616
d7040cdb 7617
d7040cdb 7618
d7040cdb 7619
d7040cdb 7620
dabbade6
L
7621if test -z "$lt_cv_path_MAGIC_CMD"; then
7622 if test -n "$ac_tool_prefix"; then
7623 echo "$as_me:$LINENO: checking for file" >&5
7624echo $ECHO_N "checking for file... $ECHO_C" >&6
7625if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 case $MAGIC_CMD in
7629[\\/*] | ?:[\\/]*)
7630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7631 ;;
7632*)
7633 lt_save_MAGIC_CMD="$MAGIC_CMD"
7634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7636 for ac_dir in $ac_dummy; do
7637 IFS="$lt_save_ifs"
7638 test -z "$ac_dir" && ac_dir=.
7639 if test -f $ac_dir/file; then
7640 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7641 if test -n "$file_magic_test_file"; then
7642 case $deplibs_check_method in
7643 "file_magic "*)
7644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7647 $EGREP "$file_magic_regex" > /dev/null; then
7648 :
d7040cdb 7649 else
dabbade6 7650 cat <<_LT_EOF 1>&2
d7040cdb 7651
dabbade6
L
7652*** Warning: the command libtool uses to detect shared libraries,
7653*** $file_magic_cmd, produces output that libtool cannot recognize.
7654*** The result is that libtool may fail to recognize shared libraries
7655*** as such. This will affect the creation of libtool libraries that
7656*** depend on shared libraries, but programs linked with such libtool
7657*** libraries will work regardless of this problem. Nevertheless, you
7658*** may want to report the problem to your system manager and/or to
7659*** bug-libtool@gnu.org
d7040cdb 7660
dabbade6
L
7661_LT_EOF
7662 fi ;;
7663 esac
7664 fi
7665 break
7666 fi
7667 done
7668 IFS="$lt_save_ifs"
7669 MAGIC_CMD="$lt_save_MAGIC_CMD"
7670 ;;
7671esac
d7040cdb 7672fi
dabbade6
L
7673
7674MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7675if test -n "$MAGIC_CMD"; then
7676 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7677echo "${ECHO_T}$MAGIC_CMD" >&6
d7040cdb 7678else
dabbade6
L
7679 echo "$as_me:$LINENO: result: no" >&5
7680echo "${ECHO_T}no" >&6
7681fi
7682
d7040cdb 7683
dabbade6
L
7684 else
7685 MAGIC_CMD=:
7686 fi
d7040cdb 7687fi
d7040cdb 7688
dabbade6
L
7689 fi
7690 ;;
7691esac
d7040cdb 7692
dabbade6 7693# Use C for the default configuration in the libtool script
d7040cdb 7694
dabbade6
L
7695lt_save_CC="$CC"
7696ac_ext=c
7697ac_cpp='$CPP $CPPFLAGS'
7698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7701
d7040cdb 7702
dabbade6
L
7703# Source file extension for C test sources.
7704ac_ext=c
d7040cdb 7705
dabbade6
L
7706# Object file extension for compiled C test sources.
7707objext=o
7708objext=$objext
7709
7710# Code to be used in simple compile tests
7711lt_simple_compile_test_code="int some_variable = 0;"
7712
7713# Code to be used in simple link tests
7714lt_simple_link_test_code='int main(){return(0);}'
7715
7716
7717
7718
7719
7720
7721
7722# If no C compiler was specified, use CC.
7723LTCC=${LTCC-"$CC"}
7724
7725# If no C compiler flags were specified, use CFLAGS.
7726LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7727
7728# Allow CC to be a program name with arguments.
7729compiler=$CC
7730
7731# Save the default compiler, since it gets overwritten when the other
7732# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7733compiler_DEFAULT=$CC
7734
7735# save warnings/boilerplate of simple test code
7736ac_outfile=conftest.$ac_objext
7737echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7738eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7739_lt_compiler_boilerplate=`cat conftest.err`
7740$RM conftest*
7741
7742ac_outfile=conftest.$ac_objext
7743echo "$lt_simple_link_test_code" >conftest.$ac_ext
7744eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7745_lt_linker_boilerplate=`cat conftest.err`
1927a18f 7746$RM -r conftest*
dabbade6
L
7747
7748
7749## CAVEAT EMPTOR:
7750## There is no encapsulation within the following macros, do not change
7751## the running order or otherwise move them around unless you know exactly
7752## what you are doing...
7753if test -n "$compiler"; then
7754
7755lt_prog_compiler_no_builtin_flag=
7756
7757if test "$GCC" = yes; then
7758 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7759
7760 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7761echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7762if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765 lt_cv_prog_compiler_rtti_exceptions=no
7766 ac_outfile=conftest.$ac_objext
7767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7768 lt_compiler_flag="-fno-rtti -fno-exceptions"
7769 # Insert the option either (1) after the last *FLAGS variable, or
7770 # (2) before a word containing "conftest.", or (3) at the end.
7771 # Note that $ac_compile itself does not contain backslashes and begins
7772 # with a dollar sign (not a hyphen), so the echo should work correctly.
7773 # The option is referenced via a variable to avoid confusing sed.
7774 lt_compile=`echo "$ac_compile" | $SED \
7775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7777 -e 's:$: $lt_compiler_flag:'`
1927a18f 7778 (eval echo "\"\$as_me:7778: $lt_compile\"" >&5)
dabbade6
L
7779 (eval "$lt_compile" 2>conftest.err)
7780 ac_status=$?
7781 cat conftest.err >&5
1927a18f 7782 echo "$as_me:7782: \$? = $ac_status" >&5
dabbade6
L
7783 if (exit $ac_status) && test -s "$ac_outfile"; then
7784 # The compiler can only warn and ignore the option if not recognized
7785 # So say no if there are warnings other than the usual output.
7786 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7789 lt_cv_prog_compiler_rtti_exceptions=yes
7790 fi
7791 fi
7792 $RM conftest*
7793
7794fi
7795echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7796echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7797
7798if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7799 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7800else
7801 :
7802fi
7803
7804fi
7805
7806
7807
7808
7809
7810
7811 lt_prog_compiler_wl=
7812lt_prog_compiler_pic=
7813lt_prog_compiler_static=
7814
7815echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7816echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7817
7818 if test "$GCC" = yes; then
7819 lt_prog_compiler_wl='-Wl,'
7820 lt_prog_compiler_static='-static'
7821
7822 case $host_os in
7823 aix*)
7824 # All AIX code is PIC.
7825 if test "$host_cpu" = ia64; then
7826 # AIX 5 now supports IA64 processor
7827 lt_prog_compiler_static='-Bstatic'
7828 fi
7829 ;;
d7040cdb
SE
7830
7831 amigaos*)
1927a18f
L
7832 case $host_cpu in
7833 powerpc)
7834 # see comment about AmigaOS4 .so support
7835 lt_prog_compiler_pic='-fPIC'
7836 ;;
7837 m68k)
7838 # FIXME: we need at least 68020 code to build shared libraries, but
7839 # adding the `-m68020' flag to GCC prevents building anything better,
7840 # like `-m68040'.
7841 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7842 ;;
7843 esac
d7040cdb
SE
7844 ;;
7845
dabbade6
L
7846 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7847 # PIC is the default for these OSes.
d7040cdb
SE
7848 ;;
7849
1927a18f 7850 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
7851 # This hack is so that the source file can tell whether it is being
7852 # built for inclusion in a dll (and should export symbols for example).
7853 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7854 # (--disable-auto-import) libraries
7855 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
7856 ;;
7857
7858 darwin* | rhapsody*)
dabbade6
L
7859 # PIC is the default on this platform
7860 # Common symbols not allowed in MH_DYLIB files
7861 lt_prog_compiler_pic='-fno-common'
7862 ;;
7863
7864 hpux*)
1927a18f
L
7865 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7866 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7867 # sets the default TLS model and affects inlining.
dabbade6 7868 case $host_cpu in
1927a18f 7869 hppa*64*)
dabbade6 7870 # +Z the default
d7040cdb 7871 ;;
dabbade6
L
7872 *)
7873 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
7874 ;;
7875 esac
dabbade6 7876 ;;
d7040cdb 7877
dabbade6
L
7878 interix[3-9]*)
7879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7880 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
7881 ;;
7882
dabbade6
L
7883 msdosdjgpp*)
7884 # Just because we use GCC doesn't mean we suddenly get shared libraries
7885 # on systems that don't support them.
7886 lt_prog_compiler_can_build_shared=no
7887 enable_shared=no
d7040cdb
SE
7888 ;;
7889
dabbade6
L
7890 *nto* | *qnx*)
7891 # QNX uses GNU C++, but need to define -shared option too, otherwise
7892 # it will coredump.
7893 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
7894 ;;
7895
dabbade6
L
7896 sysv4*MP*)
7897 if test -d /usr/nec; then
7898 lt_prog_compiler_pic=-Kconform_pic
7899 fi
d7040cdb
SE
7900 ;;
7901
dabbade6
L
7902 *)
7903 lt_prog_compiler_pic='-fPIC'
d7040cdb 7904 ;;
dabbade6
L
7905 esac
7906 else
7907 # PORTME Check for flag to pass linker flags through the system compiler.
7908 case $host_os in
7909 aix*)
7910 lt_prog_compiler_wl='-Wl,'
7911 if test "$host_cpu" = ia64; then
7912 # AIX 5 now supports IA64 processor
7913 lt_prog_compiler_static='-Bstatic'
d7040cdb 7914 else
dabbade6 7915 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 7916 fi
dabbade6 7917 ;;
d7040cdb 7918
1927a18f 7919 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
7920 # This hack is so that the source file can tell whether it is being
7921 # built for inclusion in a dll (and should export symbols for example).
7922 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
7923 ;;
7924
dabbade6
L
7925 hpux9* | hpux10* | hpux11*)
7926 lt_prog_compiler_wl='-Wl,'
7927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7928 # not for PA HP-UX.
7929 case $host_cpu in
7930 hppa*64*|ia64*)
7931 # +Z the default
7932 ;;
7933 *)
7934 lt_prog_compiler_pic='+Z'
7935 ;;
7936 esac
7937 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7938 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
7939 ;;
7940
dabbade6
L
7941 irix5* | irix6* | nonstopux*)
7942 lt_prog_compiler_wl='-Wl,'
7943 # PIC (with -KPIC) is the default.
7944 lt_prog_compiler_static='-non_shared'
7945 ;;
d7040cdb 7946
dabbade6
L
7947 linux* | k*bsd*-gnu)
7948 case $cc_basename in
1927a18f
L
7949 # old Intel for x86_64 which still supported -KPIC.
7950 ecc*)
dabbade6
L
7951 lt_prog_compiler_wl='-Wl,'
7952 lt_prog_compiler_pic='-KPIC'
7953 lt_prog_compiler_static='-static'
7954 ;;
1927a18f
L
7955 # icc used to be incompatible with GCC.
7956 # ICC 10 doesn't accept -KPIC any more.
7957 icc* | ifort*)
7958 lt_prog_compiler_wl='-Wl,'
7959 lt_prog_compiler_pic='-fPIC'
7960 lt_prog_compiler_static='-static'
7961 ;;
7962 # Lahey Fortran 8.1.
7963 lf95*)
7964 lt_prog_compiler_wl='-Wl,'
7965 lt_prog_compiler_pic='--shared'
7966 lt_prog_compiler_static='--static'
7967 ;;
dabbade6
L
7968 pgcc* | pgf77* | pgf90* | pgf95*)
7969 # Portland Group compilers (*not* the Pentium gcc compiler,
7970 # which looks to be a dead project)
7971 lt_prog_compiler_wl='-Wl,'
7972 lt_prog_compiler_pic='-fpic'
7973 lt_prog_compiler_static='-Bstatic'
7974 ;;
7975 ccc*)
7976 lt_prog_compiler_wl='-Wl,'
7977 # All Alpha code is PIC.
7978 lt_prog_compiler_static='-non_shared'
7979 ;;
1927a18f
L
7980 xl*)
7981 # IBM XL C 8.0/Fortran 10.1 on PPC
7982 lt_prog_compiler_wl='-Wl,'
7983 lt_prog_compiler_pic='-qpic'
7984 lt_prog_compiler_static='-qstaticlink'
7985 ;;
dabbade6
L
7986 *)
7987 case `$CC -V 2>&1 | sed 5q` in
7988 *Sun\ C*)
7989 # Sun C 5.9
7990 lt_prog_compiler_pic='-KPIC'
7991 lt_prog_compiler_static='-Bstatic'
7992 lt_prog_compiler_wl='-Wl,'
d7040cdb 7993 ;;
dabbade6
L
7994 *Sun\ F*)
7995 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7996 lt_prog_compiler_pic='-KPIC'
7997 lt_prog_compiler_static='-Bstatic'
7998 lt_prog_compiler_wl=''
d7040cdb
SE
7999 ;;
8000 esac
dabbade6
L
8001 ;;
8002 esac
d7040cdb
SE
8003 ;;
8004
dabbade6
L
8005 newsos6)
8006 lt_prog_compiler_pic='-KPIC'
8007 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8008 ;;
8009
dabbade6
L
8010 *nto* | *qnx*)
8011 # QNX uses GNU C++, but need to define -shared option too, otherwise
8012 # it will coredump.
8013 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8014 ;;
8015
dabbade6
L
8016 osf3* | osf4* | osf5*)
8017 lt_prog_compiler_wl='-Wl,'
8018 # All OSF/1 code is PIC.
8019 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8020 ;;
8021
dabbade6
L
8022 rdos*)
8023 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8024 ;;
8025
8026 solaris*)
dabbade6
L
8027 lt_prog_compiler_pic='-KPIC'
8028 lt_prog_compiler_static='-Bstatic'
8029 case $cc_basename in
8030 f77* | f90* | f95*)
8031 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8032 *)
dabbade6 8033 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8034 esac
d7040cdb
SE
8035 ;;
8036
8037 sunos4*)
dabbade6
L
8038 lt_prog_compiler_wl='-Qoption ld '
8039 lt_prog_compiler_pic='-PIC'
8040 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8041 ;;
8042
dabbade6
L
8043 sysv4 | sysv4.2uw2* | sysv4.3*)
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='-KPIC'
8046 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8047 ;;
8048
8049 sysv4*MP*)
dabbade6
L
8050 if test -d /usr/nec ;then
8051 lt_prog_compiler_pic='-Kconform_pic'
8052 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8053 fi
8054 ;;
8055
dabbade6
L
8056 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-KPIC'
8059 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8060 ;;
8061
dabbade6
L
8062 unicos*)
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8065 ;;
8066
8067 uts4*)
dabbade6
L
8068 lt_prog_compiler_pic='-pic'
8069 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8070 ;;
8071
8072 *)
dabbade6 8073 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8074 ;;
8075 esac
d7040cdb
SE
8076 fi
8077
dabbade6
L
8078case $host_os in
8079 # For platforms which do not support PIC, -DPIC is meaningless:
8080 *djgpp*)
8081 lt_prog_compiler_pic=
8082 ;;
8083 *)
8084 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8085 ;;
8086esac
8087echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8088echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
8089
8090
8091
8092
8093
8094
8095#
dabbade6 8096# Check to make sure the PIC flag actually works.
d7040cdb 8097#
dabbade6
L
8098if test -n "$lt_prog_compiler_pic"; then
8099 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8100echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
1927a18f 8101if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
dabbade6
L
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
1927a18f 8104 lt_cv_prog_compiler_pic_works=no
dabbade6
L
8105 ac_outfile=conftest.$ac_objext
8106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8107 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8108 # Insert the option either (1) after the last *FLAGS variable, or
8109 # (2) before a word containing "conftest.", or (3) at the end.
8110 # Note that $ac_compile itself does not contain backslashes and begins
8111 # with a dollar sign (not a hyphen), so the echo should work correctly.
8112 # The option is referenced via a variable to avoid confusing sed.
8113 lt_compile=`echo "$ac_compile" | $SED \
8114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8116 -e 's:$: $lt_compiler_flag:'`
1927a18f 8117 (eval echo "\"\$as_me:8117: $lt_compile\"" >&5)
dabbade6
L
8118 (eval "$lt_compile" 2>conftest.err)
8119 ac_status=$?
8120 cat conftest.err >&5
1927a18f 8121 echo "$as_me:8121: \$? = $ac_status" >&5
dabbade6
L
8122 if (exit $ac_status) && test -s "$ac_outfile"; then
8123 # The compiler can only warn and ignore the option if not recognized
8124 # So say no if there are warnings other than the usual output.
8125 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8127 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8128 lt_cv_prog_compiler_pic_works=yes
dabbade6
L
8129 fi
8130 fi
8131 $RM conftest*
d7040cdb 8132
dabbade6 8133fi
1927a18f
L
8134echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8135echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8136
1927a18f 8137if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
dabbade6
L
8138 case $lt_prog_compiler_pic in
8139 "" | " "*) ;;
8140 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8141 esac
8142else
8143 lt_prog_compiler_pic=
8144 lt_prog_compiler_can_build_shared=no
8145fi
d7040cdb 8146
dabbade6 8147fi
d7040cdb
SE
8148
8149
8150
8151
8152
8153
dabbade6
L
8154#
8155# Check to make sure the static flag actually works.
8156#
8157wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8158echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8159echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
1927a18f 8160if test "${lt_cv_prog_compiler_static_works+set}" = set; then
dabbade6
L
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162else
1927a18f 8163 lt_cv_prog_compiler_static_works=no
dabbade6
L
8164 save_LDFLAGS="$LDFLAGS"
8165 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8166 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8167 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8168 # The linker can only warn and ignore the option if not recognized
8169 # So say no if there are warnings
8170 if test -s conftest.err; then
8171 # Append any errors to the config.log.
8172 cat conftest.err 1>&5
8173 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8175 if diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8176 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8177 fi
8178 else
1927a18f 8179 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8180 fi
8181 fi
1927a18f 8182 $RM -r conftest*
dabbade6 8183 LDFLAGS="$save_LDFLAGS"
d7040cdb 8184
dabbade6 8185fi
1927a18f
L
8186echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8187echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8188
1927a18f 8189if test x"$lt_cv_prog_compiler_static_works" = xyes; then
dabbade6
L
8190 :
8191else
8192 lt_prog_compiler_static=
8193fi
d7040cdb
SE
8194
8195
8196
8197
8198
8199
8200
dabbade6
L
8201 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8202echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8203if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206 lt_cv_prog_compiler_c_o=no
8207 $RM -r conftest 2>/dev/null
8208 mkdir conftest
8209 cd conftest
8210 mkdir out
8211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8212
dabbade6
L
8213 lt_compiler_flag="-o out/conftest2.$ac_objext"
8214 # Insert the option either (1) after the last *FLAGS variable, or
8215 # (2) before a word containing "conftest.", or (3) at the end.
8216 # Note that $ac_compile itself does not contain backslashes and begins
8217 # with a dollar sign (not a hyphen), so the echo should work correctly.
8218 lt_compile=`echo "$ac_compile" | $SED \
8219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8221 -e 's:$: $lt_compiler_flag:'`
1927a18f 8222 (eval echo "\"\$as_me:8222: $lt_compile\"" >&5)
dabbade6
L
8223 (eval "$lt_compile" 2>out/conftest.err)
8224 ac_status=$?
8225 cat out/conftest.err >&5
1927a18f 8226 echo "$as_me:8226: \$? = $ac_status" >&5
dabbade6
L
8227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8228 then
8229 # The compiler can only warn and ignore the option if not recognized
8230 # So say no if there are warnings
8231 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8234 lt_cv_prog_compiler_c_o=yes
8235 fi
8236 fi
8237 chmod u+w . 2>&5
8238 $RM conftest*
8239 # SGI C++ compiler will create directory out/ii_files/ for
8240 # template instantiation
8241 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8242 $RM out/* && rmdir out
8243 cd ..
8244 $RM -r conftest
8245 $RM conftest*
d7040cdb 8246
dabbade6
L
8247fi
8248echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8249echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
8250
8251
8252
8253
8254
8255
dabbade6
L
8256 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8257echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8258if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261 lt_cv_prog_compiler_c_o=no
8262 $RM -r conftest 2>/dev/null
8263 mkdir conftest
8264 cd conftest
8265 mkdir out
8266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8267
dabbade6
L
8268 lt_compiler_flag="-o out/conftest2.$ac_objext"
8269 # Insert the option either (1) after the last *FLAGS variable, or
8270 # (2) before a word containing "conftest.", or (3) at the end.
8271 # Note that $ac_compile itself does not contain backslashes and begins
8272 # with a dollar sign (not a hyphen), so the echo should work correctly.
8273 lt_compile=`echo "$ac_compile" | $SED \
8274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8276 -e 's:$: $lt_compiler_flag:'`
1927a18f 8277 (eval echo "\"\$as_me:8277: $lt_compile\"" >&5)
dabbade6
L
8278 (eval "$lt_compile" 2>out/conftest.err)
8279 ac_status=$?
8280 cat out/conftest.err >&5
1927a18f 8281 echo "$as_me:8281: \$? = $ac_status" >&5
dabbade6
L
8282 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8283 then
8284 # The compiler can only warn and ignore the option if not recognized
8285 # So say no if there are warnings
8286 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8289 lt_cv_prog_compiler_c_o=yes
8290 fi
8291 fi
8292 chmod u+w . 2>&5
8293 $RM conftest*
8294 # SGI C++ compiler will create directory out/ii_files/ for
8295 # template instantiation
8296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8297 $RM out/* && rmdir out
8298 cd ..
8299 $RM -r conftest
8300 $RM conftest*
d7040cdb 8301
dabbade6
L
8302fi
8303echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8304echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
8305
8306
8307
8308
dabbade6
L
8309hard_links="nottested"
8310if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8311 # do not overwrite the value of need_locks provided by the user
8312 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8313echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8314 hard_links=yes
8315 $RM conftest*
8316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8317 touch conftest.a
8318 ln conftest.a conftest.b 2>&5 || hard_links=no
8319 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8320 echo "$as_me:$LINENO: result: $hard_links" >&5
8321echo "${ECHO_T}$hard_links" >&6
8322 if test "$hard_links" = no; then
8323 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8324echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8325 need_locks=warn
8326 fi
8327else
8328 need_locks=no
8329fi
d7040cdb
SE
8330
8331
8332
8333
8334
8335
dabbade6
L
8336 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8337echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 8338
dabbade6
L
8339 runpath_var=
8340 allow_undefined_flag=
8341 always_export_symbols=no
8342 archive_cmds=
8343 archive_expsym_cmds=
8344 compiler_needs_object=no
8345 enable_shared_with_static_runtimes=no
8346 export_dynamic_flag_spec=
8347 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8348 hardcode_automatic=no
8349 hardcode_direct=no
8350 hardcode_direct_absolute=no
8351 hardcode_libdir_flag_spec=
8352 hardcode_libdir_flag_spec_ld=
8353 hardcode_libdir_separator=
8354 hardcode_minus_L=no
8355 hardcode_shlibpath_var=unsupported
8356 inherit_rpath=no
8357 link_all_deplibs=unknown
8358 module_cmds=
8359 module_expsym_cmds=
8360 old_archive_from_new_cmds=
8361 old_archive_from_expsyms_cmds=
8362 thread_safe_flag_spec=
8363 whole_archive_flag_spec=
8364 # include_expsyms should be a list of space-separated symbols to be *always*
8365 # included in the symbol list
8366 include_expsyms=
8367 # exclude_expsyms can be an extended regexp of symbols to exclude
8368 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8369 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8370 # as well as any symbol that contains `d'.
1927a18f 8371 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
dabbade6
L
8372 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8373 # platforms (ab)use it in PIC code, but their linkers get confused if
8374 # the symbol is explicitly referenced. Since portable code cannot
8375 # rely on this symbol name, it's probably fine to never include it in
8376 # preloaded symbol tables.
1927a18f 8377 # Exclude shared library initialization/finalization symbols.
dabbade6 8378 extract_expsyms_cmds=
d7040cdb 8379
dabbade6 8380 case $host_os in
1927a18f 8381 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8382 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8383 # When not using gcc, we currently assume that we are using
8384 # Microsoft Visual C++.
8385 if test "$GCC" != yes; then
8386 with_gnu_ld=no
8387 fi
8388 ;;
8389 interix*)
8390 # we just hope/assume this is gcc and not c89 (= MSVC++)
8391 with_gnu_ld=yes
8392 ;;
8393 openbsd*)
8394 with_gnu_ld=no
8395 ;;
8396 esac
d7040cdb 8397
dabbade6
L
8398 ld_shlibs=yes
8399 if test "$with_gnu_ld" = yes; then
8400 # If archive_cmds runs LD, not CC, wlarc should be empty
8401 wlarc='${wl}'
d7040cdb 8402
dabbade6
L
8403 # Set some defaults for GNU ld with shared library support. These
8404 # are reset later if shared libraries are not supported. Putting them
8405 # here allows them to be overridden if necessary.
8406 runpath_var=LD_RUN_PATH
8407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8408 export_dynamic_flag_spec='${wl}--export-dynamic'
8409 # ancient GNU ld didn't support --whole-archive et. al.
8410 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8411 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8412 else
8413 whole_archive_flag_spec=
8414 fi
8415 supports_anon_versioning=no
8416 case `$LD -v 2>&1` in
8417 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8418 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8419 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8420 *\ 2.11.*) ;; # other 2.11 versions
8421 *) supports_anon_versioning=yes ;;
8422 esac
d7040cdb 8423
dabbade6
L
8424 # See if GNU ld supports shared libraries.
8425 case $host_os in
50e7d84b 8426 aix[3-9]*)
dabbade6
L
8427 # On AIX/PPC, the GNU linker is very broken
8428 if test "$host_cpu" != ia64; then
8429 ld_shlibs=no
8430 cat <<_LT_EOF 1>&2
d7040cdb 8431
dabbade6
L
8432*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8433*** to be unable to reliably create shared libraries on AIX.
8434*** Therefore, libtool is disabling shared libraries support. If you
8435*** really care for shared libraries, you may want to modify your PATH
8436*** so that a non-GNU linker is found, and then restart.
d7040cdb 8437
dabbade6
L
8438_LT_EOF
8439 fi
8440 ;;
d7040cdb 8441
dabbade6 8442 amigaos*)
1927a18f
L
8443 case $host_cpu in
8444 powerpc)
8445 # see comment about AmigaOS4 .so support
8446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447 archive_expsym_cmds=''
8448 ;;
8449 m68k)
8450 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)'
8451 hardcode_libdir_flag_spec='-L$libdir'
8452 hardcode_minus_L=yes
8453 ;;
8454 esac
dabbade6 8455 ;;
d7040cdb 8456
dabbade6
L
8457 beos*)
8458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8459 allow_undefined_flag=unsupported
8460 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8461 # support --undefined. This deserves some investigation. FIXME
8462 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8463 else
8464 ld_shlibs=no
8465 fi
8466 ;;
d7040cdb 8467
1927a18f 8468 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8469 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8470 # as there is no search path for DLLs.
8471 hardcode_libdir_flag_spec='-L$libdir'
8472 allow_undefined_flag=unsupported
8473 always_export_symbols=no
8474 enable_shared_with_static_runtimes=yes
8475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8476
dabbade6
L
8477 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8479 # If the export-symbols file already is a .def file (1st line
8480 # is EXPORTS), use it as is; otherwise, prepend...
8481 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8482 cp $export_symbols $output_objdir/$soname.def;
8483 else
8484 echo EXPORTS > $output_objdir/$soname.def;
8485 cat $export_symbols >> $output_objdir/$soname.def;
8486 fi~
8487 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8488 else
8489 ld_shlibs=no
8490 fi
8491 ;;
d7040cdb 8492
dabbade6
L
8493 interix[3-9]*)
8494 hardcode_direct=no
8495 hardcode_shlibpath_var=no
8496 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8497 export_dynamic_flag_spec='${wl}-E'
8498 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8499 # Instead, shared libraries are loaded at an image base (0x10000000 by
8500 # default) and relocated if they conflict, which is a slow very memory
8501 # consuming and fragmenting process. To avoid this, we pick a random,
8502 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8503 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8504 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8505 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'
8506 ;;
d7040cdb 8507
dabbade6
L
8508 gnu* | linux* | tpf* | k*bsd*-gnu)
8509 tmp_diet=no
8510 if test "$host_os" = linux-dietlibc; then
8511 case $cc_basename in
8512 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8513 esac
8514 fi
8515 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8516 && test "$tmp_diet" = no
8517 then
8518 tmp_addflag=
1927a18f 8519 tmp_sharedflag='-shared'
dabbade6
L
8520 case $cc_basename,$host_cpu in
8521 pgcc*) # Portland Group C compiler
8522 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'
8523 tmp_addflag=' $pic_flag'
8524 ;;
8525 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8526 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'
8527 tmp_addflag=' $pic_flag -Mnomain' ;;
8528 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8529 tmp_addflag=' -i_dynamic' ;;
8530 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8531 tmp_addflag=' -i_dynamic -nofor_main' ;;
8532 ifc* | ifort*) # Intel Fortran compiler
8533 tmp_addflag=' -nofor_main' ;;
1927a18f
L
8534 lf95*) # Lahey Fortran 8.1
8535 whole_archive_flag_spec=
8536 tmp_sharedflag='--shared' ;;
8537 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8538 tmp_sharedflag='-qmkshrobj'
8539 tmp_addflag= ;;
dabbade6
L
8540 esac
8541 case `$CC -V 2>&1 | sed 5q` in
8542 *Sun\ C*) # Sun C 5.9
8543 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'
8544 compiler_needs_object=yes
8545 tmp_sharedflag='-G' ;;
8546 *Sun\ F*) # Sun Fortran 8.3
8547 tmp_sharedflag='-G' ;;
dabbade6
L
8548 esac
8549 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8550
dabbade6
L
8551 if test "x$supports_anon_versioning" = xyes; then
8552 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8554 echo "local: *; };" >> $output_objdir/$libname.ver~
8555 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8556 fi
1927a18f
L
8557
8558 case $cc_basename in
8559 xlf*)
8560 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8561 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8562 hardcode_libdir_flag_spec=
8563 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8564 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8565 if test "x$supports_anon_versioning" = xyes; then
8566 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8567 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8568 echo "local: *; };" >> $output_objdir/$libname.ver~
8569 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8570 fi
8571 ;;
8572 esac
dabbade6
L
8573 else
8574 ld_shlibs=no
8575 fi
8576 ;;
d7040cdb 8577
dabbade6
L
8578 netbsd*)
8579 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8580 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8581 wlarc=
8582 else
8583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8584 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8585 fi
8586 ;;
d7040cdb 8587
dabbade6
L
8588 solaris*)
8589 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8590 ld_shlibs=no
8591 cat <<_LT_EOF 1>&2
d7040cdb 8592
dabbade6
L
8593*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8594*** create shared libraries on Solaris systems. Therefore, libtool
8595*** is disabling shared libraries support. We urge you to upgrade GNU
8596*** binutils to release 2.9.1 or newer. Another option is to modify
8597*** your PATH or compiler configuration so that the native linker is
8598*** used, and then restart.
d7040cdb 8599
dabbade6
L
8600_LT_EOF
8601 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8604 else
8605 ld_shlibs=no
8606 fi
8607 ;;
d7040cdb 8608
dabbade6
L
8609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8610 case `$LD -v 2>&1` in
8611 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8612 ld_shlibs=no
8613 cat <<_LT_EOF 1>&2
d7040cdb 8614
dabbade6
L
8615*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8616*** reliably create shared libraries on SCO systems. Therefore, libtool
8617*** is disabling shared libraries support. We urge you to upgrade GNU
8618*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8619*** your PATH or compiler configuration so that the native linker is
8620*** used, and then restart.
d7040cdb 8621
dabbade6
L
8622_LT_EOF
8623 ;;
8624 *)
8625 # For security reasons, it is highly recommended that you always
8626 # use absolute paths for naming shared libraries, and exclude the
8627 # DT_RUNPATH tag from executables and libraries. But doing so
8628 # requires that you compile everything twice, which is a pain.
8629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8633 else
8634 ld_shlibs=no
8635 fi
8636 ;;
8637 esac
8638 ;;
d7040cdb 8639
dabbade6
L
8640 sunos4*)
8641 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8642 wlarc=
8643 hardcode_direct=yes
8644 hardcode_shlibpath_var=no
8645 ;;
d7040cdb 8646
dabbade6
L
8647 *)
8648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8651 else
8652 ld_shlibs=no
8653 fi
8654 ;;
8655 esac
d7040cdb 8656
dabbade6
L
8657 if test "$ld_shlibs" = no; then
8658 runpath_var=
8659 hardcode_libdir_flag_spec=
8660 export_dynamic_flag_spec=
8661 whole_archive_flag_spec=
8662 fi
8663 else
8664 # PORTME fill in a description of your system's linker (not GNU ld)
8665 case $host_os in
8666 aix3*)
8667 allow_undefined_flag=unsupported
8668 always_export_symbols=yes
8669 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'
8670 # Note: this linker hardcodes the directories in LIBPATH if there
8671 # are no directories specified by -L.
8672 hardcode_minus_L=yes
8673 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8674 # Neither direct hardcoding nor static linking is supported with a
8675 # broken collect2.
8676 hardcode_direct=unsupported
8677 fi
8678 ;;
d7040cdb 8679
50e7d84b 8680 aix[4-9]*)
dabbade6
L
8681 if test "$host_cpu" = ia64; then
8682 # On IA64, the linker does run time linking by default, so we don't
8683 # have to do anything special.
8684 aix_use_runtimelinking=no
8685 exp_sym_flag='-Bexport'
8686 no_entry_flag=""
8687 else
8688 # If we're using GNU nm, then we don't want the "-C" option.
8689 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8690 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8691 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'
8692 else
8693 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'
8694 fi
8695 aix_use_runtimelinking=no
d7040cdb 8696
dabbade6
L
8697 # Test if we are trying to use run time linking or normal
8698 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8699 # need to do runtime linking.
50e7d84b 8700 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
dabbade6
L
8701 for ld_flag in $LDFLAGS; do
8702 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8703 aix_use_runtimelinking=yes
8704 break
8705 fi
8706 done
8707 ;;
8708 esac
d7040cdb 8709
dabbade6
L
8710 exp_sym_flag='-bexport'
8711 no_entry_flag='-bnoentry'
8712 fi
d7040cdb 8713
dabbade6
L
8714 # When large executables or shared objects are built, AIX ld can
8715 # have problems creating the table of contents. If linking a library
8716 # or program results in "error TOC overflow" add -mminimal-toc to
8717 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8718 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8719
dabbade6
L
8720 archive_cmds=''
8721 hardcode_direct=yes
8722 hardcode_direct_absolute=yes
8723 hardcode_libdir_separator=':'
8724 link_all_deplibs=yes
8725 file_list_spec='${wl}-f,'
d7040cdb 8726
dabbade6
L
8727 if test "$GCC" = yes; then
8728 case $host_os in aix4.[012]|aix4.[012].*)
8729 # We only want to do this on AIX 4.2 and lower, the check
8730 # below for broken collect2 doesn't work under 4.3+
8731 collect2name=`${CC} -print-prog-name=collect2`
8732 if test -f "$collect2name" &&
8733 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8734 then
8735 # We have reworked collect2
8736 :
8737 else
8738 # We have old collect2
8739 hardcode_direct=unsupported
8740 # It fails to find uninstalled libraries when the uninstalled
8741 # path is not listed in the libpath. Setting hardcode_minus_L
8742 # to unsupported forces relinking
8743 hardcode_minus_L=yes
8744 hardcode_libdir_flag_spec='-L$libdir'
8745 hardcode_libdir_separator=
8746 fi
8747 ;;
8748 esac
8749 shared_flag='-shared'
8750 if test "$aix_use_runtimelinking" = yes; then
8751 shared_flag="$shared_flag "'${wl}-G'
8752 fi
8753 else
8754 # not using gcc
8755 if test "$host_cpu" = ia64; then
8756 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8757 # chokes on -Wl,-G. The following line is correct:
8758 shared_flag='-G'
8759 else
8760 if test "$aix_use_runtimelinking" = yes; then
8761 shared_flag='${wl}-G'
8762 else
8763 shared_flag='${wl}-bM:SRE'
8764 fi
8765 fi
8766 fi
d7040cdb 8767
1927a18f 8768 export_dynamic_flag_spec='${wl}-bexpall'
dabbade6
L
8769 # It seems that -bexpall does not export symbols beginning with
8770 # underscore (_), so it is better to generate a list of symbols to export.
8771 always_export_symbols=yes
8772 if test "$aix_use_runtimelinking" = yes; then
8773 # Warning - without using the other runtime loading flags (-brtl),
8774 # -berok will link without error, but may produce a broken library.
8775 allow_undefined_flag='-berok'
8776 # Determine the default libpath from the value encoded in an
8777 # empty executable.
8778 cat >conftest.$ac_ext <<_ACEOF
8779/* confdefs.h. */
8780_ACEOF
8781cat confdefs.h >>conftest.$ac_ext
8782cat >>conftest.$ac_ext <<_ACEOF
8783/* end confdefs.h. */
d7040cdb 8784
dabbade6
L
8785int
8786main ()
8787{
d7040cdb 8788
dabbade6
L
8789 ;
8790 return 0;
8791}
8792_ACEOF
8793rm -f conftest.$ac_objext conftest$ac_exeext
8794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795 (eval $ac_link) 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag"
8803 || test ! -s conftest.err'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
d7040cdb 8815
dabbade6
L
8816lt_aix_libpath_sed='
8817 /Import File Strings/,/^$/ {
8818 /^0/ {
8819 s/^0 *\(.*\)$/\1/
8820 p
8821 }
8822 }'
8823aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8824# Check for a 64-bit object if we didn't find anything.
8825if test -z "$aix_libpath"; then
8826 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8827fi
8828else
8829 echo "$as_me: failed program was:" >&5
8830sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8831
dabbade6
L
8832fi
8833rm -f conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8836
dabbade6
L
8837 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8838 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"
8839 else
8840 if test "$host_cpu" = ia64; then
8841 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8842 allow_undefined_flag="-z nodefs"
8843 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"
8844 else
8845 # Determine the default libpath from the value encoded in an
8846 # empty executable.
8847 cat >conftest.$ac_ext <<_ACEOF
8848/* confdefs.h. */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h. */
d7040cdb 8853
dabbade6
L
8854int
8855main ()
8856{
d7040cdb 8857
dabbade6
L
8858 ;
8859 return 0;
8860}
8861_ACEOF
8862rm -f conftest.$ac_objext conftest$ac_exeext
8863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
d7040cdb 8884
dabbade6
L
8885lt_aix_libpath_sed='
8886 /Import File Strings/,/^$/ {
8887 /^0/ {
8888 s/^0 *\(.*\)$/\1/
8889 p
8890 }
8891 }'
8892aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8893# Check for a 64-bit object if we didn't find anything.
8894if test -z "$aix_libpath"; then
8895 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896fi
8897else
8898 echo "$as_me: failed program was:" >&5
8899sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8900
dabbade6
L
8901fi
8902rm -f conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8905
dabbade6
L
8906 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8907 # Warning - without using the other run time loading flags,
8908 # -berok will link without error, but may produce a broken library.
8909 no_undefined_flag=' ${wl}-bernotok'
8910 allow_undefined_flag=' ${wl}-berok'
8911 # Exported symbols can be pulled into shared objects from archives
8912 whole_archive_flag_spec='$convenience'
8913 archive_cmds_need_lc=yes
8914 # This is similar to how AIX traditionally builds its shared libraries.
8915 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'
8916 fi
8917 fi
8918 ;;
d7040cdb 8919
dabbade6 8920 amigaos*)
1927a18f
L
8921 case $host_cpu in
8922 powerpc)
8923 # see comment about AmigaOS4 .so support
8924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8925 archive_expsym_cmds=''
8926 ;;
8927 m68k)
8928 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)'
8929 hardcode_libdir_flag_spec='-L$libdir'
8930 hardcode_minus_L=yes
8931 ;;
8932 esac
dabbade6 8933 ;;
d7040cdb 8934
dabbade6
L
8935 bsdi[45]*)
8936 export_dynamic_flag_spec=-rdynamic
8937 ;;
d7040cdb 8938
1927a18f 8939 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8940 # When not using gcc, we currently assume that we are using
8941 # Microsoft Visual C++.
8942 # hardcode_libdir_flag_spec is actually meaningless, as there is
8943 # no search path for DLLs.
8944 hardcode_libdir_flag_spec=' '
8945 allow_undefined_flag=unsupported
8946 # Tell ltmain to make .lib files, not .a files.
8947 libext=lib
8948 # Tell ltmain to make .dll files, not .so files.
8949 shrext_cmds=".dll"
8950 # FIXME: Setting linknames here is a bad hack.
8951 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8952 # The linker will automatically build a .lib file if we build a DLL.
8953 old_archive_from_new_cmds='true'
8954 # FIXME: Should let the user specify the lib program.
8955 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8956 fix_srcfile_path='`cygpath -w "$srcfile"`'
8957 enable_shared_with_static_runtimes=yes
8958 ;;
d7040cdb 8959
dabbade6 8960 darwin* | rhapsody*)
d7040cdb 8961
1927a18f
L
8962
8963 archive_cmds_need_lc=no
8964 hardcode_direct=no
8965 hardcode_automatic=yes
8966 hardcode_shlibpath_var=unsupported
8967 whole_archive_flag_spec=''
8968 link_all_deplibs=yes
8969 allow_undefined_flag="$_lt_dar_allow_undefined"
8970 case $cc_basename in
8971 ifort*) _lt_dar_can_shared=yes ;;
8972 *) _lt_dar_can_shared=$GCC ;;
8973 esac
8974 if test "$_lt_dar_can_shared" = "yes"; then
8975 output_verbose_link_cmd=echo
8976 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8977 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8978 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}"
8979 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}"
8980
8981 else
8982 ld_shlibs=no
8983 fi
8984
dabbade6 8985 ;;
d7040cdb 8986
dabbade6
L
8987 dgux*)
8988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8989 hardcode_libdir_flag_spec='-L$libdir'
8990 hardcode_shlibpath_var=no
8991 ;;
d7040cdb 8992
dabbade6
L
8993 freebsd1*)
8994 ld_shlibs=no
8995 ;;
d7040cdb 8996
dabbade6
L
8997 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8998 # support. Future versions do this automatically, but an explicit c++rt0.o
8999 # does not break anything, and helps significantly (at the cost of a little
9000 # extra space).
9001 freebsd2.2*)
9002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9003 hardcode_libdir_flag_spec='-R$libdir'
9004 hardcode_direct=yes
9005 hardcode_shlibpath_var=no
9006 ;;
d7040cdb 9007
dabbade6
L
9008 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9009 freebsd2*)
9010 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9011 hardcode_direct=yes
9012 hardcode_minus_L=yes
9013 hardcode_shlibpath_var=no
9014 ;;
d7040cdb 9015
dabbade6
L
9016 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9017 freebsd* | dragonfly*)
9018 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9019 hardcode_libdir_flag_spec='-R$libdir'
9020 hardcode_direct=yes
9021 hardcode_shlibpath_var=no
9022 ;;
d7040cdb 9023
dabbade6
L
9024 hpux9*)
9025 if test "$GCC" = yes; then
9026 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'
9027 else
9028 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'
9029 fi
9030 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9031 hardcode_libdir_separator=:
9032 hardcode_direct=yes
d7040cdb 9033
dabbade6
L
9034 # hardcode_minus_L: Not really in the search PATH,
9035 # but as the default location of the library.
9036 hardcode_minus_L=yes
9037 export_dynamic_flag_spec='${wl}-E'
9038 ;;
d7040cdb 9039
dabbade6
L
9040 hpux10*)
9041 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9042 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9043 else
9044 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9045 fi
9046 if test "$with_gnu_ld" = no; then
9047 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9048 hardcode_libdir_flag_spec_ld='+b $libdir'
9049 hardcode_libdir_separator=:
9050 hardcode_direct=yes
9051 hardcode_direct_absolute=yes
9052 export_dynamic_flag_spec='${wl}-E'
9053 # hardcode_minus_L: Not really in the search PATH,
9054 # but as the default location of the library.
9055 hardcode_minus_L=yes
9056 fi
9057 ;;
d7040cdb 9058
dabbade6
L
9059 hpux11*)
9060 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9061 case $host_cpu in
9062 hppa*64*)
9063 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9064 ;;
9065 ia64*)
1927a18f 9066 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
dabbade6
L
9067 ;;
9068 *)
9069 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9070 ;;
9071 esac
9072 else
9073 case $host_cpu in
9074 hppa*64*)
9075 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076 ;;
9077 ia64*)
9078 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9079 ;;
9080 *)
9081 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9082 ;;
9083 esac
9084 fi
9085 if test "$with_gnu_ld" = no; then
9086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9087 hardcode_libdir_separator=:
d7040cdb 9088
dabbade6
L
9089 case $host_cpu in
9090 hppa*64*|ia64*)
9091 hardcode_direct=no
9092 hardcode_shlibpath_var=no
9093 ;;
9094 *)
9095 hardcode_direct=yes
9096 hardcode_direct_absolute=yes
9097 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9098
dabbade6
L
9099 # hardcode_minus_L: Not really in the search PATH,
9100 # but as the default location of the library.
9101 hardcode_minus_L=yes
9102 ;;
9103 esac
9104 fi
9105 ;;
d7040cdb 9106
dabbade6
L
9107 irix5* | irix6* | nonstopux*)
9108 if test "$GCC" = yes; then
9109 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'
9110 # Try to use the -exported_symbol ld option, if it does not
9111 # work, assume that -exports_file does not work either and
9112 # implicitly export all symbols.
9113 save_LDFLAGS="$LDFLAGS"
9114 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9115 cat >conftest.$ac_ext <<_ACEOF
9116int foo(void) {}
9117_ACEOF
9118rm -f conftest.$ac_objext conftest$ac_exeext
9119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9120 (eval $ac_link) 2>conftest.er1
9121 ac_status=$?
9122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -z "$ac_c_werror_flag"
9128 || test ! -s conftest.err'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; } &&
9134 { ac_try='test -s conftest$ac_exeext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 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'
d7040cdb 9141
d7040cdb 9142else
dabbade6
L
9143 echo "$as_me: failed program was:" >&5
9144sed 's/^/| /' conftest.$ac_ext >&5
9145
d7040cdb 9146fi
dabbade6
L
9147rm -f conftest.err conftest.$ac_objext \
9148 conftest$ac_exeext conftest.$ac_ext
9149 LDFLAGS="$save_LDFLAGS"
9150 else
9151 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'
9152 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'
9153 fi
9154 archive_cmds_need_lc='no'
9155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9156 hardcode_libdir_separator=:
9157 inherit_rpath=yes
9158 link_all_deplibs=yes
9159 ;;
d7040cdb 9160
dabbade6
L
9161 netbsd*)
9162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9164 else
9165 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9166 fi
9167 hardcode_libdir_flag_spec='-R$libdir'
9168 hardcode_direct=yes
9169 hardcode_shlibpath_var=no
9170 ;;
d7040cdb 9171
dabbade6
L
9172 newsos6)
9173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_direct=yes
9175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176 hardcode_libdir_separator=:
9177 hardcode_shlibpath_var=no
9178 ;;
d7040cdb 9179
dabbade6
L
9180 *nto* | *qnx*)
9181 ;;
d7040cdb 9182
dabbade6 9183 openbsd*)
1927a18f
L
9184 if test -f /usr/libexec/ld.so; then
9185 hardcode_direct=yes
9186 hardcode_shlibpath_var=no
9187 hardcode_direct_absolute=yes
9188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
dabbade6 9189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1927a18f 9190 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
dabbade6 9191 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1927a18f
L
9192 export_dynamic_flag_spec='${wl}-E'
9193 else
9194 case $host_os in
9195 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9197 hardcode_libdir_flag_spec='-R$libdir'
9198 ;;
9199 *)
9200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202 ;;
9203 esac
9204 fi
9205 else
9206 ld_shlibs=no
d7040cdb
SE
9207 fi
9208 ;;
d7040cdb 9209
dabbade6
L
9210 os2*)
9211 hardcode_libdir_flag_spec='-L$libdir'
9212 hardcode_minus_L=yes
9213 allow_undefined_flag=unsupported
9214 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'
9215 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9216 ;;
d7040cdb 9217
dabbade6
L
9218 osf3*)
9219 if test "$GCC" = yes; then
9220 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9221 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'
9222 else
9223 allow_undefined_flag=' -expect_unresolved \*'
9224 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'
9225 fi
9226 archive_cmds_need_lc='no'
9227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9228 hardcode_libdir_separator=:
9229 ;;
d7040cdb 9230
dabbade6
L
9231 osf4* | osf5*) # as osf3* with the addition of -msym flag
9232 if test "$GCC" = yes; then
9233 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234 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'
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 else
9237 allow_undefined_flag=' -expect_unresolved \*'
9238 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'
9239 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~
9240 $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'
d7040cdb 9241
dabbade6
L
9242 # Both c and cxx compiler support -rpath directly
9243 hardcode_libdir_flag_spec='-rpath $libdir'
9244 fi
9245 archive_cmds_need_lc='no'
9246 hardcode_libdir_separator=:
9247 ;;
d7040cdb 9248
dabbade6
L
9249 solaris*)
9250 no_undefined_flag=' -z defs'
9251 if test "$GCC" = yes; then
9252 wlarc='${wl}'
9253 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9254 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9255 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9256 else
9257 case `$CC -V 2>&1` in
9258 *"Compilers 5.0"*)
9259 wlarc=''
9260 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9261 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9262 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9263 ;;
9264 *)
9265 wlarc='${wl}'
9266 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9268 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9269 ;;
9270 esac
9271 fi
9272 hardcode_libdir_flag_spec='-R$libdir'
9273 hardcode_shlibpath_var=no
9274 case $host_os in
9275 solaris2.[0-5] | solaris2.[0-5].*) ;;
9276 *)
9277 # The compiler driver will combine and reorder linker options,
9278 # but understands `-z linker_flag'. GCC discards it without `$wl',
9279 # but is careful enough not to reorder.
9280 # Supported since Solaris 2.6 (maybe 2.5.1?)
9281 if test "$GCC" = yes; then
9282 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9283 else
9284 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9285 fi
9286 ;;
9287 esac
9288 link_all_deplibs=yes
d7040cdb 9289 ;;
dabbade6
L
9290
9291 sunos4*)
9292 if test "x$host_vendor" = xsequent; then
9293 # Use $CC to link under sequent, because it throws in some extra .o
9294 # files that make .init and .fini sections work.
9295 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9296 else
dabbade6 9297 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9298 fi
dabbade6
L
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_direct=yes
9301 hardcode_minus_L=yes
9302 hardcode_shlibpath_var=no
d7040cdb 9303 ;;
dabbade6
L
9304
9305 sysv4)
9306 case $host_vendor in
9307 sni)
9308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9309 hardcode_direct=yes # is this really true???
9310 ;;
9311 siemens)
9312 ## LD is ld it makes a PLAMLIB
9313 ## CC just makes a GrossModule.
9314 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9315 reload_cmds='$CC -r -o $output$reload_objs'
9316 hardcode_direct=no
9317 ;;
9318 motorola)
9319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9321 ;;
9322 esac
9323 runpath_var='LD_RUN_PATH'
9324 hardcode_shlibpath_var=no
d7040cdb 9325 ;;
d7040cdb 9326
dabbade6
L
9327 sysv4.3*)
9328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329 hardcode_shlibpath_var=no
9330 export_dynamic_flag_spec='-Bexport'
9331 ;;
d7040cdb 9332
dabbade6
L
9333 sysv4*MP*)
9334 if test -d /usr/nec; then
9335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_shlibpath_var=no
9337 runpath_var=LD_RUN_PATH
9338 hardcode_runpath_var=yes
9339 ld_shlibs=yes
9340 fi
9341 ;;
d7040cdb 9342
dabbade6
L
9343 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9344 no_undefined_flag='${wl}-z,text'
9345 archive_cmds_need_lc=no
9346 hardcode_shlibpath_var=no
9347 runpath_var='LD_RUN_PATH'
d7040cdb 9348
dabbade6
L
9349 if test "$GCC" = yes; then
9350 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 else
9353 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 fi
9356 ;;
d7040cdb 9357
dabbade6
L
9358 sysv5* | sco3.2v5* | sco5v6*)
9359 # Note: We can NOT use -z defs as we might desire, because we do not
9360 # link with -lc, and that would cause any symbols used from libc to
9361 # always be unresolved, which means just about no library would
9362 # ever link correctly. If we're not using GNU ld we use -z text
9363 # though, which does catch some bad symbols but isn't as heavy-handed
9364 # as -z defs.
9365 no_undefined_flag='${wl}-z,text'
9366 allow_undefined_flag='${wl}-z,nodefs'
9367 archive_cmds_need_lc=no
9368 hardcode_shlibpath_var=no
9369 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9370 hardcode_libdir_separator=':'
9371 link_all_deplibs=yes
9372 export_dynamic_flag_spec='${wl}-Bexport'
9373 runpath_var='LD_RUN_PATH'
d7040cdb 9374
dabbade6
L
9375 if test "$GCC" = yes; then
9376 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 else
9379 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 fi
d7040cdb 9382 ;;
d7040cdb 9383
dabbade6
L
9384 uts4*)
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_libdir_flag_spec='-L$libdir'
9387 hardcode_shlibpath_var=no
9388 ;;
d7040cdb 9389
dabbade6
L
9390 *)
9391 ld_shlibs=no
9392 ;;
9393 esac
9394
9395 if test x$host_vendor = xsni; then
9396 case $host in
9397 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9398 export_dynamic_flag_spec='${wl}-Blargedynsym'
9399 ;;
9400 esac
d7040cdb 9401 fi
dabbade6 9402 fi
d7040cdb 9403
dabbade6
L
9404echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9405echo "${ECHO_T}$ld_shlibs" >&6
9406test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9407
dabbade6 9408with_gnu_ld=$with_gnu_ld
d7040cdb 9409
d7040cdb 9410
d7040cdb 9411
d7040cdb 9412
d7040cdb 9413
d7040cdb 9414
d7040cdb 9415
d7040cdb 9416
d7040cdb 9417
d7040cdb 9418
d7040cdb 9419
d7040cdb 9420
d7040cdb 9421
d7040cdb 9422
d7040cdb 9423
dabbade6
L
9424#
9425# Do we need to explicitly link libc?
9426#
9427case "x$archive_cmds_need_lc" in
9428x|xyes)
9429 # Assume -lc should be added
9430 archive_cmds_need_lc=yes
d7040cdb 9431
dabbade6
L
9432 if test "$enable_shared" = yes && test "$GCC" = yes; then
9433 case $archive_cmds in
9434 *'~'*)
9435 # FIXME: we may have to deal with multi-command sequences.
9436 ;;
9437 '$CC '*)
9438 # Test whether the compiler implicitly links with -lc since on some
9439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9440 # to ld, don't add -lc before -lgcc.
9441 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9442echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
39144654
RW
9443if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
9446 $RM conftest*
9447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9448
39144654 9449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
dabbade6
L
9450 (eval $ac_compile) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } 2>conftest.err; then
39144654
RW
9454 soname=conftest
9455 lib=conftest
9456 libobjs=conftest.$ac_objext
9457 deplibs=
9458 wl=$lt_prog_compiler_wl
9459 pic_flag=$lt_prog_compiler_pic
9460 compiler_flags=-v
9461 linker_flags=-v
9462 verstring=
9463 output_objdir=.
9464 libname=conftest
9465 lt_save_allow_undefined_flag=$allow_undefined_flag
9466 allow_undefined_flag=
9467 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
dabbade6
L
9468 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }
39144654
RW
9472 then
9473 lt_cv_archive_cmds_need_lc=no
9474 else
9475 lt_cv_archive_cmds_need_lc=yes
9476 fi
9477 allow_undefined_flag=$lt_save_allow_undefined_flag
9478 else
9479 cat conftest.err 1>&5
9480 fi
9481 $RM conftest*
9482
9483fi
9484echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9485echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9486 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
dabbade6
L
9487 ;;
9488 esac
d7040cdb 9489 fi
d7040cdb 9490 ;;
dabbade6 9491esac
d7040cdb 9492
d7040cdb 9493
d7040cdb 9494
d7040cdb 9495
d7040cdb 9496
d7040cdb 9497
d7040cdb 9498
d7040cdb
SE
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
d7040cdb 9586
d7040cdb 9587
d7040cdb
SE
9588
9589
9590
9591
9592
9593
d7040cdb 9594
d7040cdb 9595
d7040cdb 9596
d7040cdb 9597
d7040cdb 9598
d7040cdb 9599
d7040cdb 9600
d7040cdb 9601
d7040cdb 9602
d7040cdb 9603
d7040cdb 9604
d7040cdb 9605
d7040cdb 9606
d7040cdb 9607
d7040cdb 9608
d7040cdb 9609
d7040cdb 9610
d7040cdb 9611
d7040cdb 9612
d7040cdb 9613
d7040cdb 9614
d7040cdb 9615
d7040cdb 9616
d7040cdb 9617
dabbade6
L
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9650echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1927a18f
L
9651
9652if test "$GCC" = yes; then
dabbade6
L
9653 case $host_os in
9654 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9655 *) lt_awk_arg="/^libraries:/" ;;
9656 esac
9657 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9658 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9659 # if the path contains ";" then we assume it to be the separator
9660 # otherwise default to the standard path separator (i.e. ":") - it is
9661 # assumed that no part of a normal pathname contains ";" but that should
9662 # okay in the real world where ";" in dirpaths is itself problematic.
9663 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9664 else
9665 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9666 fi
9667 # Ok, now we have the path, separated by spaces, we can step through it
9668 # and add multilib dir if necessary.
9669 lt_tmp_lt_search_path_spec=
9670 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9671 for lt_sys_path in $lt_search_path_spec; do
9672 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9673 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9674 else
9675 test -d "$lt_sys_path" && \
9676 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9677 fi
9678 done
9679 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9680BEGIN {RS=" "; FS="/|\n";} {
9681 lt_foo="";
9682 lt_count=0;
9683 for (lt_i = NF; lt_i > 0; lt_i--) {
9684 if ($lt_i != "" && $lt_i != ".") {
9685 if ($lt_i == "..") {
9686 lt_count++;
9687 } else {
9688 if (lt_count == 0) {
9689 lt_foo="/" $lt_i lt_foo;
9690 } else {
9691 lt_count--;
9692 }
9693 }
9694 }
9695 }
9696 if (lt_foo != "") { lt_freq[lt_foo]++; }
9697 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9698}'`
9699 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 9700else
dabbade6
L
9701 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9702fi
9703library_names_spec=
9704libname_spec='lib$name'
9705soname_spec=
9706shrext_cmds=".so"
9707postinstall_cmds=
9708postuninstall_cmds=
9709finish_cmds=
9710finish_eval=
9711shlibpath_var=
9712shlibpath_overrides_runpath=unknown
9713version_type=none
9714dynamic_linker="$host_os ld.so"
9715sys_lib_dlsearch_path_spec="/lib /usr/lib"
9716need_lib_prefix=unknown
9717hardcode_into_libs=no
9718
9719# when you set need_version to no, make sure it does not cause -set_version
9720# flags to be left without arguments
9721need_version=unknown
9722
9723case $host_os in
9724aix3*)
9725 version_type=linux
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9727 shlibpath_var=LIBPATH
9728
9729 # AIX 3 has no versioning support, so we append a major version to the name.
9730 soname_spec='${libname}${release}${shared_ext}$major'
9731 ;;
9732
50e7d84b 9733aix[4-9]*)
dabbade6
L
9734 version_type=linux
9735 need_lib_prefix=no
9736 need_version=no
9737 hardcode_into_libs=yes
9738 if test "$host_cpu" = ia64; then
9739 # AIX 5 supports IA64
9740 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 else
9743 # With GCC up to 2.95.x, collect2 would create an import file
9744 # for dependence libraries. The import file would start with
9745 # the line `#! .'. This would cause the generated library to
9746 # depend on `.', always an invalid library. This was fixed in
9747 # development snapshots of GCC prior to 3.0.
9748 case $host_os in
9749 aix4 | aix4.[01] | aix4.[01].*)
9750 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9751 echo ' yes '
9752 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9753 :
9754 else
9755 can_build_shared=no
9756 fi
9757 ;;
9758 esac
9759 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9760 # soname into executable. Probably we can add versioning support to
9761 # collect2, so additional links can be useful in future.
9762 if test "$aix_use_runtimelinking" = yes; then
9763 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9764 # instead of lib<name>.a to let people know that these are not
9765 # typical AIX shared libraries.
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9767 else
9768 # We preserve .a as extension for shared libraries through AIX4.2
9769 # and later when we are not doing run time linking.
9770 library_names_spec='${libname}${release}.a $libname.a'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 fi
9773 shlibpath_var=LIBPATH
9774 fi
9775 ;;
9776
9777amigaos*)
1927a18f
L
9778 case $host_cpu in
9779 powerpc)
9780 # Since July 2007 AmigaOS4 officially supports .so libraries.
9781 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 ;;
9784 m68k)
dabbade6
L
9785 library_names_spec='$libname.ixlibrary $libname.a'
9786 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9787 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'
1927a18f
L
9788 ;;
9789 esac
dabbade6
L
9790 ;;
9791
9792beos*)
9793 library_names_spec='${libname}${shared_ext}'
9794 dynamic_linker="$host_os ld.so"
9795 shlibpath_var=LIBRARY_PATH
9796 ;;
9797
9798bsdi[45]*)
9799 version_type=linux
9800 need_version=no
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9807 # the default ld.so.conf also contains /usr/contrib/lib and
9808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9809 # libtool to hard-code these into programs
9810 ;;
9811
1927a18f 9812cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
9813 version_type=windows
9814 shrext_cmds=".dll"
9815 need_version=no
9816 need_lib_prefix=no
9817
1927a18f
L
9818 case $GCC,$host_os in
9819 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
dabbade6
L
9820 library_names_spec='$libname.dll.a'
9821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9822 postinstall_cmds='base_file=`basename \${file}`~
9823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9824 dldir=$destdir/`dirname \$dlpath`~
9825 test -d \$dldir || mkdir -p \$dldir~
9826 $install_prog $dir/$dlname \$dldir/$dlname~
9827 chmod a+x \$dldir/$dlname~
9828 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9829 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9830 fi'
9831 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9832 dlpath=$dir/\$dldll~
9833 $RM \$dlpath'
9834 shlibpath_overrides_runpath=yes
9835
9836 case $host_os in
9837 cygwin*)
9838 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9839 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9840 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9841 ;;
1927a18f 9842 mingw* | cegcc*)
dabbade6
L
9843 # MinGW DLLs use traditional 'lib' prefix
9844 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9845 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9846 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9847 # It is most probably a Windows format PATH printed by
9848 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9849 # path with ; separators, and with drive letters. We can handle the
9850 # drive letters (cygwin fileutils understands them), so leave them,
9851 # especially as we might pass files found there to a mingw objdump,
9852 # which wouldn't understand a cygwinified path. Ahh.
9853 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9854 else
9855 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9856 fi
9857 ;;
9858 pw32*)
9859 # pw32 DLLs use 'pw' prefix rather than 'lib'
9860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9861 ;;
9862 esac
9863 ;;
9864
9865 *)
9866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9867 ;;
9868 esac
9869 dynamic_linker='Win32 ld.exe'
9870 # FIXME: first we should search . and the directory the executable is in
9871 shlibpath_var=PATH
9872 ;;
9873
9874darwin* | rhapsody*)
9875 dynamic_linker="$host_os dyld"
9876 version_type=darwin
9877 need_lib_prefix=no
9878 need_version=no
9879 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9880 soname_spec='${libname}${release}${major}$shared_ext'
9881 shlibpath_overrides_runpath=yes
9882 shlibpath_var=DYLD_LIBRARY_PATH
9883 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9884
9885 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9887 ;;
9888
9889dgux*)
9890 version_type=linux
9891 need_lib_prefix=no
9892 need_version=no
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 ;;
9897
9898freebsd1*)
9899 dynamic_linker=no
9900 ;;
9901
9902freebsd* | dragonfly*)
9903 # DragonFly does not have aout. When/if they implement a new
9904 # versioning mechanism, adjust this.
9905 if test -x /usr/bin/objformat; then
9906 objformat=`/usr/bin/objformat`
9907 else
9908 case $host_os in
9909 freebsd[123]*) objformat=aout ;;
9910 *) objformat=elf ;;
9911 esac
9912 fi
9913 version_type=freebsd-$objformat
9914 case $version_type in
9915 freebsd-elf*)
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9917 need_version=no
9918 need_lib_prefix=no
9919 ;;
9920 freebsd-*)
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9922 need_version=yes
9923 ;;
9924 esac
9925 shlibpath_var=LD_LIBRARY_PATH
9926 case $host_os in
9927 freebsd2*)
9928 shlibpath_overrides_runpath=yes
9929 ;;
9930 freebsd3.[01]* | freebsdelf3.[01]*)
9931 shlibpath_overrides_runpath=yes
9932 hardcode_into_libs=yes
9933 ;;
9934 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9935 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9936 shlibpath_overrides_runpath=no
9937 hardcode_into_libs=yes
9938 ;;
9939 *) # from 4.6 on, and DragonFly
9940 shlibpath_overrides_runpath=yes
9941 hardcode_into_libs=yes
9942 ;;
9943 esac
9944 ;;
9945
9946gnu*)
9947 version_type=linux
9948 need_lib_prefix=no
9949 need_version=no
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9951 soname_spec='${libname}${release}${shared_ext}$major'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 hardcode_into_libs=yes
9954 ;;
9955
9956hpux9* | hpux10* | hpux11*)
9957 # Give a soname corresponding to the major version so that dld.sl refuses to
9958 # link against other versions.
9959 version_type=sunos
9960 need_lib_prefix=no
9961 need_version=no
9962 case $host_cpu in
9963 ia64*)
9964 shrext_cmds='.so'
9965 hardcode_into_libs=yes
9966 dynamic_linker="$host_os dld.so"
9967 shlibpath_var=LD_LIBRARY_PATH
9968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 if test "X$HPUX_IA64_MODE" = X32; then
9972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9973 else
9974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9975 fi
9976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9977 ;;
9978 hppa*64*)
9979 shrext_cmds='.sl'
9980 hardcode_into_libs=yes
9981 dynamic_linker="$host_os dld.sl"
9982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985 soname_spec='${libname}${release}${shared_ext}$major'
9986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9988 ;;
9989 *)
9990 shrext_cmds='.sl'
9991 dynamic_linker="$host_os dld.sl"
9992 shlibpath_var=SHLIB_PATH
9993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995 soname_spec='${libname}${release}${shared_ext}$major'
9996 ;;
9997 esac
9998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9999 postinstall_cmds='chmod 555 $lib'
10000 ;;
10001
10002interix[3-9]*)
10003 version_type=linux
10004 need_lib_prefix=no
10005 need_version=no
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10007 soname_spec='${libname}${release}${shared_ext}$major'
10008 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10009 shlibpath_var=LD_LIBRARY_PATH
10010 shlibpath_overrides_runpath=no
10011 hardcode_into_libs=yes
10012 ;;
10013
10014irix5* | irix6* | nonstopux*)
10015 case $host_os in
10016 nonstopux*) version_type=nonstopux ;;
10017 *)
10018 if test "$lt_cv_prog_gnu_ld" = yes; then
10019 version_type=linux
10020 else
10021 version_type=irix
10022 fi ;;
10023 esac
10024 need_lib_prefix=no
10025 need_version=no
10026 soname_spec='${libname}${release}${shared_ext}$major'
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10028 case $host_os in
10029 irix5* | nonstopux*)
10030 libsuff= shlibsuff=
10031 ;;
10032 *)
10033 case $LD in # libtool.m4 will add one of these switches to LD
10034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10035 libsuff= shlibsuff= libmagic=32-bit;;
10036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10037 libsuff=32 shlibsuff=N32 libmagic=N32;;
10038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10040 *) libsuff= shlibsuff= libmagic=never-match;;
10041 esac
10042 ;;
10043 esac
10044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10045 shlibpath_overrides_runpath=no
10046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10048 hardcode_into_libs=yes
10049 ;;
10050
10051# No shared lib support for Linux oldld, aout, or coff.
10052linux*oldld* | linux*aout* | linux*coff*)
10053 dynamic_linker=no
10054 ;;
10055
10056# This must be Linux ELF.
10057linux* | k*bsd*-gnu)
10058 version_type=linux
10059 need_lib_prefix=no
10060 need_version=no
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10064 shlibpath_var=LD_LIBRARY_PATH
10065 shlibpath_overrides_runpath=no
39144654 10066
dabbade6 10067 # Some binutils ld are patched to set DT_RUNPATH
39144654
RW
10068 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070else
10071 lt_cv_shlibpath_overrides_runpath=no
10072 save_LDFLAGS=$LDFLAGS
10073 save_libdir=$libdir
10074 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10075 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10076 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10077/* confdefs.h. */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
10081/* end confdefs.h. */
10082
d7040cdb
SE
10083int
10084main ()
10085{
dabbade6 10086
d7040cdb
SE
10087 ;
10088 return 0;
10089}
10090_ACEOF
10091rm -f conftest.$ac_objext conftest$ac_exeext
10092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest$ac_exeext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
1927a18f 10113 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
39144654 10114 lt_cv_shlibpath_overrides_runpath=yes
dabbade6
L
10115fi
10116
d7040cdb
SE
10117else
10118 echo "$as_me: failed program was:" >&5
10119sed 's/^/| /' conftest.$ac_ext >&5
10120
d7040cdb
SE
10121fi
10122rm -f conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10124 LDFLAGS=$save_LDFLAGS
10125 libdir=$save_libdir
10126
10127fi
10128
10129 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
dabbade6
L
10130
10131 # This implies no fast_install, which is unacceptable.
10132 # Some rework will be needed to allow for fast_install
10133 # before this can be enabled.
10134 hardcode_into_libs=yes
10135
10136 # Append ld.so.conf contents to the search path
10137 if test -f /etc/ld.so.conf; then
1927a18f 10138 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' ' '`
dabbade6
L
10139 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10140 fi
10141
10142 # We used to test for /lib/ld.so.1 and disable shared libraries on
10143 # powerpc, because MkLinux only supported shared libraries with the
10144 # GNU dynamic linker. Since this was broken with cross compilers,
10145 # most powerpc-linux boxes support dynamic linking these days and
10146 # people can always --disable-shared, the test was removed, and we
10147 # assume the GNU/Linux dynamic linker is in use.
10148 dynamic_linker='GNU/Linux ld.so'
10149 ;;
10150
10151netbsd*)
10152 version_type=sunos
10153 need_lib_prefix=no
10154 need_version=no
10155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10158 dynamic_linker='NetBSD (a.out) ld.so'
10159 else
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 dynamic_linker='NetBSD ld.elf_so'
10163 fi
10164 shlibpath_var=LD_LIBRARY_PATH
10165 shlibpath_overrides_runpath=yes
10166 hardcode_into_libs=yes
10167 ;;
10168
10169newsos6)
10170 version_type=linux
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 shlibpath_overrides_runpath=yes
10174 ;;
10175
10176*nto* | *qnx*)
10177 version_type=qnx
10178 need_lib_prefix=no
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=no
10184 hardcode_into_libs=yes
10185 dynamic_linker='ldqnx.so'
10186 ;;
10187
10188openbsd*)
10189 version_type=sunos
10190 sys_lib_dlsearch_path_spec="/usr/lib"
10191 need_lib_prefix=no
10192 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10193 case $host_os in
10194 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10195 *) need_version=no ;;
10196 esac
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10201 case $host_os in
10202 openbsd2.[89] | openbsd2.[89].*)
10203 shlibpath_overrides_runpath=no
10204 ;;
10205 *)
10206 shlibpath_overrides_runpath=yes
10207 ;;
10208 esac
10209 else
10210 shlibpath_overrides_runpath=yes
10211 fi
10212 ;;
10213
10214os2*)
10215 libname_spec='$name'
10216 shrext_cmds=".dll"
10217 need_lib_prefix=no
10218 library_names_spec='$libname${shared_ext} $libname.a'
10219 dynamic_linker='OS/2 ld.exe'
10220 shlibpath_var=LIBPATH
10221 ;;
10222
10223osf3* | osf4* | osf5*)
10224 version_type=osf
10225 need_lib_prefix=no
10226 need_version=no
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10231 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10232 ;;
10233
10234rdos*)
10235 dynamic_linker=no
10236 ;;
10237
10238solaris*)
10239 version_type=linux
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=yes
10246 hardcode_into_libs=yes
10247 # ldd complains unless libraries are executable
10248 postinstall_cmds='chmod +x $lib'
10249 ;;
10250
10251sunos4*)
10252 version_type=sunos
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 shlibpath_overrides_runpath=yes
10257 if test "$with_gnu_ld" = yes; then
10258 need_lib_prefix=no
10259 fi
10260 need_version=yes
10261 ;;
10262
10263sysv4 | sysv4.3*)
10264 version_type=linux
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 case $host_vendor in
10269 sni)
10270 shlibpath_overrides_runpath=no
10271 need_lib_prefix=no
10272 runpath_var=LD_RUN_PATH
10273 ;;
10274 siemens)
10275 need_lib_prefix=no
10276 ;;
10277 motorola)
10278 need_lib_prefix=no
10279 need_version=no
10280 shlibpath_overrides_runpath=no
10281 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10282 ;;
10283 esac
10284 ;;
10285
10286sysv4*MP*)
10287 if test -d /usr/nec ;then
10288 version_type=linux
10289 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10290 soname_spec='$libname${shared_ext}.$major'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 fi
10293 ;;
10294
10295sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10296 version_type=freebsd-elf
10297 need_lib_prefix=no
10298 need_version=no
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=yes
10303 hardcode_into_libs=yes
10304 if test "$with_gnu_ld" = yes; then
10305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10306 else
10307 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10308 case $host_os in
10309 sco3.2v5*)
10310 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10311 ;;
10312 esac
10313 fi
10314 sys_lib_dlsearch_path_spec='/usr/lib'
10315 ;;
10316
10317tpf*)
10318 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10319 version_type=linux
10320 need_lib_prefix=no
10321 need_version=no
1927a18f 10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
dabbade6
L
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=no
10325 hardcode_into_libs=yes
10326 ;;
10327
10328uts4*)
10329 version_type=linux
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 ;;
d7040cdb 10334
dabbade6
L
10335*)
10336 dynamic_linker=no
10337 ;;
10338esac
10339echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10340echo "${ECHO_T}$dynamic_linker" >&6
10341test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10342
dabbade6
L
10343variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10344if test "$GCC" = yes; then
10345 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10346fi
d7040cdb 10347
1927a18f
L
10348if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10349 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10350fi
10351if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10352 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10353fi
10354
d7040cdb 10355
d7040cdb
SE
10356
10357
d7040cdb
SE
10358
10359
d7040cdb
SE
10360
10361
d7040cdb
SE
10362
10363
d7040cdb
SE
10364
10365
d7040cdb 10366
d7040cdb 10367
d7040cdb 10368
d7040cdb 10369
d7040cdb 10370
d7040cdb 10371
d7040cdb 10372
d7040cdb 10373
d7040cdb 10374
d7040cdb 10375
d7040cdb 10376
d7040cdb 10377
d7040cdb 10378
d7040cdb 10379
d7040cdb
SE
10380
10381
d7040cdb 10382
d7040cdb 10383
d7040cdb 10384
d7040cdb 10385
d7040cdb 10386
d7040cdb 10387
d7040cdb 10388
d7040cdb 10389
d7040cdb 10390
d7040cdb
SE
10391
10392
d7040cdb 10393
d7040cdb 10394
d7040cdb 10395
d7040cdb
SE
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
d7040cdb
SE
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
d7040cdb 10425
d7040cdb 10426
dabbade6
L
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10442echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10443hardcode_action=
10444if test -n "$hardcode_libdir_flag_spec" ||
10445 test -n "$runpath_var" ||
10446 test "X$hardcode_automatic" = "Xyes" ; then
10447
10448 # We can hardcode non-existent directories.
10449 if test "$hardcode_direct" != no &&
10450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10451 # have to relink, otherwise we might link with an installed library
10452 # when we should be linking with a yet-to-be-installed one
10453 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10454 test "$hardcode_minus_L" != no; then
10455 # Linking always hardcodes the temporary library directory.
10456 hardcode_action=relink
10457 else
10458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10459 hardcode_action=immediate
10460 fi
10461else
10462 # We cannot hardcode anything, or else we can only hardcode existing
10463 # directories.
10464 hardcode_action=unsupported
10465fi
10466echo "$as_me:$LINENO: result: $hardcode_action" >&5
10467echo "${ECHO_T}$hardcode_action" >&6
10468
10469if test "$hardcode_action" = relink ||
10470 test "$inherit_rpath" = yes; then
10471 # Fast installation is not supported
10472 enable_fast_install=no
10473elif test "$shlibpath_overrides_runpath" = yes ||
10474 test "$enable_shared" = no; then
10475 # Fast installation is not necessary
10476 enable_fast_install=needless
10477fi
10478
10479
10480
10481
10482
10483
10484 if test "x$enable_dlopen" != xyes; then
10485 enable_dlopen=unknown
10486 enable_dlopen_self=unknown
10487 enable_dlopen_self_static=unknown
10488else
10489 lt_cv_dlopen=no
10490 lt_cv_dlopen_libs=
10491
d7040cdb 10492 case $host_os in
dabbade6
L
10493 beos*)
10494 lt_cv_dlopen="load_add_on"
10495 lt_cv_dlopen_libs=
10496 lt_cv_dlopen_self=yes
d7040cdb
SE
10497 ;;
10498
1927a18f 10499 mingw* | pw32* | cegcc*)
dabbade6
L
10500 lt_cv_dlopen="LoadLibrary"
10501 lt_cv_dlopen_libs=
d7040cdb 10502 ;;
d7040cdb 10503
dabbade6
L
10504 cygwin*)
10505 lt_cv_dlopen="dlopen"
10506 lt_cv_dlopen_libs=
10507 ;;
d7040cdb 10508
dabbade6
L
10509 darwin*)
10510 # if libdl is installed we need to link against it
10511 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10512echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10513if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else
10516 ac_check_lib_save_LIBS=$LIBS
10517LIBS="-ldl $LIBS"
10518cat >conftest.$ac_ext <<_ACEOF
10519/* confdefs.h. */
10520_ACEOF
10521cat confdefs.h >>conftest.$ac_ext
10522cat >>conftest.$ac_ext <<_ACEOF
10523/* end confdefs.h. */
d7040cdb 10524
dabbade6
L
10525/* Override any gcc2 internal prototype to avoid an error. */
10526#ifdef __cplusplus
10527extern "C"
10528#endif
10529/* We use char because int might match the return type of a gcc2
10530 builtin and then its argument prototype would still apply. */
10531char dlopen ();
10532int
10533main ()
10534{
10535dlopen ();
10536 ;
10537 return 0;
10538}
10539_ACEOF
10540rm -f conftest.$ac_objext conftest$ac_exeext
10541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>conftest.er1
10543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag"
10550 || test ! -s conftest.err'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; } &&
10556 { ac_try='test -s conftest$ac_exeext'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10562 ac_cv_lib_dl_dlopen=yes
10563else
10564 echo "$as_me: failed program was:" >&5
10565sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10566
dabbade6 10567ac_cv_lib_dl_dlopen=no
d7040cdb 10568fi
dabbade6
L
10569rm -f conftest.err conftest.$ac_objext \
10570 conftest$ac_exeext conftest.$ac_ext
10571LIBS=$ac_check_lib_save_LIBS
10572fi
10573echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10574echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10575if test $ac_cv_lib_dl_dlopen = yes; then
10576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10577else
d7040cdb 10578
dabbade6
L
10579 lt_cv_dlopen="dyld"
10580 lt_cv_dlopen_libs=
10581 lt_cv_dlopen_self=yes
d7040cdb 10582
dabbade6 10583fi
d7040cdb 10584
dabbade6 10585 ;;
d7040cdb 10586
dabbade6
L
10587 *)
10588 echo "$as_me:$LINENO: checking for shl_load" >&5
10589echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10590if test "${ac_cv_func_shl_load+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592else
10593 cat >conftest.$ac_ext <<_ACEOF
10594/* confdefs.h. */
10595_ACEOF
10596cat confdefs.h >>conftest.$ac_ext
10597cat >>conftest.$ac_ext <<_ACEOF
10598/* end confdefs.h. */
10599/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10601#define shl_load innocuous_shl_load
d7040cdb 10602
dabbade6
L
10603/* System header to define __stub macros and hopefully few prototypes,
10604 which can conflict with char shl_load (); below.
10605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10606 <limits.h> exists even on freestanding compilers. */
d7040cdb 10607
dabbade6
L
10608#ifdef __STDC__
10609# include <limits.h>
10610#else
10611# include <assert.h>
10612#endif
d7040cdb 10613
dabbade6 10614#undef shl_load
d7040cdb 10615
dabbade6
L
10616/* Override any gcc2 internal prototype to avoid an error. */
10617#ifdef __cplusplus
10618extern "C"
10619{
10620#endif
10621/* We use char because int might match the return type of a gcc2
10622 builtin and then its argument prototype would still apply. */
10623char shl_load ();
10624/* The GNU C library defines this for functions which it implements
10625 to always fail with ENOSYS. Some functions are actually named
10626 something starting with __ and the normal name is an alias. */
10627#if defined (__stub_shl_load) || defined (__stub___shl_load)
10628choke me
10629#else
10630char (*f) () = shl_load;
10631#endif
10632#ifdef __cplusplus
10633}
10634#endif
d7040cdb 10635
dabbade6
L
10636int
10637main ()
10638{
10639return f != shl_load;
10640 ;
10641 return 0;
10642}
10643_ACEOF
10644rm -f conftest.$ac_objext conftest$ac_exeext
10645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10646 (eval $ac_link) 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag"
10654 || test ! -s conftest.err'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; } &&
10660 { ac_try='test -s conftest$ac_exeext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 ac_cv_func_shl_load=yes
10667else
10668 echo "$as_me: failed program was:" >&5
10669sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10670
dabbade6
L
10671ac_cv_func_shl_load=no
10672fi
10673rm -f conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
10675fi
10676echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10677echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10678if test $ac_cv_func_shl_load = yes; then
10679 lt_cv_dlopen="shl_load"
10680else
10681 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10682echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10683if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685else
10686 ac_check_lib_save_LIBS=$LIBS
10687LIBS="-ldld $LIBS"
10688cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
d7040cdb 10694
dabbade6
L
10695/* Override any gcc2 internal prototype to avoid an error. */
10696#ifdef __cplusplus
10697extern "C"
10698#endif
10699/* We use char because int might match the return type of a gcc2
10700 builtin and then its argument prototype would still apply. */
10701char shl_load ();
10702int
10703main ()
10704{
10705shl_load ();
10706 ;
10707 return 0;
10708}
10709_ACEOF
10710rm -f conftest.$ac_objext conftest$ac_exeext
10711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10712 (eval $ac_link) 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest$ac_exeext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 ac_cv_lib_dld_shl_load=yes
10733else
10734 echo "$as_me: failed program was:" >&5
10735sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10736
dabbade6
L
10737ac_cv_lib_dld_shl_load=no
10738fi
10739rm -f conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741LIBS=$ac_check_lib_save_LIBS
10742fi
10743echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10744echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10745if test $ac_cv_lib_dld_shl_load = yes; then
1927a18f 10746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
dabbade6
L
10747else
10748 echo "$as_me:$LINENO: checking for dlopen" >&5
10749echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10750if test "${ac_cv_func_dlopen+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 cat >conftest.$ac_ext <<_ACEOF
10754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
10759/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10761#define dlopen innocuous_dlopen
d7040cdb 10762
dabbade6
L
10763/* System header to define __stub macros and hopefully few prototypes,
10764 which can conflict with char dlopen (); below.
10765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10766 <limits.h> exists even on freestanding compilers. */
d7040cdb 10767
dabbade6
L
10768#ifdef __STDC__
10769# include <limits.h>
10770#else
10771# include <assert.h>
10772#endif
d7040cdb 10773
dabbade6 10774#undef dlopen
d7040cdb 10775
dabbade6
L
10776/* Override any gcc2 internal prototype to avoid an error. */
10777#ifdef __cplusplus
10778extern "C"
10779{
10780#endif
10781/* We use char because int might match the return type of a gcc2
10782 builtin and then its argument prototype would still apply. */
10783char dlopen ();
10784/* The GNU C library defines this for functions which it implements
10785 to always fail with ENOSYS. Some functions are actually named
10786 something starting with __ and the normal name is an alias. */
10787#if defined (__stub_dlopen) || defined (__stub___dlopen)
10788choke me
10789#else
10790char (*f) () = dlopen;
10791#endif
10792#ifdef __cplusplus
10793}
10794#endif
d7040cdb 10795
dabbade6
L
10796int
10797main ()
10798{
10799return f != dlopen;
10800 ;
10801 return 0;
10802}
10803_ACEOF
10804rm -f conftest.$ac_objext conftest$ac_exeext
10805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806 (eval $ac_link) 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag"
10814 || test ! -s conftest.err'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest$ac_exeext'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 ac_cv_func_dlopen=yes
10827else
10828 echo "$as_me: failed program was:" >&5
10829sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10830
dabbade6
L
10831ac_cv_func_dlopen=no
10832fi
10833rm -f conftest.err conftest.$ac_objext \
10834 conftest$ac_exeext conftest.$ac_ext
10835fi
10836echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10837echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10838if test $ac_cv_func_dlopen = yes; then
10839 lt_cv_dlopen="dlopen"
10840else
10841 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10842echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10843if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845else
10846 ac_check_lib_save_LIBS=$LIBS
10847LIBS="-ldl $LIBS"
10848cat >conftest.$ac_ext <<_ACEOF
10849/* confdefs.h. */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
10853/* end confdefs.h. */
d7040cdb 10854
dabbade6
L
10855/* Override any gcc2 internal prototype to avoid an error. */
10856#ifdef __cplusplus
10857extern "C"
10858#endif
10859/* We use char because int might match the return type of a gcc2
10860 builtin and then its argument prototype would still apply. */
10861char dlopen ();
10862int
10863main ()
10864{
10865dlopen ();
10866 ;
10867 return 0;
10868}
10869_ACEOF
10870rm -f conftest.$ac_objext conftest$ac_exeext
10871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10872 (eval $ac_link) 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } &&
10879 { ac_try='test -z "$ac_c_werror_flag"
10880 || test ! -s conftest.err'
10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 (eval $ac_try) 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; } &&
10886 { ac_try='test -s conftest$ac_exeext'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; }; then
10892 ac_cv_lib_dl_dlopen=yes
10893else
10894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10896
dabbade6
L
10897ac_cv_lib_dl_dlopen=no
10898fi
10899rm -f conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901LIBS=$ac_check_lib_save_LIBS
10902fi
10903echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10904echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10905if test $ac_cv_lib_dl_dlopen = yes; then
10906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10907else
10908 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10909echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10910if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912else
10913 ac_check_lib_save_LIBS=$LIBS
10914LIBS="-lsvld $LIBS"
10915cat >conftest.$ac_ext <<_ACEOF
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>conftest.$ac_ext <<_ACEOF
10920/* end confdefs.h. */
d7040cdb 10921
dabbade6
L
10922/* Override any gcc2 internal prototype to avoid an error. */
10923#ifdef __cplusplus
10924extern "C"
10925#endif
10926/* We use char because int might match the return type of a gcc2
10927 builtin and then its argument prototype would still apply. */
10928char dlopen ();
10929int
10930main ()
10931{
10932dlopen ();
10933 ;
10934 return 0;
10935}
10936_ACEOF
10937rm -f conftest.$ac_objext conftest$ac_exeext
10938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10939 (eval $ac_link) 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag"
10947 || test ! -s conftest.err'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest$ac_exeext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 ac_cv_lib_svld_dlopen=yes
10960else
10961 echo "$as_me: failed program was:" >&5
10962sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10963
dabbade6
L
10964ac_cv_lib_svld_dlopen=no
10965fi
10966rm -f conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968LIBS=$ac_check_lib_save_LIBS
10969fi
10970echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10971echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10972if test $ac_cv_lib_svld_dlopen = yes; then
10973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10974else
10975 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10976echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10977if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979else
10980 ac_check_lib_save_LIBS=$LIBS
10981LIBS="-ldld $LIBS"
10982cat >conftest.$ac_ext <<_ACEOF
10983/* confdefs.h. */
10984_ACEOF
10985cat confdefs.h >>conftest.$ac_ext
10986cat >>conftest.$ac_ext <<_ACEOF
10987/* end confdefs.h. */
d7040cdb 10988
dabbade6
L
10989/* Override any gcc2 internal prototype to avoid an error. */
10990#ifdef __cplusplus
10991extern "C"
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 dld_link ();
10996int
10997main ()
10998{
10999dld_link ();
11000 ;
11001 return 0;
11002}
11003_ACEOF
11004rm -f conftest.$ac_objext conftest$ac_exeext
11005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11006 (eval $ac_link) 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag"
11014 || test ! -s conftest.err'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; } &&
11020 { ac_try='test -s conftest$ac_exeext'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; }; then
11026 ac_cv_lib_dld_dld_link=yes
11027else
11028 echo "$as_me: failed program was:" >&5
11029sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11030
dabbade6 11031ac_cv_lib_dld_dld_link=no
d7040cdb 11032fi
dabbade6
L
11033rm -f conftest.err conftest.$ac_objext \
11034 conftest$ac_exeext conftest.$ac_ext
11035LIBS=$ac_check_lib_save_LIBS
d7040cdb 11036fi
dabbade6
L
11037echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11038echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11039if test $ac_cv_lib_dld_dld_link = yes; then
1927a18f 11040 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11041fi
11042
d7040cdb 11043
d7040cdb
SE
11044fi
11045
11046
dabbade6 11047fi
d7040cdb
SE
11048
11049
dabbade6 11050fi
d7040cdb
SE
11051
11052
d7040cdb
SE
11053fi
11054
979273e3 11055
252b5132 11056fi
252b5132 11057
dabbade6
L
11058 ;;
11059 esac
252b5132 11060
dabbade6
L
11061 if test "x$lt_cv_dlopen" != xno; then
11062 enable_dlopen=yes
11063 else
11064 enable_dlopen=no
11065 fi
1c0d3aa6 11066
dabbade6
L
11067 case $lt_cv_dlopen in
11068 dlopen)
11069 save_CPPFLAGS="$CPPFLAGS"
11070 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20e95c23 11071
dabbade6
L
11072 save_LDFLAGS="$LDFLAGS"
11073 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20e95c23 11074
dabbade6
L
11075 save_LIBS="$LIBS"
11076 LIBS="$lt_cv_dlopen_libs $LIBS"
20e95c23 11077
dabbade6
L
11078 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11079echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11080if test "${lt_cv_dlopen_self+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 11082else
dabbade6
L
11083 if test "$cross_compiling" = yes; then :
11084 lt_cv_dlopen_self=cross
d7040cdb 11085else
dabbade6
L
11086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11087 lt_status=$lt_dlunknown
11088 cat > conftest.$ac_ext <<_LT_EOF
39144654 11089#line 11089 "configure"
dabbade6 11090#include "confdefs.h"
20e95c23 11091
dabbade6
L
11092#if HAVE_DLFCN_H
11093#include <dlfcn.h>
11094#endif
20e95c23 11095
dabbade6 11096#include <stdio.h>
20e95c23 11097
dabbade6
L
11098#ifdef RTLD_GLOBAL
11099# define LT_DLGLOBAL RTLD_GLOBAL
11100#else
11101# ifdef DL_GLOBAL
11102# define LT_DLGLOBAL DL_GLOBAL
11103# else
11104# define LT_DLGLOBAL 0
11105# endif
11106#endif
20e95c23 11107
dabbade6
L
11108/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11109 find out it does not work in some platform. */
11110#ifndef LT_DLLAZY_OR_NOW
11111# ifdef RTLD_LAZY
11112# define LT_DLLAZY_OR_NOW RTLD_LAZY
11113# else
11114# ifdef DL_LAZY
11115# define LT_DLLAZY_OR_NOW DL_LAZY
11116# else
11117# ifdef RTLD_NOW
11118# define LT_DLLAZY_OR_NOW RTLD_NOW
11119# else
11120# ifdef DL_NOW
11121# define LT_DLLAZY_OR_NOW DL_NOW
11122# else
11123# define LT_DLLAZY_OR_NOW 0
11124# endif
11125# endif
11126# endif
11127# endif
11128#endif
20e95c23 11129
dabbade6
L
11130void fnord() { int i=42;}
11131int main ()
11132{
11133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11134 int status = $lt_dlunknown;
20e95c23 11135
dabbade6
L
11136 if (self)
11137 {
11138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11140 /* dlclose (self); */
11141 }
11142 else
11143 puts (dlerror ());
d7040cdb 11144
1927a18f 11145 return status;
dabbade6
L
11146}
11147_LT_EOF
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149 (eval $ac_link) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11153 (./conftest; exit; ) >&5 2>/dev/null
11154 lt_status=$?
11155 case x$lt_status in
11156 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11157 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11158 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11159 esac
11160 else :
11161 # compilation failed
11162 lt_cv_dlopen_self=no
11163 fi
d7040cdb 11164fi
dabbade6
L
11165rm -fr conftest*
11166
252b5132 11167
d7040cdb 11168fi
dabbade6
L
11169echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11170echo "${ECHO_T}$lt_cv_dlopen_self" >&6
d7040cdb 11171
dabbade6
L
11172 if test "x$lt_cv_dlopen_self" = xyes; then
11173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11174 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11175echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11176if test "${lt_cv_dlopen_self_static+set}" = set; then
979273e3 11177 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11178else
dabbade6
L
11179 if test "$cross_compiling" = yes; then :
11180 lt_cv_dlopen_self_static=cross
d7040cdb 11181else
dabbade6
L
11182 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11183 lt_status=$lt_dlunknown
11184 cat > conftest.$ac_ext <<_LT_EOF
39144654 11185#line 11185 "configure"
dabbade6 11186#include "confdefs.h"
252b5132 11187
dabbade6
L
11188#if HAVE_DLFCN_H
11189#include <dlfcn.h>
11190#endif
252b5132 11191
dabbade6 11192#include <stdio.h>
d7040cdb 11193
dabbade6
L
11194#ifdef RTLD_GLOBAL
11195# define LT_DLGLOBAL RTLD_GLOBAL
11196#else
11197# ifdef DL_GLOBAL
11198# define LT_DLGLOBAL DL_GLOBAL
11199# else
11200# define LT_DLGLOBAL 0
11201# endif
11202#endif
20e95c23 11203
dabbade6
L
11204/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11205 find out it does not work in some platform. */
11206#ifndef LT_DLLAZY_OR_NOW
11207# ifdef RTLD_LAZY
11208# define LT_DLLAZY_OR_NOW RTLD_LAZY
11209# else
11210# ifdef DL_LAZY
11211# define LT_DLLAZY_OR_NOW DL_LAZY
11212# else
11213# ifdef RTLD_NOW
11214# define LT_DLLAZY_OR_NOW RTLD_NOW
11215# else
11216# ifdef DL_NOW
11217# define LT_DLLAZY_OR_NOW DL_NOW
11218# else
11219# define LT_DLLAZY_OR_NOW 0
11220# endif
11221# endif
11222# endif
11223# endif
11224#endif
979273e3 11225
dabbade6
L
11226void fnord() { int i=42;}
11227int main ()
11228{
11229 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11230 int status = $lt_dlunknown;
d7040cdb 11231
dabbade6
L
11232 if (self)
11233 {
11234 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11235 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11236 /* dlclose (self); */
11237 }
11238 else
11239 puts (dlerror ());
d7040cdb 11240
1927a18f 11241 return status;
dabbade6
L
11242}
11243_LT_EOF
11244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245 (eval $ac_link) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11249 (./conftest; exit; ) >&5 2>/dev/null
11250 lt_status=$?
11251 case x$lt_status in
11252 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11253 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11254 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11255 esac
11256 else :
11257 # compilation failed
11258 lt_cv_dlopen_self_static=no
11259 fi
20e95c23 11260fi
dabbade6 11261rm -fr conftest*
979273e3 11262
d7040cdb
SE
11263
11264fi
dabbade6
L
11265echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11266echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11267 fi
11268
11269 CPPFLAGS="$save_CPPFLAGS"
11270 LDFLAGS="$save_LDFLAGS"
11271 LIBS="$save_LIBS"
11272 ;;
11273 esac
11274
11275 case $lt_cv_dlopen_self in
11276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11277 *) enable_dlopen_self=unknown ;;
11278 esac
11279
11280 case $lt_cv_dlopen_self_static in
11281 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11282 *) enable_dlopen_self_static=unknown ;;
11283 esac
d7040cdb 11284fi
dabbade6
L
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302striplib=
11303old_striplib=
11304echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11305echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11306if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11307 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11308 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11309 echo "$as_me:$LINENO: result: yes" >&5
11310echo "${ECHO_T}yes" >&6
d7040cdb 11311else
dabbade6
L
11312# FIXME - insert some real tests, host_os isn't really good enough
11313 case $host_os in
11314 darwin*)
11315 if test -n "$STRIP" ; then
11316 striplib="$STRIP -x"
11317 old_striplib="$STRIP -S"
11318 echo "$as_me:$LINENO: result: yes" >&5
11319echo "${ECHO_T}yes" >&6
11320 else
11321 echo "$as_me:$LINENO: result: no" >&5
11322echo "${ECHO_T}no" >&6
11323 fi
11324 ;;
11325 *)
11326 echo "$as_me:$LINENO: result: no" >&5
d7040cdb 11327echo "${ECHO_T}no" >&6
dabbade6
L
11328 ;;
11329 esac
d7040cdb 11330fi
20e95c23 11331
979273e3 11332
dabbade6
L
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343 # Report which library types will actually be built
11344 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11345echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11346 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11347echo "${ECHO_T}$can_build_shared" >&6
11348
11349 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11350echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11351 test "$can_build_shared" = "no" && enable_shared=no
11352
11353 # On AIX, shared libraries and static libraries use the same namespace, and
11354 # are all built from PIC.
11355 case $host_os in
11356 aix3*)
11357 test "$enable_shared" = yes && enable_static=no
11358 if test -n "$RANLIB"; then
11359 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11360 postinstall_cmds='$RANLIB $lib'
11361 fi
11362 ;;
11363
50e7d84b 11364 aix[4-9]*)
dabbade6
L
11365 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11366 test "$enable_shared" = yes && enable_static=no
11367 fi
11368 ;;
11369 esac
11370 echo "$as_me:$LINENO: result: $enable_shared" >&5
11371echo "${ECHO_T}$enable_shared" >&6
11372
11373 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11374echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11375 # Make sure either enable_shared or enable_static is yes.
11376 test "$enable_shared" = yes || enable_static=yes
11377 echo "$as_me:$LINENO: result: $enable_static" >&5
11378echo "${ECHO_T}$enable_static" >&6
11379
11380
11381
d7040cdb 11382
252b5132 11383fi
dabbade6
L
11384ac_ext=c
11385ac_cpp='$CPP $CPPFLAGS'
11386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11388ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 11389
dabbade6 11390CC="$lt_save_CC"
20e95c23 11391
20e95c23 11392
d7040cdb 11393
d7040cdb 11394
d7040cdb 11395
20e95c23 11396
dabbade6
L
11397
11398
11399
11400
11401
11402
11403
11404 ac_config_commands="$ac_config_commands libtool"
11405
11406
11407
11408
11409# Only expand once:
11410
11411
11412
11413# Check whether --enable-targets or --disable-targets was given.
11414if test "${enable_targets+set}" = set; then
11415 enableval="$enable_targets"
11416 case "${enableval}" in
11417 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11418echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11419 { (exit 1); exit 1; }; }
11420 ;;
11421 no) enable_targets= ;;
11422 *) enable_targets=$enableval ;;
11423esac
11424fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11425if test "${enable_commonbfdlib+set}" = set; then
11426 enableval="$enable_commonbfdlib"
11427 case "${enableval}" in
11428 yes) commonbfdlib=true ;;
11429 no) commonbfdlib=false ;;
11430 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
11431echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
11432 { (exit 1); exit 1; }; } ;;
11433esac
11434fi;
11435
11436GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11437
11438# Check whether --enable-werror or --disable-werror was given.
11439if test "${enable_werror+set}" = set; then
11440 enableval="$enable_werror"
11441 case "${enableval}" in
11442 yes | y) ERROR_ON_WARNING="yes" ;;
11443 no | n) ERROR_ON_WARNING="no" ;;
11444 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11445echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11446 { (exit 1); exit 1; }; } ;;
11447 esac
11448fi;
11449
bb8541b9
L
11450# Enable -Wno-format by default when using gcc on mingw
11451case "${host}" in
11452 *-*-mingw32*)
11453 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11454 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11455 fi
11456 ;;
11457 *) ;;
11458esac
11459
dabbade6
L
11460# Enable -Werror by default when using gcc
11461if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11462 ERROR_ON_WARNING=yes
d7040cdb 11463fi
20e95c23 11464
dabbade6
L
11465NO_WERROR=
11466if test "${ERROR_ON_WARNING}" = yes ; then
11467 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11468 NO_WERROR="-Wno-error"
20e95c23 11469fi
d7040cdb 11470
dabbade6
L
11471if test "${GCC}" = yes ; then
11472 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11473fi
d7040cdb 11474
dabbade6
L
11475# Check whether --enable-build-warnings or --disable-build-warnings was given.
11476if test "${enable_build_warnings+set}" = set; then
11477 enableval="$enable_build_warnings"
11478 case "${enableval}" in
11479 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11480 no) if test "${GCC}" = yes ; then
11481 WARN_CFLAGS="-w"
11482 fi;;
11483 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11484 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11485 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11486 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11487 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11488esac
11489fi;
979273e3 11490
dabbade6
L
11491if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11492 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d7040cdb 11493fi
dabbade6
L
11494
11495
11496
11497
11498
11499 ac_config_headers="$ac_config_headers config.h:config.in"
11500
11501
11502if test -z "$target" ; then
11503 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11504echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11505 { (exit 1); exit 1; }; }
d7040cdb 11506fi
dabbade6
L
11507
11508echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11509echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11510 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11511if test "${enable_maintainer_mode+set}" = set; then
11512 enableval="$enable_maintainer_mode"
11513 USE_MAINTAINER_MODE=$enableval
d7040cdb 11514else
dabbade6
L
11515 USE_MAINTAINER_MODE=no
11516fi;
11517 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11518echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
d7040cdb 11519
d7040cdb 11520
dabbade6
L
11521if test $USE_MAINTAINER_MODE = yes; then
11522 MAINTAINER_MODE_TRUE=
11523 MAINTAINER_MODE_FALSE='#'
252b5132 11524else
dabbade6
L
11525 MAINTAINER_MODE_TRUE='#'
11526 MAINTAINER_MODE_FALSE=
252b5132 11527fi
d7040cdb 11528
dabbade6
L
11529 MAINT=$MAINTAINER_MODE_TRUE
11530
11531
11532 case ${build_alias} in
11533 "") build_noncanonical=${build} ;;
11534 *) build_noncanonical=${build_alias} ;;
11535esac
11536
11537 case ${host_alias} in
11538 "") host_noncanonical=${build_noncanonical} ;;
11539 *) host_noncanonical=${host_alias} ;;
11540esac
979273e3 11541
dabbade6
L
11542 case ${target_alias} in
11543 "") target_noncanonical=${host_noncanonical} ;;
11544 *) target_noncanonical=${target_alias} ;;
d7040cdb 11545esac
252b5132 11546
dabbade6
L
11547echo "$as_me:$LINENO: checking whether to install libbfd" >&5
11548echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
11549 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
11550if test "${enable_install_libbfd+set}" = set; then
11551 enableval="$enable_install_libbfd"
11552 install_libbfd_p=$enableval
979273e3 11553else
dabbade6
L
11554 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11555 install_libbfd_p=yes
11556 else
11557 install_libbfd_p=no
11558 fi
11559fi;
11560 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
11561echo "${ECHO_T}$install_libbfd_p" >&6
979273e3 11562
d7040cdb 11563
dabbade6
L
11564if test $install_libbfd_p = yes; then
11565 INSTALL_LIBBFD_TRUE=
11566 INSTALL_LIBBFD_FALSE='#'
11567else
11568 INSTALL_LIBBFD_TRUE='#'
11569 INSTALL_LIBBFD_FALSE=
d7040cdb
SE
11570fi
11571
dabbade6 11572 # Need _noncanonical variables for this.
979273e3 11573
d7040cdb
SE
11574
11575
dabbade6
L
11576
11577 # libbfd.a is a host library containing target dependent code
11578 bfdlibdir='$(libdir)'
11579 bfdincludedir='$(includedir)'
11580 if test "${host}" != "${target}"; then
11581 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11582 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11583 fi
11584
11585
11586
11587
11588
11589
11590# host-specific stuff:
11591
d7040cdb
SE
11592ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
11593# If we haven't got the data from the intl directory,
11594# assume NLS is disabled.
11595USE_NLS=no
11596LIBINTL=
11597LIBINTL_DEP=
11598INCINTL=
11599XGETTEXT=
11600GMSGFMT=
11601POSUB=
11602
11603if test -f ../intl/config.intl; then
11604 . ../intl/config.intl
11605fi
11606echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11607echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11608if test x"$USE_NLS" != xyes; then
11609 echo "$as_me:$LINENO: result: no" >&5
11610echo "${ECHO_T}no" >&6
11611else
11612 echo "$as_me:$LINENO: result: yes" >&5
11613echo "${ECHO_T}yes" >&6
11614
11615cat >>confdefs.h <<\_ACEOF
11616#define ENABLE_NLS 1
11617_ACEOF
11618
11619
11620 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11621echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11622 # Look for .po and .gmo files in the source directory.
11623 CATALOGS=
11624 XLINGUAS=
11625 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11626 # If there aren't any .gmo files the shell will give us the
11627 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11628 # weeded out.
11629 case "$cat" in *\**)
11630 continue;;
11631 esac
11632 # The quadruple backslash is collapsed to a double backslash
11633 # by the backticks, then collapsed again by the double quotes,
11634 # leaving us with one backslash in the sed expression (right
11635 # before the dot that mustn't act as a wildcard).
11636 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11637 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11638 # The user is allowed to set LINGUAS to a list of languages to
11639 # install catalogs for. If it's empty that means "all of them."
11640 if test "x$LINGUAS" = x; then
11641 CATALOGS="$CATALOGS $cat"
11642 XLINGUAS="$XLINGUAS $lang"
11643 else
11644 case "$LINGUAS" in *$lang*)
11645 CATALOGS="$CATALOGS $cat"
11646 XLINGUAS="$XLINGUAS $lang"
11647 ;;
11648 esac
11649 fi
11650 done
11651 LINGUAS="$XLINGUAS"
11652 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11653echo "${ECHO_T}$LINGUAS" >&6
11654
11655
11656 DATADIRNAME=share
11657
11658 INSTOBJEXT=.mo
11659
11660 GENCAT=gencat
11661
11662 CATOBJEXT=.gmo
11663
11664fi
11665
11666 MKINSTALLDIRS=
11667 if test -n "$ac_aux_dir"; then
11668 case "$ac_aux_dir" in
11669 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11670 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11671 esac
11672 fi
11673 if test -z "$MKINSTALLDIRS"; then
11674 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11675 fi
11676
11677
11678
11679 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11680echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11681 # Check whether --enable-nls or --disable-nls was given.
11682if test "${enable_nls+set}" = set; then
11683 enableval="$enable_nls"
11684 USE_NLS=$enableval
11685else
11686 USE_NLS=yes
11687fi;
11688 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11689echo "${ECHO_T}$USE_NLS" >&6
11690
11691
11692
11693
11694
11695
11696# Prepare PATH_SEPARATOR.
11697# The user is always right.
11698if test "${PATH_SEPARATOR+set}" != set; then
11699 echo "#! /bin/sh" >conf$$.sh
11700 echo "exit 0" >>conf$$.sh
11701 chmod +x conf$$.sh
11702 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11703 PATH_SEPARATOR=';'
11704 else
11705 PATH_SEPARATOR=:
11706 fi
11707 rm -f conf$$.sh
11708fi
979273e3 11709
d7040cdb
SE
11710# Find out how to test for executable files. Don't use a zero-byte file,
11711# as systems may use methods other than mode bits to determine executability.
11712cat >conf$$.file <<_ASEOF
11713#! /bin/sh
11714exit 0
11715_ASEOF
11716chmod +x conf$$.file
11717if test -x conf$$.file >/dev/null 2>&1; then
11718 ac_executable_p="test -x"
252b5132 11719else
d7040cdb 11720 ac_executable_p="test -f"
252b5132 11721fi
d7040cdb 11722rm -f conf$$.file
252b5132 11723
d7040cdb
SE
11724# Extract the first word of "msgfmt", so it can be a program name with args.
11725set dummy msgfmt; ac_word=$2
11726echo "$as_me:$LINENO: checking for $ac_word" >&5
11727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11728if test "${ac_cv_path_MSGFMT+set}" = set; then
979273e3 11729 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11730else
d7040cdb
SE
11731 case "$MSGFMT" in
11732 [\\/]* | ?:[\\/]*)
11733 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11734 ;;
11735 *)
11736 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11737 for ac_dir in $PATH; do
11738 IFS="$ac_save_IFS"
11739 test -z "$ac_dir" && ac_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11742 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11743 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11744 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11745 break 2
11746 fi
11747 fi
11748 done
11749 done
11750 IFS="$ac_save_IFS"
11751 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11752 ;;
11753esac
11754fi
11755MSGFMT="$ac_cv_path_MSGFMT"
11756if test "$MSGFMT" != ":"; then
11757 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11758echo "${ECHO_T}$MSGFMT" >&6
11759else
11760 echo "$as_me:$LINENO: result: no" >&5
11761echo "${ECHO_T}no" >&6
252b5132
RH
11762fi
11763
d7040cdb
SE
11764 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11765set dummy gmsgfmt; ac_word=$2
11766echo "$as_me:$LINENO: checking for $ac_word" >&5
11767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11768if test "${ac_cv_path_GMSGFMT+set}" = set; then
20e95c23
DJ
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770else
d7040cdb
SE
11771 case $GMSGFMT in
11772 [\\/]* | ?:[\\/]*)
11773 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11774 ;;
11775 *)
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
11778do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11783 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11786 fi
11787done
11788done
252b5132 11789
d7040cdb
SE
11790 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11791 ;;
11792esac
11793fi
11794GMSGFMT=$ac_cv_path_GMSGFMT
20e95c23 11795
d7040cdb
SE
11796if test -n "$GMSGFMT"; then
11797 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11798echo "${ECHO_T}$GMSGFMT" >&6
252b5132 11799else
d7040cdb
SE
11800 echo "$as_me:$LINENO: result: no" >&5
11801echo "${ECHO_T}no" >&6
252b5132
RH
11802fi
11803
11804
20e95c23 11805
d7040cdb
SE
11806# Prepare PATH_SEPARATOR.
11807# The user is always right.
11808if test "${PATH_SEPARATOR+set}" != set; then
11809 echo "#! /bin/sh" >conf$$.sh
11810 echo "exit 0" >>conf$$.sh
11811 chmod +x conf$$.sh
11812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11813 PATH_SEPARATOR=';'
11814 else
11815 PATH_SEPARATOR=:
11816 fi
11817 rm -f conf$$.sh
252b5132
RH
11818fi
11819
d7040cdb
SE
11820# Find out how to test for executable files. Don't use a zero-byte file,
11821# as systems may use methods other than mode bits to determine executability.
11822cat >conf$$.file <<_ASEOF
11823#! /bin/sh
11824exit 0
11825_ASEOF
11826chmod +x conf$$.file
11827if test -x conf$$.file >/dev/null 2>&1; then
11828 ac_executable_p="test -x"
11829else
11830 ac_executable_p="test -f"
11831fi
11832rm -f conf$$.file
20e95c23 11833
d7040cdb
SE
11834# Extract the first word of "xgettext", so it can be a program name with args.
11835set dummy xgettext; ac_word=$2
11836echo "$as_me:$LINENO: checking for $ac_word" >&5
11837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11838if test "${ac_cv_path_XGETTEXT+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11840else
d7040cdb
SE
11841 case "$XGETTEXT" in
11842 [\\/]* | ?:[\\/]*)
11843 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11844 ;;
11845 *)
11846 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11847 for ac_dir in $PATH; do
11848 IFS="$ac_save_IFS"
11849 test -z "$ac_dir" && ac_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11852 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11853 (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
11854 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11855 break 2
11856 fi
11857 fi
11858 done
11859 done
11860 IFS="$ac_save_IFS"
11861 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11862 ;;
11863esac
20e95c23 11864fi
d7040cdb
SE
11865XGETTEXT="$ac_cv_path_XGETTEXT"
11866if test "$XGETTEXT" != ":"; then
11867 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11868echo "${ECHO_T}$XGETTEXT" >&6
11869else
11870 echo "$as_me:$LINENO: result: no" >&5
11871echo "${ECHO_T}no" >&6
11872fi
11873
11874 rm -f messages.po
11875
979273e3 11876
d7040cdb
SE
11877# Prepare PATH_SEPARATOR.
11878# The user is always right.
11879if test "${PATH_SEPARATOR+set}" != set; then
11880 echo "#! /bin/sh" >conf$$.sh
11881 echo "exit 0" >>conf$$.sh
11882 chmod +x conf$$.sh
11883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11884 PATH_SEPARATOR=';'
11885 else
11886 PATH_SEPARATOR=:
11887 fi
11888 rm -f conf$$.sh
252b5132 11889fi
979273e3 11890
d7040cdb
SE
11891# Find out how to test for executable files. Don't use a zero-byte file,
11892# as systems may use methods other than mode bits to determine executability.
11893cat >conf$$.file <<_ASEOF
11894#! /bin/sh
11895exit 0
11896_ASEOF
11897chmod +x conf$$.file
11898if test -x conf$$.file >/dev/null 2>&1; then
11899 ac_executable_p="test -x"
252b5132 11900else
d7040cdb
SE
11901 ac_executable_p="test -f"
11902fi
11903rm -f conf$$.file
252b5132 11904
d7040cdb
SE
11905# Extract the first word of "msgmerge", so it can be a program name with args.
11906set dummy msgmerge; ac_word=$2
11907echo "$as_me:$LINENO: checking for $ac_word" >&5
11908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11909if test "${ac_cv_path_MSGMERGE+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11911else
d7040cdb
SE
11912 case "$MSGMERGE" in
11913 [\\/]* | ?:[\\/]*)
11914 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11915 ;;
11916 *)
11917 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11918 for ac_dir in $PATH; do
11919 IFS="$ac_save_IFS"
11920 test -z "$ac_dir" && ac_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11923 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11924 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11925 break 2
11926 fi
11927 fi
11928 done
11929 done
11930 IFS="$ac_save_IFS"
11931 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11932 ;;
11933esac
20e95c23 11934fi
d7040cdb
SE
11935MSGMERGE="$ac_cv_path_MSGMERGE"
11936if test "$MSGMERGE" != ":"; then
11937 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11938echo "${ECHO_T}$MSGMERGE" >&6
11939else
11940 echo "$as_me:$LINENO: result: no" >&5
11941echo "${ECHO_T}no" >&6
20e95c23 11942fi
252b5132 11943
979273e3 11944
d7040cdb
SE
11945 if test "$GMSGFMT" != ":"; then
11946 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11947 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11948 : ;
11949 else
11950 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11951 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11952echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11953 GMSGFMT=":"
11954 fi
11955 fi
979273e3 11956
d7040cdb
SE
11957 if test "$XGETTEXT" != ":"; then
11958 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11959 (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
11960 : ;
11961 else
11962 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11963echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11964 XGETTEXT=":"
11965 fi
11966 rm -f messages.po
11967 fi
979273e3 11968
d7040cdb 11969 ac_config_commands="$ac_config_commands default-1"
c46f8c51 11970
c46f8c51 11971
979273e3 11972
d7040cdb 11973. ${srcdir}/../bfd/configure.host
252b5132 11974
d7040cdb
SE
11975# Put a plausible default for CC_FOR_BUILD in Makefile.
11976if test -z "$CC_FOR_BUILD"; then
11977 if test "x$cross_compiling" = "xno"; then
11978 CC_FOR_BUILD='$(CC)'
11979 else
11980 CC_FOR_BUILD=gcc
11981 fi
11982fi
252b5132 11983
d7040cdb
SE
11984# Also set EXEEXT_FOR_BUILD.
11985if test "x$cross_compiling" = "xno"; then
11986 EXEEXT_FOR_BUILD='$(EXEEXT)'
11987else
11988 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11989echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11990if test "${bfd_cv_build_exeext+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11992else
11993 rm -f conftest*
11994 echo 'int main () { return 0; }' > conftest.c
11995 bfd_cv_build_exeext=
11996 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11997 for file in conftest.*; do
11998 case $file in
11999 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12000 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12001 esac
12002 done
12003 rm -f conftest*
12004 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12005fi
12006echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12007echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12008 EXEEXT_FOR_BUILD=""
12009 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12010fi
252b5132 12011
979273e3 12012
252b5132 12013
d7040cdb
SE
12014# Find a good install program. We prefer a C program (faster),
12015# so one script is as good as another. But avoid the broken or
12016# incompatible versions:
12017# SysV /etc/install, /usr/sbin/install
12018# SunOS /usr/etc/install
12019# IRIX /sbin/install
12020# AIX /bin/install
12021# AmigaOS /C/install, which installs bootblocks on floppy discs
12022# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12023# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12024# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12025# OS/2's system install, which has a completely different semantic
12026# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 12027# Reject install programs that cannot install multiple files.
d7040cdb
SE
12028echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12029echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12030if test -z "$INSTALL"; then
12031if test "${ac_cv_path_install+set}" = set; then
979273e3 12032 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 12033else
d7040cdb
SE
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035for as_dir in $PATH
12036do
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 # Account for people who put trailing slashes in PATH elements.
12040case $as_dir/ in
12041 ./ | .// | /cC/* | \
12042 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12043 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12044 /usr/ucb/* ) ;;
12045 *)
12046 # OSF1 and SCO ODT 3.0 have their own names for install.
12047 # Don't use installbsd from OSF since it installs stuff as root
12048 # by default.
12049 for ac_prog in ginstall scoinst install; do
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12052 if test $ac_prog = install &&
12053 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12054 # AIX install. It has an incompatible calling convention.
12055 :
12056 elif test $ac_prog = install &&
12057 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12058 # program-specific install script used by HP pwplus--don't use.
12059 :
12060 else
58c85be7
RW
12061 rm -rf conftest.one conftest.two conftest.dir
12062 echo one > conftest.one
12063 echo two > conftest.two
12064 mkdir conftest.dir
12065 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12066 test -s conftest.one && test -s conftest.two &&
12067 test -s conftest.dir/conftest.one &&
12068 test -s conftest.dir/conftest.two
12069 then
12070 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12071 break 3
12072 fi
d7040cdb
SE
12073 fi
12074 fi
12075 done
12076 done
12077 ;;
12078esac
12079done
12080
58c85be7 12081rm -rf conftest.one conftest.two conftest.dir
979273e3 12082
979273e3 12083fi
d7040cdb
SE
12084 if test "${ac_cv_path_install+set}" = set; then
12085 INSTALL=$ac_cv_path_install
12086 else
58c85be7
RW
12087 # As a last resort, use the slow shell script. Don't cache a
12088 # value for INSTALL within a source directory, because that will
d7040cdb 12089 # break other packages using the cache if that directory is
58c85be7 12090 # removed, or if the value is a relative name.
d7040cdb
SE
12091 INSTALL=$ac_install_sh
12092 fi
b6849f55 12093fi
d7040cdb
SE
12094echo "$as_me:$LINENO: result: $INSTALL" >&5
12095echo "${ECHO_T}$INSTALL" >&6
b6849f55 12096
d7040cdb
SE
12097# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12098# It thinks the first close brace ends the variable substitution.
12099test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b6849f55 12100
d7040cdb
SE
12101test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12102
12103test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
979273e3 12104
252b5132 12105
979273e3
NN
12106
12107
12108
40fb9820
L
12109
12110for ac_header in string.h strings.h stdlib.h limits.h
252b5132 12111do
979273e3
NN
12112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12113if eval "test \"\${$as_ac_Header+set}\" = set"; then
12114 echo "$as_me:$LINENO: checking for $ac_header" >&5
12115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12116if eval "test \"\${$as_ac_Header+set}\" = set"; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118fi
12119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12121else
12122 # Is the header compilable?
12123echo "$as_me:$LINENO: checking $ac_header usability" >&5
12124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12125cat >conftest.$ac_ext <<_ACEOF
12126/* confdefs.h. */
12127_ACEOF
12128cat confdefs.h >>conftest.$ac_ext
12129cat >>conftest.$ac_ext <<_ACEOF
12130/* end confdefs.h. */
12131$ac_includes_default
12132#include <$ac_header>
12133_ACEOF
12134rm -f conftest.$ac_objext
12135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
8ae85421
AM
12143 { ac_try='test -z "$ac_c_werror_flag"
12144 || test ! -s conftest.err'
979273e3
NN
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_header_compiler=yes
12157else
12158 echo "$as_me: failed program was:" >&5
12159sed 's/^/| /' conftest.$ac_ext >&5
12160
12161ac_header_compiler=no
12162fi
12163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12164echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12165echo "${ECHO_T}$ac_header_compiler" >&6
12166
12167# Is the header present?
12168echo "$as_me:$LINENO: checking $ac_header presence" >&5
12169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12170cat >conftest.$ac_ext <<_ACEOF
12171/* confdefs.h. */
12172_ACEOF
12173cat confdefs.h >>conftest.$ac_ext
12174cat >>conftest.$ac_ext <<_ACEOF
12175/* end confdefs.h. */
12176#include <$ac_header>
12177_ACEOF
12178if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } >/dev/null; then
12186 if test -s conftest.err; then
12187 ac_cpp_err=$ac_c_preproc_warn_flag
12188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12189 else
12190 ac_cpp_err=
12191 fi
252b5132 12192else
979273e3 12193 ac_cpp_err=yes
252b5132 12194fi
979273e3
NN
12195if test -z "$ac_cpp_err"; then
12196 ac_header_preproc=yes
12197else
12198 echo "$as_me: failed program was:" >&5
12199sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 ac_header_preproc=no
252b5132 12202fi
979273e3
NN
12203rm -f conftest.err conftest.$ac_ext
12204echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12205echo "${ECHO_T}$ac_header_preproc" >&6
12206
12207# So? What about this header?
12208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12209 yes:no: )
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12211echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12213echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12214 ac_header_preproc=yes
12215 ;;
12216 no:yes:* )
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12218echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12220echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12222echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12224echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12226echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12228echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12229 (
12230 cat <<\_ASBOX
12231## ------------------------------------------ ##
12232## Report this to the AC_PACKAGE_NAME lists. ##
12233## ------------------------------------------ ##
12234_ASBOX
12235 ) |
12236 sed "s/^/$as_me: WARNING: /" >&2
12237 ;;
12238esac
12239echo "$as_me:$LINENO: checking for $ac_header" >&5
12240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12241if eval "test \"\${$as_ac_Header+set}\" = set"; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12243else
979273e3
NN
12244 eval "$as_ac_Header=\$ac_header_preproc"
12245fi
12246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12248
12249fi
12250if test `eval echo '${'$as_ac_Header'}'` = yes; then
12251 cat >>confdefs.h <<_ACEOF
12252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12253_ACEOF
12254
252b5132 12255fi
979273e3 12256
252b5132
RH
12257done
12258
12259
4bd60896
JG
12260echo "$as_me:$LINENO: checking whether basename is declared" >&5
12261echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
12262if test "${ac_cv_have_decl_basename+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264else
12265 cat >conftest.$ac_ext <<_ACEOF
12266/* confdefs.h. */
12267_ACEOF
12268cat confdefs.h >>conftest.$ac_ext
12269cat >>conftest.$ac_ext <<_ACEOF
12270/* end confdefs.h. */
db5152b4 12271$ac_includes_default
4bd60896
JG
12272int
12273main ()
12274{
12275#ifndef basename
12276 char *p = (char *) basename;
12277#endif
12278
12279 ;
12280 return 0;
12281}
12282_ACEOF
12283rm -f conftest.$ac_objext
12284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285 (eval $ac_compile) 2>conftest.er1
12286 ac_status=$?
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } &&
12292 { ac_try='test -z "$ac_c_werror_flag"
12293 || test ! -s conftest.err'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest.$ac_objext'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 ac_cv_have_decl_basename=yes
12306else
12307 echo "$as_me: failed program was:" >&5
12308sed 's/^/| /' conftest.$ac_ext >&5
12309
12310ac_cv_have_decl_basename=no
12311fi
12312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12313fi
12314echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
12315echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
12316if test $ac_cv_have_decl_basename = yes; then
12317
12318cat >>confdefs.h <<_ACEOF
12319#define HAVE_DECL_BASENAME 1
12320_ACEOF
12321
12322
12323else
12324 cat >>confdefs.h <<_ACEOF
12325#define HAVE_DECL_BASENAME 0
12326_ACEOF
12327
12328
dabbade6
L
12329fi
12330echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12331echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12332if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12334else
12335 cat >conftest.$ac_ext <<_ACEOF
12336/* confdefs.h. */
12337_ACEOF
12338cat confdefs.h >>conftest.$ac_ext
12339cat >>conftest.$ac_ext <<_ACEOF
12340/* end confdefs.h. */
12341$ac_includes_default
12342int
12343main ()
12344{
12345#ifndef stpcpy
12346 char *p = (char *) stpcpy;
12347#endif
12348
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 ac_cv_have_decl_stpcpy=yes
12376else
12377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
12380ac_cv_have_decl_stpcpy=no
12381fi
12382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12383fi
12384echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12385echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12386if test $ac_cv_have_decl_stpcpy = yes; then
12387
12388cat >>confdefs.h <<_ACEOF
12389#define HAVE_DECL_STPCPY 1
12390_ACEOF
12391
12392
12393else
12394 cat >>confdefs.h <<_ACEOF
12395#define HAVE_DECL_STPCPY 0
12396_ACEOF
12397
12398
4bd60896
JG
12399fi
12400
12401
12402
6e31aea3
BE
12403cgen_maint=no
12404cgendir='$(srcdir)/../cgen'
12405
12406# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
12407if test "${enable_cgen_maint+set}" = set; then
12408 enableval="$enable_cgen_maint"
12409 case "${enableval}" in
12410 yes) cgen_maint=yes ;;
12411 no) cgen_maint=no ;;
12412 *)
12413 # argument is cgen install directory (not implemented yet).
12414 # Having a `share' directory might be more appropriate for the .scm,
12415 # .cpu, etc. files.
12416 cgen_maint=yes
12417 cgendir=${cgen_maint}/lib/cgen
12418 ;;
12419esac
979273e3 12420fi;
6e31aea3
BE
12421
12422if test x${cgen_maint} = xyes; then
12423 CGEN_MAINT_TRUE=
12424 CGEN_MAINT_FALSE='#'
12425else
12426 CGEN_MAINT_TRUE='#'
12427 CGEN_MAINT_FALSE=
12428fi
12429
252b5132 12430
8ae85421 12431
252b5132
RH
12432using_cgen=no
12433
45d42143
NC
12434# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12435SHARED_LDFLAGS=
12436SHARED_LIBADD=
12437SHARED_DEPENDENCIES=
12438if test "$enable_shared" = "yes"; then
12439 case "${host}" in
12440 *-*-cygwin*)
12441 SHARED_LDFLAGS="-no-undefined"
12442 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
12443 ;;
0e336180
NC
12444 *-*-darwin*)
12445 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib"
12446 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12447 ;;
45d42143 12448 *)
0e336180
NC
12449 case "$host_vendor" in
12450 hp)
12451 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl"
12452 ;;
12453 *)
4267b19f
NC
12454 # It is tempting to include libiberty here as well, but
12455 # that library is only built as a static version.
12456 # Including it here would insert text relocations into
12457 # the opcodes library, which is undesirable.
12458 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
0e336180
NC
12459 ;;
12460 esac
4267b19f 12461 SHARED_DEPENDENCIES="../bfd/libbfd.la"
45d42143
NC
12462 ;;
12463 esac
12464fi
12465
252b5132
RH
12466
12467
12468
12469# target-specific stuff:
12470
12471# Canonicalize the secondary target names.
12472if test -n "$enable_targets" ; then
12473 for targ in `echo $enable_targets | sed 's/,/ /g'`
12474 do
6d83c84b 12475 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12476 if test -n "$result" ; then
12477 canon_targets="$canon_targets $result"
12478 else
12479 # Allow targets that config.sub doesn't recognize, like "all".
12480 canon_targets="$canon_targets $targ"
12481 fi
12482 done
12483fi
12484
12485all_targets=false
12486selarchs=
12487for targ in $target $canon_targets
12488do
12489 if test "x$targ" = "xall" ; then
12490 all_targets=true
12491 else
12492 . $srcdir/../bfd/config.bfd
12493 selarchs="$selarchs $targ_archs"
12494 fi
979273e3 12495done
252b5132
RH
12496
12497# Utility var, documents generic cgen support files.
12498
3609e0fe 12499cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
12500
12501# We don't do any links based on the target system, just makefile config.
12502
12503if test x${all_targets} = xfalse ; then
12504
12505 # Target architecture .o files.
12506 ta=
12507
12508 for arch in $selarchs
12509 do
12510 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12511 archdefs="$archdefs -DARCH_$ad"
12512 case "$arch" in
252b5132 12513 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 12514 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 12515 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 12516 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 12517 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3d3d428f 12518 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
3609e0fe 12519 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
1fe1f39c 12520 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
12521 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12522 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 12523 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
252b5132 12524 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
c5f5f1f4 12525 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
252b5132
RH
12526 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
12527 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
12528 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 12529 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
0b1cf022 12530 bfd_i386_arch) ta="$ta i386-dis.lo i386-opc.lo" ;;
9d751335 12531 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 12532 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 12533 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 12534 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
47b1a55a 12535 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
84e94c90 12536 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
c5f5f1f4 12537 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 12538 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
60bcf0fa
NC
12539 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12540 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
12541 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
12542 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
7499d566 12543 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
252b5132 12544 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
bd2f2e55 12545 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
252b5132 12546 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3c3bdf30 12547 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
12548 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12549 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 12550 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
2469cfa2 12551 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
252b5132 12552 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
87e6d782 12553 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
3b16e843 12554 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
e135f41b 12555 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
1e608f98 12556 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 12557 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 12558 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 12559 bfd_pyramid_arch) ;;
252b5132
RH
12560 bfd_romp_arch) ;;
12561 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 12562 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
1c0d3aa6 12563 bfd_score_arch) ta="$ta score-dis.lo" ;;
09919455 12564 bfd_sh_arch)
d28847ce 12565 # We can't decide what we want just from the CPU family.
e8b872bb
AO
12566 # We want SH5 support unless a specific version of sh is
12567 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
12568 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
12569 for t in $target $canon_targets; do
12570 case $t in
5b0e55b6 12571 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 12572 sh-*-linux* | shl-*-linux*)
d28847ce 12573 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
12574 archdefs="$archdefs -DINCLUDE_SHMEDIA"
12575 break;;
12576 esac;
12577 done
d3f1a427 12578 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
252b5132 12579 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
e9f53129 12580 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
252b5132
RH
12581 bfd_tahoe_arch) ;;
12582 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
026df7c5 12583 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 12584 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
252b5132
RH
12585 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
12586 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12587 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12588 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12589 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
12590 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
12591 bfd_we32k_arch) ;;
d70c5fc7 12592 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
93fbbb04 12593 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 12594 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 12595 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132
RH
12596 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
12597
12598 "") ;;
979273e3
NN
12599 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
12600echo "$as_me: error: *** unknown target architecture $arch" >&2;}
12601 { (exit 1); exit 1; }; } ;;
252b5132
RH
12602 esac
12603 done
12604
12605 if test $using_cgen = yes ; then
12606 ta="$ta $cgen_files"
12607 fi
12608
12609 # Weed out duplicate .o files.
12610 f=""
12611 for i in $ta ; do
12612 case " $f " in
12613 *" $i "*) ;;
12614 *) f="$f $i" ;;
12615 esac
12616 done
12617 ta="$f"
12618
12619 # And duplicate -D flags.
12620 f=""
12621 for i in $archdefs ; do
12622 case " $f " in
12623 *" $i "*) ;;
12624 *) f="$f $i" ;;
12625 esac
12626 done
12627 archdefs="$f"
12628
12629 BFD_MACHINES="$ta"
12630
12631else # all_targets is true
12632 archdefs=-DARCH_all
12633 BFD_MACHINES='$(ALL_MACHINES)'
12634fi
12635
12636
12637
12638
979273e3
NN
12639 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12640
979273e3 12641cat >confcache <<\_ACEOF
252b5132
RH
12642# This file is a shell script that caches the results of configure
12643# tests run on this system so they can be shared between configure
979273e3
NN
12644# scripts and configure runs, see configure's option --config-cache.
12645# It is not useful on other systems. If it contains results you don't
12646# want to keep, you may remove or edit it.
252b5132 12647#
979273e3
NN
12648# config.status only pays attention to the cache file if you give it
12649# the --recheck option to rerun configure.
252b5132 12650#
979273e3
NN
12651# `ac_cv_env_foo' variables (set or unset) will be overridden when
12652# loading this file, other *unset* `ac_cv_foo' will be assigned the
12653# following values.
12654
12655_ACEOF
12656
252b5132
RH
12657# The following way of writing the cache mishandles newlines in values,
12658# but we know of no workaround that is simple, portable, and efficient.
12659# So, don't put newlines in cache variables' values.
12660# Ultrix sh set writes to stderr and can't be redirected directly,
12661# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
12662{
12663 (set) 2>&1 |
12664 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12665 *ac_space=\ *)
12666 # `set' does not quote correctly, so add quotes (double-quote
12667 # substitution turns \\\\ into \\, and sed turns \\ into \).
12668 sed -n \
12669 "s/'/'\\\\''/g;
12670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12671 ;;
12672 *)
12673 # `set' quotes correctly as required by POSIX, so do not add quotes.
12674 sed -n \
12675 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12676 ;;
12677 esac;
12678} |
12679 sed '
12680 t clear
12681 : clear
12682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12683 t end
12684 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12685 : end' >>confcache
12686if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 12687 if test -w $cache_file; then
979273e3
NN
12688 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12689 cat confcache >$cache_file
252b5132
RH
12690 else
12691 echo "not updating unwritable cache $cache_file"
12692 fi
12693fi
12694rm -f confcache
12695
252b5132
RH
12696test "x$prefix" = xNONE && prefix=$ac_default_prefix
12697# Let make expand exec_prefix.
12698test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12699
979273e3
NN
12700# VPATH may cause trouble with some makes, so we remove $(srcdir),
12701# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12702# trailing colons and then remove the whole line if VPATH becomes empty
12703# (actually we leave an empty line to preserve line numbers).
252b5132 12704if test "x$srcdir" = x.; then
979273e3
NN
12705 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12706s/:*\$(srcdir):*/:/;
12707s/:*\${srcdir}:*/:/;
12708s/:*@srcdir@:*/:/;
12709s/^\([^=]*=[ ]*\):*/\1/;
12710s/:*$//;
12711s/^[^=]*=[ ]*$//;
12712}'
252b5132
RH
12713fi
12714
252b5132
RH
12715DEFS=-DHAVE_CONFIG_H
12716
979273e3
NN
12717ac_libobjs=
12718ac_ltlibobjs=
12719for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12720 # 1. Remove the extension, and $U if already installed.
12721 ac_i=`echo "$ac_i" |
12722 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12723 # 2. Add them.
12724 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12725 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12726done
12727LIBOBJS=$ac_libobjs
252b5132 12728
979273e3
NN
12729LTLIBOBJS=$ac_ltlibobjs
12730
12731
8ae85421
AM
12732if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12733 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12734Usually this means the macro was only invoked conditionally." >&5
12735echo "$as_me: error: conditional \"AMDEP\" was never defined.
12736Usually this means the macro was only invoked conditionally." >&2;}
12737 { (exit 1); exit 1; }; }
12738fi
12739if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12740 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12741Usually this means the macro was only invoked conditionally." >&5
12742echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12743Usually this means the macro was only invoked conditionally." >&2;}
12744 { (exit 1); exit 1; }; }
12745fi
12746if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12747 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12748Usually this means the macro was only invoked conditionally." >&5
12749echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12750Usually this means the macro was only invoked conditionally." >&2;}
12751 { (exit 1); exit 1; }; }
12752fi
12753if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12754 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12755Usually this means the macro was only invoked conditionally." >&5
12756echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12757Usually this means the macro was only invoked conditionally." >&2;}
12758 { (exit 1); exit 1; }; }
12759fi
12760if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
12761 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
12762Usually this means the macro was only invoked conditionally." >&5
12763echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
12764Usually this means the macro was only invoked conditionally." >&2;}
12765 { (exit 1); exit 1; }; }
12766fi
979273e3
NN
12767
12768: ${CONFIG_STATUS=./config.status}
12769ac_clean_files_save=$ac_clean_files
12770ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12771{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12772echo "$as_me: creating $CONFIG_STATUS" >&6;}
12773cat >$CONFIG_STATUS <<_ACEOF
12774#! $SHELL
12775# Generated by $as_me.
252b5132 12776# Run this file to recreate the current configuration.
252b5132 12777# Compiler output produced by configure, useful for debugging
979273e3 12778# configure, is in config.log if it exists.
252b5132 12779
979273e3
NN
12780debug=false
12781ac_cs_recheck=false
12782ac_cs_silent=false
12783SHELL=\${CONFIG_SHELL-$SHELL}
12784_ACEOF
12785
12786cat >>$CONFIG_STATUS <<\_ACEOF
12787## --------------------- ##
12788## M4sh Initialization. ##
12789## --------------------- ##
12790
12791# Be Bourne compatible
12792if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12793 emulate sh
12794 NULLCMD=:
12795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12796 # is contrary to our usage. Disable this feature.
12797 alias -g '${1+"$@"}'='"$@"'
12798elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12799 set -o posix
12800fi
12801DUALCASE=1; export DUALCASE # for MKS sh
12802
12803# Support unset when possible.
12804if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12805 as_unset=unset
12806else
12807 as_unset=false
12808fi
12809
12810
12811# Work around bugs in pre-3.0 UWIN ksh.
12812$as_unset ENV MAIL MAILPATH
12813PS1='$ '
12814PS2='> '
12815PS4='+ '
12816
12817# NLS nuisances.
12818for as_var in \
12819 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12820 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12821 LC_TELEPHONE LC_TIME
252b5132 12822do
979273e3
NN
12823 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12824 eval $as_var=C; export $as_var
12825 else
12826 $as_unset $as_var
12827 fi
252b5132
RH
12828done
12829
979273e3
NN
12830# Required to use basename.
12831if expr a : '\(a\)' >/dev/null 2>&1; then
12832 as_expr=expr
12833else
12834 as_expr=false
12835fi
12836
12837if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12838 as_basename=basename
12839else
12840 as_basename=false
12841fi
252b5132 12842
252b5132 12843
979273e3
NN
12844# Name of the executable.
12845as_me=`$as_basename "$0" ||
12846$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12847 X"$0" : 'X\(//\)$' \| \
12848 X"$0" : 'X\(/\)$' \| \
12849 . : '\(.\)' 2>/dev/null ||
12850echo X/"$0" |
12851 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12852 /^X\/\(\/\/\)$/{ s//\1/; q; }
12853 /^X\/\(\/\).*/{ s//\1/; q; }
12854 s/.*/./; q'`
252b5132 12855
252b5132 12856
979273e3
NN
12857# PATH needs CR, and LINENO needs CR and PATH.
12858# Avoid depending upon Character Ranges.
12859as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12860as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12861as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12862as_cr_digits='0123456789'
12863as_cr_alnum=$as_cr_Letters$as_cr_digits
12864
12865# The user is always right.
12866if test "${PATH_SEPARATOR+set}" != set; then
12867 echo "#! /bin/sh" >conf$$.sh
12868 echo "exit 0" >>conf$$.sh
12869 chmod +x conf$$.sh
12870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12871 PATH_SEPARATOR=';'
252b5132 12872 else
979273e3
NN
12873 PATH_SEPARATOR=:
12874 fi
12875 rm -f conf$$.sh
12876fi
12877
12878
12879 as_lineno_1=$LINENO
12880 as_lineno_2=$LINENO
12881 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12882 test "x$as_lineno_1" != "x$as_lineno_2" &&
12883 test "x$as_lineno_3" = "x$as_lineno_2" || {
12884 # Find who we are. Look in the path if we contain no path at all
12885 # relative or not.
12886 case $0 in
12887 *[\\/]* ) as_myself=$0 ;;
12888 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889for as_dir in $PATH
12890do
12891 IFS=$as_save_IFS
12892 test -z "$as_dir" && as_dir=.
12893 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12894done
12895
12896 ;;
12897 esac
12898 # We did not find ourselves, most probably we were run as `sh COMMAND'
12899 # in which case we are not to be found in the path.
12900 if test "x$as_myself" = x; then
12901 as_myself=$0
12902 fi
12903 if test ! -f "$as_myself"; then
12904 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12905echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12906 { (exit 1); exit 1; }; }
252b5132 12907 fi
979273e3
NN
12908 case $CONFIG_SHELL in
12909 '')
12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12912do
12913 IFS=$as_save_IFS
12914 test -z "$as_dir" && as_dir=.
12915 for as_base in sh bash ksh sh5; do
12916 case $as_dir in
12917 /*)
12918 if ("$as_dir/$as_base" -c '
12919 as_lineno_1=$LINENO
12920 as_lineno_2=$LINENO
12921 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12922 test "x$as_lineno_1" != "x$as_lineno_2" &&
12923 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12924 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12925 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12926 CONFIG_SHELL=$as_dir/$as_base
12927 export CONFIG_SHELL
12928 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12929 fi;;
12930 esac
12931 done
12932done
12933;;
12934 esac
12935
12936 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12937 # uniformly replaced by the line number. The first 'sed' inserts a
12938 # line-number line before each line; the second 'sed' does the real
12939 # work. The second script uses 'N' to pair each line-number line
12940 # with the numbered line, and appends trailing '-' during
12941 # substitution so that $LINENO is not a special case at line end.
12942 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12943 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12944 sed '=' <$as_myself |
12945 sed '
12946 N
12947 s,$,-,
12948 : loop
12949 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12950 t loop
12951 s,-$,,
12952 s,^['$as_cr_digits']*\n,,
12953 ' >$as_me.lineno &&
12954 chmod +x $as_me.lineno ||
12955 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12956echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12957 { (exit 1); exit 1; }; }
12958
12959 # Don't try to exec as it changes $[0], causing all sort of problems
12960 # (the dirname of $[0] is not the place where we might find the
12961 # original and so on. Autoconf is especially sensible to this).
12962 . ./$as_me.lineno
12963 # Exit status is that of the last command.
12964 exit
12965}
12966
12967
12968case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12969 *c*,-n*) ECHO_N= ECHO_C='
12970' ECHO_T=' ' ;;
12971 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12972 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12973esac
12974
12975if expr a : '\(a\)' >/dev/null 2>&1; then
12976 as_expr=expr
12977else
12978 as_expr=false
12979fi
12980
12981rm -f conf$$ conf$$.exe conf$$.file
12982echo >conf$$.file
12983if ln -s conf$$.file conf$$ 2>/dev/null; then
12984 # We could just check for DJGPP; but this test a) works b) is more generic
12985 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12986 if test -f conf$$.exe; then
12987 # Don't use ln at all; we don't have any links
12988 as_ln_s='cp -p'
252b5132 12989 else
979273e3 12990 as_ln_s='ln -s'
252b5132 12991 fi
979273e3
NN
12992elif ln conf$$.file conf$$ 2>/dev/null; then
12993 as_ln_s=ln
12994else
12995 as_ln_s='cp -p'
12996fi
12997rm -f conf$$ conf$$.exe conf$$.file
12998
12999if mkdir -p . 2>/dev/null; then
13000 as_mkdir_p=:
13001else
13002 test -d ./-p && rmdir ./-p
13003 as_mkdir_p=false
13004fi
13005
13006as_executable_p="test -f"
13007
13008# Sed expression to map a string onto a valid CPP name.
13009as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13010
13011# Sed expression to map a string onto a valid variable name.
13012as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13013
13014
13015# IFS
13016# We need space, tab and new line, in precisely that order.
13017as_nl='
13018'
13019IFS=" $as_nl"
13020
13021# CDPATH.
13022$as_unset CDPATH
13023
13024exec 6>&1
13025
13026# Open the log real soon, to keep \$[0] and so on meaningful, and to
13027# report actual input values of CONFIG_FILES etc. instead of their
13028# values after options handling. Logging --version etc. is OK.
13029exec 5>>config.log
13030{
13031 echo
13032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13033## Running $as_me. ##
13034_ASBOX
13035} >&5
13036cat >&5 <<_CSEOF
13037
13038This file was extended by $as_me, which was
13039generated by GNU Autoconf 2.59. Invocation command line was
13040
13041 CONFIG_FILES = $CONFIG_FILES
13042 CONFIG_HEADERS = $CONFIG_HEADERS
13043 CONFIG_LINKS = $CONFIG_LINKS
13044 CONFIG_COMMANDS = $CONFIG_COMMANDS
13045 $ $0 $@
13046
13047_CSEOF
13048echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13049echo >&5
13050_ACEOF
13051
13052# Files that config.status was made for.
13053if test -n "$ac_config_files"; then
13054 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13055fi
13056
13057if test -n "$ac_config_headers"; then
13058 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13059fi
13060
13061if test -n "$ac_config_links"; then
13062 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13063fi
13064
13065if test -n "$ac_config_commands"; then
13066 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13067fi
13068
13069cat >>$CONFIG_STATUS <<\_ACEOF
13070
13071ac_cs_usage="\
13072\`$as_me' instantiates files from templates according to the
13073current configuration.
13074
13075Usage: $0 [OPTIONS] [FILE]...
13076
13077 -h, --help print this help, then exit
13078 -V, --version print version number, then exit
13079 -q, --quiet do not print progress messages
13080 -d, --debug don't remove temporary files
13081 --recheck update $as_me by reconfiguring in the same conditions
13082 --file=FILE[:TEMPLATE]
13083 instantiate the configuration file FILE
13084 --header=FILE[:TEMPLATE]
13085 instantiate the configuration header FILE
13086
13087Configuration files:
13088$config_files
13089
13090Configuration headers:
13091$config_headers
13092
13093Configuration commands:
13094$config_commands
13095
13096Report bugs to <bug-autoconf@gnu.org>."
13097_ACEOF
13098
13099cat >>$CONFIG_STATUS <<_ACEOF
13100ac_cs_version="\\
13101config.status
13102configured by $0, generated by GNU Autoconf 2.59,
13103 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13104
13105Copyright (C) 2003 Free Software Foundation, Inc.
13106This config.status script is free software; the Free Software Foundation
13107gives unlimited permission to copy, distribute and modify it."
13108srcdir=$srcdir
13109INSTALL="$INSTALL"
13110_ACEOF
13111
13112cat >>$CONFIG_STATUS <<\_ACEOF
13113# If no file are specified by the user, then we need to provide default
13114# value. By we need to know if files were specified by the user.
13115ac_need_defaults=:
13116while test $# != 0
13117do
13118 case $1 in
13119 --*=*)
13120 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13121 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13122 ac_shift=:
13123 ;;
13124 -*)
13125 ac_option=$1
13126 ac_optarg=$2
13127 ac_shift=shift
13128 ;;
13129 *) # This is not an option, so the user has probably given explicit
13130 # arguments.
13131 ac_option=$1
13132 ac_need_defaults=false;;
13133 esac
13134
13135 case $ac_option in
13136 # Handling of the options.
13137_ACEOF
13138cat >>$CONFIG_STATUS <<\_ACEOF
13139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13140 ac_cs_recheck=: ;;
13141 --version | --vers* | -V )
13142 echo "$ac_cs_version"; exit 0 ;;
13143 --he | --h)
13144 # Conflict between --help and --header
13145 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13146Try \`$0 --help' for more information." >&5
13147echo "$as_me: error: ambiguous option: $1
13148Try \`$0 --help' for more information." >&2;}
13149 { (exit 1); exit 1; }; };;
13150 --help | --hel | -h )
13151 echo "$ac_cs_usage"; exit 0 ;;
13152 --debug | --d* | -d )
13153 debug=: ;;
13154 --file | --fil | --fi | --f )
13155 $ac_shift
13156 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13157 ac_need_defaults=false;;
13158 --header | --heade | --head | --hea )
13159 $ac_shift
13160 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13161 ac_need_defaults=false;;
13162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13163 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13164 ac_cs_silent=: ;;
13165
13166 # This is an error.
13167 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13168Try \`$0 --help' for more information." >&5
13169echo "$as_me: error: unrecognized option: $1
13170Try \`$0 --help' for more information." >&2;}
13171 { (exit 1); exit 1; }; } ;;
13172
13173 *) ac_config_targets="$ac_config_targets $1" ;;
13174
13175 esac
13176 shift
252b5132 13177done
979273e3
NN
13178
13179ac_configure_extra_args=
13180
13181if $ac_cs_silent; then
13182 exec 6>/dev/null
13183 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 13184fi
252b5132 13185
979273e3
NN
13186_ACEOF
13187cat >>$CONFIG_STATUS <<_ACEOF
13188if \$ac_cs_recheck; then
13189 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13190 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13191fi
252b5132 13192
979273e3
NN
13193_ACEOF
13194
13195cat >>$CONFIG_STATUS <<_ACEOF
13196#
13197# INIT-COMMANDS section.
13198#
13199
8ae85421 13200AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13201
13202
13203# The HP-UX ksh and POSIX shell print the target directory to stdout
13204# if CDPATH is set.
13205(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13206
13207sed_quote_subst='$sed_quote_subst'
13208double_quote_subst='$double_quote_subst'
13209delay_variable_subst='$delay_variable_subst'
13210enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13211macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13212macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13213enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13214pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13215enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13216host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13217host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13218host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13219build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13220build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13221build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13222SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13223Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13224GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13225EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13226FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13227LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13228NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13229LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13230max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13231ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13232exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13233lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13234lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13235lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13236reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13237reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
1927a18f 13238OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
13239deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13240file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13241AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13242AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13243STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13244RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13245old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13246old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13247old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13248CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13249CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13250compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13251GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13252lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13253lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13254lt_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"`'
1927a18f 13255lt_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
13256objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13257SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13258ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13259MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13260lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13261lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13262lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13263lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13264lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13265need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
1927a18f
L
13266DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13267NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13268LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13269OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13270OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
13271libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13272shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13273extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13274archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13275enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13276export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13277whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13278compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13279old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13280old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13281archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13282archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13283module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13284module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13285with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13286allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13287no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13288hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13289hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13290hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13291hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13292hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13293hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13294hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13295hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13296inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13297link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13298fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13299always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13300export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13301exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13302include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13303prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13304file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13305variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13306need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13307need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13308version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13309runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13310shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13311shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13312libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13313library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13314soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13315postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13316postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13317finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13318finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13319hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13320sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13321sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13322hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13323enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13324enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13325enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13326old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13327striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13328
13329LTCC='$LTCC'
13330LTCFLAGS='$LTCFLAGS'
13331compiler='$compiler_DEFAULT'
13332
13333# Quote evaled strings.
13334for var in SED \
13335GREP \
13336EGREP \
13337FGREP \
13338LD \
13339NM \
13340LN_S \
13341lt_SP2NL \
13342lt_NL2SP \
13343reload_flag \
1927a18f 13344OBJDUMP \
d7040cdb
SE
13345deplibs_check_method \
13346file_magic_cmd \
13347AR \
13348AR_FLAGS \
13349STRIP \
13350RANLIB \
13351CC \
13352CFLAGS \
13353compiler \
13354lt_cv_sys_global_symbol_pipe \
13355lt_cv_sys_global_symbol_to_cdecl \
13356lt_cv_sys_global_symbol_to_c_name_address \
1927a18f 13357lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
13358SHELL \
13359ECHO \
13360lt_prog_compiler_no_builtin_flag \
13361lt_prog_compiler_wl \
13362lt_prog_compiler_pic \
13363lt_prog_compiler_static \
13364lt_cv_prog_compiler_c_o \
13365need_locks \
1927a18f
L
13366DSYMUTIL \
13367NMEDIT \
13368LIPO \
13369OTOOL \
13370OTOOL64 \
d7040cdb
SE
13371shrext_cmds \
13372export_dynamic_flag_spec \
13373whole_archive_flag_spec \
13374compiler_needs_object \
13375with_gnu_ld \
13376allow_undefined_flag \
13377no_undefined_flag \
13378hardcode_libdir_flag_spec \
13379hardcode_libdir_flag_spec_ld \
13380hardcode_libdir_separator \
13381fix_srcfile_path \
13382exclude_expsyms \
13383include_expsyms \
13384file_list_spec \
13385variables_saved_for_relink \
13386libname_spec \
13387library_names_spec \
13388soname_spec \
13389finish_eval \
13390old_striplib \
13391striplib; do
13392 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13393 *[\\\\\\\`\\"\\\$]*)
13394 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13395 ;;
13396 *)
13397 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13398 ;;
13399 esac
13400done
13401
13402# Double-quote double-evaled strings.
13403for var in reload_cmds \
13404old_postinstall_cmds \
13405old_postuninstall_cmds \
13406old_archive_cmds \
13407extract_expsyms_cmds \
13408old_archive_from_new_cmds \
13409old_archive_from_expsyms_cmds \
13410archive_cmds \
13411archive_expsym_cmds \
13412module_cmds \
13413module_expsym_cmds \
13414export_symbols_cmds \
13415prelink_cmds \
13416postinstall_cmds \
13417postuninstall_cmds \
13418finish_cmds \
13419sys_lib_search_path_spec \
13420sys_lib_dlsearch_path_spec; do
13421 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13422 *[\\\\\\\`\\"\\\$]*)
13423 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13424 ;;
13425 *)
13426 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13427 ;;
13428 esac
13429done
13430
13431# Fix-up fallback echo if it was mangled by the above quoting rules.
13432case \$lt_ECHO in
13433*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13434 ;;
13435esac
13436
13437ac_aux_dir='$ac_aux_dir'
13438xsi_shell='$xsi_shell'
13439lt_shell_append='$lt_shell_append'
13440
13441# See if we are running on zsh, and set the options which allow our
13442# commands through without removal of \ escapes INIT.
13443if test -n "\${ZSH_VERSION+set}" ; then
13444 setopt NO_GLOB_SUBST
13445fi
13446
13447
13448 PACKAGE='$PACKAGE'
13449 VERSION='$VERSION'
13450 TIMESTAMP='$TIMESTAMP'
13451 RM='$RM'
13452 ofile='$ofile'
13453
13454
13455
20e95c23
DJ
13456# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13457 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13458 # from automake.
13459 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13460 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13461 LINGUAS="${LINGUAS-%UNSET%}"
979273e3
NN
13462
13463
13464_ACEOF
13465
13466
13467
13468cat >>$CONFIG_STATUS <<\_ACEOF
13469for ac_config_target in $ac_config_targets
13470do
13471 case "$ac_config_target" in
13472 # Handling of arguments.
13473 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13474 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8ae85421 13475 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 13476 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 13477 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
979273e3
NN
13478 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13479 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13480echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13481 { (exit 1); exit 1; }; };;
252b5132 13482 esac
979273e3 13483done
252b5132 13484
979273e3
NN
13485# If the user did not use the arguments to specify the items to instantiate,
13486# then the envvar interface is used. Set only those that are not.
13487# We use the long form for the default assignment because of an extremely
13488# bizarre bug on SunOS 4.1.3.
13489if $ac_need_defaults; then
13490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13491 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13492 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13493fi
13494
13495# Have a temporary directory for convenience. Make it in the build tree
13496# simply because there is no reason to put it here, and in addition,
13497# creating and moving files from /tmp can sometimes cause problems.
13498# Create a temporary directory, and hook for its removal unless debugging.
13499$debug ||
13500{
13501 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13502 trap '{ (exit 1); exit 1; }' 1 2 13 15
13503}
252b5132 13504
979273e3
NN
13505# Create a (secure) tmp directory for tmp files.
13506
13507{
13508 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13509 test -n "$tmp" && test -d "$tmp"
13510} ||
13511{
13512 tmp=./confstat$$-$RANDOM
13513 (umask 077 && mkdir $tmp)
13514} ||
13515{
13516 echo "$me: cannot create a temporary directory in ." >&2
13517 { (exit 1); exit 1; }
13518}
13519
13520_ACEOF
13521
13522cat >>$CONFIG_STATUS <<_ACEOF
13523
13524#
13525# CONFIG_FILES section.
13526#
13527
13528# No need to generate the scripts if there are no CONFIG_FILES.
13529# This happens for instance when ./config.status config.h
13530if test -n "\$CONFIG_FILES"; then
13531 # Protect against being on the right side of a sed subst in config.status.
13532 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13533 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13534s,@SHELL@,$SHELL,;t t
13535s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13536s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13537s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13538s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13539s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13540s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13541s,@exec_prefix@,$exec_prefix,;t t
13542s,@prefix@,$prefix,;t t
13543s,@program_transform_name@,$program_transform_name,;t t
13544s,@bindir@,$bindir,;t t
13545s,@sbindir@,$sbindir,;t t
13546s,@libexecdir@,$libexecdir,;t t
13547s,@datadir@,$datadir,;t t
13548s,@sysconfdir@,$sysconfdir,;t t
13549s,@sharedstatedir@,$sharedstatedir,;t t
13550s,@localstatedir@,$localstatedir,;t t
13551s,@libdir@,$libdir,;t t
13552s,@includedir@,$includedir,;t t
13553s,@oldincludedir@,$oldincludedir,;t t
13554s,@infodir@,$infodir,;t t
13555s,@mandir@,$mandir,;t t
13556s,@build_alias@,$build_alias,;t t
13557s,@host_alias@,$host_alias,;t t
13558s,@target_alias@,$target_alias,;t t
13559s,@DEFS@,$DEFS,;t t
13560s,@ECHO_C@,$ECHO_C,;t t
13561s,@ECHO_N@,$ECHO_N,;t t
13562s,@ECHO_T@,$ECHO_T,;t t
13563s,@LIBS@,$LIBS,;t t
13564s,@build@,$build,;t t
13565s,@build_cpu@,$build_cpu,;t t
13566s,@build_vendor@,$build_vendor,;t t
13567s,@build_os@,$build_os,;t t
13568s,@host@,$host,;t t
13569s,@host_cpu@,$host_cpu,;t t
13570s,@host_vendor@,$host_vendor,;t t
13571s,@host_os@,$host_os,;t t
13572s,@target@,$target,;t t
13573s,@target_cpu@,$target_cpu,;t t
13574s,@target_vendor@,$target_vendor,;t t
13575s,@target_os@,$target_os,;t t
13576s,@CC@,$CC,;t t
13577s,@CFLAGS@,$CFLAGS,;t t
13578s,@LDFLAGS@,$LDFLAGS,;t t
13579s,@CPPFLAGS@,$CPPFLAGS,;t t
13580s,@ac_ct_CC@,$ac_ct_CC,;t t
13581s,@EXEEXT@,$EXEEXT,;t t
13582s,@OBJEXT@,$OBJEXT,;t t
13583s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13584s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13585s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8ae85421 13586s,@CYGPATH_W@,$CYGPATH_W,;t t
979273e3
NN
13587s,@PACKAGE@,$PACKAGE,;t t
13588s,@VERSION@,$VERSION,;t t
13589s,@ACLOCAL@,$ACLOCAL,;t t
13590s,@AUTOCONF@,$AUTOCONF,;t t
13591s,@AUTOMAKE@,$AUTOMAKE,;t t
13592s,@AUTOHEADER@,$AUTOHEADER,;t t
13593s,@MAKEINFO@,$MAKEINFO,;t t
8ae85421
AM
13594s,@install_sh@,$install_sh,;t t
13595s,@STRIP@,$STRIP,;t t
13596s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13597s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13598s,@mkdir_p@,$mkdir_p,;t t
13599s,@AWK@,$AWK,;t t
979273e3 13600s,@SET_MAKE@,$SET_MAKE,;t t
8ae85421
AM
13601s,@am__leading_dot@,$am__leading_dot,;t t
13602s,@AMTAR@,$AMTAR,;t t
13603s,@am__tar@,$am__tar,;t t
13604s,@am__untar@,$am__untar,;t t
13605s,@DEPDIR@,$DEPDIR,;t t
13606s,@am__include@,$am__include,;t t
13607s,@am__quote@,$am__quote,;t t
13608s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13609s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13610s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13611s,@CCDEPMODE@,$CCDEPMODE,;t t
13612s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13613s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7357c5b6
AM
13614s,@CPP@,$CPP,;t t
13615s,@EGREP@,$EGREP,;t t
979273e3
NN
13616s,@AR@,$AR,;t t
13617s,@ac_ct_AR@,$ac_ct_AR,;t t
13618s,@RANLIB@,$RANLIB,;t t
13619s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
979273e3 13620s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb 13621s,@SED@,$SED,;t t
d7040cdb
SE
13622s,@FGREP@,$FGREP,;t t
13623s,@GREP@,$GREP,;t t
13624s,@LD@,$LD,;t t
13625s,@DUMPBIN@,$DUMPBIN,;t t
13626s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13627s,@NM@,$NM,;t t
13628s,@LN_S@,$LN_S,;t t
1927a18f
L
13629s,@OBJDUMP@,$OBJDUMP,;t t
13630s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb 13631s,@lt_ECHO@,$lt_ECHO,;t t
1927a18f
L
13632s,@DSYMUTIL@,$DSYMUTIL,;t t
13633s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
13634s,@NMEDIT@,$NMEDIT,;t t
13635s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
13636s,@LIPO@,$LIPO,;t t
13637s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
13638s,@OTOOL@,$OTOOL,;t t
13639s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
13640s,@OTOOL64@,$OTOOL64,;t t
13641s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
979273e3 13642s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 13643s,@NO_WERROR@,$NO_WERROR,;t t
979273e3
NN
13644s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13645s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13646s,@MAINT@,$MAINT,;t t
13647s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13648s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13649s,@host_noncanonical@,$host_noncanonical,;t t
13650s,@target_noncanonical@,$target_noncanonical,;t t
979273e3
NN
13651s,@bfdlibdir@,$bfdlibdir,;t t
13652s,@bfdincludedir@,$bfdincludedir,;t t
979273e3 13653s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13654s,@LIBINTL@,$LIBINTL,;t t
13655s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13656s,@INCINTL@,$INCINTL,;t t
979273e3 13657s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13658s,@GMSGFMT@,$GMSGFMT,;t t
13659s,@POSUB@,$POSUB,;t t
979273e3 13660s,@CATALOGS@,$CATALOGS,;t t
979273e3 13661s,@DATADIRNAME@,$DATADIRNAME,;t t
979273e3 13662s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13663s,@GENCAT@,$GENCAT,;t t
13664s,@CATOBJEXT@,$CATOBJEXT,;t t
979273e3 13665s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13666s,@MSGFMT@,$MSGFMT,;t t
13667s,@MSGMERGE@,$MSGMERGE,;t t
979273e3
NN
13668s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13669s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13670s,@HDEFINES@,$HDEFINES,;t t
13671s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
13672s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
13673s,@cgendir@,$cgendir,;t t
45d42143
NC
13674s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
13675s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
13676s,@SHARED_DEPENDENCIES@,$SHARED_DEPENDENCIES,;t t
979273e3
NN
13677s,@archdefs@,$archdefs,;t t
13678s,@BFD_MACHINES@,$BFD_MACHINES,;t t
13679s,@LIBOBJS@,$LIBOBJS,;t t
13680s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13681CEOF
13682
13683_ACEOF
13684
13685 cat >>$CONFIG_STATUS <<\_ACEOF
13686 # Split the substitutions into bite-sized pieces for seds with
13687 # small command number limits, like on Digital OSF/1 and HP-UX.
13688 ac_max_sed_lines=48
13689 ac_sed_frag=1 # Number of current file.
13690 ac_beg=1 # First line for current file.
13691 ac_end=$ac_max_sed_lines # Line after last line for current file.
13692 ac_more_lines=:
13693 ac_sed_cmds=
13694 while $ac_more_lines; do
13695 if test $ac_beg -gt 1; then
13696 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13697 else
13698 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13699 fi
13700 if test ! -s $tmp/subs.frag; then
13701 ac_more_lines=false
13702 else
13703 # The purpose of the label and of the branching condition is to
13704 # speed up the sed processing (if there are no `@' at all, there
13705 # is no need to browse any of the substitutions).
13706 # These are the two extra sed commands mentioned above.
13707 (echo ':t
13708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13709 if test -z "$ac_sed_cmds"; then
13710 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13711 else
13712 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13713 fi
13714 ac_sed_frag=`expr $ac_sed_frag + 1`
13715 ac_beg=$ac_end
13716 ac_end=`expr $ac_end + $ac_max_sed_lines`
13717 fi
13718 done
13719 if test -z "$ac_sed_cmds"; then
13720 ac_sed_cmds=cat
252b5132 13721 fi
979273e3 13722fi # test -n "$CONFIG_FILES"
252b5132 13723
979273e3
NN
13724_ACEOF
13725cat >>$CONFIG_STATUS <<\_ACEOF
13726for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13727 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13728 case $ac_file in
13729 - | *:- | *:-:* ) # input from stdin
13730 cat >$tmp/stdin
13731 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13732 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13733 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13734 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13735 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13736 esac
13737
979273e3
NN
13738 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13739 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13740$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13741 X"$ac_file" : 'X\(//\)[^/]' \| \
13742 X"$ac_file" : 'X\(//\)$' \| \
13743 X"$ac_file" : 'X\(/\)' \| \
13744 . : '\(.\)' 2>/dev/null ||
13745echo X"$ac_file" |
13746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13748 /^X\(\/\/\)$/{ s//\1/; q; }
13749 /^X\(\/\).*/{ s//\1/; q; }
13750 s/.*/./; q'`
13751 { if $as_mkdir_p; then
13752 mkdir -p "$ac_dir"
13753 else
13754 as_dir="$ac_dir"
13755 as_dirs=
13756 while test ! -d "$as_dir"; do
13757 as_dirs="$as_dir $as_dirs"
13758 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13759$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13760 X"$as_dir" : 'X\(//\)[^/]' \| \
13761 X"$as_dir" : 'X\(//\)$' \| \
13762 X"$as_dir" : 'X\(/\)' \| \
13763 . : '\(.\)' 2>/dev/null ||
13764echo X"$as_dir" |
13765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13767 /^X\(\/\/\)$/{ s//\1/; q; }
13768 /^X\(\/\).*/{ s//\1/; q; }
13769 s/.*/./; q'`
13770 done
13771 test ! -n "$as_dirs" || mkdir $as_dirs
13772 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13773echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13774 { (exit 1); exit 1; }; }; }
13775
13776 ac_builddir=.
13777
13778if test "$ac_dir" != .; then
13779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13780 # A "../" for each directory in $ac_dir_suffix.
13781 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13782else
13783 ac_dir_suffix= ac_top_builddir=
13784fi
13785
13786case $srcdir in
13787 .) # No --srcdir option. We are building in place.
13788 ac_srcdir=.
13789 if test -z "$ac_top_builddir"; then
13790 ac_top_srcdir=.
13791 else
13792 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13793 fi ;;
13794 [\\/]* | ?:[\\/]* ) # Absolute path.
13795 ac_srcdir=$srcdir$ac_dir_suffix;
13796 ac_top_srcdir=$srcdir ;;
13797 *) # Relative path.
13798 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13799 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13800esac
13801
13802# Do not use `cd foo && pwd` to compute absolute paths, because
13803# the directories may not exist.
13804case `pwd` in
13805.) ac_abs_builddir="$ac_dir";;
13806*)
13807 case "$ac_dir" in
13808 .) ac_abs_builddir=`pwd`;;
13809 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13810 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13811 esac;;
13812esac
13813case $ac_abs_builddir in
13814.) ac_abs_top_builddir=${ac_top_builddir}.;;
13815*)
13816 case ${ac_top_builddir}. in
13817 .) ac_abs_top_builddir=$ac_abs_builddir;;
13818 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13819 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13820 esac;;
13821esac
13822case $ac_abs_builddir in
13823.) ac_abs_srcdir=$ac_srcdir;;
13824*)
13825 case $ac_srcdir in
13826 .) ac_abs_srcdir=$ac_abs_builddir;;
13827 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13828 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13829 esac;;
13830esac
13831case $ac_abs_builddir in
13832.) ac_abs_top_srcdir=$ac_top_srcdir;;
13833*)
13834 case $ac_top_srcdir in
13835 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13836 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13837 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13838 esac;;
13839esac
252b5132 13840
979273e3
NN
13841
13842 case $INSTALL in
13843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13844 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
13845 esac
13846
8ae85421
AM
13847 if test x"$ac_file" != x-; then
13848 { echo "$as_me:$LINENO: creating $ac_file" >&5
13849echo "$as_me: creating $ac_file" >&6;}
13850 rm -f "$ac_file"
13851 fi
979273e3
NN
13852 # Let's still pretend it is `configure' which instantiates (i.e., don't
13853 # use $as_me), people would be surprised to read:
13854 # /* config.h. Generated by config.status. */
13855 if test x"$ac_file" = x-; then
13856 configure_input=
13857 else
13858 configure_input="$ac_file. "
13859 fi
13860 configure_input=$configure_input"Generated from `echo $ac_file_in |
13861 sed 's,.*/,,'` by configure."
13862
13863 # First look for the input files in the build tree, otherwise in the
13864 # src tree.
13865 ac_file_inputs=`IFS=:
13866 for f in $ac_file_in; do
13867 case $f in
13868 -) echo $tmp/stdin ;;
13869 [\\/$]*)
13870 # Absolute (can't be DOS-style, as IFS=:)
13871 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13872echo "$as_me: error: cannot find input file: $f" >&2;}
13873 { (exit 1); exit 1; }; }
13874 echo "$f";;
13875 *) # Relative
13876 if test -f "$f"; then
13877 # Build tree
13878 echo "$f"
13879 elif test -f "$srcdir/$f"; then
13880 # Source tree
13881 echo "$srcdir/$f"
13882 else
13883 # /dev/null tree
13884 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13885echo "$as_me: error: cannot find input file: $f" >&2;}
13886 { (exit 1); exit 1; }; }
13887 fi;;
13888 esac
13889 done` || { (exit 1); exit 1; }
979273e3
NN
13890_ACEOF
13891cat >>$CONFIG_STATUS <<_ACEOF
13892 sed "$ac_vpsub
13893$extrasub
13894_ACEOF
13895cat >>$CONFIG_STATUS <<\_ACEOF
13896:t
13897/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13898s,@configure_input@,$configure_input,;t t
13899s,@srcdir@,$ac_srcdir,;t t
13900s,@abs_srcdir@,$ac_abs_srcdir,;t t
13901s,@top_srcdir@,$ac_top_srcdir,;t t
13902s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13903s,@builddir@,$ac_builddir,;t t
13904s,@abs_builddir@,$ac_abs_builddir,;t t
13905s,@top_builddir@,$ac_top_builddir,;t t
13906s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13907s,@INSTALL@,$ac_INSTALL,;t t
13908" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13909 rm -f $tmp/stdin
13910 if test x"$ac_file" != x-; then
13911 mv $tmp/out $ac_file
13912 else
13913 cat $tmp/out
13914 rm -f $tmp/out
13915 fi
13916
13917done
13918_ACEOF
13919cat >>$CONFIG_STATUS <<\_ACEOF
13920
13921#
13922# CONFIG_HEADER section.
13923#
252b5132
RH
13924
13925# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13926# NAME is the cpp macro being defined and VALUE is the value it is being given.
13927#
13928# ac_d sets the value in "#define NAME VALUE" lines.
979273e3
NN
13929ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13930ac_dB='[ ].*$,\1#\2'
13931ac_dC=' '
13932ac_dD=',;t'
13933# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13934ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13935ac_uB='$,\1#\2define\3'
252b5132 13936ac_uC=' '
979273e3
NN
13937ac_uD=',;t'
13938
13939for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13940 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
979273e3
NN
13941 case $ac_file in
13942 - | *:- | *:-:* ) # input from stdin
13943 cat >$tmp/stdin
13944 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13946 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13948 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13949 esac
13950
979273e3
NN
13951 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13952echo "$as_me: creating $ac_file" >&6;}
13953
13954 # First look for the input files in the build tree, otherwise in the
13955 # src tree.
13956 ac_file_inputs=`IFS=:
13957 for f in $ac_file_in; do
13958 case $f in
13959 -) echo $tmp/stdin ;;
13960 [\\/$]*)
13961 # Absolute (can't be DOS-style, as IFS=:)
13962 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13963echo "$as_me: error: cannot find input file: $f" >&2;}
13964 { (exit 1); exit 1; }; }
13965 # Do quote $f, to prevent DOS paths from being IFS'd.
13966 echo "$f";;
13967 *) # Relative
13968 if test -f "$f"; then
13969 # Build tree
13970 echo "$f"
13971 elif test -f "$srcdir/$f"; then
13972 # Source tree
13973 echo "$srcdir/$f"
13974 else
13975 # /dev/null tree
13976 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13977echo "$as_me: error: cannot find input file: $f" >&2;}
13978 { (exit 1); exit 1; }; }
13979 fi;;
13980 esac
13981 done` || { (exit 1); exit 1; }
13982 # Remove the trailing spaces.
13983 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13984
13985_ACEOF
13986
13987# Transform confdefs.h into two sed scripts, `conftest.defines' and
13988# `conftest.undefs', that substitutes the proper values into
13989# config.h.in to produce config.h. The first handles `#define'
13990# templates, and the second `#undef' templates.
13991# And first: Protect against being on the right side of a sed subst in
13992# config.status. Protect against being in an unquoted here document
13993# in config.status.
13994rm -f conftest.defines conftest.undefs
13995# Using a here document instead of a string reduces the quoting nightmare.
13996# Putting comments in sed scripts is not portable.
13997#
13998# `end' is used to avoid that the second main sed command (meant for
13999# 0-ary CPP macros) applies to n-ary macro definitions.
14000# See the Autoconf documentation for `clear'.
14001cat >confdef2sed.sed <<\_ACEOF
14002s/[\\&,]/\\&/g
14003s,[\\$`],\\&,g
14004t clear
14005: clear
14006s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14007t end
14008s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14009: end
14010_ACEOF
14011# If some macros were called several times there might be several times
14012# the same #defines, which is useless. Nevertheless, we may not want to
14013# sort them, since we want the *last* AC-DEFINE to be honored.
14014uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14015sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14016rm -f confdef2sed.sed
252b5132
RH
14017
14018# This sed command replaces #undef with comments. This is necessary, for
14019# example, in the case of _POSIX_SOURCE, which is predefined and required
14020# on some systems where configure will not decide to define it.
979273e3
NN
14021cat >>conftest.undefs <<\_ACEOF
14022s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14023_ACEOF
14024
14025# Break up conftest.defines because some shells have a limit on the size
14026# of here documents, and old seds have small limits too (100 cmds).
14027echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14028echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14029echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14030echo ' :' >>$CONFIG_STATUS
14031rm -f conftest.tail
14032while grep . conftest.defines >/dev/null
14033do
14034 # Write a limited-size here document to $tmp/defines.sed.
14035 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14036 # Speed up: don't consider the non `#define' lines.
14037 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14038 # Work around the forget-to-reset-the-flag bug.
14039 echo 't clr' >>$CONFIG_STATUS
14040 echo ': clr' >>$CONFIG_STATUS
14041 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14042 echo 'CEOF
14043 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14044 rm -f $tmp/in
14045 mv $tmp/out $tmp/in
14046' >>$CONFIG_STATUS
14047 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14048 rm -f conftest.defines
14049 mv conftest.tail conftest.defines
14050done
14051rm -f conftest.defines
14052echo ' fi # grep' >>$CONFIG_STATUS
14053echo >>$CONFIG_STATUS
252b5132 14054
979273e3
NN
14055# Break up conftest.undefs because some shells have a limit on the size
14056# of here documents, and old seds have small limits too (100 cmds).
14057echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14058rm -f conftest.tail
979273e3 14059while grep . conftest.undefs >/dev/null
252b5132 14060do
979273e3
NN
14061 # Write a limited-size here document to $tmp/undefs.sed.
14062 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14063 # Speed up: don't consider the non `#undef'
14064 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14065 # Work around the forget-to-reset-the-flag bug.
14066 echo 't clr' >>$CONFIG_STATUS
14067 echo ': clr' >>$CONFIG_STATUS
14068 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14069 echo 'CEOF
979273e3
NN
14070 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14071 rm -f $tmp/in
14072 mv $tmp/out $tmp/in
14073' >>$CONFIG_STATUS
14074 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14075 rm -f conftest.undefs
14076 mv conftest.tail conftest.undefs
252b5132 14077done
979273e3
NN
14078rm -f conftest.undefs
14079
14080cat >>$CONFIG_STATUS <<\_ACEOF
14081 # Let's still pretend it is `configure' which instantiates (i.e., don't
14082 # use $as_me), people would be surprised to read:
14083 # /* config.h. Generated by config.status. */
14084 if test x"$ac_file" = x-; then
14085 echo "/* Generated by configure. */" >$tmp/config.h
14086 else
14087 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14088 fi
14089 cat $tmp/in >>$tmp/config.h
14090 rm -f $tmp/in
14091 if test x"$ac_file" != x-; then
14092 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14093 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14094echo "$as_me: $ac_file is unchanged" >&6;}
14095 else
14096 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14097$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14098 X"$ac_file" : 'X\(//\)[^/]' \| \
14099 X"$ac_file" : 'X\(//\)$' \| \
14100 X"$ac_file" : 'X\(/\)' \| \
14101 . : '\(.\)' 2>/dev/null ||
14102echo X"$ac_file" |
14103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14105 /^X\(\/\/\)$/{ s//\1/; q; }
14106 /^X\(\/\).*/{ s//\1/; q; }
14107 s/.*/./; q'`
14108 { if $as_mkdir_p; then
14109 mkdir -p "$ac_dir"
252b5132 14110 else
979273e3
NN
14111 as_dir="$ac_dir"
14112 as_dirs=
14113 while test ! -d "$as_dir"; do
14114 as_dirs="$as_dir $as_dirs"
14115 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14116$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14117 X"$as_dir" : 'X\(//\)[^/]' \| \
14118 X"$as_dir" : 'X\(//\)$' \| \
14119 X"$as_dir" : 'X\(/\)' \| \
14120 . : '\(.\)' 2>/dev/null ||
14121echo X"$as_dir" |
14122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14123 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14124 /^X\(\/\/\)$/{ s//\1/; q; }
14125 /^X\(\/\).*/{ s//\1/; q; }
14126 s/.*/./; q'`
14127 done
14128 test ! -n "$as_dirs" || mkdir $as_dirs
14129 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14130echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14131 { (exit 1); exit 1; }; }; }
14132
14133 rm -f $ac_file
14134 mv $tmp/config.h $ac_file
252b5132 14135 fi
979273e3
NN
14136 else
14137 cat $tmp/config.h
14138 rm -f $tmp/config.h
252b5132 14139 fi
8ae85421
AM
14140# Compute $ac_file's index in $config_headers.
14141_am_stamp_count=1
14142for _am_header in $config_headers :; do
14143 case $_am_header in
14144 $ac_file | $ac_file:* )
14145 break ;;
14146 * )
14147 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14148 esac
14149done
14150echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14151$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14152 X$ac_file : 'X\(//\)[^/]' \| \
14153 X$ac_file : 'X\(//\)$' \| \
14154 X$ac_file : 'X\(/\)' \| \
14155 . : '\(.\)' 2>/dev/null ||
14156echo X$ac_file |
14157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14159 /^X\(\/\/\)$/{ s//\1/; q; }
14160 /^X\(\/\).*/{ s//\1/; q; }
14161 s/.*/./; q'`/stamp-h$_am_stamp_count
979273e3
NN
14162done
14163_ACEOF
14164cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14165
979273e3
NN
14166#
14167# CONFIG_COMMANDS section.
14168#
14169for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14170 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14171 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14172 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14173$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14174 X"$ac_dest" : 'X\(//\)[^/]' \| \
14175 X"$ac_dest" : 'X\(//\)$' \| \
14176 X"$ac_dest" : 'X\(/\)' \| \
14177 . : '\(.\)' 2>/dev/null ||
14178echo X"$ac_dest" |
14179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14181 /^X\(\/\/\)$/{ s//\1/; q; }
14182 /^X\(\/\).*/{ s//\1/; q; }
14183 s/.*/./; q'`
14184 { if $as_mkdir_p; then
14185 mkdir -p "$ac_dir"
14186 else
14187 as_dir="$ac_dir"
14188 as_dirs=
14189 while test ! -d "$as_dir"; do
14190 as_dirs="$as_dir $as_dirs"
14191 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14193 X"$as_dir" : 'X\(//\)[^/]' \| \
14194 X"$as_dir" : 'X\(//\)$' \| \
14195 X"$as_dir" : 'X\(/\)' \| \
14196 . : '\(.\)' 2>/dev/null ||
14197echo X"$as_dir" |
14198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14200 /^X\(\/\/\)$/{ s//\1/; q; }
14201 /^X\(\/\).*/{ s//\1/; q; }
14202 s/.*/./; q'`
14203 done
14204 test ! -n "$as_dirs" || mkdir $as_dirs
14205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14206echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14207 { (exit 1); exit 1; }; }; }
252b5132 14208
979273e3 14209 ac_builddir=.
252b5132 14210
979273e3
NN
14211if test "$ac_dir" != .; then
14212 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14213 # A "../" for each directory in $ac_dir_suffix.
14214 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14215else
14216 ac_dir_suffix= ac_top_builddir=
14217fi
14218
14219case $srcdir in
14220 .) # No --srcdir option. We are building in place.
14221 ac_srcdir=.
14222 if test -z "$ac_top_builddir"; then
14223 ac_top_srcdir=.
14224 else
14225 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14226 fi ;;
14227 [\\/]* | ?:[\\/]* ) # Absolute path.
14228 ac_srcdir=$srcdir$ac_dir_suffix;
14229 ac_top_srcdir=$srcdir ;;
14230 *) # Relative path.
14231 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14232 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14233esac
14234
14235# Do not use `cd foo && pwd` to compute absolute paths, because
14236# the directories may not exist.
14237case `pwd` in
14238.) ac_abs_builddir="$ac_dir";;
14239*)
14240 case "$ac_dir" in
14241 .) ac_abs_builddir=`pwd`;;
14242 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14243 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14244 esac;;
14245esac
14246case $ac_abs_builddir in
14247.) ac_abs_top_builddir=${ac_top_builddir}.;;
14248*)
14249 case ${ac_top_builddir}. in
14250 .) ac_abs_top_builddir=$ac_abs_builddir;;
14251 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14252 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14253 esac;;
14254esac
14255case $ac_abs_builddir in
14256.) ac_abs_srcdir=$ac_srcdir;;
14257*)
14258 case $ac_srcdir in
14259 .) ac_abs_srcdir=$ac_abs_builddir;;
14260 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14261 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14262 esac;;
14263esac
14264case $ac_abs_builddir in
14265.) ac_abs_top_srcdir=$ac_top_srcdir;;
14266*)
14267 case $ac_top_srcdir in
14268 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14269 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14270 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14271 esac;;
14272esac
14273
14274
14275 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14276echo "$as_me: executing $ac_dest commands" >&6;}
14277 case $ac_dest in
8ae85421
AM
14278 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14279 # Strip MF so we end up with the name of the file.
14280 mf=`echo "$mf" | sed -e 's/:.*$//'`
14281 # Check whether this is an Automake generated Makefile or not.
14282 # We used to match only the files named `Makefile.in', but
14283 # some people rename them; so instead we look at the file content.
14284 # Grep'ing the first line is not enough: some people post-process
14285 # each Makefile.in and add a new line on top of each file to say so.
14286 # So let's grep whole file.
14287 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14288 dirpart=`(dirname "$mf") 2>/dev/null ||
14289$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14290 X"$mf" : 'X\(//\)[^/]' \| \
14291 X"$mf" : 'X\(//\)$' \| \
14292 X"$mf" : 'X\(/\)' \| \
14293 . : '\(.\)' 2>/dev/null ||
14294echo X"$mf" |
14295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14297 /^X\(\/\/\)$/{ s//\1/; q; }
14298 /^X\(\/\).*/{ s//\1/; q; }
14299 s/.*/./; q'`
14300 else
14301 continue
14302 fi
14303 # Extract the definition of DEPDIR, am__include, and am__quote
14304 # from the Makefile without running `make'.
14305 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14306 test -z "$DEPDIR" && continue
14307 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14308 test -z "am__include" && continue
14309 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14310 # When using ansi2knr, U may be empty or an underscore; expand it
14311 U=`sed -n 's/^U = //p' < "$mf"`
14312 # Find all dependency output files, they are included files with
14313 # $(DEPDIR) in their names. We invoke sed twice because it is the
14314 # simplest approach to changing $(DEPDIR) to its actual value in the
14315 # expansion.
14316 for file in `sed -n "
14317 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14318 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14319 # Make sure the directory exists.
14320 test -f "$dirpart/$file" && continue
14321 fdir=`(dirname "$file") 2>/dev/null ||
14322$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14323 X"$file" : 'X\(//\)[^/]' \| \
14324 X"$file" : 'X\(//\)$' \| \
14325 X"$file" : 'X\(/\)' \| \
14326 . : '\(.\)' 2>/dev/null ||
14327echo X"$file" |
14328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14330 /^X\(\/\/\)$/{ s//\1/; q; }
14331 /^X\(\/\).*/{ s//\1/; q; }
14332 s/.*/./; q'`
14333 { if $as_mkdir_p; then
14334 mkdir -p $dirpart/$fdir
14335 else
14336 as_dir=$dirpart/$fdir
14337 as_dirs=
14338 while test ! -d "$as_dir"; do
14339 as_dirs="$as_dir $as_dirs"
14340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14342 X"$as_dir" : 'X\(//\)[^/]' \| \
14343 X"$as_dir" : 'X\(//\)$' \| \
14344 X"$as_dir" : 'X\(/\)' \| \
14345 . : '\(.\)' 2>/dev/null ||
14346echo X"$as_dir" |
14347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14349 /^X\(\/\/\)$/{ s//\1/; q; }
14350 /^X\(\/\).*/{ s//\1/; q; }
14351 s/.*/./; q'`
14352 done
14353 test ! -n "$as_dirs" || mkdir $as_dirs
14354 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14355echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14356 { (exit 1); exit 1; }; }; }
14357
14358 # echo "creating $dirpart/$file"
14359 echo '# dummy' > "$dirpart/$file"
14360 done
14361done
d7040cdb
SE
14362 ;;
14363 libtool )
14364
14365 # See if we are running on zsh, and set the options which allow our
14366 # commands through without removal of \ escapes.
14367 if test -n "${ZSH_VERSION+set}" ; then
14368 setopt NO_GLOB_SUBST
14369 fi
14370
14371 cfgfile="${ofile}T"
14372 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14373 $RM "$cfgfile"
14374
14375 cat <<_LT_EOF >> "$cfgfile"
14376#! $SHELL
14377
14378# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1927a18f 14379# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
14380# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14381# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14382#
1927a18f
L
14383# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14384# 2006, 2007, 2008 Free Software Foundation, Inc.
14385# Written by Gordon Matzigkeit, 1996
d7040cdb 14386#
1927a18f 14387# This file is part of GNU Libtool.
d7040cdb 14388#
1927a18f
L
14389# GNU Libtool is free software; you can redistribute it and/or
14390# modify it under the terms of the GNU General Public License as
14391# published by the Free Software Foundation; either version 2 of
14392# the License, or (at your option) any later version.
d7040cdb 14393#
1927a18f
L
14394# As a special exception to the GNU General Public License,
14395# if you distribute this file as part of a program or library that
14396# is built using GNU Libtool, you may include this file under the
14397# same distribution terms that you use for the rest of that program.
d7040cdb 14398#
1927a18f
L
14399# GNU Libtool is distributed in the hope that it will be useful,
14400# but WITHOUT ANY WARRANTY; without even the implied warranty of
14401# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14402# GNU General Public License for more details.
d7040cdb 14403#
1927a18f
L
14404# You should have received a copy of the GNU General Public License
14405# along with GNU Libtool; see the file COPYING. If not, a copy
14406# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14407# obtained by writing to the Free Software Foundation, Inc.,
14408# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
14409
14410
14411# The names of the tagged configurations supported by this script.
14412available_tags=""
14413
14414# ### BEGIN LIBTOOL CONFIG
14415
14416# Whether or not to build shared libraries.
14417build_libtool_libs=$enable_shared
14418
14419# Which release of libtool.m4 was used?
14420macro_version=$macro_version
14421macro_revision=$macro_revision
14422
14423# Whether or not to build static libraries.
14424build_old_libs=$enable_static
14425
14426# What type of objects to build.
14427pic_mode=$pic_mode
14428
14429# Whether or not to optimize for fast installation.
14430fast_install=$enable_fast_install
14431
14432# The host system.
14433host_alias=$host_alias
14434host=$host
14435host_os=$host_os
14436
14437# The build system.
14438build_alias=$build_alias
14439build=$build
14440build_os=$build_os
14441
14442# A sed program that does not truncate output.
14443SED=$lt_SED
14444
14445# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14446Xsed="\$SED -e 1s/^X//"
14447
14448# A grep program that handles long lines.
14449GREP=$lt_GREP
14450
14451# An ERE matcher.
14452EGREP=$lt_EGREP
14453
14454# A literal string matcher.
14455FGREP=$lt_FGREP
14456
14457# A BSD- or MS-compatible name lister.
14458NM=$lt_NM
14459
14460# Whether we need soft or hard links.
14461LN_S=$lt_LN_S
14462
14463# What is the maximum length of a command?
14464max_cmd_len=$max_cmd_len
14465
14466# Object file suffix (normally "o").
14467objext=$ac_objext
14468
14469# Executable file suffix (normally "").
14470exeext=$exeext
14471
14472# whether the shell understands "unset".
14473lt_unset=$lt_unset
14474
14475# turn spaces into newlines.
14476SP2NL=$lt_lt_SP2NL
14477
14478# turn newlines into spaces.
14479NL2SP=$lt_lt_NL2SP
14480
14481# How to create reloadable object files.
14482reload_flag=$lt_reload_flag
14483reload_cmds=$lt_reload_cmds
14484
1927a18f
L
14485# An object symbol dumper.
14486OBJDUMP=$lt_OBJDUMP
14487
d7040cdb
SE
14488# Method to check whether dependent libraries are shared objects.
14489deplibs_check_method=$lt_deplibs_check_method
14490
14491# Command to use when deplibs_check_method == "file_magic".
14492file_magic_cmd=$lt_file_magic_cmd
14493
14494# The archiver.
14495AR=$lt_AR
14496AR_FLAGS=$lt_AR_FLAGS
14497
14498# A symbol stripping program.
14499STRIP=$lt_STRIP
14500
14501# Commands used to install an old-style archive.
14502RANLIB=$lt_RANLIB
14503old_postinstall_cmds=$lt_old_postinstall_cmds
14504old_postuninstall_cmds=$lt_old_postuninstall_cmds
14505
14506# A C compiler.
14507LTCC=$lt_CC
14508
14509# LTCC compiler flags.
14510LTCFLAGS=$lt_CFLAGS
14511
14512# Take the output of nm and produce a listing of raw symbols and C names.
14513global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14514
14515# Transform the output of nm in a proper C declaration.
14516global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14517
14518# Transform the output of nm in a C name address pair.
14519global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14520
1927a18f
L
14521# Transform the output of nm in a C name address pair when lib prefix is needed.
14522global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14523
d7040cdb
SE
14524# The name of the directory that contains temporary libtool files.
14525objdir=$objdir
14526
14527# Shell to use when invoking shell scripts.
14528SHELL=$lt_SHELL
14529
14530# An echo program that does not interpret backslashes.
14531ECHO=$lt_ECHO
14532
14533# Used to examine libraries when file_magic_cmd begins with "file".
14534MAGIC_CMD=$MAGIC_CMD
14535
14536# Must we lock files when doing compilation?
14537need_locks=$lt_need_locks
14538
1927a18f
L
14539# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14540DSYMUTIL=$lt_DSYMUTIL
14541
14542# Tool to change global to local symbols on Mac OS X.
14543NMEDIT=$lt_NMEDIT
14544
14545# Tool to manipulate fat objects and archives on Mac OS X.
14546LIPO=$lt_LIPO
14547
14548# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14549OTOOL=$lt_OTOOL
14550
14551# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14552OTOOL64=$lt_OTOOL64
14553
d7040cdb
SE
14554# Old archive suffix (normally "a").
14555libext=$libext
14556
14557# Shared library suffix (normally ".so").
14558shrext_cmds=$lt_shrext_cmds
14559
14560# The commands to extract the exported symbol list from a shared archive.
14561extract_expsyms_cmds=$lt_extract_expsyms_cmds
14562
14563# Variables whose values should be saved in libtool wrapper scripts and
14564# restored at link time.
14565variables_saved_for_relink=$lt_variables_saved_for_relink
14566
14567# Do we need the "lib" prefix for modules?
14568need_lib_prefix=$need_lib_prefix
14569
14570# Do we need a version for libraries?
14571need_version=$need_version
14572
14573# Library versioning type.
14574version_type=$version_type
14575
14576# Shared library runtime path variable.
14577runpath_var=$runpath_var
14578
14579# Shared library path variable.
14580shlibpath_var=$shlibpath_var
14581
14582# Is shlibpath searched before the hard-coded library search path?
14583shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14584
14585# Format of library name prefix.
14586libname_spec=$lt_libname_spec
14587
14588# List of archive names. First name is the real one, the rest are links.
14589# The last name is the one that the linker finds with -lNAME
14590library_names_spec=$lt_library_names_spec
14591
14592# The coded name of the library, if different from the real name.
14593soname_spec=$lt_soname_spec
14594
14595# Command to use after installation of a shared archive.
14596postinstall_cmds=$lt_postinstall_cmds
14597
14598# Command to use after uninstallation of a shared archive.
14599postuninstall_cmds=$lt_postuninstall_cmds
14600
14601# Commands used to finish a libtool library installation in a directory.
14602finish_cmds=$lt_finish_cmds
14603
14604# As "finish_cmds", except a single script fragment to be evaled but
14605# not shown.
14606finish_eval=$lt_finish_eval
14607
14608# Whether we should hardcode library paths into libraries.
14609hardcode_into_libs=$hardcode_into_libs
14610
14611# Compile-time system search path for libraries.
14612sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14613
14614# Run-time system search path for libraries.
14615sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14616
14617# Whether dlopen is supported.
14618dlopen_support=$enable_dlopen
14619
14620# Whether dlopen of programs is supported.
14621dlopen_self=$enable_dlopen_self
14622
14623# Whether dlopen of statically linked programs is supported.
14624dlopen_self_static=$enable_dlopen_self_static
14625
14626# Commands to strip libraries.
14627old_striplib=$lt_old_striplib
14628striplib=$lt_striplib
14629
14630
14631# The linker used to build libraries.
14632LD=$lt_LD
14633
14634# Commands used to build an old-style archive.
14635old_archive_cmds=$lt_old_archive_cmds
14636
14637# A language specific compiler.
14638CC=$lt_compiler
14639
14640# Is the compiler the GNU compiler?
14641with_gcc=$GCC
14642
14643# Compiler flag to turn off builtin functions.
14644no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14645
14646# How to pass a linker flag through the compiler.
14647wl=$lt_lt_prog_compiler_wl
14648
14649# Additional compiler flags for building library objects.
14650pic_flag=$lt_lt_prog_compiler_pic
14651
14652# Compiler flag to prevent dynamic linking.
14653link_static_flag=$lt_lt_prog_compiler_static
14654
14655# Does compiler simultaneously support -c and -o options?
14656compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14657
14658# Whether or not to add -lc for building shared libraries.
14659build_libtool_need_lc=$archive_cmds_need_lc
14660
14661# Whether or not to disallow shared libs when runtime libs are static.
14662allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14663
14664# Compiler flag to allow reflexive dlopens.
14665export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14666
14667# Compiler flag to generate shared objects directly from archives.
14668whole_archive_flag_spec=$lt_whole_archive_flag_spec
14669
14670# Whether the compiler copes with passing no objects directly.
14671compiler_needs_object=$lt_compiler_needs_object
14672
14673# Create an old-style archive from a shared archive.
14674old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14675
14676# Create a temporary old-style archive to link instead of a shared archive.
14677old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14678
14679# Commands used to build a shared archive.
14680archive_cmds=$lt_archive_cmds
14681archive_expsym_cmds=$lt_archive_expsym_cmds
14682
14683# Commands used to build a loadable module if different from building
14684# a shared archive.
14685module_cmds=$lt_module_cmds
14686module_expsym_cmds=$lt_module_expsym_cmds
14687
14688# Whether we are building with GNU ld or not.
14689with_gnu_ld=$lt_with_gnu_ld
14690
14691# Flag that allows shared libraries with undefined symbols to be built.
14692allow_undefined_flag=$lt_allow_undefined_flag
14693
14694# Flag that enforces no undefined symbols.
14695no_undefined_flag=$lt_no_undefined_flag
14696
14697# Flag to hardcode \$libdir into a binary during linking.
14698# This must work even if \$libdir does not exist
14699hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14700
14701# If ld is used when linking, flag to hardcode \$libdir into a binary
14702# during linking. This must work even if \$libdir does not exist.
14703hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14704
14705# Whether we need a single "-rpath" flag with a separated argument.
14706hardcode_libdir_separator=$lt_hardcode_libdir_separator
14707
14708# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14709# DIR into the resulting binary.
14710hardcode_direct=$hardcode_direct
14711
14712# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14713# DIR into the resulting binary and the resulting library dependency is
14714# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14715# library is relocated.
14716hardcode_direct_absolute=$hardcode_direct_absolute
14717
14718# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14719# into the resulting binary.
14720hardcode_minus_L=$hardcode_minus_L
14721
14722# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14723# into the resulting binary.
14724hardcode_shlibpath_var=$hardcode_shlibpath_var
14725
14726# Set to "yes" if building a shared library automatically hardcodes DIR
14727# into the library and all subsequent libraries and executables linked
14728# against it.
14729hardcode_automatic=$hardcode_automatic
14730
14731# Set to yes if linker adds runtime paths of dependent libraries
14732# to runtime path list.
14733inherit_rpath=$inherit_rpath
14734
14735# Whether libtool must link a program against all its dependency libraries.
14736link_all_deplibs=$link_all_deplibs
14737
14738# Fix the shell variable \$srcfile for the compiler.
14739fix_srcfile_path=$lt_fix_srcfile_path
14740
14741# Set to "yes" if exported symbols are required.
14742always_export_symbols=$always_export_symbols
14743
14744# The commands to list exported symbols.
14745export_symbols_cmds=$lt_export_symbols_cmds
14746
14747# Symbols that should not be listed in the preloaded symbols.
14748exclude_expsyms=$lt_exclude_expsyms
14749
14750# Symbols that must always be exported.
14751include_expsyms=$lt_include_expsyms
14752
14753# Commands necessary for linking programs (against libraries) with templates.
14754prelink_cmds=$lt_prelink_cmds
14755
14756# Specify filename containing input files.
14757file_list_spec=$lt_file_list_spec
14758
14759# How to hardcode a shared library path into an executable.
14760hardcode_action=$hardcode_action
14761
14762# ### END LIBTOOL CONFIG
14763
14764_LT_EOF
14765
14766 case $host_os in
14767 aix3*)
14768 cat <<\_LT_EOF >> "$cfgfile"
14769# AIX sometimes has problems with the GCC collect2 program. For some
14770# reason, if we set the COLLECT_NAMES environment variable, the problems
14771# vanish in a puff of smoke.
14772if test "X${COLLECT_NAMES+set}" != Xset; then
14773 COLLECT_NAMES=
14774 export COLLECT_NAMES
14775fi
14776_LT_EOF
14777 ;;
14778 esac
14779
14780
14781ltmain="$ac_aux_dir/ltmain.sh"
14782
14783
14784 # We use sed instead of cat because bash on DJGPP gets confused if
14785 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14786 # text mode, it properly converts lines to CR/LF. This bash problem
14787 # is reportedly fixed, but why not run on old versions too?
14788 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14789 || (rm -f "$cfgfile"; exit 1)
14790
14791 case $xsi_shell in
14792 yes)
14793 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14794
d7040cdb
SE
14795# func_dirname file append nondir_replacement
14796# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14797# otherwise set result to NONDIR_REPLACEMENT.
14798func_dirname ()
14799{
14800 case ${1} in
14801 */*) func_dirname_result="${1%/*}${2}" ;;
14802 * ) func_dirname_result="${3}" ;;
14803 esac
14804}
14805
14806# func_basename file
14807func_basename ()
14808{
14809 func_basename_result="${1##*/}"
14810}
14811
1927a18f
L
14812# func_dirname_and_basename file append nondir_replacement
14813# perform func_basename and func_dirname in a single function
14814# call:
14815# dirname: Compute the dirname of FILE. If nonempty,
14816# add APPEND to the result, otherwise set result
14817# to NONDIR_REPLACEMENT.
14818# value returned in "$func_dirname_result"
14819# basename: Compute filename of FILE.
14820# value retuned in "$func_basename_result"
14821# Implementation must be kept synchronized with func_dirname
14822# and func_basename. For efficiency, we do not delegate to
14823# those functions but instead duplicate the functionality here.
14824func_dirname_and_basename ()
14825{
14826 case ${1} in
14827 */*) func_dirname_result="${1%/*}${2}" ;;
14828 * ) func_dirname_result="${3}" ;;
14829 esac
14830 func_basename_result="${1##*/}"
14831}
14832
d7040cdb
SE
14833# func_stripname prefix suffix name
14834# strip PREFIX and SUFFIX off of NAME.
14835# PREFIX and SUFFIX must not contain globbing or regex special
14836# characters, hashes, percent signs, but SUFFIX may contain a leading
14837# dot (in which case that matches only a dot).
14838func_stripname ()
14839{
14840 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14841 # positional parameters, so assign one to ordinary parameter first.
14842 func_stripname_result=${3}
14843 func_stripname_result=${func_stripname_result#"${1}"}
14844 func_stripname_result=${func_stripname_result%"${2}"}
14845}
14846
14847# func_opt_split
14848func_opt_split ()
14849{
14850 func_opt_split_opt=${1%%=*}
14851 func_opt_split_arg=${1#*=}
14852}
14853
14854# func_lo2o object
14855func_lo2o ()
14856{
14857 case ${1} in
14858 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14859 *) func_lo2o_result=${1} ;;
14860 esac
14861}
1927a18f
L
14862
14863# func_xform libobj-or-source
14864func_xform ()
14865{
14866 func_xform_result=${1%.*}.lo
14867}
14868
14869# func_arith arithmetic-term...
14870func_arith ()
14871{
14872 func_arith_result=$(( $* ))
14873}
14874
14875# func_len string
14876# STRING may not start with a hyphen.
14877func_len ()
14878{
14879 func_len_result=${#1}
14880}
14881
d7040cdb
SE
14882_LT_EOF
14883 ;;
14884 *) # Bourne compatible functions.
14885 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14886
d7040cdb
SE
14887# func_dirname file append nondir_replacement
14888# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14889# otherwise set result to NONDIR_REPLACEMENT.
14890func_dirname ()
14891{
14892 # Extract subdirectory from the argument.
14893 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14894 if test "X$func_dirname_result" = "X${1}"; then
14895 func_dirname_result="${3}"
14896 else
14897 func_dirname_result="$func_dirname_result${2}"
14898 fi
14899}
14900
14901# func_basename file
14902func_basename ()
14903{
14904 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14905}
14906
1927a18f 14907
d7040cdb
SE
14908# func_stripname prefix suffix name
14909# strip PREFIX and SUFFIX off of NAME.
14910# PREFIX and SUFFIX must not contain globbing or regex special
14911# characters, hashes, percent signs, but SUFFIX may contain a leading
14912# dot (in which case that matches only a dot).
14913# func_strip_suffix prefix name
14914func_stripname ()
14915{
14916 case ${2} in
14917 .*) func_stripname_result=`$ECHO "X${3}" \
14918 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14919 *) func_stripname_result=`$ECHO "X${3}" \
14920 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14921 esac
14922}
14923
14924# sed scripts:
14925my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14926my_sed_long_arg='1s/^-[^=]*=//'
14927
14928# func_opt_split
14929func_opt_split ()
14930{
14931 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14932 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14933}
14934
14935# func_lo2o object
14936func_lo2o ()
14937{
14938 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14939}
1927a18f
L
14940
14941# func_xform libobj-or-source
14942func_xform ()
14943{
14944 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14945}
14946
14947# func_arith arithmetic-term...
14948func_arith ()
14949{
14950 func_arith_result=`expr "$@"`
14951}
14952
14953# func_len string
14954# STRING may not start with a hyphen.
14955func_len ()
14956{
14957 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14958}
14959
d7040cdb
SE
14960_LT_EOF
14961esac
14962
14963case $lt_shell_append in
14964 yes)
14965 cat << \_LT_EOF >> "$cfgfile"
14966
14967# func_append var value
14968# Append VALUE to the end of shell variable VAR.
14969func_append ()
14970{
14971 eval "$1+=\$2"
14972}
14973_LT_EOF
14974 ;;
14975 *)
14976 cat << \_LT_EOF >> "$cfgfile"
14977
14978# func_append var value
14979# Append VALUE to the end of shell variable VAR.
14980func_append ()
14981{
14982 eval "$1=\$$1\$2"
14983}
1927a18f 14984
d7040cdb
SE
14985_LT_EOF
14986 ;;
14987 esac
14988
14989
14990 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14991 || (rm -f "$cfgfile"; exit 1)
14992
14993 mv -f "$cfgfile" "$ofile" ||
14994 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14995 chmod +x "$ofile"
14996
8ae85421 14997 ;;
20e95c23
DJ
14998 default-1 )
14999 for ac_file in $CONFIG_FILES; do
15000 # Support "outfile[:infile[:infile...]]"
15001 case "$ac_file" in
15002 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15003 esac
15004 # PO directories have a Makefile.in generated from Makefile.in.in.
15005 case "$ac_file" in */Makefile.in)
15006 # Adjust a relative srcdir.
15007 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15008 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15009 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15010 # In autoconf-2.13 it is called $ac_given_srcdir.
15011 # In autoconf-2.50 it is called $srcdir.
15012 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15013 case "$ac_given_srcdir" in
15014 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15015 /*) top_srcdir="$ac_given_srcdir" ;;
15016 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15017 esac
15018 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15019 rm -f "$ac_dir/POTFILES"
15020 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15021 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15022 POMAKEFILEDEPS="POTFILES.in"
15023 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15024 # on $ac_dir but don't depend on user-specified configuration
15025 # parameters.
15026 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15027 # The LINGUAS file contains the set of available languages.
15028 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15029 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15030 fi
15031 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15032 # Hide the ALL_LINGUAS assigment from automake.
15033 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15034 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15035 else
15036 # The set of available languages was given in configure.in.
15037 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15038 fi
15039 case "$ac_given_srcdir" in
15040 .) srcdirpre= ;;
15041 *) srcdirpre='$(srcdir)/' ;;
15042 esac
15043 POFILES=
15044 GMOFILES=
15045 UPDATEPOFILES=
15046 DUMMYPOFILES=
15047 for lang in $ALL_LINGUAS; do
15048 POFILES="$POFILES $srcdirpre$lang.po"
15049 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15050 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15051 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15052 done
15053 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15054 # environment variable.
15055 INST_LINGUAS=
15056 if test -n "$ALL_LINGUAS"; then
15057 for presentlang in $ALL_LINGUAS; do
15058 useit=no
15059 if test "%UNSET%" != "$LINGUAS"; then
15060 desiredlanguages="$LINGUAS"
15061 else
15062 desiredlanguages="$ALL_LINGUAS"
15063 fi
15064 for desiredlang in $desiredlanguages; do
15065 # Use the presentlang catalog if desiredlang is
15066 # a. equal to presentlang, or
15067 # b. a variant of presentlang (because in this case,
15068 # presentlang can be used as a fallback for messages
15069 # which are not translated in the desiredlang catalog).
15070 case "$desiredlang" in
15071 "$presentlang"*) useit=yes;;
15072 esac
15073 done
15074 if test $useit = yes; then
15075 INST_LINGUAS="$INST_LINGUAS $presentlang"
15076 fi
15077 done
15078 fi
15079 CATALOGS=
15080 if test -n "$INST_LINGUAS"; then
15081 for lang in $INST_LINGUAS; do
15082 CATALOGS="$CATALOGS $lang.gmo"
15083 done
15084 fi
15085 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15086 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"
15087 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15088 if test -f "$f"; then
15089 case "$f" in
15090 *.orig | *.bak | *~) ;;
15091 *) cat "$f" >> "$ac_dir/Makefile" ;;
15092 esac
15093 fi
15094 done
15095 fi
15096 ;;
15097 esac
15098 done ;;
979273e3
NN
15099 esac
15100done
15101_ACEOF
15102
15103cat >>$CONFIG_STATUS <<\_ACEOF
15104
15105{ (exit 0); exit 0; }
15106_ACEOF
252b5132 15107chmod +x $CONFIG_STATUS
979273e3
NN
15108ac_clean_files=$ac_clean_files_save
15109
15110
15111# configure is writing to config.log, and then calls config.status.
15112# config.status does its own redirection, appending to config.log.
15113# Unfortunately, on DOS this fails, as config.log is still kept open
15114# by configure, so config.status won't be able to write to it; its
15115# output is simply discarded. So we exec the FD to /dev/null,
15116# effectively closing config.log, so it can be properly (re)opened and
15117# appended to by config.status. When coming back to configure, we
15118# need to make the FD available again.
15119if test "$no_create" != yes; then
15120 ac_cs_success=:
15121 ac_config_status_args=
15122 test "$silent" = yes &&
15123 ac_config_status_args="$ac_config_status_args --quiet"
15124 exec 5>/dev/null
15125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15126 exec 5>>config.log
15127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15128 # would make configure fail if this is the last instruction.
15129 $ac_cs_success || { (exit 1); exit 1; }
15130fi
252b5132 15131
This page took 1.170885 seconds and 4 git commands to generate.