* gdb.mi/mi-var-display.exp: Remove obsolete xfail.
[deliverable/binutils-gdb.git] / gprof / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
0ab6f085 3# Generated by GNU Autoconf 2.59.
252b5132 4#
0ab6f085 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.
6bf9431b
BE
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
0ab6f085 12# Be Bourne compatible
6bf9431b
BE
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+"$@"}'='"$@"'
0ab6f085
AM
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
6bf9431b 21fi
0ab6f085 22DUALCASE=1; export DUALCASE # for MKS sh
6bf9431b
BE
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.
0ab6f085 33$as_unset ENV MAIL MAILPATH
6bf9431b
BE
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
0ab6f085 47 $as_unset $as_var
6bf9431b
BE
48 fi
49done
50
51# Required to use basename.
0ab6f085 52if expr a : '\(a\)' >/dev/null 2>&1; then
6bf9431b
BE
53 as_expr=expr
54else
55 as_expr=false
56fi
57
0ab6f085 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6bf9431b
BE
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
0ab6f085 66as_me=`$as_basename "$0" ||
6bf9431b
BE
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
0ab6f085
AM
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
6bf9431b 71echo X/"$0" |
0ab6f085
AM
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
6bf9431b 76
6bf9431b 77
0ab6f085
AM
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
1b9750d6 85
0ab6f085
AM
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
1b9750d6
NC
97fi
98
1b9750d6 99
0ab6f085
AM
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
1b9750d6 116
0ab6f085
AM
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 '')
6bf9431b
BE
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=.
0ab6f085
AM
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
6bf9431b 137 /*)
0ab6f085 138 if ("$as_dir/$as_base" -c '
6bf9431b
BE
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
0ab6f085 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6bf9431b 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
0ab6f085
AM
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
6bf9431b
BE
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
0ab6f085
AM
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.
6bf9431b 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
0ab6f085
AM
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
6bf9431b
BE
165 sed '
166 N
0ab6f085
AM
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6bf9431b 170 t loop
0ab6f085
AM
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
6bf9431b 173 ' >$as_me.lineno &&
0ab6f085 174 chmod +x $as_me.lineno ||
6bf9431b
BE
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
0ab6f085
AM
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
6bf9431b
BE
182 # Exit status is that of the last command.
183 exit
184}
185
186
0ab6f085
AM
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= ;;
6bf9431b
BE
192esac
193
0ab6f085 194if expr a : '\(a\)' >/dev/null 2>&1; then
6bf9431b
BE
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
0ab6f085
AM
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
6bf9431b 207 as_ln_s='cp -p'
0ab6f085
AM
208 else
209 as_ln_s='ln -s'
210 fi
6bf9431b
BE
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
0ab6f085 216rm -f conf$$ conf$$.exe conf$$.file
6bf9431b
BE
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
0ab6f085 225as_executable_p="test -f"
6bf9431b
BE
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
0ab6f085
AM
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
6bf9431b 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
6bf9431b
BE
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
0ab6f085
AM
398exec 6>&1
399
6bf9431b
BE
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
6bf9431b
BE
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
0ab6f085
AM
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
6bf9431b
BE
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="gprof.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
0ab6f085 427#if HAVE_SYS_TYPES_H
6bf9431b
BE
428# include <sys/types.h>
429#endif
0ab6f085 430#if HAVE_SYS_STAT_H
6bf9431b
BE
431# include <sys/stat.h>
432#endif
0ab6f085 433#if STDC_HEADERS
6bf9431b
BE
434# include <stdlib.h>
435# include <stddef.h>
436#else
0ab6f085 437# if HAVE_STDLIB_H
6bf9431b
BE
438# include <stdlib.h>
439# endif
440#endif
0ab6f085
AM
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
6bf9431b
BE
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
0ab6f085 447#if HAVE_STRINGS_H
6bf9431b
BE
448# include <strings.h>
449#endif
0ab6f085 450#if HAVE_INTTYPES_H
6bf9431b 451# include <inttypes.h>
0ab6f085
AM
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
6bf9431b 456#endif
0ab6f085 457#if HAVE_UNISTD_H
6bf9431b
BE
458# include <unistd.h>
459#endif"
460
0ab6f085 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
6bf9431b 462ac_subst_files=''
252b5132
RH
463
464# Initialize some variables set by options.
6bf9431b
BE
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
6bf9431b 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
6bf9431b
BE
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
0ab6f085 492datadir='${prefix}/share'
252b5132
RH
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
0ab6f085 496libdir='${exec_prefix}/lib'
252b5132
RH
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
0ab6f085
AM
499infodir='${prefix}/info'
500mandir='${prefix}/man'
252b5132 501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
0ab6f085 507 eval "$ac_prev=\$ac_option"
252b5132
RH
508 ac_prev=
509 continue
510 fi
511
0ab6f085 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
0ab6f085 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6bf9431b 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
6bf9431b 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6bf9431b 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6bf9431b
BE
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132 537
0ab6f085 538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
252b5132 539 ac_prev=datadir ;;
0ab6f085
AM
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
6bf9431b 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
6bf9431b 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
0ab6f085 547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
0ab6f085
AM
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
6bf9431b 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
0ab6f085 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
0ab6f085
AM
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
6bf9431b 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
6bf9431b
BE
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
6bf9431b 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
6bf9431b 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
6bf9431b 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6bf9431b 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6bf9431b 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
6bf9431b 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
0ab6f085
AM
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
252b5132
RH
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
0ab6f085
AM
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
6bf9431b 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf9431b 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
6bf9431b 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6bf9431b 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6bf9431b 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6bf9431b 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6bf9431b 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
6bf9431b 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
6bf9431b 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
6bf9431b 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
6bf9431b 710 site=$ac_optarg ;;
093872ec 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6bf9431b 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6bf9431b 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
6bf9431b 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6bf9431b 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
6bf9431b
BE
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
6bf9431b 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
0ab6f085 738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
0ab6f085
AM
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
6bf9431b 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
0ab6f085 751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
0ab6f085
AM
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6bf9431b 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6bf9431b 773 x_libraries=$ac_optarg ;;
252b5132 774
6bf9431b
BE
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
6bf9431b
BE
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
0ab6f085
AM
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
6bf9431b
BE
788 export $ac_envvar ;;
789
252b5132 790 *)
6bf9431b
BE
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
6bf9431b
BE
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
252b5132
RH
805fi
806
0ab6f085
AM
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
252b5132 809do
0ab6f085 810 eval ac_val=$`echo $ac_var`
6bf9431b 811 case $ac_val in
0ab6f085
AM
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
6bf9431b
BE
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
252b5132 847
6bf9431b
BE
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
0ab6f085
AM
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
6bf9431b
BE
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
0ab6f085
AM
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
6bf9431b 864echo X"$0" |
0ab6f085
AM
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132 870 srcdir=$ac_confdir
0ab6f085 871 if test ! -r $srcdir/$ac_unique_file; then
252b5132
RH
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
0ab6f085
AM
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6bf9431b 883 { (exit 1); exit 1; }; }
0ab6f085 884 fi
252b5132 885fi
0ab6f085
AM
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
6bf9431b 888 { (exit 1); exit 1; }; }
0ab6f085
AM
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
252b5132 922
6bf9431b
BE
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
252b5132 931
6bf9431b 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
6bf9431b
BE
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 936
6bf9431b 937Defaults for the options are specified in brackets.
ac48eca1 938
6bf9431b
BE
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
0ab6f085
AM
950_ACEOF
951
952 cat <<_ACEOF
6bf9431b
BE
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
ac48eca1 958
6bf9431b
BE
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
ac48eca1 963
6bf9431b 964For better control, use the options below.
ac48eca1 965
6bf9431b
BE
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
0ab6f085 970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
6bf9431b
BE
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
0ab6f085
AM
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
6bf9431b 979_ACEOF
ac48eca1 980
6bf9431b 981 cat <<\_ACEOF
252b5132 982
6bf9431b
BE
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 987
6bf9431b
BE
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
252b5132 993fi
252b5132 994
6bf9431b 995if test -n "$ac_init_help"; then
252b5132 996
6bf9431b 997 cat <<\_ACEOF
252b5132 998
6bf9431b
BE
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
0ab6f085
AM
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
d7040cdb
SE
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
6bf9431b
BE
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --disable-nls do not use Native Language Support
1012 --enable-maintainer-mode enable make rules and dependencies not useful
1013 (and sometimes confusing) to the casual installer
241a6c40
AM
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
6bf9431b
BE
1016
1017Optional Packages:
1018 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1019 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1020 --with-pic try to use only PIC/non-PIC objects [default=use
1021 both]
1022 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1023
6bf9431b
BE
1024Some influential environment variables:
1025 CC C compiler command
1026 CFLAGS C compiler flags
1027 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1028 nonstandard directory <lib dir>
0ab6f085
AM
1029 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1030 headers in a nonstandard directory <include dir>
6bf9431b 1031 CPP C preprocessor
252b5132 1032
6bf9431b
BE
1033Use these variables to override the choices made by `configure' or to help
1034it to find libraries and programs with nonstandard names/locations.
1035
1036_ACEOF
252b5132
RH
1037fi
1038
6bf9431b
BE
1039if test "$ac_init_help" = "recursive"; then
1040 # If there are subdirs, report their specific --help.
0ab6f085 1041 ac_popdir=`pwd`
6bf9431b 1042 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
0ab6f085 1043 test -d $ac_dir || continue
6bf9431b 1044 ac_builddir=.
252b5132 1045
0ab6f085 1046if test "$ac_dir" != .; then
6bf9431b 1047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
0ab6f085
AM
1048 # A "../" for each directory in $ac_dir_suffix.
1049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050else
1051 ac_dir_suffix= ac_top_builddir=
1052fi
6bf9431b
BE
1053
1054case $srcdir in
0ab6f085 1055 .) # No --srcdir option. We are building in place.
6bf9431b 1056 ac_srcdir=.
0ab6f085
AM
1057 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=.
1059 else
1060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061 fi ;;
1062 [\\/]* | ?:[\\/]* ) # Absolute path.
6bf9431b 1063 ac_srcdir=$srcdir$ac_dir_suffix;
0ab6f085
AM
1064 ac_top_srcdir=$srcdir ;;
1065 *) # Relative path.
1066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068esac
1069
1070# Do not use `cd foo && pwd` to compute absolute paths, because
1071# the directories may not exist.
1072case `pwd` in
1073.) ac_abs_builddir="$ac_dir";;
1074*)
1075 case "$ac_dir" in
1076 .) ac_abs_builddir=`pwd`;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1078 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1079 esac;;
1080esac
1081case $ac_abs_builddir in
1082.) ac_abs_top_builddir=${ac_top_builddir}.;;
1083*)
1084 case ${ac_top_builddir}. in
1085 .) ac_abs_top_builddir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1088 esac;;
6bf9431b 1089esac
0ab6f085
AM
1090case $ac_abs_builddir in
1091.) ac_abs_srcdir=$ac_srcdir;;
1092*)
1093 case $ac_srcdir in
1094 .) ac_abs_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1096 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1097 esac;;
1098esac
1099case $ac_abs_builddir in
1100.) ac_abs_top_srcdir=$ac_top_srcdir;;
1101*)
1102 case $ac_top_srcdir in
1103 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1106 esac;;
1107esac
1108
1109 cd $ac_dir
1110 # Check for guested configure; otherwise get Cygnus style configure.
1111 if test -f $ac_srcdir/configure.gnu; then
1112 echo
1113 $SHELL $ac_srcdir/configure.gnu --help=recursive
1114 elif test -f $ac_srcdir/configure; then
1115 echo
1116 $SHELL $ac_srcdir/configure --help=recursive
1117 elif test -f $ac_srcdir/configure.ac ||
1118 test -f $ac_srcdir/configure.in; then
1119 echo
1120 $ac_configure --help
6bf9431b
BE
1121 else
1122 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
0ab6f085
AM
1123 fi
1124 cd $ac_popdir
6bf9431b
BE
1125 done
1126fi
252b5132 1127
0ab6f085 1128test -n "$ac_init_help" && exit 0
6bf9431b
BE
1129if $ac_init_version; then
1130 cat <<\_ACEOF
252b5132 1131
0ab6f085 1132Copyright (C) 2003 Free Software Foundation, Inc.
6bf9431b
BE
1133This configure script is free software; the Free Software Foundation
1134gives unlimited permission to copy, distribute and modify it.
1135_ACEOF
0ab6f085 1136 exit 0
6bf9431b 1137fi
0ab6f085
AM
1138exec 5>config.log
1139cat >&5 <<_ACEOF
6bf9431b
BE
1140This file contains any messages produced by compilers while
1141running configure, to aid debugging if configure makes a mistake.
66477e87 1142
6bf9431b 1143It was created by $as_me, which was
0ab6f085 1144generated by GNU Autoconf 2.59. Invocation command line was
5d64ca4e 1145
6bf9431b 1146 $ $0 $@
5d64ca4e 1147
6bf9431b
BE
1148_ACEOF
1149{
1150cat <<_ASUNAME
1151## --------- ##
1152## Platform. ##
1153## --------- ##
1154
1155hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1156uname -m = `(uname -m) 2>/dev/null || echo unknown`
1157uname -r = `(uname -r) 2>/dev/null || echo unknown`
1158uname -s = `(uname -s) 2>/dev/null || echo unknown`
1159uname -v = `(uname -v) 2>/dev/null || echo unknown`
1160
1161/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1162/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1163
1164/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1165/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1166/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
0ab6f085 1167hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
6bf9431b
BE
1168/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1169/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1170/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1171
1172_ASUNAME
1173
1174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175for as_dir in $PATH
1176do
1177 IFS=$as_save_IFS
1178 test -z "$as_dir" && as_dir=.
1179 echo "PATH: $as_dir"
1180done
5d64ca4e 1181
6bf9431b 1182} >&5
093872ec 1183
6bf9431b 1184cat >&5 <<_ACEOF
252b5132 1185
6bf9431b
BE
1186
1187## ----------- ##
1188## Core tests. ##
1189## ----------- ##
1190
1191_ACEOF
1192
1193
1194# Keep a trace of the command line.
1195# Strip out --no-create and --no-recursion so they do not pile up.
1196# Strip out --silent because we don't want to record it for future runs.
1197# Also quote any args containing shell meta-characters.
1198# Make two passes to allow for proper duplicate-argument suppression.
1199ac_configure_args=
1200ac_configure_args0=
1201ac_configure_args1=
0ab6f085 1202ac_sep=
6bf9431b
BE
1203ac_must_keep_next=false
1204for ac_pass in 1 2
1205do
1206 for ac_arg
1207 do
1208 case $ac_arg in
1209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1212 continue ;;
0ab6f085 1213 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
6bf9431b
BE
1214 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215 esac
1216 case $ac_pass in
1217 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1218 2)
1219 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1220 if test $ac_must_keep_next = true; then
1221 ac_must_keep_next=false # Got value, back to normal.
1222 else
1223 case $ac_arg in
1224 *=* | --config-cache | -C | -disable-* | --disable-* \
1225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1227 | -with-* | --with-* | -without-* | --without-* | --x)
1228 case "$ac_configure_args0 " in
1229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230 esac
1231 ;;
1232 -* ) ac_must_keep_next=true ;;
1233 esac
1234 fi
0ab6f085
AM
1235 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236 # Get rid of the leading space.
1237 ac_sep=" "
6bf9431b
BE
1238 ;;
1239 esac
1240 done
1241done
1242$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1243$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1244
1245# When interrupted or exit'd, cleanup temporary files, and complete
1246# config.log. We remove comments because anyway the quotes in there
1247# would cause problems or look ugly.
0ab6f085
AM
1248# WARNING: Be sure not to use single quotes in there, as some shells,
1249# such as our DU 5.0 friend, will then `close' the trap.
6bf9431b
BE
1250trap 'exit_status=$?
1251 # Save into config.log some information that might help in debugging.
1252 {
1253 echo
1254
1255 cat <<\_ASBOX
1256## ---------------- ##
1257## Cache variables. ##
1258## ---------------- ##
1259_ASBOX
1260 echo
1261 # The following way of writing the cache mishandles newlines in values,
0ab6f085 1262{
6bf9431b 1263 (set) 2>&1 |
0ab6f085
AM
1264 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265 *ac_space=\ *)
6bf9431b 1266 sed -n \
0ab6f085
AM
1267 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 ;;
6bf9431b 1270 *)
0ab6f085
AM
1271 sed -n \
1272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6bf9431b 1273 ;;
0ab6f085
AM
1274 esac;
1275}
6bf9431b
BE
1276 echo
1277
1278 cat <<\_ASBOX
1279## ----------------- ##
1280## Output variables. ##
1281## ----------------- ##
1282_ASBOX
1283 echo
1284 for ac_var in $ac_subst_vars
1285 do
0ab6f085
AM
1286 eval ac_val=$`echo $ac_var`
1287 echo "$ac_var='"'"'$ac_val'"'"'"
6bf9431b
BE
1288 done | sort
1289 echo
1290
1291 if test -n "$ac_subst_files"; then
1292 cat <<\_ASBOX
0ab6f085
AM
1293## ------------- ##
1294## Output files. ##
1295## ------------- ##
6bf9431b
BE
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_files
1299 do
0ab6f085
AM
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
6bf9431b
BE
1302 done | sort
1303 echo
1304 fi
1305
1306 if test -s confdefs.h; then
1307 cat <<\_ASBOX
1308## ----------- ##
1309## confdefs.h. ##
1310## ----------- ##
1311_ASBOX
1312 echo
0ab6f085 1313 sed "/^$/d" confdefs.h | sort
6bf9431b
BE
1314 echo
1315 fi
1316 test "$ac_signal" != 0 &&
1317 echo "$as_me: caught signal $ac_signal"
1318 echo "$as_me: exit $exit_status"
1319 } >&5
0ab6f085
AM
1320 rm -f core *.core &&
1321 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
6bf9431b 1322 exit $exit_status
0ab6f085 1323 ' 0
6bf9431b
BE
1324for ac_signal in 1 2 13 15; do
1325 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326done
1327ac_signal=0
1328
1329# confdefs.h avoids OS command line length limits that DEFS can exceed.
0ab6f085
AM
1330rm -rf conftest* confdefs.h
1331# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332echo >confdefs.h
6bf9431b
BE
1333
1334# Predefined preprocessor variables.
1335
1336cat >>confdefs.h <<_ACEOF
1337#define PACKAGE_NAME "$PACKAGE_NAME"
1338_ACEOF
1339
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_VERSION "$PACKAGE_VERSION"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_STRING "$PACKAGE_STRING"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358_ACEOF
1359
1360
1361# Let the site file select an alternate cache file if it wants to.
1362# Prefer explicitly selected file to automatically selected ones.
0ab6f085
AM
1363if test -z "$CONFIG_SITE"; then
1364 if test "x$prefix" != xNONE; then
1365 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1366 else
1367 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1368 fi
6bf9431b 1369fi
0ab6f085 1370for ac_site_file in $CONFIG_SITE; do
6bf9431b
BE
1371 if test -r "$ac_site_file"; then
1372 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1373echo "$as_me: loading site script $ac_site_file" >&6;}
1374 sed 's/^/| /' "$ac_site_file" >&5
1375 . "$ac_site_file"
1376 fi
1377done
1378
1379if test -r "$cache_file"; then
1380 # Some versions of bash will fail to source /dev/null (special
1381 # files actually), so we avoid doing that.
1382 if test -f "$cache_file"; then
1383 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1384echo "$as_me: loading cache $cache_file" >&6;}
1385 case $cache_file in
0ab6f085
AM
1386 [\\/]* | ?:[\\/]* ) . $cache_file;;
1387 *) . ./$cache_file;;
6bf9431b
BE
1388 esac
1389 fi
1390else
1391 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1392echo "$as_me: creating cache $cache_file" >&6;}
1393 >$cache_file
1394fi
1395
1396# Check that the precious variables saved in the cache have kept the same
1397# value.
1398ac_cache_corrupted=false
0ab6f085
AM
1399for ac_var in `(set) 2>&1 |
1400 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
6bf9431b
BE
1401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402 eval ac_new_set=\$ac_env_${ac_var}_set
0ab6f085
AM
1403 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404 eval ac_new_val="\$ac_env_${ac_var}_value"
6bf9431b
BE
1405 case $ac_old_set,$ac_new_set in
1406 set,)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1408echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,set)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,);;
1415 *)
1416 if test "x$ac_old_val" != "x$ac_new_val"; then
1417 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1418echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1419 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1420echo "$as_me: former value: $ac_old_val" >&2;}
1421 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1422echo "$as_me: current value: $ac_new_val" >&2;}
1423 ac_cache_corrupted=:
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
0ab6f085
AM
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1437 fi
1438done
1439if $ac_cache_corrupted; then
1440 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444 { (exit 1); exit 1; }; }
1445fi
1446
0ab6f085
AM
1447ac_ext=c
1448ac_cpp='$CPP $CPPFLAGS'
1449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452
6bf9431b
BE
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473ac_aux_dir=
0ab6f085
AM
1474for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1475 if test -f $ac_dir/install-sh; then
6bf9431b
BE
1476 ac_aux_dir=$ac_dir
1477 ac_install_sh="$ac_aux_dir/install-sh -c"
1478 break
0ab6f085 1479 elif test -f $ac_dir/install.sh; then
6bf9431b
BE
1480 ac_aux_dir=$ac_dir
1481 ac_install_sh="$ac_aux_dir/install.sh -c"
1482 break
0ab6f085 1483 elif test -f $ac_dir/shtool; then
6bf9431b
BE
1484 ac_aux_dir=$ac_dir
1485 ac_install_sh="$ac_aux_dir/shtool install -c"
1486 break
1487 fi
1488done
1489if test -z "$ac_aux_dir"; then
0ab6f085
AM
1490 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1491echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6bf9431b
BE
1492 { (exit 1); exit 1; }; }
1493fi
0ab6f085
AM
1494ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1495ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1496ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6bf9431b
BE
1497
1498# Make sure we can run config.sub.
0ab6f085
AM
1499$ac_config_sub sun4 >/dev/null 2>&1 ||
1500 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1501echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6bf9431b
BE
1502 { (exit 1); exit 1; }; }
1503
0ab6f085
AM
1504echo "$as_me:$LINENO: checking build system type" >&5
1505echo $ECHO_N "checking build system type... $ECHO_C" >&6
6bf9431b
BE
1506if test "${ac_cv_build+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508else
0ab6f085
AM
1509 ac_cv_build_alias=$build_alias
1510test -z "$ac_cv_build_alias" &&
1511 ac_cv_build_alias=`$ac_config_guess`
1512test -z "$ac_cv_build_alias" &&
6bf9431b
BE
1513 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1514echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1515 { (exit 1); exit 1; }; }
0ab6f085
AM
1516ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1517 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1518echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6bf9431b
BE
1519 { (exit 1); exit 1; }; }
1520
1521fi
0ab6f085
AM
1522echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1523echo "${ECHO_T}$ac_cv_build" >&6
6bf9431b 1524build=$ac_cv_build
0ab6f085
AM
1525build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1526build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1527build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1528
1529
1530echo "$as_me:$LINENO: checking host system type" >&5
1531echo $ECHO_N "checking host system type... $ECHO_C" >&6
6bf9431b
BE
1532if test "${ac_cv_host+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534else
0ab6f085
AM
1535 ac_cv_host_alias=$host_alias
1536test -z "$ac_cv_host_alias" &&
1537 ac_cv_host_alias=$ac_cv_build_alias
1538ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1540echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6bf9431b
BE
1541 { (exit 1); exit 1; }; }
1542
1543fi
0ab6f085
AM
1544echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1545echo "${ECHO_T}$ac_cv_host" >&6
6bf9431b 1546host=$ac_cv_host
0ab6f085
AM
1547host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552echo "$as_me:$LINENO: checking target system type" >&5
1553echo $ECHO_N "checking target system type... $ECHO_C" >&6
6bf9431b
BE
1554if test "${ac_cv_target+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
0ab6f085
AM
1557 ac_cv_target_alias=$target_alias
1558test "x$ac_cv_target_alias" = "x" &&
1559 ac_cv_target_alias=$ac_cv_host_alias
1560ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1562echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
6bf9431b
BE
1563 { (exit 1); exit 1; }; }
1564
1565fi
0ab6f085
AM
1566echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1567echo "${ECHO_T}$ac_cv_target" >&6
6bf9431b 1568target=$ac_cv_target
0ab6f085
AM
1569target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6bf9431b
BE
1572
1573
1574# The aliases save the names the user supplied, while $host etc.
1575# will get canonicalized.
1576test -n "$target_alias" &&
1577 test "$program_prefix$program_suffix$program_transform_name" = \
1578 NONENONEs,x,x, &&
1579 program_prefix=${target_alias}-
1580ac_ext=c
1581ac_cpp='$CPP $CPPFLAGS'
1582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1584ac_compiler_gnu=$ac_cv_c_compiler_gnu
1585if test -n "$ac_tool_prefix"; then
1586 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1587set dummy ${ac_tool_prefix}gcc; ac_word=$2
0ab6f085
AM
1588echo "$as_me:$LINENO: checking for $ac_word" >&5
1589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1590if test "${ac_cv_prog_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592else
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC="$CC" # Let the user override the test.
1595else
1596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597for as_dir in $PATH
1598do
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1603 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 break 2
1606 fi
1607done
1608done
1609
1610fi
1611fi
1612CC=$ac_cv_prog_CC
1613if test -n "$CC"; then
0ab6f085
AM
1614 echo "$as_me:$LINENO: result: $CC" >&5
1615echo "${ECHO_T}$CC" >&6
6bf9431b 1616else
0ab6f085
AM
1617 echo "$as_me:$LINENO: result: no" >&5
1618echo "${ECHO_T}no" >&6
6bf9431b
BE
1619fi
1620
1621fi
1622if test -z "$ac_cv_prog_CC"; then
1623 ac_ct_CC=$CC
1624 # Extract the first word of "gcc", so it can be a program name with args.
1625set dummy gcc; ac_word=$2
0ab6f085
AM
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1628if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 if test -n "$ac_ct_CC"; then
1632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1633else
1634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635for as_dir in $PATH
1636do
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1641 ac_cv_prog_ac_ct_CC="gcc"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 break 2
1644 fi
1645done
1646done
1647
1648fi
1649fi
1650ac_ct_CC=$ac_cv_prog_ac_ct_CC
1651if test -n "$ac_ct_CC"; then
0ab6f085
AM
1652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1653echo "${ECHO_T}$ac_ct_CC" >&6
6bf9431b 1654else
0ab6f085
AM
1655 echo "$as_me:$LINENO: result: no" >&5
1656echo "${ECHO_T}no" >&6
6bf9431b
BE
1657fi
1658
0ab6f085 1659 CC=$ac_ct_CC
6bf9431b
BE
1660else
1661 CC="$ac_cv_prog_CC"
1662fi
1663
1664if test -z "$CC"; then
0ab6f085
AM
1665 if test -n "$ac_tool_prefix"; then
1666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6bf9431b 1667set dummy ${ac_tool_prefix}cc; ac_word=$2
0ab6f085
AM
1668echo "$as_me:$LINENO: checking for $ac_word" >&5
1669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1670if test "${ac_cv_prog_CC+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673 if test -n "$CC"; then
1674 ac_cv_prog_CC="$CC" # Let the user override the test.
1675else
1676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677for as_dir in $PATH
1678do
1679 IFS=$as_save_IFS
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1683 ac_cv_prog_CC="${ac_tool_prefix}cc"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 break 2
1686 fi
1687done
1688done
1689
1690fi
1691fi
1692CC=$ac_cv_prog_CC
1693if test -n "$CC"; then
0ab6f085
AM
1694 echo "$as_me:$LINENO: result: $CC" >&5
1695echo "${ECHO_T}$CC" >&6
6bf9431b 1696else
0ab6f085
AM
1697 echo "$as_me:$LINENO: result: no" >&5
1698echo "${ECHO_T}no" >&6
6bf9431b
BE
1699fi
1700
0ab6f085
AM
1701fi
1702if test -z "$ac_cv_prog_CC"; then
1703 ac_ct_CC=$CC
1704 # Extract the first word of "cc", so it can be a program name with args.
1705set dummy cc; ac_word=$2
1706echo "$as_me:$LINENO: checking for $ac_word" >&5
1707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711 if test -n "$ac_ct_CC"; then
1712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1713else
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_ac_ct_CC="cc"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1b9750d6 1724 fi
0ab6f085
AM
1725done
1726done
1727
1728fi
1729fi
1730ac_ct_CC=$ac_cv_prog_ac_ct_CC
1731if test -n "$ac_ct_CC"; then
1732 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1733echo "${ECHO_T}$ac_ct_CC" >&6
1734else
1735 echo "$as_me:$LINENO: result: no" >&5
1736echo "${ECHO_T}no" >&6
1737fi
1738
1739 CC=$ac_ct_CC
1740else
1741 CC="$ac_cv_prog_CC"
1742fi
1743
6bf9431b
BE
1744fi
1745if test -z "$CC"; then
1746 # Extract the first word of "cc", so it can be a program name with args.
1747set dummy cc; ac_word=$2
0ab6f085
AM
1748echo "$as_me:$LINENO: checking for $ac_word" >&5
1749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1750if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752else
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1755else
1756 ac_prog_rejected=no
1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1764 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1765 ac_prog_rejected=yes
1766 continue
1767 fi
1768 ac_cv_prog_CC="cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1771 fi
1772done
1773done
1774
1775if test $ac_prog_rejected = yes; then
1776 # We found a bogon in the path, so make sure we never use it.
1777 set dummy $ac_cv_prog_CC
1778 shift
1779 if test $# != 0; then
1780 # We chose a different compiler from the bogus one.
1781 # However, it has the same basename, so the bogon will be chosen
1782 # first if we set CC to just the basename; use the full file name.
1783 shift
1784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1785 fi
1786fi
1787fi
1788fi
1789CC=$ac_cv_prog_CC
1790if test -n "$CC"; then
0ab6f085
AM
1791 echo "$as_me:$LINENO: result: $CC" >&5
1792echo "${ECHO_T}$CC" >&6
6bf9431b 1793else
0ab6f085
AM
1794 echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
6bf9431b
BE
1796fi
1797
1798fi
1799if test -z "$CC"; then
1800 if test -n "$ac_tool_prefix"; then
0ab6f085 1801 for ac_prog in cl
6bf9431b
BE
1802 do
1803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0ab6f085
AM
1805echo "$as_me:$LINENO: checking for $ac_word" >&5
1806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1807if test "${ac_cv_prog_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1809else
1810 if test -n "$CC"; then
1811 ac_cv_prog_CC="$CC" # Let the user override the test.
1812else
1813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814for as_dir in $PATH
1815do
1816 IFS=$as_save_IFS
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 break 2
1823 fi
1824done
1825done
1826
1827fi
1828fi
1829CC=$ac_cv_prog_CC
1830if test -n "$CC"; then
0ab6f085
AM
1831 echo "$as_me:$LINENO: result: $CC" >&5
1832echo "${ECHO_T}$CC" >&6
6bf9431b 1833else
0ab6f085
AM
1834 echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
6bf9431b
BE
1836fi
1837
1838 test -n "$CC" && break
1839 done
1840fi
1841if test -z "$CC"; then
1842 ac_ct_CC=$CC
0ab6f085 1843 for ac_prog in cl
6bf9431b
BE
1844do
1845 # Extract the first word of "$ac_prog", so it can be a program name with args.
1846set dummy $ac_prog; ac_word=$2
0ab6f085
AM
1847echo "$as_me:$LINENO: checking for $ac_word" >&5
1848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1849if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851else
1852 if test -n "$ac_ct_CC"; then
1853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854else
1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856for as_dir in $PATH
1857do
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1862 ac_cv_prog_ac_ct_CC="$ac_prog"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1865 fi
1866done
1867done
1868
1869fi
1870fi
1871ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872if test -n "$ac_ct_CC"; then
0ab6f085
AM
1873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874echo "${ECHO_T}$ac_ct_CC" >&6
6bf9431b 1875else
0ab6f085
AM
1876 echo "$as_me:$LINENO: result: no" >&5
1877echo "${ECHO_T}no" >&6
6bf9431b
BE
1878fi
1879
1880 test -n "$ac_ct_CC" && break
1881done
1882
0ab6f085 1883 CC=$ac_ct_CC
6bf9431b
BE
1884fi
1885
1886fi
1887
1888
1889test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1890See \`config.log' for more details." >&5
1891echo "$as_me: error: no acceptable C compiler found in \$PATH
1892See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }
1894
1895# Provide some information about the compiler.
0ab6f085
AM
1896echo "$as_me:$LINENO:" \
1897 "checking for C compiler version" >&5
6bf9431b 1898ac_compiler=`set X $ac_compile; echo $2`
0ab6f085
AM
1899{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1900 (eval $ac_compiler --version </dev/null >&5) 2>&5
6bf9431b
BE
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
0ab6f085
AM
1904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1905 (eval $ac_compiler -v </dev/null >&5) 2>&5
6bf9431b
BE
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }
0ab6f085
AM
1909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1910 (eval $ac_compiler -V </dev/null >&5) 2>&5
6bf9431b
BE
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }
1914
1915cat >conftest.$ac_ext <<_ACEOF
1916/* confdefs.h. */
1917_ACEOF
1918cat confdefs.h >>conftest.$ac_ext
1919cat >>conftest.$ac_ext <<_ACEOF
1920/* end confdefs.h. */
1921
1922int
1923main ()
1924{
1925
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930ac_clean_files_save=$ac_clean_files
1931ac_clean_files="$ac_clean_files a.out a.exe b.out"
1932# Try to create an executable without -o first, disregard a.out.
1933# It will help us diagnose broken compilers, and finding out an intuition
1934# of exeext.
0ab6f085
AM
1935echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1936echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
6bf9431b 1937ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
0ab6f085
AM
1938if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1939 (eval $ac_link_default) 2>&5
6bf9431b
BE
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
0ab6f085
AM
1943 # Find the output, starting from the most likely. This scheme is
1944# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1945# resort.
1946
1947# Be careful to initialize this variable, since it used to be cached.
1948# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1949ac_cv_exeext=
1950# b.out is created by i960 compilers.
1951for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
6bf9431b
BE
1952do
1953 test -f "$ac_file" || continue
1954 case $ac_file in
0ab6f085
AM
1955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1956 ;;
1957 conftest.$ac_ext )
1958 # This is the source file.
6bf9431b
BE
1959 ;;
1960 [ab].out )
1961 # We found the default executable, but exeext='' is most
1962 # certainly right.
1963 break;;
1964 *.* )
0ab6f085
AM
1965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1966 # FIXME: I believe we export ac_cv_exeext for Libtool,
1967 # but it would be cool to find out if it's true. Does anybody
1968 # maintain Libtool? --akim.
1969 export ac_cv_exeext
6bf9431b
BE
1970 break;;
1971 * )
1972 break;;
1973 esac
1974done
1975else
1976 echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1980See \`config.log' for more details." >&5
1981echo "$as_me: error: C compiler cannot create executables
1982See \`config.log' for more details." >&2;}
1983 { (exit 77); exit 77; }; }
1984fi
1985
1986ac_exeext=$ac_cv_exeext
0ab6f085
AM
1987echo "$as_me:$LINENO: result: $ac_file" >&5
1988echo "${ECHO_T}$ac_file" >&6
6bf9431b 1989
0ab6f085 1990# Check the compiler produces executables we can run. If not, either
6bf9431b 1991# the compiler is broken, or we cross compile.
0ab6f085
AM
1992echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1993echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
6bf9431b
BE
1994# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1995# If not cross compiling, check that we can run a simple program.
1996if test "$cross_compiling" != yes; then
1997 if { ac_try='./$ac_file'
0ab6f085
AM
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
6bf9431b
BE
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; }; then
2003 cross_compiling=no
2004 else
2005 if test "$cross_compiling" = maybe; then
2006 cross_compiling=yes
2007 else
2008 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2009If you meant to cross compile, use \`--host'.
2010See \`config.log' for more details." >&5
2011echo "$as_me: error: cannot run C compiled programs.
2012If you meant to cross compile, use \`--host'.
2013See \`config.log' for more details." >&2;}
2014 { (exit 1); exit 1; }; }
2015 fi
2016 fi
2017fi
0ab6f085
AM
2018echo "$as_me:$LINENO: result: yes" >&5
2019echo "${ECHO_T}yes" >&6
6bf9431b
BE
2020
2021rm -f a.out a.exe conftest$ac_cv_exeext b.out
2022ac_clean_files=$ac_clean_files_save
0ab6f085 2023# Check the compiler produces executables we can run. If not, either
6bf9431b 2024# the compiler is broken, or we cross compile.
0ab6f085
AM
2025echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2026echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2027echo "$as_me:$LINENO: result: $cross_compiling" >&5
2028echo "${ECHO_T}$cross_compiling" >&6
2029
2030echo "$as_me:$LINENO: checking for suffix of executables" >&5
2031echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2033 (eval $ac_link) 2>&5
6bf9431b
BE
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; then
2037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2038# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2039# work properly (i.e., refer to `conftest.exe'), while it won't with
2040# `rm'.
2041for ac_file in conftest.exe conftest conftest.*; do
2042 test -f "$ac_file" || continue
2043 case $ac_file in
0ab6f085 2044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
6bf9431b 2045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
0ab6f085 2046 export ac_cv_exeext
6bf9431b
BE
2047 break;;
2048 * ) break;;
2049 esac
2050done
2051else
2052 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2053See \`config.log' for more details." >&5
2054echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2055See \`config.log' for more details." >&2;}
2056 { (exit 1); exit 1; }; }
2057fi
2058
2059rm -f conftest$ac_cv_exeext
0ab6f085
AM
2060echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2061echo "${ECHO_T}$ac_cv_exeext" >&6
6bf9431b
BE
2062
2063rm -f conftest.$ac_ext
2064EXEEXT=$ac_cv_exeext
2065ac_exeext=$EXEEXT
0ab6f085
AM
2066echo "$as_me:$LINENO: checking for suffix of object files" >&5
2067echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
6bf9431b
BE
2068if test "${ac_cv_objext+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071 cat >conftest.$ac_ext <<_ACEOF
2072/* confdefs.h. */
2073_ACEOF
2074cat confdefs.h >>conftest.$ac_ext
2075cat >>conftest.$ac_ext <<_ACEOF
2076/* end confdefs.h. */
2077
2078int
2079main ()
2080{
2081
2082 ;
2083 return 0;
2084}
2085_ACEOF
2086rm -f conftest.o conftest.obj
0ab6f085
AM
2087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2088 (eval $ac_compile) 2>&5
6bf9431b
BE
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; then
0ab6f085 2092 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
6bf9431b 2093 case $ac_file in
0ab6f085 2094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
6bf9431b
BE
2095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2096 break;;
2097 esac
2098done
2099else
2100 echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
2103{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2104See \`config.log' for more details." >&5
2105echo "$as_me: error: cannot compute suffix of object files: cannot compile
2106See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
2108fi
2109
2110rm -f conftest.$ac_cv_objext conftest.$ac_ext
2111fi
0ab6f085
AM
2112echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2113echo "${ECHO_T}$ac_cv_objext" >&6
6bf9431b
BE
2114OBJEXT=$ac_cv_objext
2115ac_objext=$OBJEXT
0ab6f085
AM
2116echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2117echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6bf9431b
BE
2118if test "${ac_cv_c_compiler_gnu+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120else
2121 cat >conftest.$ac_ext <<_ACEOF
2122/* confdefs.h. */
2123_ACEOF
2124cat confdefs.h >>conftest.$ac_ext
2125cat >>conftest.$ac_ext <<_ACEOF
2126/* end confdefs.h. */
2127
2128int
2129main ()
2130{
2131#ifndef __GNUC__
2132 choke me
2133#endif
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139rm -f conftest.$ac_objext
0ab6f085
AM
2140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
6bf9431b
BE
2161 ac_compiler_gnu=yes
2162else
2163 echo "$as_me: failed program was:" >&5
2164sed 's/^/| /' conftest.$ac_ext >&5
2165
0ab6f085 2166ac_compiler_gnu=no
6bf9431b 2167fi
0ab6f085 2168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
2169ac_cv_c_compiler_gnu=$ac_compiler_gnu
2170
2171fi
0ab6f085
AM
2172echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2173echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
6bf9431b
BE
2174GCC=`test $ac_compiler_gnu = yes && echo yes`
2175ac_test_CFLAGS=${CFLAGS+set}
2176ac_save_CFLAGS=$CFLAGS
0ab6f085
AM
2177CFLAGS="-g"
2178echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2179echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
6bf9431b
BE
2180if test "${ac_cv_prog_cc_g+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
0ab6f085 2183 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
2184/* confdefs.h. */
2185_ACEOF
2186cat confdefs.h >>conftest.$ac_ext
2187cat >>conftest.$ac_ext <<_ACEOF
2188/* end confdefs.h. */
2189
2190int
2191main ()
2192{
2193
2194 ;
2195 return 0;
2196}
2197_ACEOF
2198rm -f conftest.$ac_objext
0ab6f085
AM
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
6bf9431b
BE
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
6bf9431b
BE
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085 2219 (exit $ac_status); }; }; then
6bf9431b
BE
2220 ac_cv_prog_cc_g=yes
2221else
2222 echo "$as_me: failed program was:" >&5
2223sed 's/^/| /' conftest.$ac_ext >&5
2224
0ab6f085 2225ac_cv_prog_cc_g=no
6bf9431b 2226fi
0ab6f085 2227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2228fi
0ab6f085
AM
2229echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2230echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
6bf9431b
BE
2231if test "$ac_test_CFLAGS" = set; then
2232 CFLAGS=$ac_save_CFLAGS
2233elif test $ac_cv_prog_cc_g = yes; then
2234 if test "$GCC" = yes; then
2235 CFLAGS="-g -O2"
2236 else
2237 CFLAGS="-g"
2238 fi
2239else
2240 if test "$GCC" = yes; then
2241 CFLAGS="-O2"
2242 else
2243 CFLAGS=
2244 fi
2245fi
0ab6f085
AM
2246echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2247echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2248if test "${ac_cv_prog_cc_stdc+set}" = set; then
6bf9431b
BE
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
0ab6f085 2251 ac_cv_prog_cc_stdc=no
6bf9431b
BE
2252ac_save_CC=$CC
2253cat >conftest.$ac_ext <<_ACEOF
2254/* confdefs.h. */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h. */
2259#include <stdarg.h>
2260#include <stdio.h>
2261#include <sys/types.h>
2262#include <sys/stat.h>
2263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2264struct buf { int x; };
2265FILE * (*rcsopen) (struct buf *, struct stat *, int);
2266static char *e (p, i)
2267 char **p;
2268 int i;
2269{
2270 return p[i];
2271}
2272static char *f (char * (*g) (char **, int), char **p, ...)
2273{
2274 char *s;
2275 va_list v;
2276 va_start (v,p);
2277 s = g (p, va_arg (v,int));
2278 va_end (v);
2279 return s;
2280}
2281
2282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2283 function prototypes and stuff, but not '\xHH' hex character constants.
2284 These don't provoke an error unfortunately, instead are silently treated
0ab6f085 2285 as 'x'. The following induces an error, until -std1 is added to get
6bf9431b
BE
2286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2287 array size at least. It's necessary to write '\x00'==0 to get something
0ab6f085 2288 that's true only with -std1. */
6bf9431b
BE
2289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2290
2291int test (int i, double x);
2292struct s1 {int (*f) (int a);};
2293struct s2 {int (*f) (double a);};
2294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2295int argc;
2296char **argv;
2297int
2298main ()
2299{
2300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2301 ;
2302 return 0;
2303}
2304_ACEOF
0ab6f085
AM
2305# Don't try gcc -ansi; that turns off useful extensions and
2306# breaks some systems' header files.
2307# AIX -qlanglvl=ansi
2308# Ultrix and OSF/1 -std1
2309# HP-UX 10.20 and later -Ae
2310# HP-UX older versions -Aa -D_HPUX_SOURCE
2311# SVR4 -Xc -D__EXTENSIONS__
2312for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6bf9431b
BE
2313do
2314 CC="$ac_save_CC $ac_arg"
2315 rm -f conftest.$ac_objext
0ab6f085
AM
2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 ac_cv_prog_cc_stdc=$ac_arg
2338break
6bf9431b
BE
2339else
2340 echo "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343fi
0ab6f085 2344rm -f conftest.err conftest.$ac_objext
6bf9431b 2345done
0ab6f085 2346rm -f conftest.$ac_ext conftest.$ac_objext
6bf9431b
BE
2347CC=$ac_save_CC
2348
2349fi
0ab6f085
AM
2350
2351case "x$ac_cv_prog_cc_stdc" in
2352 x|xno)
2353 echo "$as_me:$LINENO: result: none needed" >&5
2354echo "${ECHO_T}none needed" >&6 ;;
6bf9431b 2355 *)
0ab6f085
AM
2356 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2357echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2358 CC="$CC $ac_cv_prog_cc_stdc" ;;
6bf9431b
BE
2359esac
2360
0ab6f085
AM
2361# Some people use a C++ compiler to compile C. Since we use `exit',
2362# in C++ we need to declare it. In case someone uses the same compiler
2363# for both compiling C and C++ we need to have the C++ compiler decide
2364# the declaration of exit, since it's the most demanding environment.
2365cat >conftest.$ac_ext <<_ACEOF
2366#ifndef __cplusplus
2367 choke me
2368#endif
2369_ACEOF
2370rm -f conftest.$ac_objext
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 for ac_declaration in \
2393 '' \
2394 'extern "C" void std::exit (int) throw (); using std::exit;' \
2395 'extern "C" void std::exit (int); using std::exit;' \
2396 'extern "C" void exit (int) throw ();' \
2397 'extern "C" void exit (int);' \
2398 'void exit (int);'
2399do
2400 cat >conftest.$ac_ext <<_ACEOF
2401/* confdefs.h. */
2402_ACEOF
2403cat confdefs.h >>conftest.$ac_ext
2404cat >>conftest.$ac_ext <<_ACEOF
2405/* end confdefs.h. */
2406$ac_declaration
2407#include <stdlib.h>
2408int
2409main ()
2410{
2411exit (42);
2412 ;
2413 return 0;
2414}
2415_ACEOF
2416rm -f conftest.$ac_objext
2417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2419 ac_status=$?
2420 grep -v '^ *+' conftest.er1 >conftest.err
2421 rm -f conftest.er1
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -z "$ac_c_werror_flag"
2426 || test ! -s conftest.err'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 :
2439else
2440 echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443continue
2444fi
2445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h. */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
2451/* end confdefs.h. */
2452$ac_declaration
2453int
2454main ()
2455{
2456exit (42);
2457 ;
2458 return 0;
2459}
2460_ACEOF
2461rm -f conftest.$ac_objext
2462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463 (eval $ac_compile) 2>conftest.er1
2464 ac_status=$?
2465 grep -v '^ *+' conftest.er1 >conftest.err
2466 rm -f conftest.er1
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag"
2471 || test ! -s conftest.err'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 (eval $ac_try) 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2483 break
2484else
2485 echo "$as_me: failed program was:" >&5
2486sed 's/^/| /' conftest.$ac_ext >&5
2487
2488fi
2489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490done
2491rm -f conftest*
2492if test -n "$ac_declaration"; then
2493 echo '#ifdef __cplusplus' >>confdefs.h
2494 echo $ac_declaration >>confdefs.h
2495 echo '#endif' >>confdefs.h
2496fi
2497
2498else
2499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 2501
0ab6f085
AM
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
2504ac_ext=c
2505ac_cpp='$CPP $CPPFLAGS'
2506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509
2510
0ab6f085
AM
2511echo "$as_me:$LINENO: checking for library containing strerror" >&5
2512echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6bf9431b
BE
2513if test "${ac_cv_search_strerror+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515else
2516 ac_func_search_save_LIBS=$LIBS
0ab6f085 2517ac_cv_search_strerror=no
6bf9431b
BE
2518cat >conftest.$ac_ext <<_ACEOF
2519/* confdefs.h. */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h. */
2524
0ab6f085 2525/* Override any gcc2 internal prototype to avoid an error. */
6bf9431b
BE
2526#ifdef __cplusplus
2527extern "C"
2528#endif
0ab6f085
AM
2529/* We use char because int might match the return type of a gcc2
2530 builtin and then its argument prototype would still apply. */
6bf9431b
BE
2531char strerror ();
2532int
2533main ()
2534{
0ab6f085 2535strerror ();
6bf9431b
BE
2536 ;
2537 return 0;
2538}
2539_ACEOF
0ab6f085
AM
2540rm -f conftest.$ac_objext conftest$ac_exeext
2541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2542 (eval $ac_link) 2>conftest.er1
6bf9431b
BE
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag"
2550 || test ! -s conftest.err'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest$ac_exeext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 ac_cv_search_strerror="none required"
6bf9431b
BE
2563else
2564 echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
2566
1b9750d6 2567fi
0ab6f085
AM
2568rm -f conftest.err conftest.$ac_objext \
2569 conftest$ac_exeext conftest.$ac_ext
2570if test "$ac_cv_search_strerror" = no; then
2571 for ac_lib in cposix; do
2572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2573 cat >conftest.$ac_ext <<_ACEOF
2574/* confdefs.h. */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h. */
6bf9431b 2579
0ab6f085
AM
2580/* Override any gcc2 internal prototype to avoid an error. */
2581#ifdef __cplusplus
2582extern "C"
2583#endif
2584/* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586char strerror ();
2587int
2588main ()
2589{
2590strerror ();
2591 ;
2592 return 0;
2593}
2594_ACEOF
2595rm -f conftest.$ac_objext conftest$ac_exeext
2596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2597 (eval $ac_link) 2>conftest.er1
2598 ac_status=$?
2599 grep -v '^ *+' conftest.er1 >conftest.err
2600 rm -f conftest.er1
2601 cat conftest.err >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -z "$ac_c_werror_flag"
2605 || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest$ac_exeext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2617 ac_cv_search_strerror="-l$ac_lib"
2618break
1b9750d6 2619else
0ab6f085
AM
2620 echo "$as_me: failed program was:" >&5
2621sed 's/^/| /' conftest.$ac_ext >&5
2622
2623fi
2624rm -f conftest.err conftest.$ac_objext \
2625 conftest$ac_exeext conftest.$ac_ext
2626 done
6bf9431b
BE
2627fi
2628LIBS=$ac_func_search_save_LIBS
2629fi
0ab6f085
AM
2630echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2631echo "${ECHO_T}$ac_cv_search_strerror" >&6
2632if test "$ac_cv_search_strerror" != no; then
2633 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6bf9431b
BE
2634
2635fi
2636
2637
2638BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
df76639a 2639am__api_version="1.9"
6bf9431b
BE
2640# Find a good install program. We prefer a C program (faster),
2641# so one script is as good as another. But avoid the broken or
2642# incompatible versions:
2643# SysV /etc/install, /usr/sbin/install
2644# SunOS /usr/etc/install
2645# IRIX /sbin/install
2646# AIX /bin/install
2647# AmigaOS /C/install, which installs bootblocks on floppy discs
2648# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2649# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2650# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2651# OS/2's system install, which has a completely different semantic
2652# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2653# Reject install programs that cannot install multiple files.
0ab6f085
AM
2654echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2655echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6bf9431b
BE
2656if test -z "$INSTALL"; then
2657if test "${ac_cv_path_install+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 # Account for people who put trailing slashes in PATH elements.
2666case $as_dir/ in
2667 ./ | .// | /cC/* | \
2668 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2669 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2670 /usr/ucb/* ) ;;
2671 *)
2672 # OSF1 and SCO ODT 3.0 have their own names for install.
2673 # Don't use installbsd from OSF since it installs stuff as root
2674 # by default.
2675 for ac_prog in ginstall scoinst install; do
2676 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 2677 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bf9431b
BE
2678 if test $ac_prog = install &&
2679 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680 # AIX install. It has an incompatible calling convention.
2681 :
2682 elif test $ac_prog = install &&
2683 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2684 # program-specific install script used by HP pwplus--don't use.
2685 :
252b5132 2686 else
58c85be7
RW
2687 rm -rf conftest.one conftest.two conftest.dir
2688 echo one > conftest.one
2689 echo two > conftest.two
2690 mkdir conftest.dir
2691 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2692 test -s conftest.one && test -s conftest.two &&
2693 test -s conftest.dir/conftest.one &&
2694 test -s conftest.dir/conftest.two
2695 then
2696 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2697 break 3
2698 fi
252b5132
RH
2699 fi
2700 fi
2701 done
6bf9431b
BE
2702 done
2703 ;;
2704esac
2705done
2706
58c85be7 2707rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2708
2709fi
2710 if test "${ac_cv_path_install+set}" = set; then
6bf9431b 2711 INSTALL=$ac_cv_path_install
252b5132 2712 else
58c85be7
RW
2713 # As a last resort, use the slow shell script. Don't cache a
2714 # value for INSTALL within a source directory, because that will
252b5132 2715 # break other packages using the cache if that directory is
58c85be7 2716 # removed, or if the value is a relative name.
6bf9431b 2717 INSTALL=$ac_install_sh
252b5132
RH
2718 fi
2719fi
0ab6f085
AM
2720echo "$as_me:$LINENO: result: $INSTALL" >&5
2721echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2722
2723# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2724# It thinks the first close brace ends the variable substitution.
2725test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2726
6bf9431b 2727test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2728
2729test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2730
0ab6f085
AM
2731echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2732echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2733# Just in case
2734sleep 1
6bf9431b 2735echo timestamp > conftest.file
252b5132
RH
2736# Do `set' in a subshell so we don't clobber the current shell's
2737# arguments. Must try -L first in case configure is actually a
2738# symlink; some systems play weird games with the mod time of symlinks
2739# (eg FreeBSD returns the mod time of the symlink's containing
2740# directory).
2741if (
6bf9431b 2742 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2743 if test "$*" = "X"; then
2744 # -L didn't work.
6bf9431b 2745 set X `ls -t $srcdir/configure conftest.file`
252b5132 2746 fi
6bf9431b
BE
2747 rm -f conftest.file
2748 if test "$*" != "X $srcdir/configure conftest.file" \
2749 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2750
2751 # If neither matched, then we have a broken ls. This can happen
2752 # if, for instance, CONFIG_SHELL is bash and it inherits a
2753 # broken ls alias from the environment. This has actually
2754 # happened. Such a system could not be considered "sane".
6bf9431b
BE
2755 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2756alias in your environment" >&5
2757echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2758alias in your environment" >&2;}
2759 { (exit 1); exit 1; }; }
252b5132
RH
2760 fi
2761
6bf9431b 2762 test "$2" = conftest.file
252b5132
RH
2763 )
2764then
2765 # Ok.
2766 :
2767else
6bf9431b
BE
2768 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2769Check your system clock" >&5
2770echo "$as_me: error: newly created file is older than distributed files!
2771Check your system clock" >&2;}
2772 { (exit 1); exit 1; }; }
252b5132 2773fi
0ab6f085
AM
2774echo "$as_me:$LINENO: result: yes" >&5
2775echo "${ECHO_T}yes" >&6
252b5132 2776test "$program_prefix" != NONE &&
0ab6f085 2777 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2778# Use a double $ so make ignores it.
2779test "$program_suffix" != NONE &&
0ab6f085 2780 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6bf9431b
BE
2781# Double any \ or $. echo might interpret backslashes.
2782# By default was `s,x,x', remove it if useless.
2783cat <<\_ACEOF >conftest.sed
2784s/[\\$]/&&/g;s/;s,x,x,$//
2785_ACEOF
2786program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
0ab6f085 2787rm conftest.sed
6bf9431b
BE
2788
2789# expand $ac_aux_dir to an absolute path
2790am_aux_dir=`cd $ac_aux_dir && pwd`
2791
2792test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2793# Use eval to expand $SHELL
2794if eval "$MISSING --run true"; then
2795 am_missing_run="$MISSING --run "
2796else
2797 am_missing_run=
2798 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2799echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2800fi
2801
2802if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
df76639a
AM
2803 # We used to keeping the `.' as first argument, in order to
2804 # allow $(mkdir_p) to be used without argument. As in
6bf9431b 2805 # $(mkdir_p) $(somedir)
df76639a
AM
2806 # where $(somedir) is conditionally defined. However this is wrong
2807 # for two reasons:
2808 # 1. if the package is installed by a user who cannot write `.'
2809 # make install will fail,
2810 # 2. the above comment should most certainly read
2811 # $(mkdir_p) $(DESTDIR)$(somedir)
2812 # so it does not work when $(somedir) is undefined and
2813 # $(DESTDIR) is not.
2814 # To support the latter case, we have to write
2815 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2816 # so the `.' trick is pointless.
2817 mkdir_p='mkdir -p --'
6bf9431b
BE
2818else
2819 # On NextStep and OpenStep, the `mkdir' command does not
2820 # recognize any option. It will interpret all options as
2821 # directories to create, and then abort because `.' already
2822 # exists.
2823 for d in ./-p ./--version;
2824 do
2825 test -d $d && rmdir $d
2826 done
2827 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2828 if test -f "$ac_aux_dir/mkinstalldirs"; then
2829 mkdir_p='$(mkinstalldirs)'
2830 else
2831 mkdir_p='$(install_sh) -d'
2832 fi
2833fi
252b5132 2834
6bf9431b
BE
2835for ac_prog in gawk mawk nawk awk
2836do
2837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2838set dummy $ac_prog; ac_word=$2
0ab6f085
AM
2839echo "$as_me:$LINENO: checking for $ac_word" >&5
2840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
2841if test "${ac_cv_prog_AWK+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843else
2844 if test -n "$AWK"; then
2845 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
2854 ac_cv_prog_AWK="$ac_prog"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858done
2859done
2860
2861fi
2862fi
2863AWK=$ac_cv_prog_AWK
2864if test -n "$AWK"; then
0ab6f085
AM
2865 echo "$as_me:$LINENO: result: $AWK" >&5
2866echo "${ECHO_T}$AWK" >&6
6bf9431b 2867else
0ab6f085
AM
2868 echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6
6bf9431b
BE
2870fi
2871
2872 test -n "$AWK" && break
2873done
252b5132 2874
0ab6f085
AM
2875echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2876echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2877set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2878if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6bf9431b 2879 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2880else
6bf9431b 2881 cat >conftest.make <<\_ACEOF
252b5132 2882all:
0ab6f085 2883 @echo 'ac_maketemp="$(MAKE)"'
6bf9431b 2884_ACEOF
252b5132 2885# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0ab6f085
AM
2886eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2887if test -n "$ac_maketemp"; then
2888 eval ac_cv_prog_make_${ac_make}_set=yes
2889else
2890 eval ac_cv_prog_make_${ac_make}_set=no
2891fi
6bf9431b 2892rm -f conftest.make
252b5132 2893fi
0ab6f085
AM
2894if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2895 echo "$as_me:$LINENO: result: yes" >&5
2896echo "${ECHO_T}yes" >&6
252b5132
RH
2897 SET_MAKE=
2898else
0ab6f085
AM
2899 echo "$as_me:$LINENO: result: no" >&5
2900echo "${ECHO_T}no" >&6
252b5132
RH
2901 SET_MAKE="MAKE=${MAKE-make}"
2902fi
2903
6bf9431b
BE
2904rm -rf .tst 2>/dev/null
2905mkdir .tst 2>/dev/null
2906if test -d .tst; then
2907 am__leading_dot=.
2908else
2909 am__leading_dot=_
2910fi
2911rmdir .tst 2>/dev/null
2912
2913DEPDIR="${am__leading_dot}deps"
2914
0ab6f085 2915 ac_config_commands="$ac_config_commands depfiles"
6bf9431b
BE
2916
2917
2918am_make=${MAKE-make}
2919cat > confinc << 'END'
2920am__doit:
2921 @echo done
2922.PHONY: am__doit
2923END
2924# If we don't find an include directive, just comment out the code.
0ab6f085
AM
2925echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2926echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6bf9431b
BE
2927am__include="#"
2928am__quote=
2929_am_result=none
2930# First try GNU make style include.
2931echo "include confinc" > confmf
2932# We grep out `Entering directory' and `Leaving directory'
2933# messages which can occur if `w' ends up in MAKEFLAGS.
2934# In particular we don't look at `^make:' because GNU make might
2935# be invoked under some other name (usually "gmake"), in which
2936# case it prints its new name instead of `make'.
2937if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2938 am__include=include
2939 am__quote=
2940 _am_result=GNU
2941fi
2942# Now try BSD make style include.
2943if test "$am__include" = "#"; then
2944 echo '.include "confinc"' > confmf
2945 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2946 am__include=.include
2947 am__quote="\""
2948 _am_result=BSD
2949 fi
2950fi
2951
252b5132 2952
0ab6f085
AM
2953echo "$as_me:$LINENO: result: $_am_result" >&5
2954echo "${ECHO_T}$_am_result" >&6
6bf9431b 2955rm -f confinc confmf
252b5132 2956
0ab6f085 2957# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6bf9431b 2958if test "${enable_dependency_tracking+set}" = set; then
0ab6f085 2959 enableval="$enable_dependency_tracking"
252b5132 2960
0ab6f085 2961fi;
6bf9431b
BE
2962if test "x$enable_dependency_tracking" != xno; then
2963 am_depcomp="$ac_aux_dir/depcomp"
2964 AMDEPBACKSLASH='\'
252b5132 2965fi
6bf9431b
BE
2966
2967
2968if test "x$enable_dependency_tracking" != xno; then
2969 AMDEP_TRUE=
2970 AMDEP_FALSE='#'
2971else
2972 AMDEP_TRUE='#'
2973 AMDEP_FALSE=
2974fi
2975
2976
2977
2978# test to see if srcdir already configured
2979if test "`cd $srcdir && pwd`" != "`pwd`" &&
2980 test -f $srcdir/config.status; then
2981 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2982echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2983 { (exit 1); exit 1; }; }
2984fi
2985
2986# test whether we have cygpath
2987if test -z "$CYGPATH_W"; then
2988 if (cygpath --version) >/dev/null 2>/dev/null; then
2989 CYGPATH_W='cygpath -w'
2990 else
2991 CYGPATH_W=echo
2992 fi
2993fi
2994
2995
2996# Define the identity of the package.
2997 PACKAGE=gprof
2998 VERSION=${BFD_VERSION}
2999
3000
3001cat >>confdefs.h <<_ACEOF
252b5132 3002#define PACKAGE "$PACKAGE"
6bf9431b
BE
3003_ACEOF
3004
252b5132 3005
6bf9431b 3006cat >>confdefs.h <<_ACEOF
252b5132 3007#define VERSION "$VERSION"
6bf9431b
BE
3008_ACEOF
3009
3010# Some tools Automake needs.
3011
3012ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3013
3014
3015AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3016
3017
3018AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3019
3020
3021AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3022
3023
3024MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3025
6bf9431b 3026install_sh=${install_sh-"$am_aux_dir/install-sh"}
252b5132 3027
6bf9431b
BE
3028# Installed binaries are usually stripped using `strip' when the user
3029# run `make install-strip'. However `strip' might not be the right
3030# tool to use in cross-compilation environments, therefore Automake
3031# will honor the `STRIP' environment variable to overrule this program.
3032if test "$cross_compiling" != no; then
3033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3035set dummy ${ac_tool_prefix}strip; ac_word=$2
0ab6f085
AM
3036echo "$as_me:$LINENO: checking for $ac_word" >&5
3037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
3038if test "${ac_cv_prog_STRIP+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040else
3041 if test -n "$STRIP"; then
3042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 3050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
3051 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3054 fi
3055done
3056done
3057
3058fi
3059fi
3060STRIP=$ac_cv_prog_STRIP
3061if test -n "$STRIP"; then
0ab6f085
AM
3062 echo "$as_me:$LINENO: result: $STRIP" >&5
3063echo "${ECHO_T}$STRIP" >&6
6bf9431b 3064else
0ab6f085
AM
3065 echo "$as_me:$LINENO: result: no" >&5
3066echo "${ECHO_T}no" >&6
6bf9431b 3067fi
252b5132 3068
6bf9431b
BE
3069fi
3070if test -z "$ac_cv_prog_STRIP"; then
3071 ac_ct_STRIP=$STRIP
3072 # Extract the first word of "strip", so it can be a program name with args.
3073set dummy strip; ac_word=$2
0ab6f085
AM
3074echo "$as_me:$LINENO: checking for $ac_word" >&5
3075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
3076if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079 if test -n "$ac_ct_STRIP"; then
3080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
3089 ac_cv_prog_ac_ct_STRIP="strip"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094done
252b5132 3095
0ab6f085 3096 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6bf9431b
BE
3097fi
3098fi
3099ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3100if test -n "$ac_ct_STRIP"; then
0ab6f085
AM
3101 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3102echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3103else
0ab6f085
AM
3104 echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
252b5132
RH
3106fi
3107
0ab6f085 3108 STRIP=$ac_ct_STRIP
252b5132 3109else
6bf9431b 3110 STRIP="$ac_cv_prog_STRIP"
252b5132
RH
3111fi
3112
6bf9431b
BE
3113fi
3114INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3115
3116# We need awk for the "check" target. The system "awk" is bad on
3117# some platforms.
df76639a
AM
3118# Always define AMTAR for backward compatibility.
3119
3120AMTAR=${AMTAR-"${am_missing_run}tar"}
3121
3122am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3123
3124
6bf9431b
BE
3125
3126
3127depcc="$CC" am_compiler_list=
3128
0ab6f085
AM
3129echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3130echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6bf9431b
BE
3131if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133else
3134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3135 # We make a subdir and do the tests there. Otherwise we can end up
3136 # making bogus files that we don't know about and never remove. For
3137 # instance it was reported that on HP-UX the gcc test will end up
3138 # making a dummy file named `D' -- because `-MD' means `put the output
3139 # in D'.
3140 mkdir conftest.dir
3141 # Copy depcomp to subdir because otherwise we won't find it if we're
3142 # using a relative directory.
3143 cp "$am_depcomp" conftest.dir
3144 cd conftest.dir
3145 # We will build objects and dependencies in a subdirectory because
3146 # it helps to detect inapplicable dependency modes. For instance
3147 # both Tru64's cc and ICC support -MD to output dependencies as a
3148 # side effect of compilation, but ICC will put the dependencies in
3149 # the current directory while Tru64 will put them in the object
3150 # directory.
3151 mkdir sub
3152
3153 am_cv_CC_dependencies_compiler_type=none
3154 if test "$am_compiler_list" = ""; then
3155 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3156 fi
3157 for depmode in $am_compiler_list; do
3158 # Setup a source with many dependencies, because some compilers
3159 # like to wrap large dependency lists on column 80 (with \), and
3160 # we should not choose a depcomp mode which is confused by this.
3161 #
3162 # We need to recreate these files for each test, as the compiler may
3163 # overwrite some of them when testing with obscure command lines.
3164 # This happens at least with the AIX C compiler.
3165 : > sub/conftest.c
3166 for i in 1 2 3 4 5 6; do
3167 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3168 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3169 # Solaris 8's {/usr,}/bin/sh.
3170 touch sub/conftst$i.h
3171 done
3172 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3173
3174 case $depmode in
3175 nosideeffect)
3176 # after this tag, mechanisms are not by side-effect, so they'll
3177 # only be used when explicitly requested
3178 if test "x$enable_dependency_tracking" = xyes; then
3179 continue
3180 else
3181 break
3182 fi
3183 ;;
3184 none) break ;;
3185 esac
3186 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3187 # mode. It turns out that the SunPro C++ compiler does not properly
3188 # handle `-M -o', and we need to detect this.
3189 if depmode=$depmode \
3190 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3192 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3193 >/dev/null 2>conftest.err &&
3194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3195 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3197 # icc doesn't choke on unknown options, it will just issue warnings
3198 # or remarks (even with -Werror). So we grep stderr for any message
3199 # that says an option was ignored or not supported.
3200 # When given -MP, icc 7.0 and 7.1 complain thusly:
3201 # icc: Command line warning: ignoring option '-M'; no argument required
3202 # The diagnosis changed in icc 8.0:
3203 # icc: Command line remark: option '-MP' not supported
3204 if (grep 'ignoring option' conftest.err ||
3205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3206 am_cv_CC_dependencies_compiler_type=$depmode
3207 break
3208 fi
3209 fi
3210 done
3211
3212 cd ..
3213 rm -rf conftest.dir
252b5132 3214else
6bf9431b 3215 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3216fi
3217
252b5132 3218fi
0ab6f085
AM
3219echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3220echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6bf9431b
BE
3221CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3222
252b5132 3223
6bf9431b
BE
3224
3225if
3226 test "x$enable_dependency_tracking" != xno \
3227 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3228 am__fastdepCC_TRUE=
3229 am__fastdepCC_FALSE='#'
252b5132 3230else
6bf9431b
BE
3231 am__fastdepCC_TRUE='#'
3232 am__fastdepCC_FALSE=
252b5132
RH
3233fi
3234
3235
3236
6bf9431b 3237
ce2cded5 3238 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
d7040cdb
SE
3239
3240
ce2cded5
L
3241ac_ext=c
3242ac_cpp='$CPP $CPPFLAGS'
3243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246if test -n "$ac_tool_prefix"; then
3247 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3248set dummy ${ac_tool_prefix}gcc; ac_word=$2
3249echo "$as_me:$LINENO: checking for $ac_word" >&5
3250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3251if test "${ac_cv_prog_CC+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
1b9750d6 3253else
ce2cded5
L
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3256else
ce2cded5
L
3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268done
3269done
0ab6f085 3270
ce2cded5
L
3271fi
3272fi
3273CC=$ac_cv_prog_CC
3274if test -n "$CC"; then
3275 echo "$as_me:$LINENO: result: $CC" >&5
3276echo "${ECHO_T}$CC" >&6
0ab6f085 3277else
ce2cded5
L
3278 echo "$as_me:$LINENO: result: no" >&5
3279echo "${ECHO_T}no" >&6
3280fi
d7040cdb 3281
ce2cded5
L
3282fi
3283if test -z "$ac_cv_prog_CC"; then
3284 ac_ct_CC=$CC
3285 # Extract the first word of "gcc", so it can be a program name with args.
3286set dummy gcc; ac_word=$2
3287echo "$as_me:$LINENO: checking for $ac_word" >&5
3288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3289if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1b9750d6
NC
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
ce2cded5
L
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294else
d7040cdb 3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0ab6f085 3296for as_dir in $PATH
d7040cdb
SE
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
ce2cded5
L
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_prog_ac_ct_CC="gcc"
3303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
0ab6f085 3305 fi
ce2cded5 3306done
0ab6f085 3307done
d7040cdb 3308
ce2cded5
L
3309fi
3310fi
3311ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312if test -n "$ac_ct_CC"; then
3313 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3314echo "${ECHO_T}$ac_ct_CC" >&6
3315else
3316 echo "$as_me:$LINENO: result: no" >&5
3317echo "${ECHO_T}no" >&6
1b9750d6 3318fi
d7040cdb 3319
ce2cded5
L
3320 CC=$ac_ct_CC
3321else
3322 CC="$ac_cv_prog_CC"
3323fi
d7040cdb 3324
ce2cded5
L
3325if test -z "$CC"; then
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3328set dummy ${ac_tool_prefix}cc; ac_word=$2
3329echo "$as_me:$LINENO: checking for $ac_word" >&5
3330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3331if test "${ac_cv_prog_CC+set}" = set; then
0ab6f085 3332 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 3333else
ce2cded5
L
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3336else
ce2cded5
L
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 ac_cv_prog_CC="${ac_tool_prefix}cc"
3345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3347 fi
3348done
3349done
d7040cdb 3350
252b5132
RH
3351fi
3352fi
ce2cded5
L
3353CC=$ac_cv_prog_CC
3354if test -n "$CC"; then
3355 echo "$as_me:$LINENO: result: $CC" >&5
3356echo "${ECHO_T}$CC" >&6
252b5132 3357else
0ab6f085
AM
3358 echo "$as_me:$LINENO: result: no" >&5
3359echo "${ECHO_T}no" >&6
252b5132 3360fi
d7040cdb 3361
252b5132 3362fi
ce2cded5
L
3363if test -z "$ac_cv_prog_CC"; then
3364 ac_ct_CC=$CC
3365 # Extract the first word of "cc", so it can be a program name with args.
3366set dummy cc; ac_word=$2
0ab6f085
AM
3367echo "$as_me:$LINENO: checking for $ac_word" >&5
3368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3369if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb 3370 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3371else
ce2cded5
L
3372 if test -n "$ac_ct_CC"; then
3373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3374else
3375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376for as_dir in $PATH
3377do
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 3381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3382 ac_cv_prog_ac_ct_CC="cc"
d7040cdb
SE
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386done
3387done
ac48eca1 3388
d7040cdb
SE
3389fi
3390fi
ce2cded5
L
3391ac_ct_CC=$ac_cv_prog_ac_ct_CC
3392if test -n "$ac_ct_CC"; then
3393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3394echo "${ECHO_T}$ac_ct_CC" >&6
3395else
3396 echo "$as_me:$LINENO: result: no" >&5
3397echo "${ECHO_T}no" >&6
d7040cdb 3398fi
6be7c12c 3399
ce2cded5
L
3400 CC=$ac_ct_CC
3401else
3402 CC="$ac_cv_prog_CC"
3403fi
3404
3405fi
3406if test -z "$CC"; then
3407 # Extract the first word of "cc", so it can be a program name with args.
3408set dummy cc; ac_word=$2
3409echo "$as_me:$LINENO: checking for $ac_word" >&5
3410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411if test "${ac_cv_prog_CC+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416else
3417 ac_prog_rejected=no
3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH
3420do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3426 ac_prog_rejected=yes
3427 continue
3428 fi
3429 ac_cv_prog_CC="cc"
3430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433done
3434done
3435
3436if test $ac_prog_rejected = yes; then
3437 # We found a bogon in the path, so make sure we never use it.
3438 set dummy $ac_cv_prog_CC
3439 shift
3440 if test $# != 0; then
3441 # We chose a different compiler from the bogus one.
3442 # However, it has the same basename, so the bogon will be chosen
3443 # first if we set CC to just the basename; use the full file name.
3444 shift
3445 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3446 fi
3447fi
3448fi
3449fi
3450CC=$ac_cv_prog_CC
3451if test -n "$CC"; then
3452 echo "$as_me:$LINENO: result: $CC" >&5
3453echo "${ECHO_T}$CC" >&6
3454else
3455 echo "$as_me:$LINENO: result: no" >&5
3456echo "${ECHO_T}no" >&6
3457fi
3458
3459fi
3460if test -z "$CC"; then
3461 if test -n "$ac_tool_prefix"; then
3462 for ac_prog in cl
3463 do
3464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3466echo "$as_me:$LINENO: checking for $ac_word" >&5
3467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468if test "${ac_cv_prog_CC+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470else
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC="$CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 break 2
3484 fi
3485done
3486done
3487
3488fi
3489fi
3490CC=$ac_cv_prog_CC
3491if test -n "$CC"; then
3492 echo "$as_me:$LINENO: result: $CC" >&5
3493echo "${ECHO_T}$CC" >&6
3494else
3495 echo "$as_me:$LINENO: result: no" >&5
3496echo "${ECHO_T}no" >&6
3497fi
3498
3499 test -n "$CC" && break
d7040cdb
SE
3500 done
3501fi
ce2cded5
L
3502if test -z "$CC"; then
3503 ac_ct_CC=$CC
3504 for ac_prog in cl
d7040cdb
SE
3505do
3506 # Extract the first word of "$ac_prog", so it can be a program name with args.
3507set dummy $ac_prog; ac_word=$2
0ab6f085
AM
3508echo "$as_me:$LINENO: checking for $ac_word" >&5
3509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3510if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512else
ce2cded5
L
3513 if test -n "$ac_ct_CC"; then
3514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3515else
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 3522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3523 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
ac48eca1 3526 fi
d7040cdb
SE
3527done
3528done
ac48eca1 3529
d7040cdb
SE
3530fi
3531fi
ce2cded5
L
3532ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533if test -n "$ac_ct_CC"; then
3534 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3535echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb 3536else
0ab6f085
AM
3537 echo "$as_me:$LINENO: result: no" >&5
3538echo "${ECHO_T}no" >&6
d7040cdb 3539fi
ac48eca1 3540
ce2cded5 3541 test -n "$ac_ct_CC" && break
d7040cdb 3542done
ac48eca1 3543
ce2cded5 3544 CC=$ac_ct_CC
d7040cdb 3545fi
ac48eca1 3546
d7040cdb 3547fi
ac48eca1 3548
ac48eca1 3549
ce2cded5
L
3550test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3551See \`config.log' for more details." >&5
3552echo "$as_me: error: no acceptable C compiler found in \$PATH
3553See \`config.log' for more details." >&2;}
3554 { (exit 1); exit 1; }; }
6be7c12c 3555
ce2cded5
L
3556# Provide some information about the compiler.
3557echo "$as_me:$LINENO:" \
3558 "checking for C compiler version" >&5
3559ac_compiler=`set X $ac_compile; echo $2`
3560{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3561 (eval $ac_compiler --version </dev/null >&5) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }
3565{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3566 (eval $ac_compiler -v </dev/null >&5) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }
3570{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3571 (eval $ac_compiler -V </dev/null >&5) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }
ac48eca1 3575
ce2cded5
L
3576echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3577echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3578if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
ce2cded5
L
3581 cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
3586/* end confdefs.h. */
ac48eca1 3587
ce2cded5
L
3588int
3589main ()
3590{
3591#ifndef __GNUC__
3592 choke me
3593#endif
3594
3595 ;
3596 return 0;
3597}
3598_ACEOF
3599rm -f conftest.$ac_objext
3600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 ac_compiler_gnu=yes
d7040cdb 3622else
ce2cded5
L
3623 echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626ac_compiler_gnu=no
d7040cdb 3627fi
ce2cded5
L
3628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3629ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3630
ce2cded5
L
3631fi
3632echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3633echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3634GCC=`test $ac_compiler_gnu = yes && echo yes`
3635ac_test_CFLAGS=${CFLAGS+set}
3636ac_save_CFLAGS=$CFLAGS
3637CFLAGS="-g"
3638echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3639echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3640if test "${ac_cv_prog_cc_g+set}" = set; then
108a6f8e
CD
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
ce2cded5
L
3643 cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
d7040cdb 3649
ce2cded5
L
3650int
3651main ()
3652{
d7040cdb 3653
ce2cded5
L
3654 ;
3655 return 0;
3656}
3657_ACEOF
3658rm -f conftest.$ac_objext
3659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 ac_cv_prog_cc_g=yes
3681else
3682 echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
108a6f8e 3684
ce2cded5 3685ac_cv_prog_cc_g=no
108a6f8e 3686fi
ce2cded5 3687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
108a6f8e 3688fi
ce2cded5
L
3689echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3690echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3691if test "$ac_test_CFLAGS" = set; then
3692 CFLAGS=$ac_save_CFLAGS
3693elif test $ac_cv_prog_cc_g = yes; then
3694 if test "$GCC" = yes; then
3695 CFLAGS="-g -O2"
3696 else
3697 CFLAGS="-g"
3698 fi
ac48eca1 3699else
ce2cded5
L
3700 if test "$GCC" = yes; then
3701 CFLAGS="-O2"
3702 else
3703 CFLAGS=
3704 fi
ac48eca1 3705fi
ce2cded5
L
3706echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3707echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3708if test "${ac_cv_prog_cc_stdc+set}" = set; then
6bf9431b 3709 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3710else
ce2cded5
L
3711 ac_cv_prog_cc_stdc=no
3712ac_save_CC=$CC
3713cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h. */
3719#include <stdarg.h>
3720#include <stdio.h>
3721#include <sys/types.h>
3722#include <sys/stat.h>
3723/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3724struct buf { int x; };
3725FILE * (*rcsopen) (struct buf *, struct stat *, int);
3726static char *e (p, i)
3727 char **p;
3728 int i;
3729{
3730 return p[i];
3731}
3732static char *f (char * (*g) (char **, int), char **p, ...)
3733{
3734 char *s;
3735 va_list v;
3736 va_start (v,p);
3737 s = g (p, va_arg (v,int));
3738 va_end (v);
3739 return s;
3740}
d7040cdb 3741
ce2cded5
L
3742/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3743 function prototypes and stuff, but not '\xHH' hex character constants.
3744 These don't provoke an error unfortunately, instead are silently treated
3745 as 'x'. The following induces an error, until -std1 is added to get
3746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3747 array size at least. It's necessary to write '\x00'==0 to get something
3748 that's true only with -std1. */
3749int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3750
ce2cded5
L
3751int test (int i, double x);
3752struct s1 {int (*f) (int a);};
3753struct s2 {int (*f) (double a);};
3754int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3755int argc;
3756char **argv;
3757int
3758main ()
3759{
3760return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3761 ;
3762 return 0;
3763}
3764_ACEOF
3765# Don't try gcc -ansi; that turns off useful extensions and
3766# breaks some systems' header files.
3767# AIX -qlanglvl=ansi
3768# Ultrix and OSF/1 -std1
3769# HP-UX 10.20 and later -Ae
3770# HP-UX older versions -Aa -D_HPUX_SOURCE
3771# SVR4 -Xc -D__EXTENSIONS__
3772for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3773do
3774 CC="$ac_save_CC $ac_arg"
3775 rm -f conftest.$ac_objext
3776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -z "$ac_c_werror_flag"
3785 || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 ac_cv_prog_cc_stdc=$ac_arg
3798break
3799else
3800 echo "$as_me: failed program was:" >&5
3801sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3802
ce2cded5
L
3803fi
3804rm -f conftest.err conftest.$ac_objext
3805done
3806rm -f conftest.$ac_ext conftest.$ac_objext
3807CC=$ac_save_CC
d7040cdb 3808
ce2cded5 3809fi
d7040cdb 3810
ce2cded5
L
3811case "x$ac_cv_prog_cc_stdc" in
3812 x|xno)
3813 echo "$as_me:$LINENO: result: none needed" >&5
3814echo "${ECHO_T}none needed" >&6 ;;
3815 *)
3816 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3817echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3818 CC="$CC $ac_cv_prog_cc_stdc" ;;
3819esac
d7040cdb 3820
ce2cded5
L
3821# Some people use a C++ compiler to compile C. Since we use `exit',
3822# in C++ we need to declare it. In case someone uses the same compiler
3823# for both compiling C and C++ we need to have the C++ compiler decide
3824# the declaration of exit, since it's the most demanding environment.
3825cat >conftest.$ac_ext <<_ACEOF
3826#ifndef __cplusplus
3827 choke me
3828#endif
3829_ACEOF
3830rm -f conftest.$ac_objext
3831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 for ac_declaration in \
3853 '' \
3854 'extern "C" void std::exit (int) throw (); using std::exit;' \
3855 'extern "C" void std::exit (int); using std::exit;' \
3856 'extern "C" void exit (int) throw ();' \
3857 'extern "C" void exit (int);' \
3858 'void exit (int);'
3859do
3860 cat >conftest.$ac_ext <<_ACEOF
3861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h. */
3866$ac_declaration
3867#include <stdlib.h>
3868int
3869main ()
3870{
3871exit (42);
3872 ;
3873 return 0;
3874}
3875_ACEOF
3876rm -f conftest.$ac_objext
3877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878 (eval $ac_compile) 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try='test -z "$ac_c_werror_flag"
3886 || test ! -s conftest.err'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 (eval $ac_try) 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try='test -s conftest.$ac_objext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 :
3899else
3900 echo "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3902
ce2cded5
L
3903continue
3904fi
3905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906 cat >conftest.$ac_ext <<_ACEOF
3907/* confdefs.h. */
3908_ACEOF
3909cat confdefs.h >>conftest.$ac_ext
3910cat >>conftest.$ac_ext <<_ACEOF
3911/* end confdefs.h. */
3912$ac_declaration
3913int
3914main ()
3915{
3916exit (42);
3917 ;
3918 return 0;
3919}
3920_ACEOF
3921rm -f conftest.$ac_objext
3922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag"
3931 || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest.$ac_objext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 break
3944else
3945 echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3947
ce2cded5
L
3948fi
3949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3950done
3951rm -f conftest*
3952if test -n "$ac_declaration"; then
3953 echo '#ifdef __cplusplus' >>confdefs.h
3954 echo $ac_declaration >>confdefs.h
3955 echo '#endif' >>confdefs.h
3956fi
d7040cdb 3957
d7040cdb 3958else
ce2cded5
L
3959 echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3961
ce2cded5
L
3962fi
3963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3964ac_ext=c
3965ac_cpp='$CPP $CPPFLAGS'
3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 3969
d7040cdb 3970
ce2cded5
L
3971cat >>confdefs.h <<\_ACEOF
3972#define _GNU_SOURCE 1
3973_ACEOF
d7040cdb 3974
d7040cdb 3975
ce2cded5
L
3976# Find a good install program. We prefer a C program (faster),
3977# so one script is as good as another. But avoid the broken or
3978# incompatible versions:
3979# SysV /etc/install, /usr/sbin/install
3980# SunOS /usr/etc/install
3981# IRIX /sbin/install
3982# AIX /bin/install
3983# AmigaOS /C/install, which installs bootblocks on floppy discs
3984# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3985# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3986# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3987# OS/2's system install, which has a completely different semantic
3988# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3989# Reject install programs that cannot install multiple files.
ce2cded5
L
3990echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3991echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3992if test -z "$INSTALL"; then
3993if test "${ac_cv_path_install+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 # Account for people who put trailing slashes in PATH elements.
4002case $as_dir/ in
4003 ./ | .// | /cC/* | \
4004 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4005 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4006 /usr/ucb/* ) ;;
4007 *)
4008 # OSF1 and SCO ODT 3.0 have their own names for install.
4009 # Don't use installbsd from OSF since it installs stuff as root
4010 # by default.
4011 for ac_prog in ginstall scoinst install; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4014 if test $ac_prog = install &&
4015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4016 # AIX install. It has an incompatible calling convention.
4017 :
4018 elif test $ac_prog = install &&
4019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4020 # program-specific install script used by HP pwplus--don't use.
4021 :
4022 else
58c85be7
RW
4023 rm -rf conftest.one conftest.two conftest.dir
4024 echo one > conftest.one
4025 echo two > conftest.two
4026 mkdir conftest.dir
4027 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4028 test -s conftest.one && test -s conftest.two &&
4029 test -s conftest.dir/conftest.one &&
4030 test -s conftest.dir/conftest.two
4031 then
4032 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4033 break 3
4034 fi
ce2cded5
L
4035 fi
4036 fi
4037 done
4038 done
4039 ;;
4040esac
4041done
d7040cdb 4042
58c85be7 4043rm -rf conftest.one conftest.two conftest.dir
d7040cdb 4044
ce2cded5
L
4045fi
4046 if test "${ac_cv_path_install+set}" = set; then
4047 INSTALL=$ac_cv_path_install
d7040cdb 4048 else
58c85be7
RW
4049 # As a last resort, use the slow shell script. Don't cache a
4050 # value for INSTALL within a source directory, because that will
ce2cded5 4051 # break other packages using the cache if that directory is
58c85be7 4052 # removed, or if the value is a relative name.
ce2cded5 4053 INSTALL=$ac_install_sh
d7040cdb 4054 fi
ce2cded5
L
4055fi
4056echo "$as_me:$LINENO: result: $INSTALL" >&5
4057echo "${ECHO_T}$INSTALL" >&6
ac48eca1 4058
ce2cded5
L
4059# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4060# It thinks the first close brace ends the variable substitution.
4061test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ac48eca1 4062
ce2cded5 4063test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
ac48eca1 4064
ce2cded5 4065test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
d7040cdb 4066
d7040cdb 4067
252b5132 4068
d7040cdb 4069
ce2cded5
L
4070macro_version='2.1a'
4071macro_revision='1.2435'
d7040cdb 4072
d7040cdb 4073
d7040cdb 4074
d7040cdb 4075
d7040cdb 4076
252b5132 4077
d7040cdb
SE
4078
4079
4080
4081
4082
4083
ce2cded5 4084ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4085
ce2cded5 4086# Set options
d7040cdb 4087
ce2cded5 4088enable_dlopen=no
d7040cdb
SE
4089
4090
ce2cded5 4091enable_win32_dll=no
d7040cdb
SE
4092
4093
ce2cded5
L
4094# Check whether --enable-shared or --disable-shared was given.
4095if test "${enable_shared+set}" = set; then
4096 enableval="$enable_shared"
4097 p=${PACKAGE-default}
4098 case $enableval in
4099 yes) enable_shared=yes ;;
4100 no) enable_shared=no ;;
4101 *)
4102 enable_shared=no
4103 # Look at the argument we got. We use all the common list separators.
4104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4105 for pkg in $enableval; do
4106 IFS="$lt_save_ifs"
4107 if test "X$pkg" = "X$p"; then
4108 enable_shared=yes
4109 fi
4110 done
4111 IFS="$lt_save_ifs"
4112 ;;
4113 esac
ac48eca1 4114else
ce2cded5
L
4115 enable_shared=yes
4116fi;
6bf9431b 4117
ac48eca1 4118
6bf9431b 4119
ac48eca1 4120
ac48eca1 4121
d7040cdb
SE
4122
4123
4124
ce2cded5
L
4125# Check whether --enable-static or --disable-static was given.
4126if test "${enable_static+set}" = set; then
4127 enableval="$enable_static"
4128 p=${PACKAGE-default}
4129 case $enableval in
4130 yes) enable_static=yes ;;
4131 no) enable_static=no ;;
4132 *)
4133 enable_static=no
4134 # Look at the argument we got. We use all the common list separators.
4135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4136 for pkg in $enableval; do
4137 IFS="$lt_save_ifs"
4138 if test "X$pkg" = "X$p"; then
4139 enable_static=yes
4140 fi
4141 done
4142 IFS="$lt_save_ifs"
4143 ;;
4144 esac
4145else
4146 enable_static=yes
4147fi;
d7040cdb
SE
4148
4149
4150
4151
4152
4153
4154
4155
6bf9431b 4156
ce2cded5
L
4157# Check whether --with-pic or --without-pic was given.
4158if test "${with_pic+set}" = set; then
4159 withval="$with_pic"
4160 pic_mode="$withval"
ac48eca1 4161else
ce2cded5
L
4162 pic_mode=default
4163fi;
ac48eca1 4164
ce2cded5 4165test -z "$pic_mode" && pic_mode=default
6bf9431b 4166
ac48eca1 4167
ce2cded5
L
4168
4169
4170
4171
4172
4173# Check whether --enable-fast-install or --disable-fast-install was given.
4174if test "${enable_fast_install+set}" = set; then
4175 enableval="$enable_fast_install"
4176 p=${PACKAGE-default}
4177 case $enableval in
4178 yes) enable_fast_install=yes ;;
4179 no) enable_fast_install=no ;;
4180 *)
4181 enable_fast_install=no
4182 # Look at the argument we got. We use all the common list separators.
4183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4184 for pkg in $enableval; do
4185 IFS="$lt_save_ifs"
4186 if test "X$pkg" = "X$p"; then
4187 enable_fast_install=yes
4188 fi
4189 done
4190 IFS="$lt_save_ifs"
4191 ;;
4192 esac
ac48eca1 4193else
ce2cded5
L
4194 enable_fast_install=yes
4195fi;
ac48eca1
AO
4196
4197
252b5132 4198
5af11cab 4199
5af11cab 4200
5af11cab 4201
6bf9431b 4202
ce2cded5
L
4203
4204echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4205echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4206if test "${lt_cv_path_SED+set}" = set; then
6bf9431b
BE
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
ce2cded5
L
4209 # Loop through the user's path and test for sed and gsed.
4210# Then use that list of sed's as ones to test for truncation.
6bf9431b
BE
4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
ce2cded5
L
4216 for lt_ac_prog in sed gsed; do
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4219 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4220 fi
4221 done
4222 done
6bf9431b 4223done
ce2cded5
L
4224IFS=$as_save_IFS
4225lt_ac_max=0
4226lt_ac_count=0
4227# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4228# along with /bin/sed that truncates output.
4229for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4230 test ! -f $lt_ac_sed && continue
4231 cat /dev/null > conftest.in
4232 lt_ac_count=0
4233 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4234 # Check for GNU sed and select it if it is found.
4235 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4236 lt_cv_path_SED=$lt_ac_sed
4237 break
6bf9431b 4238 fi
ce2cded5
L
4239 while true; do
4240 cat conftest.in conftest.in >conftest.tmp
4241 mv conftest.tmp conftest.in
4242 cp conftest.in conftest.nl
4243 echo >>conftest.nl
4244 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4245 cmp -s conftest.out conftest.nl || break
4246 # 10000 chars as input seems more than enough
4247 test $lt_ac_count -gt 10 && break
4248 lt_ac_count=`expr $lt_ac_count + 1`
4249 if test $lt_ac_count -gt $lt_ac_max; then
4250 lt_ac_max=$lt_ac_count
4251 lt_cv_path_SED=$lt_ac_sed
4252 fi
4253 done
6bf9431b
BE
4254done
4255
6bf9431b
BE
4256fi
4257
ce2cded5 4258SED=$lt_cv_path_SED
6bf9431b 4259
ce2cded5
L
4260echo "$as_me:$LINENO: result: $SED" >&5
4261echo "${ECHO_T}$SED" >&6
6bf9431b 4262
ce2cded5
L
4263test -z "$SED" && SED=sed
4264Xsed="$SED -e 1s/^X//"
6bf9431b 4265
6bf9431b 4266
6bf9431b 4267
252b5132 4268
6bf9431b 4269
252b5132 4270
6bf9431b 4271
252b5132 4272
6bf9431b 4273
252b5132 4274
252b5132 4275
ce2cded5
L
4276echo "$as_me:$LINENO: checking for egrep" >&5
4277echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4278if test "${ac_cv_prog_egrep+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4282 then ac_cv_prog_egrep='grep -E'
4283 else ac_cv_prog_egrep='egrep'
4284 fi
4285fi
4286echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4287echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4288 EGREP=$ac_cv_prog_egrep
4289
6bf9431b 4290
ce2cded5
L
4291echo "$as_me:$LINENO: checking for fgrep" >&5
4292echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4293if test "${ac_cv_prog_fgrep+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4297 then ac_cv_prog_fgrep='grep -F'
4298 else ac_cv_prog_fgrep='fgrep'
4299 fi
4300fi
4301echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4302echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4303 FGREP=$ac_cv_prog_fgrep
6bf9431b
BE
4304
4305
ce2cded5 4306test -z "$GREP" && GREP=grep
6bf9431b 4307
d7040cdb
SE
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
ce2cded5
L
4326# Check whether --with-gnu-ld or --without-gnu-ld was given.
4327if test "${with_gnu_ld+set}" = set; then
4328 withval="$with_gnu_ld"
4329 test "$withval" = no || with_gnu_ld=yes
4330else
4331 with_gnu_ld=no
4332fi;
4333ac_prog=ld
4334if test "$GCC" = yes; then
4335 # Check if gcc -print-prog-name=ld gives a path.
4336 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4337echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4338 case $host in
4339 *-*-mingw*)
4340 # gcc leaves a trailing carriage return which upsets mingw
4341 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4342 *)
4343 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4344 esac
4345 case $ac_prog in
4346 # Accept absolute paths.
4347 [\\/]* | ?:[\\/]*)
4348 re_direlt='/[^/][^/]*/\.\./'
4349 # Canonicalize the pathname of ld
4350 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4351 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4352 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4353 done
4354 test -z "$LD" && LD="$ac_prog"
4355 ;;
4356 "")
4357 # If it fails, then pretend we aren't using GCC.
4358 ac_prog=ld
4359 ;;
4360 *)
4361 # If it is relative, then search for the first ld in PATH.
4362 with_gnu_ld=unknown
4363 ;;
4364 esac
4365elif test "$with_gnu_ld" = yes; then
4366 echo "$as_me:$LINENO: checking for GNU ld" >&5
4367echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4368else
4369 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4370echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4371fi
4372if test "${lt_cv_path_LD+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375 if test -z "$LD"; then
4376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4377 for ac_dir in $PATH; do
4378 IFS="$lt_save_ifs"
4379 test -z "$ac_dir" && ac_dir=.
4380 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4381 lt_cv_path_LD="$ac_dir/$ac_prog"
4382 # Check to see if the program is GNU ld. I'd rather use --version,
4383 # but apparently some variants of GNU ld only accept -v.
4384 # Break only if it was the GNU/non-GNU ld that we prefer.
4385 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4386 *GNU* | *'with BFD'*)
4387 test "$with_gnu_ld" != no && break
4388 ;;
4389 *)
4390 test "$with_gnu_ld" != yes && break
4391 ;;
4392 esac
4393 fi
4394 done
4395 IFS="$lt_save_ifs"
4396else
4397 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4398fi
4399fi
d7040cdb 4400
ce2cded5
L
4401LD="$lt_cv_path_LD"
4402if test -n "$LD"; then
4403 echo "$as_me:$LINENO: result: $LD" >&5
4404echo "${ECHO_T}$LD" >&6
4405else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408fi
4409test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4410echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4411 { (exit 1); exit 1; }; }
4412echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4413echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4414if test "${lt_cv_prog_gnu_ld+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4418case `$LD -v 2>&1 </dev/null` in
4419*GNU* | *'with BFD'*)
4420 lt_cv_prog_gnu_ld=yes
4421 ;;
4422*)
4423 lt_cv_prog_gnu_ld=no
4424 ;;
4425esac
4426fi
4427echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4428echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4429with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
4430
4431
4432
4433
4434
4435
d7040cdb 4436
d7040cdb 4437
d7040cdb
SE
4438
4439
ce2cded5
L
4440echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4441echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4442if test "${lt_cv_path_NM+set}" = set; then
d7040cdb
SE
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444else
ce2cded5
L
4445 if test -n "$NM"; then
4446 # Let the user override the test.
4447 lt_cv_path_NM="$NM"
4448else
4449 lt_nm_to_check="${ac_tool_prefix}nm"
4450 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4451 lt_nm_to_check="$lt_nm_to_check nm"
d7040cdb 4452 fi
ce2cded5
L
4453 for lt_tmp_nm in $lt_nm_to_check; do
4454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4455 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4456 IFS="$lt_save_ifs"
4457 test -z "$ac_dir" && ac_dir=.
4458 tmp_nm="$ac_dir/$lt_tmp_nm"
4459 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4460 # Check to see if the nm accepts a BSD-compat flag.
4461 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4462 # nm: unknown option "B" ignored
4463 # Tru64's nm complains that /dev/null is an invalid object file
4464 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4465 */dev/null* | *'Invalid file or object type'*)
4466 lt_cv_path_NM="$tmp_nm -B"
4467 break
4468 ;;
4469 *)
4470 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4471 */dev/null*)
4472 lt_cv_path_NM="$tmp_nm -p"
4473 break
4474 ;;
4475 *)
4476 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4477 continue # so that we can try to find one that supports BSD flags
4478 ;;
4479 esac
4480 ;;
4481 esac
4482 fi
4483 done
4484 IFS="$lt_save_ifs"
4485 done
4486 : ${lt_cv_path_NM=no}
4487fi
4488fi
4489echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4490echo "${ECHO_T}$lt_cv_path_NM" >&6
4491if test "$lt_cv_path_NM" != "no"; then
4492 NM="$lt_cv_path_NM"
4493else
4494 # Didn't find any BSD compatible name lister, look for dumpbin.
4495 if test -n "$ac_tool_prefix"; then
4496 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4497 do
4498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4499set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4500echo "$as_me:$LINENO: checking for $ac_word" >&5
4501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505 if test -n "$DUMPBIN"; then
4506 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4507else
4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
4510do
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 break 2
4518 fi
4519done
4520done
d7040cdb 4521
ce2cded5
L
4522fi
4523fi
4524DUMPBIN=$ac_cv_prog_DUMPBIN
4525if test -n "$DUMPBIN"; then
4526 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4527echo "${ECHO_T}$DUMPBIN" >&6
4528else
4529 echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
4531fi
d7040cdb 4532
ce2cded5
L
4533 test -n "$DUMPBIN" && break
4534 done
4535fi
4536if test -z "$DUMPBIN"; then
4537 ac_ct_DUMPBIN=$DUMPBIN
4538 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4539do
4540 # Extract the first word of "$ac_prog", so it can be a program name with args.
4541set dummy $ac_prog; ac_word=$2
4542echo "$as_me:$LINENO: checking for $ac_word" >&5
4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 if test -n "$ac_ct_DUMPBIN"; then
4548 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4549else
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561done
4562done
d7040cdb 4563
ce2cded5
L
4564fi
4565fi
4566ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4567if test -n "$ac_ct_DUMPBIN"; then
4568 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4569echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4570else
4571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
4573fi
d7040cdb 4574
ce2cded5
L
4575 test -n "$ac_ct_DUMPBIN" && break
4576done
4577test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d7040cdb 4578
ce2cded5
L
4579 DUMPBIN=$ac_ct_DUMPBIN
4580fi
d7040cdb 4581
d7040cdb 4582
ce2cded5
L
4583 if test "$DUMPBIN" != ":"; then
4584 NM="$DUMPBIN"
d7040cdb 4585 fi
ce2cded5
L
4586fi
4587test -z "$NM" && NM=nm
d7040cdb 4588
d7040cdb 4589
d7040cdb 4590
d7040cdb 4591
d7040cdb 4592
d7040cdb 4593
ce2cded5
L
4594echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4595echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4596if test "${lt_cv_nm_interface+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 lt_cv_nm_interface="BSD nm"
4600 echo "int some_variable = 0;" > conftest.$ac_ext
58c85be7 4601 (eval echo "\"\$as_me:4601: $ac_compile\"" >&5)
ce2cded5
L
4602 (eval "$ac_compile" 2>conftest.err)
4603 cat conftest.err >&5
58c85be7 4604 (eval echo "\"\$as_me:4604: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
4605 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4606 cat conftest.err >&5
58c85be7 4607 (eval echo "\"\$as_me:4607: output\"" >&5)
ce2cded5
L
4608 cat conftest.out >&5
4609 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4610 lt_cv_nm_interface="MS dumpbin"
4611 fi
4612 rm -f conftest*
4613fi
4614echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4615echo "${ECHO_T}$lt_cv_nm_interface" >&6
d7040cdb 4616
ce2cded5
L
4617echo "$as_me:$LINENO: checking whether ln -s works" >&5
4618echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4619LN_S=$as_ln_s
4620if test "$LN_S" = "ln -s"; then
4621 echo "$as_me:$LINENO: result: yes" >&5
4622echo "${ECHO_T}yes" >&6
4623else
4624 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4625echo "${ECHO_T}no, using $LN_S" >&6
4626fi
d7040cdb 4627
ce2cded5
L
4628# find the maximum length of command line arguments
4629echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4630echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4631if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634 i=0
4635 teststring="ABCD"
4636
4637 case $build_os in
4638 msdosdjgpp*)
4639 # On DJGPP, this test can blow up pretty badly due to problems in libc
4640 # (any single argument exceeding 2000 bytes causes a buffer overrun
4641 # during glob expansion). Even if it were fixed, the result of this
4642 # check would be larger than it should be.
4643 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4644 ;;
4645
4646 gnu*)
4647 # Under GNU Hurd, this test is not required because there is
4648 # no limit to the length of command line arguments.
4649 # Libtool will interpret -1 as no limit whatsoever
4650 lt_cv_sys_max_cmd_len=-1;
4651 ;;
4652
4653 cygwin* | mingw*)
4654 # On Win9x/ME, this test blows up -- it succeeds, but takes
4655 # about 5 minutes as the teststring grows exponentially.
4656 # Worse, since 9x/ME are not pre-emptively multitasking,
4657 # you end up with a "frozen" computer, even though with patience
4658 # the test eventually succeeds (with a max line length of 256k).
4659 # Instead, let's just punt: use the minimum linelength reported by
4660 # all of the supported platforms: 8192 (on NT/2K/XP).
4661 lt_cv_sys_max_cmd_len=8192;
4662 ;;
4663
4664 amigaos*)
4665 # On AmigaOS with pdksh, this test takes hours, literally.
4666 # So we just punt and use a minimum line length of 8192.
4667 lt_cv_sys_max_cmd_len=8192;
4668 ;;
4669
4670 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4671 # This has been around since 386BSD, at least. Likely further.
4672 if test -x /sbin/sysctl; then
4673 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4674 elif test -x /usr/sbin/sysctl; then
4675 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
d7040cdb 4676 else
ce2cded5 4677 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d7040cdb 4678 fi
ce2cded5
L
4679 # And add a safety zone
4680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4682 ;;
6bf9431b 4683
ce2cded5
L
4684 interix*)
4685 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4686 lt_cv_sys_max_cmd_len=196608
4687 ;;
d7040cdb 4688
ce2cded5
L
4689 osf*)
4690 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4691 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4692 # nice to cause kernel panics so lets avoid the loop below.
4693 # First set a reasonable default.
4694 lt_cv_sys_max_cmd_len=16384
4695 #
4696 if test -x /sbin/sysconfig; then
4697 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4698 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4699 esac
4700 fi
4701 ;;
4702 sco3.2v5*)
4703 lt_cv_sys_max_cmd_len=102400
4704 ;;
4705 sysv5* | sco5v6* | sysv4.2uw2*)
4706 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4707 if test -n "$kargmax"; then
4708 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4709 else
4710 lt_cv_sys_max_cmd_len=32768
4711 fi
4712 ;;
4713 *)
4714 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4715 if test -n $lt_cv_sys_max_cmd_len; then
4716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4718 else
4719 # Make teststring a little bigger before we do anything with it.
4720 # a 1K string should be a reasonable start.
4721 for i in 1 2 3 4 5 6 7 8 ; do
4722 teststring=$teststring$teststring
4723 done
4724 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4725 # If test is not a shell built-in, we'll probably end up computing a
4726 # maximum length that is only half of the actual maximum length, but
4727 # we can't tell.
4728 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4729 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4730 test $i != 17 # 1/2 MB should be enough
4731 do
4732 i=`expr $i + 1`
4733 teststring=$teststring$teststring
4734 done
4735 # Only check the string length outside the loop.
4736 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4737 teststring=
4738 # Add a significant safety factor because C++ compilers can tack on
4739 # massive amounts of additional arguments before passing them to the
4740 # linker. It appears as though 1/2 is a usable value.
4741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4742 fi
4743 ;;
4744 esac
d7040cdb 4745
d7040cdb 4746fi
ce2cded5
L
4747
4748if test -n $lt_cv_sys_max_cmd_len ; then
4749 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4750echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
d7040cdb 4751else
ce2cded5
L
4752 echo "$as_me:$LINENO: result: none" >&5
4753echo "${ECHO_T}none" >&6
d7040cdb 4754fi
ce2cded5 4755max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
4756
4757
4758
4759
4760
4761
4762
ce2cded5
L
4763: ${CP="cp -f"}
4764: ${MV="mv -f"}
4765: ${RM="rm -f"}
d7040cdb 4766
ce2cded5
L
4767echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4768echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4769# Try some XSI features
4770xsi_shell=no
4771( _lt_dummy="a/b/c"
4772 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4773 = c,a/b,, ) >/dev/null 2>&1 \
4774 && xsi_shell=yes
4775echo "$as_me:$LINENO: result: $xsi_shell" >&5
4776echo "${ECHO_T}$xsi_shell" >&6
d7040cdb
SE
4777
4778
ce2cded5
L
4779echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4780echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4781lt_shell_append=no
4782( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4783 >/dev/null 2>&1 \
4784 && lt_shell_append=yes
4785echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4786echo "${ECHO_T}$lt_shell_append" >&6
d7040cdb
SE
4787
4788
ce2cded5
L
4789if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4790 lt_unset=unset
4791else
4792 lt_unset=false
4793fi
d7040cdb
SE
4794
4795
4796
4797
4798
ce2cded5
L
4799# test EBCDIC or ASCII
4800case `echo X|tr X '\101'` in
4801 A) # ASCII based system
4802 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4803 lt_SP2NL='tr \040 \012'
4804 lt_NL2SP='tr \015\012 \040\040'
4805 ;;
4806 *) # EBCDIC based system
4807 lt_SP2NL='tr \100 \n'
4808 lt_NL2SP='tr \r\n \100\100'
4809 ;;
4810esac
d7040cdb 4811
d7040cdb 4812
d7040cdb 4813
d7040cdb 4814
ce2cded5
L
4815
4816
4817
4818
4819
4820echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4821echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4822if test "${lt_cv_ld_reload_flag+set}" = set; then
6bf9431b
BE
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
ce2cded5
L
4825 lt_cv_ld_reload_flag='-r'
4826fi
4827echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4828echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4829reload_flag=$lt_cv_ld_reload_flag
4830case $reload_flag in
4831"" | " "*) ;;
4832*) reload_flag=" $reload_flag" ;;
4833esac
4834reload_cmds='$LD$reload_flag -o $output$reload_objs'
4835case $host_os in
4836 darwin*)
4837 if test "$GCC" = yes; then
4838 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4839 else
4840 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4841 fi
4842 ;;
4843esac
d7040cdb 4844
6bf9431b 4845
252b5132 4846
ce2cded5
L
4847
4848
4849
4850
4851
4852
4853
4854echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4855echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4856if test "${lt_cv_deplibs_check_method+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
6bf9431b 4858else
ce2cded5
L
4859 lt_cv_file_magic_cmd='$MAGIC_CMD'
4860lt_cv_file_magic_test_file=
4861lt_cv_deplibs_check_method='unknown'
4862# Need to set the preceding variable on all platforms that support
4863# interlibrary dependencies.
4864# 'none' -- dependencies not supported.
4865# `unknown' -- same as none, but documents that we really don't know.
4866# 'pass_all' -- all dependencies passed with no checks.
4867# 'test_compile' -- check by making test program.
4868# 'file_magic [[regex]]' -- check by looking for files in library path
4869# which responds to the $file_magic_cmd with a given extended regex.
4870# If you have `file' or equivalent on your system and you're not sure
4871# whether `pass_all' will *always* work, you probably want this one.
6bf9431b 4872
ce2cded5 4873case $host_os in
50e7d84b 4874aix[4-9]*)
ce2cded5
L
4875 lt_cv_deplibs_check_method=pass_all
4876 ;;
6bf9431b 4877
ce2cded5
L
4878beos*)
4879 lt_cv_deplibs_check_method=pass_all
d7040cdb 4880 ;;
ce2cded5
L
4881
4882bsdi[45]*)
4883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4884 lt_cv_file_magic_cmd='/usr/bin/file -L'
4885 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 4886 ;;
d7040cdb 4887
ce2cded5
L
4888cygwin*)
4889 # func_win32_libid is a shell function defined in ltmain.sh
4890 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4891 lt_cv_file_magic_cmd='func_win32_libid'
4892 ;;
d7040cdb 4893
ce2cded5
L
4894mingw* | pw32*)
4895 # Base MSYS/MinGW do not provide the 'file' command needed by
4896 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4897 # unless we find 'file', for example because we are cross-compiling.
4898 if ( file / ) >/dev/null 2>&1; then
4899 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4900 lt_cv_file_magic_cmd='func_win32_libid'
0ab6f085 4901 else
ce2cded5
L
4902 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4903 lt_cv_file_magic_cmd='$OBJDUMP -f'
0ab6f085 4904 fi
ce2cded5 4905 ;;
d7040cdb 4906
ce2cded5
L
4907darwin* | rhapsody*)
4908 lt_cv_deplibs_check_method=pass_all
4909 ;;
d7040cdb 4910
ce2cded5
L
4911freebsd* | dragonfly*)
4912 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4913 case $host_cpu in
4914 i*86 )
4915 # Not sure whether the presence of OpenBSD here was a mistake.
4916 # Let's accept both of them until this is cleared up.
4917 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4918 lt_cv_file_magic_cmd=/usr/bin/file
4919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4920 ;;
4921 esac
0ab6f085 4922 else
ce2cded5 4923 lt_cv_deplibs_check_method=pass_all
0ab6f085 4924 fi
ce2cded5 4925 ;;
6bf9431b 4926
ce2cded5
L
4927gnu*)
4928 lt_cv_deplibs_check_method=pass_all
4929 ;;
6bf9431b 4930
ce2cded5
L
4931hpux10.20* | hpux11*)
4932 lt_cv_file_magic_cmd=/usr/bin/file
4933 case $host_cpu in
4934 ia64*)
4935 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4936 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4937 ;;
4938 hppa*64*)
4939 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]'
4940 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4941 ;;
4942 *)
4943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4944 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4945 ;;
4946 esac
4947 ;;
6bf9431b 4948
ce2cded5
L
4949interix[3-9]*)
4950 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4952 ;;
6bf9431b 4953
ce2cded5
L
4954irix5* | irix6* | nonstopux*)
4955 case $LD in
4956 *-32|*"-32 ") libmagic=32-bit;;
4957 *-n32|*"-n32 ") libmagic=N32;;
4958 *-64|*"-64 ") libmagic=64-bit;;
4959 *) libmagic=never-match;;
4960 esac
4961 lt_cv_deplibs_check_method=pass_all
4962 ;;
d7040cdb 4963
ce2cded5
L
4964# This must be Linux ELF.
4965linux* | k*bsd*-gnu)
4966 lt_cv_deplibs_check_method=pass_all
4967 ;;
d7040cdb 4968
ce2cded5
L
4969netbsd*)
4970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
0ab6f085 4972 else
ce2cded5 4973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
0ab6f085 4974 fi
ce2cded5 4975 ;;
6bf9431b 4976
ce2cded5
L
4977newos6*)
4978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4979 lt_cv_file_magic_cmd=/usr/bin/file
4980 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4981 ;;
d7040cdb 4982
ce2cded5
L
4983*nto* | *qnx*)
4984 lt_cv_deplibs_check_method=pass_all
4985 ;;
d7040cdb 4986
ce2cded5
L
4987openbsd*)
4988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4990 else
4991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4992 fi
4993 ;;
d7040cdb 4994
ce2cded5
L
4995osf3* | osf4* | osf5*)
4996 lt_cv_deplibs_check_method=pass_all
4997 ;;
d7040cdb 4998
ce2cded5
L
4999rdos*)
5000 lt_cv_deplibs_check_method=pass_all
5001 ;;
d7040cdb 5002
ce2cded5
L
5003solaris*)
5004 lt_cv_deplibs_check_method=pass_all
5005 ;;
d7040cdb 5006
ce2cded5
L
5007sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5008 lt_cv_deplibs_check_method=pass_all
5009 ;;
d7040cdb 5010
ce2cded5
L
5011sysv4 | sysv4.3*)
5012 case $host_vendor in
5013 motorola)
5014 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]'
5015 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5016 ;;
5017 ncr)
5018 lt_cv_deplibs_check_method=pass_all
5019 ;;
5020 sequent)
5021 lt_cv_file_magic_cmd='/bin/file'
5022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5023 ;;
5024 sni)
5025 lt_cv_file_magic_cmd='/bin/file'
5026 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5027 lt_cv_file_magic_test_file=/lib/libc.so
5028 ;;
5029 siemens)
5030 lt_cv_deplibs_check_method=pass_all
5031 ;;
5032 pc)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
5035 esac
5036 ;;
d7040cdb 5037
ce2cded5
L
5038tpf*)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041esac
6bf9431b 5042
6bf9431b 5043fi
ce2cded5
L
5044echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5045echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5046file_magic_cmd=$lt_cv_file_magic_cmd
5047deplibs_check_method=$lt_cv_deplibs_check_method
5048test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5049
6bf9431b 5050
252b5132 5051
6bf9431b 5052
252b5132 5053
252b5132 5054
252b5132 5055
252b5132 5056
252b5132
RH
5057
5058
6bf9431b 5059
d7040cdb 5060
ce2cded5
L
5061if test -n "$ac_tool_prefix"; then
5062 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5063set dummy ${ac_tool_prefix}ar; ac_word=$2
5064echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5066if test "${ac_cv_prog_AR+set}" = set; then
6bf9431b
BE
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
ce2cded5
L
5069 if test -n "$AR"; then
5070 ac_cv_prog_AR="$AR" # Let the user override the test.
d7040cdb 5071else
ce2cded5
L
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_AR="${ac_tool_prefix}ar"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083done
5084done
6bf9431b 5085
d7040cdb 5086fi
d7040cdb 5087fi
ce2cded5
L
5088AR=$ac_cv_prog_AR
5089if test -n "$AR"; then
5090 echo "$as_me:$LINENO: result: $AR" >&5
5091echo "${ECHO_T}$AR" >&6
5092else
5093 echo "$as_me:$LINENO: result: no" >&5
5094echo "${ECHO_T}no" >&6
d7040cdb 5095fi
6bf9431b 5096
ce2cded5
L
5097fi
5098if test -z "$ac_cv_prog_AR"; then
5099 ac_ct_AR=$AR
5100 # Extract the first word of "ar", so it can be a program name with args.
5101set dummy ar; ac_word=$2
5102echo "$as_me:$LINENO: checking for $ac_word" >&5
5103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5104if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
d7040cdb
SE
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106else
ce2cded5
L
5107 if test -n "$ac_ct_AR"; then
5108 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6bf9431b 5109else
ce2cded5
L
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_prog_ac_ct_AR="ar"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121done
5122done
6bf9431b 5123
ce2cded5 5124 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6bf9431b 5125fi
6bf9431b 5126fi
ce2cded5
L
5127ac_ct_AR=$ac_cv_prog_ac_ct_AR
5128if test -n "$ac_ct_AR"; then
5129 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5130echo "${ECHO_T}$ac_ct_AR" >&6
5131else
5132 echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6
6bf9431b 5134fi
d7040cdb 5135
ce2cded5
L
5136 AR=$ac_ct_AR
5137else
5138 AR="$ac_cv_prog_AR"
5139fi
20e95c23 5140
ce2cded5
L
5141test -z "$AR" && AR=ar
5142test -z "$AR_FLAGS" && AR_FLAGS=cru
20e95c23
DJ
5143
5144
5145
5146
20e95c23 5147
d7040cdb
SE
5148
5149
5150
5151
5152
5153
ce2cded5
L
5154if test -n "$ac_tool_prefix"; then
5155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5156set dummy ${ac_tool_prefix}strip; ac_word=$2
5157echo "$as_me:$LINENO: checking for $ac_word" >&5
5158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159if test "${ac_cv_prog_STRIP+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161else
5162 if test -n "$STRIP"; then
5163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176done
5177done
d7040cdb 5178
ce2cded5
L
5179fi
5180fi
5181STRIP=$ac_cv_prog_STRIP
5182if test -n "$STRIP"; then
5183 echo "$as_me:$LINENO: result: $STRIP" >&5
5184echo "${ECHO_T}$STRIP" >&6
5185else
5186 echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6
5188fi
d7040cdb 5189
ce2cded5
L
5190fi
5191if test -z "$ac_cv_prog_STRIP"; then
5192 ac_ct_STRIP=$STRIP
5193 # Extract the first word of "strip", so it can be a program name with args.
5194set dummy strip; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200 if test -n "$ac_ct_STRIP"; then
5201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_STRIP="strip"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214done
5215done
d7040cdb 5216
ce2cded5
L
5217 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5218fi
5219fi
5220ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5221if test -n "$ac_ct_STRIP"; then
5222 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5223echo "${ECHO_T}$ac_ct_STRIP" >&6
5224else
5225 echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
5227fi
d7040cdb 5228
ce2cded5
L
5229 STRIP=$ac_ct_STRIP
5230else
5231 STRIP="$ac_cv_prog_STRIP"
5232fi
d7040cdb 5233
ce2cded5 5234test -z "$STRIP" && STRIP=:
d7040cdb
SE
5235
5236
5237
5238
5239
5240
ce2cded5
L
5241if test -n "$ac_tool_prefix"; then
5242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5243set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5244echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246if test "${ac_cv_prog_RANLIB+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249 if test -n "$RANLIB"; then
5250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263done
5264done
d7040cdb 5265
ce2cded5
L
5266fi
5267fi
5268RANLIB=$ac_cv_prog_RANLIB
5269if test -n "$RANLIB"; then
5270 echo "$as_me:$LINENO: result: $RANLIB" >&5
5271echo "${ECHO_T}$RANLIB" >&6
5272else
5273 echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
20e95c23 5275fi
20e95c23 5276
ce2cded5
L
5277fi
5278if test -z "$ac_cv_prog_RANLIB"; then
5279 ac_ct_RANLIB=$RANLIB
5280 # Extract the first word of "ranlib", so it can be a program name with args.
5281set dummy ranlib; ac_word=$2
5282echo "$as_me:$LINENO: checking for $ac_word" >&5
5283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5284if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6bf9431b
BE
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
ce2cded5
L
5287 if test -n "$ac_ct_RANLIB"; then
5288 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6bf9431b 5289else
ce2cded5
L
5290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291for as_dir in $PATH
5292do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297 ac_cv_prog_ac_ct_RANLIB="ranlib"
5298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301done
5302done
5303
5304 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d7040cdb 5305fi
20e95c23 5306fi
ce2cded5
L
5307ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5308if test -n "$ac_ct_RANLIB"; then
5309 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5310echo "${ECHO_T}$ac_ct_RANLIB" >&6
5311else
5312 echo "$as_me:$LINENO: result: no" >&5
5313echo "${ECHO_T}no" >&6
5314fi
20e95c23 5315
ce2cded5
L
5316 RANLIB=$ac_ct_RANLIB
5317else
5318 RANLIB="$ac_cv_prog_RANLIB"
5319fi
d7040cdb 5320
ce2cded5 5321test -z "$RANLIB" && RANLIB=:
d7040cdb
SE
5322
5323
5324
d7040cdb
SE
5325
5326
5327
ce2cded5
L
5328# Determine commands to create old-style static archives.
5329old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5330old_postinstall_cmds='chmod 644 $oldlib'
5331old_postuninstall_cmds=
d7040cdb 5332
ce2cded5
L
5333if test -n "$RANLIB"; then
5334 case $host_os in
5335 openbsd*)
5336 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5337 ;;
5338 *)
5339 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5340 ;;
5341 esac
5342 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5343fi
d7040cdb
SE
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
d7040cdb 5357
d7040cdb 5358
d7040cdb 5359
d7040cdb 5360
d7040cdb 5361
d7040cdb 5362
d7040cdb 5363
d7040cdb 5364
d7040cdb 5365
d7040cdb 5366
d7040cdb 5367
d7040cdb
SE
5368
5369
5af11cab 5370
d7040cdb 5371
20e95c23 5372
6bf9431b 5373
20e95c23
DJ
5374
5375
20e95c23 5376
20e95c23 5377
ce2cded5
L
5378# If no C compiler was specified, use CC.
5379LTCC=${LTCC-"$CC"}
5380
5381# If no C compiler flags were specified, use CFLAGS.
5382LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5383
5384# Allow CC to be a program name with arguments.
5385compiler=$CC
5386
5387
5388# Check for command to grab the raw symbol name followed by C symbol from nm.
5389echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5390echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5391if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6bf9431b
BE
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
d7040cdb 5394
ce2cded5
L
5395# These are sane defaults that work on at least a few old systems.
5396# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 5397
ce2cded5
L
5398# Character class describing NM global symbol codes.
5399symcode='[BCDEGRST]'
5400
5401# Regexp to match symbols that can be accessed directly from C.
5402sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5403
5404# Define system-specific variables.
5405case $host_os in
5406aix*)
5407 symcode='[BCDT]'
5408 ;;
5409cygwin* | mingw* | pw32*)
5410 symcode='[ABCDGISTW]'
5411 ;;
5412hpux*)
5413 if test "$host_cpu" = ia64; then
5414 symcode='[ABCDEGRST]'
5415 fi
5416 ;;
5417irix* | nonstopux*)
5418 symcode='[BCDEGRST]'
5419 ;;
5420osf*)
5421 symcode='[BCDEGQRST]'
5422 ;;
5423solaris*)
5424 symcode='[BDRT]'
5425 ;;
5426sco3.2v5*)
5427 symcode='[DT]'
5428 ;;
5429sysv4.2uw2*)
5430 symcode='[DT]'
5431 ;;
5432sysv5* | sco5v6* | unixware* | OpenUNIX*)
5433 symcode='[ABDT]'
5434 ;;
5435sysv4)
5436 symcode='[DFNSTU]'
d7040cdb 5437 ;;
20e95c23 5438esac
d7040cdb 5439
ce2cded5
L
5440# If we're using GNU nm, then use its standard symbol codes.
5441case `$NM -V 2>&1` in
5442*GNU* | *'with BFD'*)
5443 symcode='[ABCDGIRSTW]' ;;
5444esac
20e95c23 5445
ce2cded5
L
5446# Transform an extracted symbol line into a proper C declaration.
5447# Some systems (esp. on ia64) link data and code symbols differently,
5448# so use this general approach.
5449lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
20e95c23 5450
ce2cded5
L
5451# Transform an extracted symbol line into symbol name and symbol address
5452lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5af11cab 5453
ce2cded5
L
5454# Handle CRLF in mingw tool chain
5455opt_cr=
5456case $build_os in
5457mingw*)
5458 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d7040cdb
SE
5459 ;;
5460esac
20e95c23 5461
ce2cded5
L
5462# Try without a prefix underscore, then with it.
5463for ac_symprfx in "" "_"; do
d7040cdb 5464
ce2cded5
L
5465 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5466 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 5467
ce2cded5
L
5468 # Write the raw and C identifiers.
5469 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5470 # Fake it for dumpbin and say T for any non-static function
5471 # and D for any global variable.
5472 # Also find C++ and __fastcall symbols from MSVC++,
5473 # which start with @ or ?.
5474 lt_cv_sys_global_symbol_pipe="$AWK '"\
5475" {last_section=section; section=\$ 3};"\
5476" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5477" \$ 0!~/External *\|/{next};"\
5478" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5479" {if(hide[section]) next};"\
5480" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5481" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5482" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5483" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5484" ' prfx=^$ac_symprfx"
5485 else
5486 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5487 fi
d7040cdb 5488
ce2cded5
L
5489 # Check to see that the pipe works correctly.
5490 pipe_works=no
d7040cdb 5491
ce2cded5
L
5492 rm -f conftest*
5493 cat > conftest.$ac_ext <<_LT_EOF
5494#ifdef __cplusplus
5495extern "C" {
5496#endif
5497char nm_test_var;
5498void nm_test_func(void);
5499void nm_test_func(void){}
5500#ifdef __cplusplus
5501}
5502#endif
5503int main(){nm_test_var='a';nm_test_func();return(0);}
5504_LT_EOF
d7040cdb 5505
ce2cded5
L
5506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5507 (eval $ac_compile) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; then
5511 # Now try to grab the symbols.
5512 nlist=conftest.nm
5513 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5514 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && test -s "$nlist"; then
5518 # Try sorting and uniquifying the output.
5519 if sort "$nlist" | uniq > "$nlist"T; then
5520 mv -f "$nlist"T "$nlist"
5521 else
5522 rm -f "$nlist"T
5523 fi
d7040cdb 5524
ce2cded5
L
5525 # Make sure that we snagged all the symbols we need.
5526 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5527 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5528 cat <<_LT_EOF > conftest.$ac_ext
5529#ifdef __cplusplus
5530extern "C" {
5531#endif
d7040cdb 5532
ce2cded5
L
5533_LT_EOF
5534 # Now generate the symbol file.
5535 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 5536
ce2cded5 5537 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 5538
ce2cded5
L
5539/* The mapping between symbol names and symbols. */
5540const struct {
5541 const char *name;
5542 void *address;
5543}
5544lt__PROGRAM__LTX_preloaded_symbols[] =
5545{
5546 { "@PROGRAM@", (void *) 0 },
5547_LT_EOF
5548 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5549 cat <<\_LT_EOF >> conftest.$ac_ext
5550 {0, (void *) 0}
5551};
d7040cdb 5552
ce2cded5
L
5553/* This works around a problem in FreeBSD linker */
5554#ifdef FREEBSD_WORKAROUND
5555static const void *lt_preloaded_setup() {
5556 return lt__PROGRAM__LTX_preloaded_symbols;
5557}
5558#endif
d7040cdb 5559
ce2cded5
L
5560#ifdef __cplusplus
5561}
5562#endif
5563_LT_EOF
5564 # Now try linking the two files.
5565 mv conftest.$ac_objext conftstm.$ac_objext
5566 lt_save_LIBS="$LIBS"
5567 lt_save_CFLAGS="$CFLAGS"
5568 LIBS="conftstm.$ac_objext"
5569 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571 (eval $ac_link) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5575 pipe_works=yes
5576 fi
5577 LIBS="$lt_save_LIBS"
5578 CFLAGS="$lt_save_CFLAGS"
5579 else
5580 echo "cannot find nm_test_func in $nlist" >&5
5581 fi
5582 else
5583 echo "cannot find nm_test_var in $nlist" >&5
5584 fi
5585 else
5586 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5587 fi
5588 else
5589 echo "$progname: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5591 fi
5592 rm -f conftest* conftst*
d7040cdb 5593
ce2cded5
L
5594 # Do not use the global_symbol_pipe unless it works.
5595 if test "$pipe_works" = yes; then
5596 break
5597 else
5598 lt_cv_sys_global_symbol_pipe=
5599 fi
5600done
d7040cdb 5601
ce2cded5 5602fi
d7040cdb 5603
ce2cded5
L
5604if test -z "$lt_cv_sys_global_symbol_pipe"; then
5605 lt_cv_sys_global_symbol_to_cdecl=
5606fi
5607if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5608 echo "$as_me:$LINENO: result: failed" >&5
5609echo "${ECHO_T}failed" >&6
5610else
5611 echo "$as_me:$LINENO: result: ok" >&5
5612echo "${ECHO_T}ok" >&6
5613fi
d7040cdb 5614
d7040cdb 5615
d7040cdb 5616
d7040cdb 5617
5af11cab 5618
20e95c23 5619
20e95c23 5620
20e95c23 5621
20e95c23
DJ
5622
5623
5624
20e95c23
DJ
5625
5626
d7040cdb 5627
252b5132 5628
20e95c23
DJ
5629
5630
ce2cded5
L
5631# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5632if test "${enable_libtool_lock+set}" = set; then
5633 enableval="$enable_libtool_lock"
20e95c23 5634
ce2cded5
L
5635fi;
5636test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 5637
ce2cded5
L
5638# Some flags need to be propagated to the compiler or linker for good
5639# libtool support.
5640case $host in
5641ia64-*-hpux*)
5642 # Find out which ABI we are using.
5643 echo 'int i;' > conftest.$ac_ext
5644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5645 (eval $ac_compile) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; then
5649 case `/usr/bin/file conftest.$ac_objext` in
5650 *ELF-32*)
5651 HPUX_IA64_MODE="32"
d7040cdb 5652 ;;
ce2cded5
L
5653 *ELF-64*)
5654 HPUX_IA64_MODE="64"
5655 ;;
5656 esac
5657 fi
5658 rm -rf conftest*
5659 ;;
5660*-*-irix6*)
5661 # Find out which ABI we are using.
58c85be7 5662 echo '#line 5662 "configure"' > conftest.$ac_ext
ce2cded5
L
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; then
5668 if test "$lt_cv_prog_gnu_ld" = yes; then
5669 case `/usr/bin/file conftest.$ac_objext` in
5670 *32-bit*)
5671 LD="${LD-ld} -melf32bsmip"
5672 ;;
5673 *N32*)
5674 LD="${LD-ld} -melf32bmipn32"
5675 ;;
5676 *64-bit*)
5677 LD="${LD-ld} -melf64bmip"
d7040cdb
SE
5678 ;;
5679 esac
ce2cded5
L
5680 else
5681 case `/usr/bin/file conftest.$ac_objext` in
5682 *32-bit*)
5683 LD="${LD-ld} -32"
5684 ;;
5685 *N32*)
5686 LD="${LD-ld} -n32"
5687 ;;
5688 *64-bit*)
5689 LD="${LD-ld} -64"
5690 ;;
5691 esac
5692 fi
5693 fi
5694 rm -rf conftest*
5695 ;;
d5fbea21 5696
ce2cded5
L
5697x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5698s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5699 # Find out which ABI we are using.
5700 echo 'int i;' > conftest.$ac_ext
5701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5702 (eval $ac_compile) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; then
5706 case `/usr/bin/file conftest.o` in
5707 *32-bit*)
5708 case $host in
5709 x86_64-*kfreebsd*-gnu)
5710 LD="${LD-ld} -m elf_i386_fbsd"
5711 ;;
5712 x86_64-*linux*)
5713 LD="${LD-ld} -m elf_i386"
5714 ;;
5715 ppc64-*linux*|powerpc64-*linux*)
5716 LD="${LD-ld} -m elf32ppclinux"
5717 ;;
5718 s390x-*linux*)
5719 LD="${LD-ld} -m elf_s390"
5720 ;;
5721 sparc64-*linux*)
5722 LD="${LD-ld} -m elf32_sparc"
5723 ;;
5724 esac
5725 ;;
5726 *64-bit*)
5727 case $host in
5728 x86_64-*kfreebsd*-gnu)
5729 LD="${LD-ld} -m elf_x86_64_fbsd"
5730 ;;
5731 x86_64-*linux*)
5732 LD="${LD-ld} -m elf_x86_64"
5733 ;;
5734 ppc*-*linux*|powerpc*-*linux*)
5735 LD="${LD-ld} -m elf64ppc"
5736 ;;
5737 s390*-*linux*|s390*-*tpf*)
5738 LD="${LD-ld} -m elf64_s390"
5739 ;;
5740 sparc*-*linux*)
5741 LD="${LD-ld} -m elf64_sparc"
5742 ;;
5743 esac
5744 ;;
5745 esac
5746 fi
5747 rm -rf conftest*
5748 ;;
d5fbea21 5749
ce2cded5
L
5750*-*-sco3.2v5*)
5751 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5752 SAVE_CFLAGS="$CFLAGS"
5753 CFLAGS="$CFLAGS -belf"
5754 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5755echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5756if test "${lt_cv_cc_needs_belf+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759 ac_ext=c
5760ac_cpp='$CPP $CPPFLAGS'
5761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763ac_compiler_gnu=$ac_cv_c_compiler_gnu
d5fbea21 5764
ce2cded5
L
5765 cat >conftest.$ac_ext <<_ACEOF
5766/* confdefs.h. */
5767_ACEOF
5768cat confdefs.h >>conftest.$ac_ext
5769cat >>conftest.$ac_ext <<_ACEOF
5770/* end confdefs.h. */
d7040cdb 5771
ce2cded5
L
5772int
5773main ()
5774{
d7040cdb 5775
ce2cded5
L
5776 ;
5777 return 0;
5778}
5779_ACEOF
5780rm -f conftest.$ac_objext conftest$ac_exeext
5781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782 (eval $ac_link) 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -z "$ac_c_werror_flag"
5790 || test ! -s conftest.err'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; } &&
5796 { ac_try='test -s conftest$ac_exeext'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 lt_cv_cc_needs_belf=yes
5803else
5804 echo "$as_me: failed program was:" >&5
5805sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5806
ce2cded5
L
5807lt_cv_cc_needs_belf=no
5808fi
5809rm -f conftest.err conftest.$ac_objext \
5810 conftest$ac_exeext conftest.$ac_ext
5811 ac_ext=c
5812ac_cpp='$CPP $CPPFLAGS'
5813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5816
ce2cded5
L
5817fi
5818echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5819echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5820 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5821 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5822 CFLAGS="$SAVE_CFLAGS"
5823 fi
5824 ;;
5825sparc*-*solaris*)
5826 # Find out which ABI we are using.
5827 echo 'int i;' > conftest.$ac_ext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829 (eval $ac_compile) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; then
5833 case `/usr/bin/file conftest.o` in
5834 *64-bit*)
5835 case $lt_cv_prog_gnu_ld in
5836 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5837 *) LD="${LD-ld} -64" ;;
d7040cdb
SE
5838 esac
5839 ;;
d7040cdb 5840 esac
6bf9431b 5841 fi
ce2cded5
L
5842 rm -rf conftest*
5843 ;;
d7040cdb 5844esac
d7040cdb 5845
ce2cded5 5846need_locks="$enable_libtool_lock"
d7040cdb 5847
ce2cded5
L
5848ac_ext=c
5849ac_cpp='$CPP $CPPFLAGS'
5850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5854echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5855# On Suns, sometimes $CPP names a directory.
5856if test -n "$CPP" && test -d "$CPP"; then
5857 CPP=
6bf9431b 5858fi
ce2cded5
L
5859if test -z "$CPP"; then
5860 if test "${ac_cv_prog_CPP+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5862else
ce2cded5
L
5863 # Double quotes because CPP needs to be expanded
5864 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5865 do
5866 ac_preproc_ok=false
5867for ac_c_preproc_warn_flag in '' yes
5868do
5869 # Use a header file that comes with gcc, so configuring glibc
5870 # with a fresh cross-compiler works.
5871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5872 # <limits.h> exists even on freestanding compilers.
5873 # On the NeXT, cc -E runs the code through the compiler's parser,
5874 # not just through cpp. "Syntax error" is here to catch this case.
5875 cat >conftest.$ac_ext <<_ACEOF
5876/* confdefs.h. */
5877_ACEOF
5878cat confdefs.h >>conftest.$ac_ext
5879cat >>conftest.$ac_ext <<_ACEOF
5880/* end confdefs.h. */
5881#ifdef __STDC__
5882# include <limits.h>
5883#else
5884# include <assert.h>
5885#endif
5886 Syntax error
5887_ACEOF
5888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev/null; then
5896 if test -s conftest.err; then
5897 ac_cpp_err=$ac_c_preproc_warn_flag
5898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5899 else
5900 ac_cpp_err=
5901 fi
5902else
5903 ac_cpp_err=yes
252b5132 5904fi
ce2cded5
L
5905if test -z "$ac_cpp_err"; then
5906 :
252b5132 5907else
ce2cded5
L
5908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5910
ce2cded5
L
5911 # Broken: fails on valid input.
5912continue
252b5132 5913fi
ce2cded5 5914rm -f conftest.err conftest.$ac_ext
d7040cdb 5915
ce2cded5
L
5916 # OK, works on sane cases. Now check whether non-existent headers
5917 # can be detected and how.
5918 cat >conftest.$ac_ext <<_ACEOF
5919/* confdefs.h. */
5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5923/* end confdefs.h. */
5924#include <ac_nonexistent.h>
5925_ACEOF
5926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } >/dev/null; then
5934 if test -s conftest.err; then
5935 ac_cpp_err=$ac_c_preproc_warn_flag
5936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5937 else
5938 ac_cpp_err=
5939 fi
ac48eca1 5940else
ce2cded5 5941 ac_cpp_err=yes
6bf9431b 5942fi
ce2cded5
L
5943if test -z "$ac_cpp_err"; then
5944 # Broken: success on invalid input.
5945continue
ac48eca1 5946else
ce2cded5
L
5947 echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 5949
ce2cded5
L
5950 # Passes both tests.
5951ac_preproc_ok=:
5952break
6bf9431b 5953fi
ce2cded5 5954rm -f conftest.err conftest.$ac_ext
6bf9431b 5955
ce2cded5
L
5956done
5957# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5958rm -f conftest.err conftest.$ac_ext
5959if $ac_preproc_ok; then
5960 break
5961fi
6bf9431b 5962
ce2cded5
L
5963 done
5964 ac_cv_prog_CPP=$CPP
6bf9431b 5965
ce2cded5
L
5966fi
5967 CPP=$ac_cv_prog_CPP
ac48eca1 5968else
ce2cded5 5969 ac_cv_prog_CPP=$CPP
d7040cdb 5970fi
ce2cded5
L
5971echo "$as_me:$LINENO: result: $CPP" >&5
5972echo "${ECHO_T}$CPP" >&6
5973ac_preproc_ok=false
5974for ac_c_preproc_warn_flag in '' yes
5975do
5976 # Use a header file that comes with gcc, so configuring glibc
5977 # with a fresh cross-compiler works.
5978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979 # <limits.h> exists even on freestanding compilers.
5980 # On the NeXT, cc -E runs the code through the compiler's parser,
5981 # not just through cpp. "Syntax error" is here to catch this case.
5982 cat >conftest.$ac_ext <<_ACEOF
5983/* confdefs.h. */
5984_ACEOF
5985cat confdefs.h >>conftest.$ac_ext
5986cat >>conftest.$ac_ext <<_ACEOF
5987/* end confdefs.h. */
5988#ifdef __STDC__
5989# include <limits.h>
5990#else
5991# include <assert.h>
5992#endif
5993 Syntax error
5994_ACEOF
5995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } >/dev/null; then
6003 if test -s conftest.err; then
6004 ac_cpp_err=$ac_c_preproc_warn_flag
6005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6006 else
6007 ac_cpp_err=
6008 fi
6009else
6010 ac_cpp_err=yes
6011fi
6012if test -z "$ac_cpp_err"; then
6013 :
6014else
6015 echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6017
ce2cded5
L
6018 # Broken: fails on valid input.
6019continue
6020fi
6021rm -f conftest.err conftest.$ac_ext
d7040cdb 6022
ce2cded5
L
6023 # OK, works on sane cases. Now check whether non-existent headers
6024 # can be detected and how.
6025 cat >conftest.$ac_ext <<_ACEOF
6026/* confdefs.h. */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h. */
6031#include <ac_nonexistent.h>
6032_ACEOF
6033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } >/dev/null; then
6041 if test -s conftest.err; then
6042 ac_cpp_err=$ac_c_preproc_warn_flag
6043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6044 else
6045 ac_cpp_err=
d7040cdb
SE
6046 fi
6047else
ce2cded5 6048 ac_cpp_err=yes
d7040cdb 6049fi
ce2cded5
L
6050if test -z "$ac_cpp_err"; then
6051 # Broken: success on invalid input.
6052continue
6053else
6054 echo "$as_me: failed program was:" >&5
6055sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6056
ce2cded5
L
6057 # Passes both tests.
6058ac_preproc_ok=:
6059break
6060fi
6061rm -f conftest.err conftest.$ac_ext
d7040cdb 6062
ce2cded5
L
6063done
6064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6065rm -f conftest.err conftest.$ac_ext
6066if $ac_preproc_ok; then
6067 :
6068else
6069 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6070See \`config.log' for more details." >&5
6071echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6072See \`config.log' for more details." >&2;}
6073 { (exit 1); exit 1; }; }
6074fi
d7040cdb 6075
ce2cded5
L
6076ac_ext=c
6077ac_cpp='$CPP $CPPFLAGS'
6078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6081
6082
ce2cded5
L
6083echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6084echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6085if test "${ac_cv_header_stdc+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6087else
6088 cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */
6094#include <stdlib.h>
6095#include <stdarg.h>
6096#include <string.h>
6097#include <float.h>
d7040cdb 6098
ce2cded5
L
6099int
6100main ()
6101{
d7040cdb 6102
ce2cded5
L
6103 ;
6104 return 0;
6105}
6106_ACEOF
6107rm -f conftest.$ac_objext
6108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109 (eval $ac_compile) 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -z "$ac_c_werror_flag"
6117 || test ! -s conftest.err'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_cv_header_stdc=yes
6130else
6131 echo "$as_me: failed program was:" >&5
6132sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6133
ce2cded5
L
6134ac_cv_header_stdc=no
6135fi
6136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 6137
ce2cded5
L
6138if test $ac_cv_header_stdc = yes; then
6139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6140 cat >conftest.$ac_ext <<_ACEOF
6141/* confdefs.h. */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h. */
6146#include <string.h>
d7040cdb 6147
ce2cded5
L
6148_ACEOF
6149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6150 $EGREP "memchr" >/dev/null 2>&1; then
6151 :
6152else
6153 ac_cv_header_stdc=no
6154fi
6155rm -f conftest*
6bf9431b 6156
ce2cded5 6157fi
d7040cdb 6158
ce2cded5
L
6159if test $ac_cv_header_stdc = yes; then
6160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6161 cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167#include <stdlib.h>
d7040cdb 6168
ce2cded5
L
6169_ACEOF
6170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6171 $EGREP "free" >/dev/null 2>&1; then
6172 :
6173else
6174 ac_cv_header_stdc=no
6175fi
6176rm -f conftest*
ac48eca1 6177
ce2cded5 6178fi
d7040cdb 6179
ce2cded5
L
6180if test $ac_cv_header_stdc = yes; then
6181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6182 if test "$cross_compiling" = yes; then
6183 :
6184else
6185 cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191#include <ctype.h>
6192#if ((' ' & 0x0FF) == 0x020)
6193# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6194# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6195#else
6196# define ISLOWER(c) \
6197 (('a' <= (c) && (c) <= 'i') \
6198 || ('j' <= (c) && (c) <= 'r') \
6199 || ('s' <= (c) && (c) <= 'z'))
6200# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6201#endif
d7040cdb 6202
ce2cded5
L
6203#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6204int
6205main ()
6206{
6207 int i;
6208 for (i = 0; i < 256; i++)
6209 if (XOR (islower (i), ISLOWER (i))
6210 || toupper (i) != TOUPPER (i))
6211 exit(2);
6212 exit (0);
6213}
6214_ACEOF
6215rm -f conftest$ac_exeext
6216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217 (eval $ac_link) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 :
6227else
6228 echo "$as_me: program exited with status $ac_status" >&5
6229echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6231
ce2cded5
L
6232( exit $ac_status )
6233ac_cv_header_stdc=no
6234fi
6235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6236fi
6237fi
6238fi
6239echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6240echo "${ECHO_T}$ac_cv_header_stdc" >&6
6241if test $ac_cv_header_stdc = yes; then
d7040cdb 6242
ce2cded5
L
6243cat >>confdefs.h <<\_ACEOF
6244#define STDC_HEADERS 1
6245_ACEOF
d7040cdb 6246
ce2cded5 6247fi
d7040cdb 6248
ce2cded5 6249# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6250
d7040cdb 6251
d7040cdb 6252
d7040cdb 6253
d7040cdb 6254
d7040cdb 6255
d7040cdb 6256
d7040cdb 6257
d7040cdb 6258
ce2cded5
L
6259for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6260 inttypes.h stdint.h unistd.h
6261do
6262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6263echo "$as_me:$LINENO: checking for $ac_header" >&5
6264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6265if eval "test \"\${$as_ac_Header+set}\" = set"; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
6269/* confdefs.h. */
6270_ACEOF
6271cat confdefs.h >>conftest.$ac_ext
6272cat >>conftest.$ac_ext <<_ACEOF
6273/* end confdefs.h. */
ce2cded5 6274$ac_includes_default
20e95c23 6275
ce2cded5 6276#include <$ac_header>
6bf9431b 6277_ACEOF
ce2cded5
L
6278rm -f conftest.$ac_objext
6279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
ce2cded5 6294 { ac_try='test -s conftest.$ac_objext'
0ab6f085
AM
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 (eval $ac_try) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
ce2cded5 6300 eval "$as_ac_Header=yes"
6bf9431b 6301else
d7040cdb
SE
6302 echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 6304
ce2cded5 6305eval "$as_ac_Header=no"
6bf9431b 6306fi
ce2cded5
L
6307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308fi
6309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6311if test `eval echo '${'$as_ac_Header'}'` = yes; then
6312 cat >>confdefs.h <<_ACEOF
6313#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20e95c23 6314_ACEOF
20e95c23 6315
ce2cded5 6316fi
d7040cdb 6317
ce2cded5
L
6318done
6319
6320
6321
6322for ac_header in dlfcn.h
6323do
6324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6325echo "$as_me:$LINENO: checking for $ac_header" >&5
6326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6327if eval "test \"\${$as_ac_Header+set}\" = set"; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330 cat >conftest.$ac_ext <<_ACEOF
6331/* confdefs.h. */
20e95c23 6332_ACEOF
ce2cded5
L
6333cat confdefs.h >>conftest.$ac_ext
6334cat >>conftest.$ac_ext <<_ACEOF
6335/* end confdefs.h. */
6336$ac_includes_default
6337
6338#include <$ac_header>
6339_ACEOF
6340rm -f conftest.$ac_objext
6341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>conftest.er1
d7040cdb
SE
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
ce2cded5 6356 { ac_try='test -s conftest.$ac_objext'
0ab6f085
AM
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
ce2cded5 6362 eval "$as_ac_Header=yes"
20e95c23 6363else
d7040cdb 6364 echo "$as_me: failed program was:" >&5
20e95c23 6365sed 's/^/| /' conftest.$ac_ext >&5
252b5132 6366
ce2cded5 6367eval "$as_ac_Header=no"
20e95c23 6368fi
ce2cded5
L
6369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370fi
6371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6373if test `eval echo '${'$as_ac_Header'}'` = yes; then
6374 cat >>confdefs.h <<_ACEOF
6375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6376_ACEOF
d7040cdb 6377
ce2cded5 6378fi
252b5132 6379
ce2cded5 6380done
6bf9431b 6381
252b5132 6382
6bf9431b 6383
ce2cded5
L
6384# This can be used to rebuild libtool when needed
6385LIBTOOL_DEPS="$ltmain"
6bf9431b 6386
ce2cded5
L
6387# Always use our own libtool.
6388LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 6389
6bf9431b 6390
252b5132 6391
6bf9431b 6392
252b5132 6393
252b5132 6394
d7040cdb 6395
6bf9431b 6396
252b5132 6397
d7040cdb 6398
d7040cdb 6399
d7040cdb 6400
d7040cdb 6401
d7040cdb 6402
d7040cdb 6403
d7040cdb 6404
d7040cdb 6405
d7040cdb 6406
d7040cdb 6407
d7040cdb 6408
d7040cdb
SE
6409
6410
6411
6412
6413
ce2cded5 6414test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
ce2cded5
L
6429if test -n "${ZSH_VERSION+set}" ; then
6430 setopt NO_GLOB_SUBST
6431fi
d7040cdb 6432
ce2cded5
L
6433echo "$as_me:$LINENO: checking for objdir" >&5
6434echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6435if test "${lt_cv_objdir+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438 rm -f .libs 2>/dev/null
6439mkdir .libs 2>/dev/null
6440if test -d .libs; then
6441 lt_cv_objdir=.libs
6442else
6443 # MS-DOS does not allow filenames that begin with a dot.
6444 lt_cv_objdir=_libs
6445fi
6446rmdir .libs 2>/dev/null
6447fi
6448echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6449echo "${ECHO_T}$lt_cv_objdir" >&6
6450objdir=$lt_cv_objdir
d7040cdb
SE
6451
6452
6453
6454
6455
ce2cded5
L
6456cat >>confdefs.h <<_ACEOF
6457#define LT_OBJDIR "$lt_cv_objdir/"
6458_ACEOF
d7040cdb
SE
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
ce2cded5
L
6476case $host_os in
6477aix3*)
6478 # AIX sometimes has problems with the GCC collect2 program. For some
6479 # reason, if we set the COLLECT_NAMES environment variable, the problems
6480 # vanish in a puff of smoke.
6481 if test "X${COLLECT_NAMES+set}" != Xset; then
6482 COLLECT_NAMES=
6483 export COLLECT_NAMES
6484 fi
6485 ;;
6486esac
d7040cdb 6487
ce2cded5
L
6488# Sed substitution that helps us do robust quoting. It backslashifies
6489# metacharacters that are still active within double-quoted strings.
6490sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6491
ce2cded5
L
6492# Same as above, but do not quote variable references.
6493double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6494
ce2cded5
L
6495# Sed substitution to delay expansion of an escaped shell variable in a
6496# double_quote_subst'ed string.
6497delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6498
ce2cded5
L
6499# Sed substitution to delay expansion of an escaped single quote.
6500delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6501
ce2cded5
L
6502# Sed substitution to avoid accidental globbing in evaled expressions
6503no_glob_subst='s/\*/\\\*/g'
d7040cdb 6504
ce2cded5
L
6505# Global variables:
6506ofile=libtool
6507can_build_shared=yes
d7040cdb 6508
ce2cded5
L
6509# All known linkers require a `.a' archive for static linking (except MSVC,
6510# which needs '.lib').
6511libext=a
d7040cdb 6512
ce2cded5 6513with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6514
ce2cded5
L
6515old_CC="$CC"
6516old_CFLAGS="$CFLAGS"
d7040cdb 6517
ce2cded5
L
6518# Set sane defaults for various variables
6519test -z "$CC" && CC=cc
6520test -z "$LTCC" && LTCC=$CC
6521test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6522test -z "$LD" && LD=ld
6523test -z "$ac_objext" && ac_objext=o
d7040cdb 6524
ce2cded5
L
6525for cc_temp in $compiler""; do
6526 case $cc_temp in
6527 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6528 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6529 \-*) ;;
6530 *) break;;
6531 esac
6532done
6533cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
6534
6535
ce2cded5
L
6536# Only perform the check for file, if the check method requires it
6537test -z "$MAGIC_CMD" && MAGIC_CMD=file
6538case $deplibs_check_method in
6539file_magic*)
6540 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6541 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6542echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6543if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6545else
6546 case $MAGIC_CMD in
6547[\\/*] | ?:[\\/]*)
6548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6549 ;;
6550*)
6551 lt_save_MAGIC_CMD="$MAGIC_CMD"
6552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6553 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6554 for ac_dir in $ac_dummy; do
6555 IFS="$lt_save_ifs"
6556 test -z "$ac_dir" && ac_dir=.
6557 if test -f $ac_dir/${ac_tool_prefix}file; then
6558 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6559 if test -n "$file_magic_test_file"; then
6560 case $deplibs_check_method in
6561 "file_magic "*)
6562 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6565 $EGREP "$file_magic_regex" > /dev/null; then
6566 :
6567 else
6568 cat <<_LT_EOF 1>&2
d7040cdb 6569
ce2cded5
L
6570*** Warning: the command libtool uses to detect shared libraries,
6571*** $file_magic_cmd, produces output that libtool cannot recognize.
6572*** The result is that libtool may fail to recognize shared libraries
6573*** as such. This will affect the creation of libtool libraries that
6574*** depend on shared libraries, but programs linked with such libtool
6575*** libraries will work regardless of this problem. Nevertheless, you
6576*** may want to report the problem to your system manager and/or to
6577*** bug-libtool@gnu.org
d7040cdb 6578
ce2cded5
L
6579_LT_EOF
6580 fi ;;
6581 esac
6582 fi
6583 break
6584 fi
6585 done
6586 IFS="$lt_save_ifs"
6587 MAGIC_CMD="$lt_save_MAGIC_CMD"
6588 ;;
6589esac
6590fi
d7040cdb 6591
ce2cded5
L
6592MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6593if test -n "$MAGIC_CMD"; then
6594 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6595echo "${ECHO_T}$MAGIC_CMD" >&6
6596else
6597 echo "$as_me:$LINENO: result: no" >&5
6598echo "${ECHO_T}no" >&6
6599fi
d7040cdb
SE
6600
6601
6602
6603
6604
ce2cded5
L
6605if test -z "$lt_cv_path_MAGIC_CMD"; then
6606 if test -n "$ac_tool_prefix"; then
6607 echo "$as_me:$LINENO: checking for file" >&5
6608echo $ECHO_N "checking for file... $ECHO_C" >&6
6609if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
6612 case $MAGIC_CMD in
6613[\\/*] | ?:[\\/]*)
6614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6615 ;;
6616*)
6617 lt_save_MAGIC_CMD="$MAGIC_CMD"
6618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6620 for ac_dir in $ac_dummy; do
6621 IFS="$lt_save_ifs"
6622 test -z "$ac_dir" && ac_dir=.
6623 if test -f $ac_dir/file; then
6624 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6625 if test -n "$file_magic_test_file"; then
6626 case $deplibs_check_method in
6627 "file_magic "*)
6628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6631 $EGREP "$file_magic_regex" > /dev/null; then
6632 :
6633 else
6634 cat <<_LT_EOF 1>&2
d7040cdb 6635
ce2cded5
L
6636*** Warning: the command libtool uses to detect shared libraries,
6637*** $file_magic_cmd, produces output that libtool cannot recognize.
6638*** The result is that libtool may fail to recognize shared libraries
6639*** as such. This will affect the creation of libtool libraries that
6640*** depend on shared libraries, but programs linked with such libtool
6641*** libraries will work regardless of this problem. Nevertheless, you
6642*** may want to report the problem to your system manager and/or to
6643*** bug-libtool@gnu.org
d7040cdb 6644
ce2cded5
L
6645_LT_EOF
6646 fi ;;
6647 esac
6648 fi
6649 break
6650 fi
6651 done
6652 IFS="$lt_save_ifs"
6653 MAGIC_CMD="$lt_save_MAGIC_CMD"
6654 ;;
6655esac
6656fi
d7040cdb 6657
ce2cded5
L
6658MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6659if test -n "$MAGIC_CMD"; then
6660 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6661echo "${ECHO_T}$MAGIC_CMD" >&6
6662else
6663 echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6
6665fi
d7040cdb
SE
6666
6667
ce2cded5
L
6668 else
6669 MAGIC_CMD=:
6670 fi
6671fi
d7040cdb 6672
ce2cded5
L
6673 fi
6674 ;;
6675esac
d7040cdb 6676
ce2cded5 6677# Use C for the default configuration in the libtool script
d7040cdb 6678
ce2cded5
L
6679lt_save_CC="$CC"
6680ac_ext=c
6681ac_cpp='$CPP $CPPFLAGS'
6682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6684ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6685
6686
ce2cded5
L
6687# Source file extension for C test sources.
6688ac_ext=c
d7040cdb 6689
ce2cded5
L
6690# Object file extension for compiled C test sources.
6691objext=o
6692objext=$objext
d7040cdb 6693
ce2cded5
L
6694# Code to be used in simple compile tests
6695lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 6696
ce2cded5
L
6697# Code to be used in simple link tests
6698lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
6699
6700
6701
6702
6703
6704
6705
ce2cded5
L
6706# If no C compiler was specified, use CC.
6707LTCC=${LTCC-"$CC"}
d7040cdb 6708
ce2cded5
L
6709# If no C compiler flags were specified, use CFLAGS.
6710LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6711
ce2cded5
L
6712# Allow CC to be a program name with arguments.
6713compiler=$CC
d7040cdb 6714
ce2cded5
L
6715# Save the default compiler, since it gets overwritten when the other
6716# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6717compiler_DEFAULT=$CC
d7040cdb 6718
ce2cded5
L
6719# save warnings/boilerplate of simple test code
6720ac_outfile=conftest.$ac_objext
6721echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6722eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6723_lt_compiler_boilerplate=`cat conftest.err`
6724$RM conftest*
d7040cdb 6725
ce2cded5
L
6726ac_outfile=conftest.$ac_objext
6727echo "$lt_simple_link_test_code" >conftest.$ac_ext
6728eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6729_lt_linker_boilerplate=`cat conftest.err`
6730$RM conftest*
d7040cdb
SE
6731
6732
ce2cded5
L
6733## CAVEAT EMPTOR:
6734## There is no encapsulation within the following macros, do not change
6735## the running order or otherwise move them around unless you know exactly
6736## what you are doing...
6737if test -n "$compiler"; then
d7040cdb 6738
ce2cded5 6739lt_prog_compiler_no_builtin_flag=
d7040cdb 6740
ce2cded5
L
6741if test "$GCC" = yes; then
6742 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 6743
ce2cded5
L
6744 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6745echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6746if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748else
6749 lt_cv_prog_compiler_rtti_exceptions=no
6750 ac_outfile=conftest.$ac_objext
6751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6752 lt_compiler_flag="-fno-rtti -fno-exceptions"
6753 # Insert the option either (1) after the last *FLAGS variable, or
6754 # (2) before a word containing "conftest.", or (3) at the end.
6755 # Note that $ac_compile itself does not contain backslashes and begins
6756 # with a dollar sign (not a hyphen), so the echo should work correctly.
6757 # The option is referenced via a variable to avoid confusing sed.
6758 lt_compile=`echo "$ac_compile" | $SED \
6759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6761 -e 's:$: $lt_compiler_flag:'`
58c85be7 6762 (eval echo "\"\$as_me:6762: $lt_compile\"" >&5)
ce2cded5
L
6763 (eval "$lt_compile" 2>conftest.err)
6764 ac_status=$?
6765 cat conftest.err >&5
58c85be7 6766 echo "$as_me:6766: \$? = $ac_status" >&5
ce2cded5
L
6767 if (exit $ac_status) && test -s "$ac_outfile"; then
6768 # The compiler can only warn and ignore the option if not recognized
6769 # So say no if there are warnings other than the usual output.
6770 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6772 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6773 lt_cv_prog_compiler_rtti_exceptions=yes
6774 fi
6775 fi
6776 $RM conftest*
d7040cdb 6777
ce2cded5
L
6778fi
6779echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6780echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d7040cdb 6781
ce2cded5
L
6782if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6783 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6784else
6785 :
6786fi
d7040cdb 6787
ce2cded5 6788fi
d7040cdb
SE
6789
6790
6791
6792
6793
6794
ce2cded5
L
6795 lt_prog_compiler_wl=
6796lt_prog_compiler_pic=
6797lt_prog_compiler_static=
d7040cdb 6798
ce2cded5
L
6799echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6800echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d7040cdb 6801
ce2cded5
L
6802 if test "$GCC" = yes; then
6803 lt_prog_compiler_wl='-Wl,'
6804 lt_prog_compiler_static='-static'
d7040cdb 6805
ce2cded5
L
6806 case $host_os in
6807 aix*)
6808 # All AIX code is PIC.
6809 if test "$host_cpu" = ia64; then
6810 # AIX 5 now supports IA64 processor
6811 lt_prog_compiler_static='-Bstatic'
6812 fi
6813 ;;
d7040cdb 6814
ce2cded5
L
6815 amigaos*)
6816 if test "$host_cpu" = m68k; then
6817 # FIXME: we need at least 68020 code to build shared libraries, but
6818 # adding the `-m68020' flag to GCC prevents building anything better,
6819 # like `-m68040'.
6820 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6821 fi
6822 ;;
d7040cdb 6823
ce2cded5
L
6824 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6825 # PIC is the default for these OSes.
6826 ;;
d7040cdb 6827
ce2cded5
L
6828 mingw* | cygwin* | pw32* | os2*)
6829 # This hack is so that the source file can tell whether it is being
6830 # built for inclusion in a dll (and should export symbols for example).
6831 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6832 # (--disable-auto-import) libraries
6833 lt_prog_compiler_pic='-DDLL_EXPORT'
6834 ;;
d7040cdb 6835
ce2cded5
L
6836 darwin* | rhapsody*)
6837 # PIC is the default on this platform
6838 # Common symbols not allowed in MH_DYLIB files
6839 lt_prog_compiler_pic='-fno-common'
6840 ;;
d7040cdb 6841
ce2cded5
L
6842 hpux*)
6843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6844 # not for PA HP-UX.
6845 case $host_cpu in
6846 hppa*64*|ia64*)
6847 # +Z the default
6848 ;;
6849 *)
6850 lt_prog_compiler_pic='-fPIC'
6851 ;;
6852 esac
6853 ;;
d7040cdb 6854
ce2cded5
L
6855 interix[3-9]*)
6856 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6857 # Instead, we relocate shared libraries at runtime.
6858 ;;
d7040cdb 6859
ce2cded5
L
6860 msdosdjgpp*)
6861 # Just because we use GCC doesn't mean we suddenly get shared libraries
6862 # on systems that don't support them.
6863 lt_prog_compiler_can_build_shared=no
6864 enable_shared=no
6865 ;;
d7040cdb 6866
ce2cded5
L
6867 *nto* | *qnx*)
6868 # QNX uses GNU C++, but need to define -shared option too, otherwise
6869 # it will coredump.
6870 lt_prog_compiler_pic='-fPIC -shared'
6871 ;;
d7040cdb 6872
ce2cded5
L
6873 sysv4*MP*)
6874 if test -d /usr/nec; then
6875 lt_prog_compiler_pic=-Kconform_pic
6876 fi
6877 ;;
d7040cdb 6878
ce2cded5
L
6879 *)
6880 lt_prog_compiler_pic='-fPIC'
6881 ;;
6882 esac
6883 else
6884 # PORTME Check for flag to pass linker flags through the system compiler.
6885 case $host_os in
6886 aix*)
6887 lt_prog_compiler_wl='-Wl,'
6888 if test "$host_cpu" = ia64; then
6889 # AIX 5 now supports IA64 processor
6890 lt_prog_compiler_static='-Bstatic'
6891 else
6892 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6893 fi
6894 ;;
6895 darwin*)
6896 # PIC is the default on this platform
6897 # Common symbols not allowed in MH_DYLIB files
6898 case $cc_basename in
6899 xlc*)
6900 lt_prog_compiler_pic='-qnocommon'
6901 lt_prog_compiler_wl='-Wl,'
6902 ;;
6903 esac
6904 ;;
d7040cdb 6905
ce2cded5
L
6906 mingw* | cygwin* | pw32* | os2*)
6907 # This hack is so that the source file can tell whether it is being
6908 # built for inclusion in a dll (and should export symbols for example).
6909 lt_prog_compiler_pic='-DDLL_EXPORT'
6910 ;;
d7040cdb 6911
ce2cded5
L
6912 hpux9* | hpux10* | hpux11*)
6913 lt_prog_compiler_wl='-Wl,'
6914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6915 # not for PA HP-UX.
6916 case $host_cpu in
6917 hppa*64*|ia64*)
6918 # +Z the default
6919 ;;
6920 *)
6921 lt_prog_compiler_pic='+Z'
6922 ;;
6923 esac
6924 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6925 lt_prog_compiler_static='${wl}-a ${wl}archive'
6926 ;;
d7040cdb 6927
ce2cded5
L
6928 irix5* | irix6* | nonstopux*)
6929 lt_prog_compiler_wl='-Wl,'
6930 # PIC (with -KPIC) is the default.
6931 lt_prog_compiler_static='-non_shared'
6932 ;;
d7040cdb 6933
ce2cded5
L
6934 linux* | k*bsd*-gnu)
6935 case $cc_basename in
6936 icc* | ecc*)
6937 lt_prog_compiler_wl='-Wl,'
6938 lt_prog_compiler_pic='-KPIC'
6939 lt_prog_compiler_static='-static'
6940 ;;
6941 pgcc* | pgf77* | pgf90* | pgf95*)
6942 # Portland Group compilers (*not* the Pentium gcc compiler,
6943 # which looks to be a dead project)
6944 lt_prog_compiler_wl='-Wl,'
6945 lt_prog_compiler_pic='-fpic'
6946 lt_prog_compiler_static='-Bstatic'
6947 ;;
6948 ccc*)
6949 lt_prog_compiler_wl='-Wl,'
6950 # All Alpha code is PIC.
6951 lt_prog_compiler_static='-non_shared'
6952 ;;
6953 *)
6954 case `$CC -V 2>&1 | sed 5q` in
6955 *Sun\ C*)
6956 # Sun C 5.9
6957 lt_prog_compiler_pic='-KPIC'
6958 lt_prog_compiler_static='-Bstatic'
6959 lt_prog_compiler_wl='-Wl,'
6960 ;;
6961 *Sun\ F*)
6962 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6963 lt_prog_compiler_pic='-KPIC'
6964 lt_prog_compiler_static='-Bstatic'
6965 lt_prog_compiler_wl=''
6966 ;;
6967 esac
6968 ;;
6969 esac
6970 ;;
d7040cdb 6971
ce2cded5
L
6972 newsos6)
6973 lt_prog_compiler_pic='-KPIC'
6974 lt_prog_compiler_static='-Bstatic'
6975 ;;
d7040cdb 6976
ce2cded5
L
6977 *nto* | *qnx*)
6978 # QNX uses GNU C++, but need to define -shared option too, otherwise
6979 # it will coredump.
6980 lt_prog_compiler_pic='-fPIC -shared'
6981 ;;
d7040cdb 6982
ce2cded5
L
6983 osf3* | osf4* | osf5*)
6984 lt_prog_compiler_wl='-Wl,'
6985 # All OSF/1 code is PIC.
6986 lt_prog_compiler_static='-non_shared'
6987 ;;
d7040cdb 6988
ce2cded5
L
6989 rdos*)
6990 lt_prog_compiler_static='-non_shared'
6991 ;;
d7040cdb 6992
ce2cded5
L
6993 solaris*)
6994 lt_prog_compiler_pic='-KPIC'
6995 lt_prog_compiler_static='-Bstatic'
6996 case $cc_basename in
6997 f77* | f90* | f95*)
6998 lt_prog_compiler_wl='-Qoption ld ';;
6999 *)
7000 lt_prog_compiler_wl='-Wl,';;
7001 esac
7002 ;;
d7040cdb 7003
ce2cded5
L
7004 sunos4*)
7005 lt_prog_compiler_wl='-Qoption ld '
7006 lt_prog_compiler_pic='-PIC'
7007 lt_prog_compiler_static='-Bstatic'
7008 ;;
d7040cdb 7009
ce2cded5
L
7010 sysv4 | sysv4.2uw2* | sysv4.3*)
7011 lt_prog_compiler_wl='-Wl,'
7012 lt_prog_compiler_pic='-KPIC'
7013 lt_prog_compiler_static='-Bstatic'
7014 ;;
d7040cdb 7015
ce2cded5
L
7016 sysv4*MP*)
7017 if test -d /usr/nec ;then
7018 lt_prog_compiler_pic='-Kconform_pic'
7019 lt_prog_compiler_static='-Bstatic'
7020 fi
7021 ;;
d7040cdb 7022
ce2cded5
L
7023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7024 lt_prog_compiler_wl='-Wl,'
7025 lt_prog_compiler_pic='-KPIC'
7026 lt_prog_compiler_static='-Bstatic'
7027 ;;
d7040cdb 7028
ce2cded5
L
7029 unicos*)
7030 lt_prog_compiler_wl='-Wl,'
7031 lt_prog_compiler_can_build_shared=no
7032 ;;
d7040cdb 7033
ce2cded5
L
7034 uts4*)
7035 lt_prog_compiler_pic='-pic'
7036 lt_prog_compiler_static='-Bstatic'
7037 ;;
d7040cdb 7038
ce2cded5
L
7039 *)
7040 lt_prog_compiler_can_build_shared=no
7041 ;;
7042 esac
7043 fi
d7040cdb 7044
ce2cded5
L
7045case $host_os in
7046 # For platforms which do not support PIC, -DPIC is meaningless:
7047 *djgpp*)
7048 lt_prog_compiler_pic=
7049 ;;
7050 *)
7051 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7052 ;;
7053esac
7054echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7055echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7056
7057
7058
7059
7060
7061
ce2cded5
L
7062#
7063# Check to make sure the PIC flag actually works.
7064#
7065if test -n "$lt_prog_compiler_pic"; then
7066 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7067echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7068if test "${lt_prog_compiler_pic_works+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 lt_prog_compiler_pic_works=no
7072 ac_outfile=conftest.$ac_objext
7073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7074 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7075 # Insert the option either (1) after the last *FLAGS variable, or
7076 # (2) before a word containing "conftest.", or (3) at the end.
7077 # Note that $ac_compile itself does not contain backslashes and begins
7078 # with a dollar sign (not a hyphen), so the echo should work correctly.
7079 # The option is referenced via a variable to avoid confusing sed.
7080 lt_compile=`echo "$ac_compile" | $SED \
7081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7083 -e 's:$: $lt_compiler_flag:'`
58c85be7 7084 (eval echo "\"\$as_me:7084: $lt_compile\"" >&5)
ce2cded5
L
7085 (eval "$lt_compile" 2>conftest.err)
7086 ac_status=$?
7087 cat conftest.err >&5
58c85be7 7088 echo "$as_me:7088: \$? = $ac_status" >&5
ce2cded5
L
7089 if (exit $ac_status) && test -s "$ac_outfile"; then
7090 # The compiler can only warn and ignore the option if not recognized
7091 # So say no if there are warnings other than the usual output.
7092 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7095 lt_prog_compiler_pic_works=yes
7096 fi
7097 fi
7098 $RM conftest*
d7040cdb 7099
ce2cded5
L
7100fi
7101echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7102echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
d7040cdb 7103
ce2cded5
L
7104if test x"$lt_prog_compiler_pic_works" = xyes; then
7105 case $lt_prog_compiler_pic in
7106 "" | " "*) ;;
7107 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7108 esac
7109else
7110 lt_prog_compiler_pic=
7111 lt_prog_compiler_can_build_shared=no
7112fi
d7040cdb 7113
ce2cded5 7114fi
d7040cdb
SE
7115
7116
7117
7118
7119
7120
ce2cded5
L
7121#
7122# Check to make sure the static flag actually works.
7123#
7124wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7125echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7126echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7127if test "${lt_prog_compiler_static_works+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130 lt_prog_compiler_static_works=no
7131 save_LDFLAGS="$LDFLAGS"
7132 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7133 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7135 # The linker can only warn and ignore the option if not recognized
7136 # So say no if there are warnings
7137 if test -s conftest.err; then
7138 # Append any errors to the config.log.
7139 cat conftest.err 1>&5
7140 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7142 if diff conftest.exp conftest.er2 >/dev/null; then
7143 lt_prog_compiler_static_works=yes
7144 fi
7145 else
7146 lt_prog_compiler_static_works=yes
7147 fi
7148 fi
7149 $RM conftest*
7150 LDFLAGS="$save_LDFLAGS"
d7040cdb 7151
ce2cded5
L
7152fi
7153echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7154echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7155
ce2cded5
L
7156if test x"$lt_prog_compiler_static_works" = xyes; then
7157 :
7158else
7159 lt_prog_compiler_static=
7160fi
d7040cdb
SE
7161
7162
7163
7164
7165
7166
7167
ce2cded5
L
7168 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7169echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7170if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172else
7173 lt_cv_prog_compiler_c_o=no
7174 $RM -r conftest 2>/dev/null
7175 mkdir conftest
7176 cd conftest
7177 mkdir out
7178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7179
ce2cded5
L
7180 lt_compiler_flag="-o out/conftest2.$ac_objext"
7181 # Insert the option either (1) after the last *FLAGS variable, or
7182 # (2) before a word containing "conftest.", or (3) at the end.
7183 # Note that $ac_compile itself does not contain backslashes and begins
7184 # with a dollar sign (not a hyphen), so the echo should work correctly.
7185 lt_compile=`echo "$ac_compile" | $SED \
7186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7188 -e 's:$: $lt_compiler_flag:'`
58c85be7 7189 (eval echo "\"\$as_me:7189: $lt_compile\"" >&5)
ce2cded5
L
7190 (eval "$lt_compile" 2>out/conftest.err)
7191 ac_status=$?
7192 cat out/conftest.err >&5
58c85be7 7193 echo "$as_me:7193: \$? = $ac_status" >&5
ce2cded5
L
7194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7195 then
7196 # The compiler can only warn and ignore the option if not recognized
7197 # So say no if there are warnings
7198 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7201 lt_cv_prog_compiler_c_o=yes
7202 fi
7203 fi
7204 chmod u+w . 2>&5
7205 $RM conftest*
7206 # SGI C++ compiler will create directory out/ii_files/ for
7207 # template instantiation
7208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7209 $RM out/* && rmdir out
7210 cd ..
7211 $RM -r conftest
7212 $RM conftest*
7213
7214fi
7215echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7216echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7217
7218
7219
7220
7221
7222
7223 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7224echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7225if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 7227else
ce2cded5
L
7228 lt_cv_prog_compiler_c_o=no
7229 $RM -r conftest 2>/dev/null
7230 mkdir conftest
7231 cd conftest
7232 mkdir out
7233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7234
7235 lt_compiler_flag="-o out/conftest2.$ac_objext"
7236 # Insert the option either (1) after the last *FLAGS variable, or
7237 # (2) before a word containing "conftest.", or (3) at the end.
7238 # Note that $ac_compile itself does not contain backslashes and begins
7239 # with a dollar sign (not a hyphen), so the echo should work correctly.
7240 lt_compile=`echo "$ac_compile" | $SED \
7241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7243 -e 's:$: $lt_compiler_flag:'`
58c85be7 7244 (eval echo "\"\$as_me:7244: $lt_compile\"" >&5)
ce2cded5
L
7245 (eval "$lt_compile" 2>out/conftest.err)
7246 ac_status=$?
7247 cat out/conftest.err >&5
58c85be7 7248 echo "$as_me:7248: \$? = $ac_status" >&5
ce2cded5
L
7249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7250 then
7251 # The compiler can only warn and ignore the option if not recognized
7252 # So say no if there are warnings
7253 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7256 lt_cv_prog_compiler_c_o=yes
7257 fi
7258 fi
7259 chmod u+w . 2>&5
7260 $RM conftest*
7261 # SGI C++ compiler will create directory out/ii_files/ for
7262 # template instantiation
7263 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7264 $RM out/* && rmdir out
7265 cd ..
7266 $RM -r conftest
7267 $RM conftest*
7268
d7040cdb 7269fi
ce2cded5
L
7270echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7271echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb 7272
d7040cdb 7273
d7040cdb 7274
d7040cdb 7275
ce2cded5
L
7276hard_links="nottested"
7277if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7278 # do not overwrite the value of need_locks provided by the user
7279 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7280echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7281 hard_links=yes
7282 $RM conftest*
7283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7284 touch conftest.a
7285 ln conftest.a conftest.b 2>&5 || hard_links=no
7286 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7287 echo "$as_me:$LINENO: result: $hard_links" >&5
7288echo "${ECHO_T}$hard_links" >&6
7289 if test "$hard_links" = no; then
7290 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7291echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7292 need_locks=warn
d7040cdb 7293 fi
ce2cded5
L
7294else
7295 need_locks=no
7296fi
d7040cdb 7297
d7040cdb 7298
d7040cdb 7299
d7040cdb 7300
d7040cdb 7301
d7040cdb 7302
ce2cded5
L
7303 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7304echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7305
ce2cded5
L
7306 runpath_var=
7307 allow_undefined_flag=
7308 always_export_symbols=no
7309 archive_cmds=
7310 archive_expsym_cmds=
7311 compiler_needs_object=no
7312 enable_shared_with_static_runtimes=no
7313 export_dynamic_flag_spec=
7314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7315 hardcode_automatic=no
7316 hardcode_direct=no
7317 hardcode_direct_absolute=no
7318 hardcode_libdir_flag_spec=
7319 hardcode_libdir_flag_spec_ld=
7320 hardcode_libdir_separator=
7321 hardcode_minus_L=no
7322 hardcode_shlibpath_var=unsupported
7323 inherit_rpath=no
7324 link_all_deplibs=unknown
7325 module_cmds=
7326 module_expsym_cmds=
7327 old_archive_from_new_cmds=
7328 old_archive_from_expsyms_cmds=
7329 thread_safe_flag_spec=
7330 whole_archive_flag_spec=
7331 # include_expsyms should be a list of space-separated symbols to be *always*
7332 # included in the symbol list
7333 include_expsyms=
7334 # exclude_expsyms can be an extended regexp of symbols to exclude
7335 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7336 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7337 # as well as any symbol that contains `d'.
7338 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7339 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7340 # platforms (ab)use it in PIC code, but their linkers get confused if
7341 # the symbol is explicitly referenced. Since portable code cannot
7342 # rely on this symbol name, it's probably fine to never include it in
7343 # preloaded symbol tables.
7344 extract_expsyms_cmds=
d7040cdb 7345
d7040cdb 7346 case $host_os in
ce2cded5
L
7347 cygwin* | mingw* | pw32*)
7348 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7349 # When not using gcc, we currently assume that we are using
7350 # Microsoft Visual C++.
7351 if test "$GCC" != yes; then
7352 with_gnu_ld=no
7353 fi
d7040cdb 7354 ;;
ce2cded5
L
7355 interix*)
7356 # we just hope/assume this is gcc and not c89 (= MSVC++)
7357 with_gnu_ld=yes
d7040cdb 7358 ;;
ce2cded5
L
7359 openbsd*)
7360 with_gnu_ld=no
d7040cdb
SE
7361 ;;
7362 esac
d7040cdb 7363
ce2cded5
L
7364 ld_shlibs=yes
7365 if test "$with_gnu_ld" = yes; then
7366 # If archive_cmds runs LD, not CC, wlarc should be empty
7367 wlarc='${wl}'
d7040cdb 7368
ce2cded5
L
7369 # Set some defaults for GNU ld with shared library support. These
7370 # are reset later if shared libraries are not supported. Putting them
7371 # here allows them to be overridden if necessary.
7372 runpath_var=LD_RUN_PATH
7373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7374 export_dynamic_flag_spec='${wl}--export-dynamic'
7375 # ancient GNU ld didn't support --whole-archive et. al.
7376 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7377 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d7040cdb 7378 else
ce2cded5 7379 whole_archive_flag_spec=
d7040cdb 7380 fi
ce2cded5
L
7381 supports_anon_versioning=no
7382 case `$LD -v 2>&1` in
7383 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7384 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7385 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7386 *\ 2.11.*) ;; # other 2.11 versions
7387 *) supports_anon_versioning=yes ;;
7388 esac
d7040cdb 7389
ce2cded5
L
7390 # See if GNU ld supports shared libraries.
7391 case $host_os in
50e7d84b 7392 aix[3-9]*)
ce2cded5
L
7393 # On AIX/PPC, the GNU linker is very broken
7394 if test "$host_cpu" != ia64; then
7395 ld_shlibs=no
7396 cat <<_LT_EOF 1>&2
d7040cdb 7397
ce2cded5
L
7398*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7399*** to be unable to reliably create shared libraries on AIX.
7400*** Therefore, libtool is disabling shared libraries support. If you
7401*** really care for shared libraries, you may want to modify your PATH
7402*** so that a non-GNU linker is found, and then restart.
d7040cdb 7403
ce2cded5
L
7404_LT_EOF
7405 fi
7406 ;;
d7040cdb 7407
ce2cded5
L
7408 amigaos*)
7409 if test "$host_cpu" = m68k; then
7410 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)'
7411 hardcode_libdir_flag_spec='-L$libdir'
7412 hardcode_minus_L=yes
7413 fi
d7040cdb 7414
ce2cded5
L
7415 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7416 # that the semantics of dynamic libraries on AmigaOS, at least up
7417 # to version 4, is to share data among multiple programs linked
7418 # with the same dynamic library. Since this doesn't match the
7419 # behavior of shared libraries on other platforms, we can't use
7420 # them.
7421 ld_shlibs=no
7422 ;;
d7040cdb 7423
ce2cded5
L
7424 beos*)
7425 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7426 allow_undefined_flag=unsupported
7427 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7428 # support --undefined. This deserves some investigation. FIXME
7429 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7430 else
7431 ld_shlibs=no
7432 fi
7433 ;;
d7040cdb 7434
ce2cded5
L
7435 cygwin* | mingw* | pw32*)
7436 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7437 # as there is no search path for DLLs.
7438 hardcode_libdir_flag_spec='-L$libdir'
7439 allow_undefined_flag=unsupported
7440 always_export_symbols=no
7441 enable_shared_with_static_runtimes=yes
7442 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 7443
ce2cded5
L
7444 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7446 # If the export-symbols file already is a .def file (1st line
7447 # is EXPORTS), use it as is; otherwise, prepend...
7448 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7449 cp $export_symbols $output_objdir/$soname.def;
7450 else
7451 echo EXPORTS > $output_objdir/$soname.def;
7452 cat $export_symbols >> $output_objdir/$soname.def;
7453 fi~
7454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7455 else
7456 ld_shlibs=no
7457 fi
7458 ;;
d7040cdb 7459
ce2cded5
L
7460 interix[3-9]*)
7461 hardcode_direct=no
7462 hardcode_shlibpath_var=no
7463 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7464 export_dynamic_flag_spec='${wl}-E'
7465 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7466 # Instead, shared libraries are loaded at an image base (0x10000000 by
7467 # default) and relocated if they conflict, which is a slow very memory
7468 # consuming and fragmenting process. To avoid this, we pick a random,
7469 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7470 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7471 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7472 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'
7473 ;;
d7040cdb 7474
ce2cded5
L
7475 gnu* | linux* | tpf* | k*bsd*-gnu)
7476 tmp_diet=no
7477 if test "$host_os" = linux-dietlibc; then
7478 case $cc_basename in
7479 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7480 esac
7481 fi
7482 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7483 && test "$tmp_diet" = no
7484 then
7485 tmp_addflag=
7486 case $cc_basename,$host_cpu in
7487 pgcc*) # Portland Group C compiler
7488 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'
7489 tmp_addflag=' $pic_flag'
7490 ;;
7491 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7492 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'
7493 tmp_addflag=' $pic_flag -Mnomain' ;;
7494 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7495 tmp_addflag=' -i_dynamic' ;;
7496 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7497 tmp_addflag=' -i_dynamic -nofor_main' ;;
7498 ifc* | ifort*) # Intel Fortran compiler
7499 tmp_addflag=' -nofor_main' ;;
7500 esac
7501 case `$CC -V 2>&1 | sed 5q` in
7502 *Sun\ C*) # Sun C 5.9
7503 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'
7504 compiler_needs_object=yes
7505 tmp_sharedflag='-G' ;;
7506 *Sun\ F*) # Sun Fortran 8.3
7507 tmp_sharedflag='-G' ;;
7508 *)
7509 tmp_sharedflag='-shared' ;;
7510 esac
7511 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7512
ce2cded5
L
7513 if test "x$supports_anon_versioning" = xyes; then
7514 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7516 echo "local: *; };" >> $output_objdir/$libname.ver~
7517 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7518 fi
7519 else
7520 ld_shlibs=no
7521 fi
7522 ;;
d7040cdb 7523
ce2cded5
L
7524 netbsd*)
7525 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7526 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7527 wlarc=
7528 else
7529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7531 fi
7532 ;;
d7040cdb 7533
ce2cded5
L
7534 solaris*)
7535 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7536 ld_shlibs=no
7537 cat <<_LT_EOF 1>&2
d7040cdb 7538
ce2cded5
L
7539*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7540*** create shared libraries on Solaris systems. Therefore, libtool
7541*** is disabling shared libraries support. We urge you to upgrade GNU
7542*** binutils to release 2.9.1 or newer. Another option is to modify
7543*** your PATH or compiler configuration so that the native linker is
7544*** used, and then restart.
d7040cdb 7545
ce2cded5
L
7546_LT_EOF
7547 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7550 else
7551 ld_shlibs=no
7552 fi
7553 ;;
d7040cdb 7554
ce2cded5
L
7555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7556 case `$LD -v 2>&1` in
7557 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7558 ld_shlibs=no
7559 cat <<_LT_EOF 1>&2
d7040cdb 7560
ce2cded5
L
7561*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7562*** reliably create shared libraries on SCO systems. Therefore, libtool
7563*** is disabling shared libraries support. We urge you to upgrade GNU
7564*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7565*** your PATH or compiler configuration so that the native linker is
7566*** used, and then restart.
d7040cdb 7567
ce2cded5
L
7568_LT_EOF
7569 ;;
7570 *)
7571 # For security reasons, it is highly recommended that you always
7572 # use absolute paths for naming shared libraries, and exclude the
7573 # DT_RUNPATH tag from executables and libraries. But doing so
7574 # requires that you compile everything twice, which is a pain.
7575 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7578 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7579 else
7580 ld_shlibs=no
7581 fi
7582 ;;
7583 esac
d7040cdb 7584 ;;
ce2cded5
L
7585
7586 sunos4*)
7587 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7588 wlarc=
7589 hardcode_direct=yes
7590 hardcode_shlibpath_var=no
d7040cdb 7591 ;;
d7040cdb 7592
ce2cded5
L
7593 *)
7594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7597 else
7598 ld_shlibs=no
7599 fi
7600 ;;
7601 esac
d7040cdb 7602
ce2cded5
L
7603 if test "$ld_shlibs" = no; then
7604 runpath_var=
7605 hardcode_libdir_flag_spec=
7606 export_dynamic_flag_spec=
7607 whole_archive_flag_spec=
7608 fi
d7040cdb 7609 else
ce2cded5 7610 # PORTME fill in a description of your system's linker (not GNU ld)
d7040cdb 7611 case $host_os in
ce2cded5
L
7612 aix3*)
7613 allow_undefined_flag=unsupported
7614 always_export_symbols=yes
7615 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'
7616 # Note: this linker hardcodes the directories in LIBPATH if there
7617 # are no directories specified by -L.
7618 hardcode_minus_L=yes
7619 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7620 # Neither direct hardcoding nor static linking is supported with a
7621 # broken collect2.
7622 hardcode_direct=unsupported
7623 fi
7624 ;;
d7040cdb 7625
50e7d84b 7626 aix[4-9]*)
ce2cded5
L
7627 if test "$host_cpu" = ia64; then
7628 # On IA64, the linker does run time linking by default, so we don't
7629 # have to do anything special.
7630 aix_use_runtimelinking=no
7631 exp_sym_flag='-Bexport'
7632 no_entry_flag=""
7633 else
7634 # If we're using GNU nm, then we don't want the "-C" option.
7635 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7636 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7637 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'
7638 else
7639 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'
7640 fi
7641 aix_use_runtimelinking=no
d7040cdb 7642
ce2cded5
L
7643 # Test if we are trying to use run time linking or normal
7644 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7645 # need to do runtime linking.
50e7d84b 7646 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
7647 for ld_flag in $LDFLAGS; do
7648 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7649 aix_use_runtimelinking=yes
7650 break
7651 fi
7652 done
7653 ;;
7654 esac
d7040cdb 7655
ce2cded5
L
7656 exp_sym_flag='-bexport'
7657 no_entry_flag='-bnoentry'
7658 fi
d7040cdb 7659
ce2cded5
L
7660 # When large executables or shared objects are built, AIX ld can
7661 # have problems creating the table of contents. If linking a library
7662 # or program results in "error TOC overflow" add -mminimal-toc to
7663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 7665
ce2cded5
L
7666 archive_cmds=''
7667 hardcode_direct=yes
7668 hardcode_direct_absolute=yes
7669 hardcode_libdir_separator=':'
7670 link_all_deplibs=yes
7671 file_list_spec='${wl}-f,'
d7040cdb 7672
ce2cded5
L
7673 if test "$GCC" = yes; then
7674 case $host_os in aix4.[012]|aix4.[012].*)
7675 # We only want to do this on AIX 4.2 and lower, the check
7676 # below for broken collect2 doesn't work under 4.3+
7677 collect2name=`${CC} -print-prog-name=collect2`
7678 if test -f "$collect2name" &&
7679 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7680 then
7681 # We have reworked collect2
7682 :
7683 else
7684 # We have old collect2
7685 hardcode_direct=unsupported
7686 # It fails to find uninstalled libraries when the uninstalled
7687 # path is not listed in the libpath. Setting hardcode_minus_L
7688 # to unsupported forces relinking
7689 hardcode_minus_L=yes
7690 hardcode_libdir_flag_spec='-L$libdir'
7691 hardcode_libdir_separator=
7692 fi
7693 ;;
7694 esac
7695 shared_flag='-shared'
7696 if test "$aix_use_runtimelinking" = yes; then
7697 shared_flag="$shared_flag "'${wl}-G'
7698 fi
7699 else
7700 # not using gcc
7701 if test "$host_cpu" = ia64; then
7702 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7703 # chokes on -Wl,-G. The following line is correct:
7704 shared_flag='-G'
7705 else
7706 if test "$aix_use_runtimelinking" = yes; then
7707 shared_flag='${wl}-G'
7708 else
7709 shared_flag='${wl}-bM:SRE'
7710 fi
7711 fi
7712 fi
d7040cdb 7713
ce2cded5
L
7714 # It seems that -bexpall does not export symbols beginning with
7715 # underscore (_), so it is better to generate a list of symbols to export.
7716 always_export_symbols=yes
7717 if test "$aix_use_runtimelinking" = yes; then
7718 # Warning - without using the other runtime loading flags (-brtl),
7719 # -berok will link without error, but may produce a broken library.
7720 allow_undefined_flag='-berok'
7721 # Determine the default libpath from the value encoded in an
7722 # empty executable.
7723 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
7729
d7040cdb
SE
7730int
7731main ()
7732{
ce2cded5 7733
d7040cdb
SE
7734 ;
7735 return 0;
7736}
7737_ACEOF
7738rm -f conftest.$ac_objext conftest$ac_exeext
0ab6f085
AM
7739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7740 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
7741 ac_status=$?
7742 grep -v '^ *+' conftest.er1 >conftest.err
7743 rm -f conftest.er1
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
7746 (exit $ac_status); } &&
7747 { ac_try='test -z "$ac_c_werror_flag"
7748 || test ! -s conftest.err'
7749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 (eval $ac_try) 2>&5
7751 ac_status=$?
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; } &&
7754 { ac_try='test -s conftest$ac_exeext'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
d7040cdb 7760
ce2cded5
L
7761lt_aix_libpath_sed='
7762 /Import File Strings/,/^$/ {
7763 /^0/ {
7764 s/^0 *\(.*\)$/\1/
7765 p
7766 }
7767 }'
7768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7769# Check for a 64-bit object if we didn't find anything.
7770if test -z "$aix_libpath"; then
7771 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d7040cdb 7772fi
d7040cdb
SE
7773else
7774 echo "$as_me: failed program was:" >&5
7775sed 's/^/| /' conftest.$ac_ext >&5
7776
d7040cdb 7777fi
0ab6f085 7778rm -f conftest.err conftest.$ac_objext \
d7040cdb 7779 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
7780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7781
7782 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7783 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"
7784 else
7785 if test "$host_cpu" = ia64; then
7786 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7787 allow_undefined_flag="-z nodefs"
7788 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"
7789 else
7790 # Determine the default libpath from the value encoded in an
7791 # empty executable.
7792 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
7793/* confdefs.h. */
7794_ACEOF
7795cat confdefs.h >>conftest.$ac_ext
7796cat >>conftest.$ac_ext <<_ACEOF
7797/* end confdefs.h. */
7798
d7040cdb
SE
7799int
7800main ()
7801{
ce2cded5 7802
d7040cdb
SE
7803 ;
7804 return 0;
7805}
7806_ACEOF
7807rm -f conftest.$ac_objext conftest$ac_exeext
0ab6f085
AM
7808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
7810 ac_status=$?
7811 grep -v '^ *+' conftest.er1 >conftest.err
7812 rm -f conftest.er1
1b9750d6 7813 cat conftest.err >&5
d7040cdb 7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
7815 (exit $ac_status); } &&
7816 { ac_try='test -z "$ac_c_werror_flag"
7817 || test ! -s conftest.err'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 (eval $ac_try) 2>&5
7820 ac_status=$?
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; } &&
7823 { ac_try='test -s conftest$ac_exeext'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 (eval $ac_try) 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; }; then
ce2cded5
L
7829
7830lt_aix_libpath_sed='
7831 /Import File Strings/,/^$/ {
7832 /^0/ {
7833 s/^0 *\(.*\)$/\1/
7834 p
7835 }
7836 }'
7837aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7838# Check for a 64-bit object if we didn't find anything.
7839if test -z "$aix_libpath"; then
7840 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7841fi
d7040cdb
SE
7842else
7843 echo "$as_me: failed program was:" >&5
7844sed 's/^/| /' conftest.$ac_ext >&5
7845
d7040cdb 7846fi
0ab6f085 7847rm -f conftest.err conftest.$ac_objext \
d7040cdb 7848 conftest$ac_exeext conftest.$ac_ext
ce2cded5 7849if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7850
ce2cded5
L
7851 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7852 # Warning - without using the other run time loading flags,
7853 # -berok will link without error, but may produce a broken library.
7854 no_undefined_flag=' ${wl}-bernotok'
7855 allow_undefined_flag=' ${wl}-berok'
7856 # Exported symbols can be pulled into shared objects from archives
7857 whole_archive_flag_spec='$convenience'
7858 archive_cmds_need_lc=yes
7859 # This is similar to how AIX traditionally builds its shared libraries.
7860 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'
7861 fi
7862 fi
7863 ;;
d7040cdb 7864
ce2cded5
L
7865 amigaos*)
7866 if test "$host_cpu" = m68k; then
7867 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)'
7868 hardcode_libdir_flag_spec='-L$libdir'
7869 hardcode_minus_L=yes
7870 fi
7871 # see comment about different semantics on the GNU ld section
7872 ld_shlibs=no
7873 ;;
d7040cdb 7874
ce2cded5
L
7875 bsdi[45]*)
7876 export_dynamic_flag_spec=-rdynamic
7877 ;;
d7040cdb 7878
ce2cded5
L
7879 cygwin* | mingw* | pw32*)
7880 # When not using gcc, we currently assume that we are using
7881 # Microsoft Visual C++.
7882 # hardcode_libdir_flag_spec is actually meaningless, as there is
7883 # no search path for DLLs.
7884 hardcode_libdir_flag_spec=' '
7885 allow_undefined_flag=unsupported
7886 # Tell ltmain to make .lib files, not .a files.
7887 libext=lib
7888 # Tell ltmain to make .dll files, not .so files.
7889 shrext_cmds=".dll"
7890 # FIXME: Setting linknames here is a bad hack.
7891 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7892 # The linker will automatically build a .lib file if we build a DLL.
7893 old_archive_from_new_cmds='true'
7894 # FIXME: Should let the user specify the lib program.
7895 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7896 fix_srcfile_path='`cygpath -w "$srcfile"`'
7897 enable_shared_with_static_runtimes=yes
7898 ;;
d7040cdb 7899
ce2cded5
L
7900 darwin* | rhapsody*)
7901 case $host_os in
7902 rhapsody* | darwin1.[012])
7903 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7904 ;;
7905 *) # Darwin 1.3 on
7906 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7907 10.[012])
7908 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7909 ;;
7910 10.*)
7911 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7912 ;;
7913 esac
7914 ;;
7915 esac
7916 archive_cmds_need_lc=no
7917 hardcode_direct=no
7918 hardcode_automatic=yes
7919 hardcode_shlibpath_var=unsupported
7920 whole_archive_flag_spec=''
7921 link_all_deplibs=yes
7922 if test "$GCC" = yes ; then
7923 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925else
7926 lt_cv_apple_cc_single_mod=no
7927 if test -z "${LT_MULTI_MODULE}"; then
7928 # By default we will add the -single_module flag. You can override
7929 # by either setting the environment variable LT_MULTI_MODULE
7930 # non-empty at configure time, or by adding -multi-module to the
7931 # link flags.
7932 echo "int foo(void){return 1;}" > conftest.c
7933 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934 -dynamiclib ${wl}-single_module conftest.c
7935 if test -f libconftest.dylib; then
7936 lt_cv_apple_cc_single_mod=yes
7937 rm libconftest.dylib
7938 fi
7939 rm conftest.$ac_ext
7940 fi
7941fi
7942
7943 output_verbose_link_cmd=echo
7944 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7945 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7946 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7947 else
7948 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7949 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7950 fi
7951 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7952 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7953 else
7954 case $cc_basename in
7955 xlc*)
7956 output_verbose_link_cmd=echo
7957 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7958 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7959 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7960 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7961 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7962 ;;
7963 *)
7964 ld_shlibs=no
7965 ;;
7966 esac
7967 fi
7968 ;;
7969
7970 dgux*)
7971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7972 hardcode_libdir_flag_spec='-L$libdir'
7973 hardcode_shlibpath_var=no
7974 ;;
7975
7976 freebsd1*)
7977 ld_shlibs=no
7978 ;;
7979
7980 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7981 # support. Future versions do this automatically, but an explicit c++rt0.o
7982 # does not break anything, and helps significantly (at the cost of a little
7983 # extra space).
7984 freebsd2.2*)
7985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7986 hardcode_libdir_flag_spec='-R$libdir'
7987 hardcode_direct=yes
7988 hardcode_shlibpath_var=no
7989 ;;
7990
7991 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7992 freebsd2*)
7993 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7994 hardcode_direct=yes
7995 hardcode_minus_L=yes
7996 hardcode_shlibpath_var=no
7997 ;;
7998
7999 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8000 freebsd* | dragonfly*)
8001 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8002 hardcode_libdir_flag_spec='-R$libdir'
8003 hardcode_direct=yes
8004 hardcode_shlibpath_var=no
8005 ;;
8006
8007 hpux9*)
8008 if test "$GCC" = yes; then
8009 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'
8010 else
8011 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'
8012 fi
8013 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8014 hardcode_libdir_separator=:
8015 hardcode_direct=yes
8016
8017 # hardcode_minus_L: Not really in the search PATH,
8018 # but as the default location of the library.
8019 hardcode_minus_L=yes
8020 export_dynamic_flag_spec='${wl}-E'
8021 ;;
8022
8023 hpux10*)
8024 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8025 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8026 else
8027 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8028 fi
8029 if test "$with_gnu_ld" = no; then
8030 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8031 hardcode_libdir_flag_spec_ld='+b $libdir'
8032 hardcode_libdir_separator=:
8033 hardcode_direct=yes
8034 hardcode_direct_absolute=yes
8035 export_dynamic_flag_spec='${wl}-E'
8036 # hardcode_minus_L: Not really in the search PATH,
8037 # but as the default location of the library.
8038 hardcode_minus_L=yes
8039 fi
8040 ;;
8041
8042 hpux11*)
8043 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8044 case $host_cpu in
8045 hppa*64*)
8046 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8047 ;;
8048 ia64*)
8049 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8050 ;;
8051 *)
8052 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8053 ;;
8054 esac
8055 else
8056 case $host_cpu in
8057 hppa*64*)
8058 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8059 ;;
8060 ia64*)
8061 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8062 ;;
8063 *)
8064 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8065 ;;
8066 esac
8067 fi
8068 if test "$with_gnu_ld" = no; then
8069 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8070 hardcode_libdir_separator=:
8071
8072 case $host_cpu in
8073 hppa*64*|ia64*)
8074 hardcode_direct=no
8075 hardcode_shlibpath_var=no
8076 ;;
8077 *)
8078 hardcode_direct=yes
8079 hardcode_direct_absolute=yes
8080 export_dynamic_flag_spec='${wl}-E'
8081
8082 # hardcode_minus_L: Not really in the search PATH,
8083 # but as the default location of the library.
8084 hardcode_minus_L=yes
8085 ;;
8086 esac
8087 fi
8088 ;;
8089
8090 irix5* | irix6* | nonstopux*)
8091 if test "$GCC" = yes; then
8092 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'
8093 # Try to use the -exported_symbol ld option, if it does not
8094 # work, assume that -exports_file does not work either and
8095 # implicitly export all symbols.
8096 save_LDFLAGS="$LDFLAGS"
8097 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8098 cat >conftest.$ac_ext <<_ACEOF
8099int foo(void) {}
d7040cdb
SE
8100_ACEOF
8101rm -f conftest.$ac_objext conftest$ac_exeext
0ab6f085
AM
8102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
8109 (exit $ac_status); } &&
8110 { ac_try='test -z "$ac_c_werror_flag"
8111 || test ! -s conftest.err'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 (eval $ac_try) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest$ac_exeext'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
ce2cded5
L
8123 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'
8124
d7040cdb
SE
8125else
8126 echo "$as_me: failed program was:" >&5
8127sed 's/^/| /' conftest.$ac_ext >&5
8128
d7040cdb 8129fi
0ab6f085 8130rm -f conftest.err conftest.$ac_objext \
d7040cdb 8131 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
8132 LDFLAGS="$save_LDFLAGS"
8133 else
8134 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'
8135 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'
8136 fi
8137 archive_cmds_need_lc='no'
8138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8139 hardcode_libdir_separator=:
8140 inherit_rpath=yes
8141 link_all_deplibs=yes
8142 ;;
8143
8144 netbsd*)
8145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8147 else
8148 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8149 fi
8150 hardcode_libdir_flag_spec='-R$libdir'
8151 hardcode_direct=yes
8152 hardcode_shlibpath_var=no
8153 ;;
8154
8155 newsos6)
8156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8157 hardcode_direct=yes
8158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159 hardcode_libdir_separator=:
8160 hardcode_shlibpath_var=no
8161 ;;
8162
8163 *nto* | *qnx*)
8164 ;;
8165
8166 openbsd*)
8167 hardcode_direct=yes
8168 hardcode_shlibpath_var=no
8169 hardcode_direct_absolute=yes
8170 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8172 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8173 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8174 export_dynamic_flag_spec='${wl}-E'
8175 else
8176 case $host_os in
8177 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8179 hardcode_libdir_flag_spec='-R$libdir'
8180 ;;
8181 *)
8182 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8184 ;;
8185 esac
8186 fi
8187 ;;
8188
8189 os2*)
8190 hardcode_libdir_flag_spec='-L$libdir'
8191 hardcode_minus_L=yes
8192 allow_undefined_flag=unsupported
8193 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'
8194 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8195 ;;
8196
8197 osf3*)
8198 if test "$GCC" = yes; then
8199 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8200 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'
8201 else
8202 allow_undefined_flag=' -expect_unresolved \*'
8203 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'
8204 fi
8205 archive_cmds_need_lc='no'
8206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8207 hardcode_libdir_separator=:
8208 ;;
8209
8210 osf4* | osf5*) # as osf3* with the addition of -msym flag
8211 if test "$GCC" = yes; then
8212 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8213 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'
8214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8215 else
8216 allow_undefined_flag=' -expect_unresolved \*'
8217 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'
8218 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~
8219 $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'
8220
8221 # Both c and cxx compiler support -rpath directly
8222 hardcode_libdir_flag_spec='-rpath $libdir'
8223 fi
8224 archive_cmds_need_lc='no'
8225 hardcode_libdir_separator=:
8226 ;;
8227
8228 solaris*)
8229 no_undefined_flag=' -z defs'
8230 if test "$GCC" = yes; then
8231 wlarc='${wl}'
8232 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8233 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8234 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8235 else
8236 case `$CC -V 2>&1` in
8237 *"Compilers 5.0"*)
8238 wlarc=''
8239 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8240 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8241 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8242 ;;
8243 *)
8244 wlarc='${wl}'
8245 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8246 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8247 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8248 ;;
8249 esac
8250 fi
8251 hardcode_libdir_flag_spec='-R$libdir'
8252 hardcode_shlibpath_var=no
8253 case $host_os in
8254 solaris2.[0-5] | solaris2.[0-5].*) ;;
8255 *)
8256 # The compiler driver will combine and reorder linker options,
8257 # but understands `-z linker_flag'. GCC discards it without `$wl',
8258 # but is careful enough not to reorder.
8259 # Supported since Solaris 2.6 (maybe 2.5.1?)
8260 if test "$GCC" = yes; then
8261 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8262 else
8263 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8264 fi
8265 ;;
8266 esac
8267 link_all_deplibs=yes
8268 ;;
8269
8270 sunos4*)
8271 if test "x$host_vendor" = xsequent; then
8272 # Use $CC to link under sequent, because it throws in some extra .o
8273 # files that make .init and .fini sections work.
8274 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8275 else
8276 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8277 fi
8278 hardcode_libdir_flag_spec='-L$libdir'
8279 hardcode_direct=yes
8280 hardcode_minus_L=yes
8281 hardcode_shlibpath_var=no
8282 ;;
8283
8284 sysv4)
8285 case $host_vendor in
8286 sni)
8287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8288 hardcode_direct=yes # is this really true???
8289 ;;
8290 siemens)
8291 ## LD is ld it makes a PLAMLIB
8292 ## CC just makes a GrossModule.
8293 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8294 reload_cmds='$CC -r -o $output$reload_objs'
8295 hardcode_direct=no
8296 ;;
8297 motorola)
8298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8299 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8300 ;;
8301 esac
8302 runpath_var='LD_RUN_PATH'
8303 hardcode_shlibpath_var=no
8304 ;;
8305
8306 sysv4.3*)
8307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8308 hardcode_shlibpath_var=no
8309 export_dynamic_flag_spec='-Bexport'
8310 ;;
8311
8312 sysv4*MP*)
8313 if test -d /usr/nec; then
8314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315 hardcode_shlibpath_var=no
8316 runpath_var=LD_RUN_PATH
8317 hardcode_runpath_var=yes
8318 ld_shlibs=yes
8319 fi
8320 ;;
8321
8322 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8323 no_undefined_flag='${wl}-z,text'
8324 archive_cmds_need_lc=no
8325 hardcode_shlibpath_var=no
8326 runpath_var='LD_RUN_PATH'
8327
8328 if test "$GCC" = yes; then
8329 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8330 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8331 else
8332 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8333 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8334 fi
8335 ;;
8336
8337 sysv5* | sco3.2v5* | sco5v6*)
8338 # Note: We can NOT use -z defs as we might desire, because we do not
8339 # link with -lc, and that would cause any symbols used from libc to
8340 # always be unresolved, which means just about no library would
8341 # ever link correctly. If we're not using GNU ld we use -z text
8342 # though, which does catch some bad symbols but isn't as heavy-handed
8343 # as -z defs.
8344 no_undefined_flag='${wl}-z,text'
8345 allow_undefined_flag='${wl}-z,nodefs'
8346 archive_cmds_need_lc=no
8347 hardcode_shlibpath_var=no
8348 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8349 hardcode_libdir_separator=':'
8350 link_all_deplibs=yes
8351 export_dynamic_flag_spec='${wl}-Bexport'
8352 runpath_var='LD_RUN_PATH'
8353
8354 if test "$GCC" = yes; then
8355 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8356 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8357 else
8358 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8359 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8360 fi
8361 ;;
8362
8363 uts4*)
8364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8365 hardcode_libdir_flag_spec='-L$libdir'
8366 hardcode_shlibpath_var=no
8367 ;;
8368
8369 *)
8370 ld_shlibs=no
8371 ;;
8372 esac
8373
8374 if test x$host_vendor = xsni; then
8375 case $host in
8376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8377 export_dynamic_flag_spec='${wl}-Blargedynsym'
8378 ;;
8379 esac
8380 fi
8381 fi
8382
8383echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8384echo "${ECHO_T}$ld_shlibs" >&6
8385test "$ld_shlibs" = no && can_build_shared=no
8386
8387with_gnu_ld=$with_gnu_ld
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403#
8404# Do we need to explicitly link libc?
8405#
8406case "x$archive_cmds_need_lc" in
8407x|xyes)
8408 # Assume -lc should be added
8409 archive_cmds_need_lc=yes
8410
8411 if test "$enable_shared" = yes && test "$GCC" = yes; then
8412 case $archive_cmds in
8413 *'~'*)
8414 # FIXME: we may have to deal with multi-command sequences.
8415 ;;
8416 '$CC '*)
8417 # Test whether the compiler implicitly links with -lc since on some
8418 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8419 # to ld, don't add -lc before -lgcc.
8420 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8421echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8422 $RM conftest*
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8424
8425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8426 (eval $ac_compile) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } 2>conftest.err; then
8430 soname=conftest
8431 lib=conftest
8432 libobjs=conftest.$ac_objext
8433 deplibs=
8434 wl=$lt_prog_compiler_wl
8435 pic_flag=$lt_prog_compiler_pic
8436 compiler_flags=-v
8437 linker_flags=-v
8438 verstring=
8439 output_objdir=.
8440 libname=conftest
8441 lt_save_allow_undefined_flag=$allow_undefined_flag
8442 allow_undefined_flag=
8443 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8444 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }
8448 then
8449 archive_cmds_need_lc=no
8450 else
8451 archive_cmds_need_lc=yes
8452 fi
8453 allow_undefined_flag=$lt_save_allow_undefined_flag
8454 else
8455 cat conftest.err 1>&5
8456 fi
8457 $RM conftest*
8458 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8459echo "${ECHO_T}$archive_cmds_need_lc" >&6
8460 ;;
8461 esac
8462 fi
8463 ;;
8464esac
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8623echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8624withGCC=$GCC
8625if test "$withGCC" = yes; then
8626 case $host_os in
8627 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8628 *) lt_awk_arg="/^libraries:/" ;;
8629 esac
8630 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8631 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8632 # if the path contains ";" then we assume it to be the separator
8633 # otherwise default to the standard path separator (i.e. ":") - it is
8634 # assumed that no part of a normal pathname contains ";" but that should
8635 # okay in the real world where ";" in dirpaths is itself problematic.
8636 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8637 else
8638 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8639 fi
8640 # Ok, now we have the path, separated by spaces, we can step through it
8641 # and add multilib dir if necessary.
8642 lt_tmp_lt_search_path_spec=
8643 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8644 for lt_sys_path in $lt_search_path_spec; do
8645 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8646 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8647 else
8648 test -d "$lt_sys_path" && \
8649 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8650 fi
8651 done
8652 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8653BEGIN {RS=" "; FS="/|\n";} {
8654 lt_foo="";
8655 lt_count=0;
8656 for (lt_i = NF; lt_i > 0; lt_i--) {
8657 if ($lt_i != "" && $lt_i != ".") {
8658 if ($lt_i == "..") {
8659 lt_count++;
8660 } else {
8661 if (lt_count == 0) {
8662 lt_foo="/" $lt_i lt_foo;
8663 } else {
8664 lt_count--;
8665 }
8666 }
8667 }
8668 }
8669 if (lt_foo != "") { lt_freq[lt_foo]++; }
8670 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8671}'`
8672 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8673else
8674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8675fi
8676library_names_spec=
8677libname_spec='lib$name'
8678soname_spec=
8679shrext_cmds=".so"
8680postinstall_cmds=
8681postuninstall_cmds=
8682finish_cmds=
8683finish_eval=
8684shlibpath_var=
8685shlibpath_overrides_runpath=unknown
8686version_type=none
8687dynamic_linker="$host_os ld.so"
8688sys_lib_dlsearch_path_spec="/lib /usr/lib"
8689need_lib_prefix=unknown
8690hardcode_into_libs=no
8691
8692# when you set need_version to no, make sure it does not cause -set_version
8693# flags to be left without arguments
8694need_version=unknown
8695
8696case $host_os in
8697aix3*)
8698 version_type=linux
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8700 shlibpath_var=LIBPATH
8701
8702 # AIX 3 has no versioning support, so we append a major version to the name.
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 ;;
8705
50e7d84b 8706aix[4-9]*)
ce2cded5
L
8707 version_type=linux
8708 need_lib_prefix=no
8709 need_version=no
8710 hardcode_into_libs=yes
8711 if test "$host_cpu" = ia64; then
8712 # AIX 5 supports IA64
8713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 else
8716 # With GCC up to 2.95.x, collect2 would create an import file
8717 # for dependence libraries. The import file would start with
8718 # the line `#! .'. This would cause the generated library to
8719 # depend on `.', always an invalid library. This was fixed in
8720 # development snapshots of GCC prior to 3.0.
8721 case $host_os in
8722 aix4 | aix4.[01] | aix4.[01].*)
8723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8724 echo ' yes '
8725 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8726 :
8727 else
8728 can_build_shared=no
8729 fi
8730 ;;
8731 esac
8732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8733 # soname into executable. Probably we can add versioning support to
8734 # collect2, so additional links can be useful in future.
8735 if test "$aix_use_runtimelinking" = yes; then
8736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8737 # instead of lib<name>.a to let people know that these are not
8738 # typical AIX shared libraries.
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8740 else
8741 # We preserve .a as extension for shared libraries through AIX4.2
8742 # and later when we are not doing run time linking.
8743 library_names_spec='${libname}${release}.a $libname.a'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 fi
8746 shlibpath_var=LIBPATH
8747 fi
8748 ;;
8749
8750amigaos*)
8751 if test "$host_cpu" = m68k; then
8752 library_names_spec='$libname.ixlibrary $libname.a'
8753 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8754 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'
8755 else
8756 dynamic_linker=no
8757 fi
8758 ;;
8759
8760beos*)
8761 library_names_spec='${libname}${shared_ext}'
8762 dynamic_linker="$host_os ld.so"
8763 shlibpath_var=LIBRARY_PATH
8764 ;;
8765
8766bsdi[45]*)
8767 version_type=linux
8768 need_version=no
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8772 shlibpath_var=LD_LIBRARY_PATH
8773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8775 # the default ld.so.conf also contains /usr/contrib/lib and
8776 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8777 # libtool to hard-code these into programs
8778 ;;
8779
8780cygwin* | mingw* | pw32*)
8781 version_type=windows
8782 shrext_cmds=".dll"
8783 need_version=no
8784 need_lib_prefix=no
8785
8786 case $withGCC,$host_os in
8787 yes,cygwin* | yes,mingw* | yes,pw32*)
8788 library_names_spec='$libname.dll.a'
8789 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8790 postinstall_cmds='base_file=`basename \${file}`~
8791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8792 dldir=$destdir/`dirname \$dlpath`~
8793 test -d \$dldir || mkdir -p \$dldir~
8794 $install_prog $dir/$dlname \$dldir/$dlname~
8795 chmod a+x \$dldir/$dlname~
8796 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8797 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8798 fi'
8799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8800 dlpath=$dir/\$dldll~
8801 $RM \$dlpath'
8802 shlibpath_overrides_runpath=yes
8803
8804 case $host_os in
8805 cygwin*)
8806 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8807 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8808 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8809 ;;
8810 mingw*)
8811 # MinGW DLLs use traditional 'lib' prefix
8812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8813 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8814 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8815 # It is most probably a Windows format PATH printed by
8816 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8817 # path with ; separators, and with drive letters. We can handle the
8818 # drive letters (cygwin fileutils understands them), so leave them,
8819 # especially as we might pass files found there to a mingw objdump,
8820 # which wouldn't understand a cygwinified path. Ahh.
8821 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8822 else
8823 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8824 fi
8825 ;;
8826 pw32*)
8827 # pw32 DLLs use 'pw' prefix rather than 'lib'
8828 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8829 ;;
8830 esac
8831 ;;
8832
8833 *)
8834 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8835 ;;
8836 esac
8837 dynamic_linker='Win32 ld.exe'
8838 # FIXME: first we should search . and the directory the executable is in
8839 shlibpath_var=PATH
8840 ;;
8841
8842darwin* | rhapsody*)
8843 dynamic_linker="$host_os dyld"
8844 version_type=darwin
8845 need_lib_prefix=no
8846 need_version=no
8847 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8848 soname_spec='${libname}${release}${major}$shared_ext'
8849 shlibpath_overrides_runpath=yes
8850 shlibpath_var=DYLD_LIBRARY_PATH
8851 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8852
8853 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8854 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8855 ;;
8856
8857dgux*)
8858 version_type=linux
8859 need_lib_prefix=no
8860 need_version=no
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 shlibpath_var=LD_LIBRARY_PATH
8864 ;;
8865
8866freebsd1*)
8867 dynamic_linker=no
8868 ;;
8869
8870freebsd* | dragonfly*)
8871 # DragonFly does not have aout. When/if they implement a new
8872 # versioning mechanism, adjust this.
8873 if test -x /usr/bin/objformat; then
8874 objformat=`/usr/bin/objformat`
8875 else
8876 case $host_os in
8877 freebsd[123]*) objformat=aout ;;
8878 *) objformat=elf ;;
8879 esac
8880 fi
8881 version_type=freebsd-$objformat
8882 case $version_type in
8883 freebsd-elf*)
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8885 need_version=no
8886 need_lib_prefix=no
8887 ;;
8888 freebsd-*)
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8890 need_version=yes
8891 ;;
8892 esac
8893 shlibpath_var=LD_LIBRARY_PATH
8894 case $host_os in
8895 freebsd2*)
8896 shlibpath_overrides_runpath=yes
8897 ;;
8898 freebsd3.[01]* | freebsdelf3.[01]*)
8899 shlibpath_overrides_runpath=yes
8900 hardcode_into_libs=yes
8901 ;;
8902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8904 shlibpath_overrides_runpath=no
8905 hardcode_into_libs=yes
8906 ;;
8907 *) # from 4.6 on, and DragonFly
8908 shlibpath_overrides_runpath=yes
8909 hardcode_into_libs=yes
8910 ;;
8911 esac
8912 ;;
8913
8914gnu*)
8915 version_type=linux
8916 need_lib_prefix=no
8917 need_version=no
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8919 soname_spec='${libname}${release}${shared_ext}$major'
8920 shlibpath_var=LD_LIBRARY_PATH
8921 hardcode_into_libs=yes
8922 ;;
8923
8924hpux9* | hpux10* | hpux11*)
8925 # Give a soname corresponding to the major version so that dld.sl refuses to
8926 # link against other versions.
8927 version_type=sunos
8928 need_lib_prefix=no
8929 need_version=no
8930 case $host_cpu in
8931 ia64*)
8932 shrext_cmds='.so'
8933 hardcode_into_libs=yes
8934 dynamic_linker="$host_os dld.so"
8935 shlibpath_var=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 if test "X$HPUX_IA64_MODE" = X32; then
8940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8941 else
8942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8943 fi
8944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8945 ;;
8946 hppa*64*)
8947 shrext_cmds='.sl'
8948 hardcode_into_libs=yes
8949 dynamic_linker="$host_os dld.sl"
8950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8956 ;;
8957 *)
8958 shrext_cmds='.sl'
8959 dynamic_linker="$host_os dld.sl"
8960 shlibpath_var=SHLIB_PATH
8961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 ;;
8965 esac
8966 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8967 postinstall_cmds='chmod 555 $lib'
8968 ;;
8969
8970interix[3-9]*)
8971 version_type=linux
8972 need_lib_prefix=no
8973 need_version=no
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 shlibpath_overrides_runpath=no
8979 hardcode_into_libs=yes
8980 ;;
d7040cdb 8981
ce2cded5
L
8982irix5* | irix6* | nonstopux*)
8983 case $host_os in
8984 nonstopux*) version_type=nonstopux ;;
8985 *)
8986 if test "$lt_cv_prog_gnu_ld" = yes; then
8987 version_type=linux
8988 else
8989 version_type=irix
8990 fi ;;
8991 esac
8992 need_lib_prefix=no
8993 need_version=no
8994 soname_spec='${libname}${release}${shared_ext}$major'
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8996 case $host_os in
8997 irix5* | nonstopux*)
8998 libsuff= shlibsuff=
8999 ;;
9000 *)
9001 case $LD in # libtool.m4 will add one of these switches to LD
9002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9003 libsuff= shlibsuff= libmagic=32-bit;;
9004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9005 libsuff=32 shlibsuff=N32 libmagic=N32;;
9006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9008 *) libsuff= shlibsuff= libmagic=never-match;;
9009 esac
9010 ;;
9011 esac
9012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9013 shlibpath_overrides_runpath=no
9014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9016 hardcode_into_libs=yes
9017 ;;
d7040cdb 9018
ce2cded5
L
9019# No shared lib support for Linux oldld, aout, or coff.
9020linux*oldld* | linux*aout* | linux*coff*)
9021 dynamic_linker=no
9022 ;;
9023
9024# This must be Linux ELF.
9025linux* | k*bsd*-gnu)
9026 version_type=linux
9027 need_lib_prefix=no
9028 need_version=no
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=no
9034 # Some binutils ld are patched to set DT_RUNPATH
9035 save_LDFLAGS=$LDFLAGS
9036 save_libdir=$libdir
9037 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9038 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9039 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9040/* confdefs.h. */
9041_ACEOF
9042cat confdefs.h >>conftest.$ac_ext
9043cat >>conftest.$ac_ext <<_ACEOF
9044/* end confdefs.h. */
9045
d7040cdb
SE
9046int
9047main ()
9048{
ce2cded5 9049
d7040cdb
SE
9050 ;
9051 return 0;
9052}
9053_ACEOF
9054rm -f conftest.$ac_objext conftest$ac_exeext
0ab6f085
AM
9055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag"
9064 || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest$ac_exeext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
ce2cded5
L
9076 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9077 shlibpath_overrides_runpath=yes
d7040cdb 9078fi
d7040cdb 9079
d7040cdb
SE
9080else
9081 echo "$as_me: failed program was:" >&5
9082sed 's/^/| /' conftest.$ac_ext >&5
9083
d7040cdb 9084fi
0ab6f085 9085rm -f conftest.err conftest.$ac_objext \
d7040cdb 9086 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9087 LDFLAGS=$save_LDFLAGS
9088 libdir=$save_libdir
d7040cdb 9089
ce2cded5
L
9090 # This implies no fast_install, which is unacceptable.
9091 # Some rework will be needed to allow for fast_install
9092 # before this can be enabled.
9093 hardcode_into_libs=yes
d7040cdb 9094
ce2cded5
L
9095 # Append ld.so.conf contents to the search path
9096 if test -f /etc/ld.so.conf; then
9097 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9098 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9099 fi
d7040cdb 9100
ce2cded5
L
9101 # We used to test for /lib/ld.so.1 and disable shared libraries on
9102 # powerpc, because MkLinux only supported shared libraries with the
9103 # GNU dynamic linker. Since this was broken with cross compilers,
9104 # most powerpc-linux boxes support dynamic linking these days and
9105 # people can always --disable-shared, the test was removed, and we
9106 # assume the GNU/Linux dynamic linker is in use.
9107 dynamic_linker='GNU/Linux ld.so'
9108 ;;
d7040cdb 9109
ce2cded5
L
9110netbsd*)
9111 version_type=sunos
9112 need_lib_prefix=no
9113 need_version=no
9114 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9117 dynamic_linker='NetBSD (a.out) ld.so'
9118 else
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 dynamic_linker='NetBSD ld.elf_so'
9122 fi
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=yes
9125 hardcode_into_libs=yes
9126 ;;
d7040cdb 9127
ce2cded5
L
9128newsos6)
9129 version_type=linux
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 ;;
d7040cdb 9134
ce2cded5
L
9135*nto* | *qnx*)
9136 version_type=qnx
9137 need_lib_prefix=no
9138 need_version=no
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=no
9143 hardcode_into_libs=yes
9144 dynamic_linker='ldqnx.so'
9145 ;;
d7040cdb 9146
ce2cded5
L
9147openbsd*)
9148 version_type=sunos
9149 sys_lib_dlsearch_path_spec="/usr/lib"
9150 need_lib_prefix=no
9151 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9152 case $host_os in
9153 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9154 *) need_version=no ;;
d7040cdb 9155 esac
ce2cded5
L
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9160 case $host_os in
9161 openbsd2.[89] | openbsd2.[89].*)
9162 shlibpath_overrides_runpath=no
9163 ;;
9164 *)
9165 shlibpath_overrides_runpath=yes
9166 ;;
9167 esac
d7040cdb 9168 else
ce2cded5 9169 shlibpath_overrides_runpath=yes
d7040cdb 9170 fi
ce2cded5 9171 ;;
d7040cdb 9172
ce2cded5
L
9173os2*)
9174 libname_spec='$name'
9175 shrext_cmds=".dll"
9176 need_lib_prefix=no
9177 library_names_spec='$libname${shared_ext} $libname.a'
9178 dynamic_linker='OS/2 ld.exe'
9179 shlibpath_var=LIBPATH
9180 ;;
d7040cdb 9181
ce2cded5
L
9182osf3* | osf4* | osf5*)
9183 version_type=osf
9184 need_lib_prefix=no
9185 need_version=no
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 shlibpath_var=LD_LIBRARY_PATH
9189 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9190 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9191 ;;
d7040cdb 9192
ce2cded5
L
9193rdos*)
9194 dynamic_linker=no
9195 ;;
d7040cdb 9196
ce2cded5
L
9197solaris*)
9198 version_type=linux
9199 need_lib_prefix=no
9200 need_version=no
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 shlibpath_overrides_runpath=yes
9205 hardcode_into_libs=yes
9206 # ldd complains unless libraries are executable
9207 postinstall_cmds='chmod +x $lib'
9208 ;;
d7040cdb 9209
ce2cded5
L
9210sunos4*)
9211 version_type=sunos
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9213 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 shlibpath_overrides_runpath=yes
9216 if test "$with_gnu_ld" = yes; then
9217 need_lib_prefix=no
9218 fi
9219 need_version=yes
9220 ;;
d7040cdb 9221
ce2cded5
L
9222sysv4 | sysv4.3*)
9223 version_type=linux
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 case $host_vendor in
9228 sni)
9229 shlibpath_overrides_runpath=no
9230 need_lib_prefix=no
9231 runpath_var=LD_RUN_PATH
9232 ;;
9233 siemens)
9234 need_lib_prefix=no
9235 ;;
9236 motorola)
9237 need_lib_prefix=no
9238 need_version=no
9239 shlibpath_overrides_runpath=no
9240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9241 ;;
9242 esac
9243 ;;
d7040cdb 9244
ce2cded5
L
9245sysv4*MP*)
9246 if test -d /usr/nec ;then
9247 version_type=linux
9248 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9249 soname_spec='$libname${shared_ext}.$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 fi
9252 ;;
d7040cdb 9253
ce2cded5
L
9254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9255 version_type=freebsd-elf
9256 need_lib_prefix=no
9257 need_version=no
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 shlibpath_overrides_runpath=yes
9262 hardcode_into_libs=yes
9263 if test "$with_gnu_ld" = yes; then
9264 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9265 else
9266 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9267 case $host_os in
9268 sco3.2v5*)
9269 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9270 ;;
9271 esac
9272 fi
9273 sys_lib_dlsearch_path_spec='/usr/lib'
9274 ;;
d7040cdb 9275
ce2cded5
L
9276tpf*)
9277 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9278 version_type=linux
9279 need_lib_prefix=no
9280 need_version=no
9281 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=no
9284 hardcode_into_libs=yes
9285 ;;
d7040cdb 9286
ce2cded5
L
9287uts4*)
9288 version_type=linux
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 ;;
d7040cdb 9293
ce2cded5
L
9294*)
9295 dynamic_linker=no
9296 ;;
9297esac
9298echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9299echo "${ECHO_T}$dynamic_linker" >&6
9300test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 9301
ce2cded5
L
9302variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9303if test "$GCC" = yes; then
9304 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 9305fi
d7040cdb
SE
9306
9307
d7040cdb 9308
d7040cdb 9309
d7040cdb 9310
d7040cdb 9311
d7040cdb 9312
d7040cdb 9313
d7040cdb 9314
d7040cdb 9315
d7040cdb 9316
d7040cdb
SE
9317
9318
d7040cdb 9319
d7040cdb 9320
d7040cdb 9321
d7040cdb
SE
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
d7040cdb
SE
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
d7040cdb 9351
d7040cdb 9352
d7040cdb 9353
d7040cdb 9354
d7040cdb
SE
9355
9356
9357
9358
d7040cdb 9359
d7040cdb
SE
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
d7040cdb
SE
9373
9374
9375
9376
d7040cdb
SE
9377
9378
9379
d7040cdb
SE
9380
9381
d7040cdb 9382
d7040cdb 9383
d7040cdb 9384
ce2cded5
L
9385
9386
9387
9388
9389
9390
9391
9392
9393 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9394echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9395hardcode_action=
9396if test -n "$hardcode_libdir_flag_spec" ||
9397 test -n "$runpath_var" ||
9398 test "X$hardcode_automatic" = "Xyes" ; then
9399
9400 # We can hardcode non-existent directories.
9401 if test "$hardcode_direct" != no &&
9402 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9403 # have to relink, otherwise we might link with an installed library
9404 # when we should be linking with a yet-to-be-installed one
9405 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9406 test "$hardcode_minus_L" != no; then
9407 # Linking always hardcodes the temporary library directory.
9408 hardcode_action=relink
9409 else
9410 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9411 hardcode_action=immediate
9412 fi
d7040cdb 9413else
ce2cded5
L
9414 # We cannot hardcode anything, or else we can only hardcode existing
9415 # directories.
9416 hardcode_action=unsupported
d7040cdb 9417fi
ce2cded5
L
9418echo "$as_me:$LINENO: result: $hardcode_action" >&5
9419echo "${ECHO_T}$hardcode_action" >&6
d7040cdb 9420
ce2cded5
L
9421if test "$hardcode_action" = relink ||
9422 test "$inherit_rpath" = yes; then
9423 # Fast installation is not supported
9424 enable_fast_install=no
9425elif test "$shlibpath_overrides_runpath" = yes ||
9426 test "$enable_shared" = no; then
9427 # Fast installation is not necessary
9428 enable_fast_install=needless
d7040cdb
SE
9429fi
9430
d7040cdb 9431
d7040cdb 9432
0ab6f085 9433
0ab6f085 9434
0ab6f085 9435
ce2cded5
L
9436 if test "x$enable_dlopen" != xyes; then
9437 enable_dlopen=unknown
9438 enable_dlopen_self=unknown
9439 enable_dlopen_self_static=unknown
d7040cdb 9440else
ce2cded5
L
9441 lt_cv_dlopen=no
9442 lt_cv_dlopen_libs=
d7040cdb 9443
ce2cded5
L
9444 case $host_os in
9445 beos*)
9446 lt_cv_dlopen="load_add_on"
9447 lt_cv_dlopen_libs=
9448 lt_cv_dlopen_self=yes
9449 ;;
d7040cdb 9450
ce2cded5
L
9451 mingw* | pw32*)
9452 lt_cv_dlopen="LoadLibrary"
9453 lt_cv_dlopen_libs=
9454 ;;
9455
9456 cygwin*)
9457 lt_cv_dlopen="dlopen"
9458 lt_cv_dlopen_libs=
9459 ;;
9460
9461 darwin*)
9462 # if libdl is installed we need to link against it
9463 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9464echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9465if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9467else
ce2cded5
L
9468 ac_check_lib_save_LIBS=$LIBS
9469LIBS="-ldl $LIBS"
9470cat >conftest.$ac_ext <<_ACEOF
9471/* confdefs.h. */
9472_ACEOF
9473cat confdefs.h >>conftest.$ac_ext
9474cat >>conftest.$ac_ext <<_ACEOF
9475/* end confdefs.h. */
9476
9477/* Override any gcc2 internal prototype to avoid an error. */
9478#ifdef __cplusplus
9479extern "C"
9480#endif
9481/* We use char because int might match the return type of a gcc2
9482 builtin and then its argument prototype would still apply. */
9483char dlopen ();
9484int
9485main ()
9486{
9487dlopen ();
9488 ;
9489 return 0;
9490}
9491_ACEOF
9492rm -f conftest.$ac_objext conftest$ac_exeext
9493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag"
9502 || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 ac_cv_lib_dl_dlopen=yes
9515else
9516 echo "$as_me: failed program was:" >&5
9517sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9518
ce2cded5 9519ac_cv_lib_dl_dlopen=no
d7040cdb 9520fi
ce2cded5
L
9521rm -f conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523LIBS=$ac_check_lib_save_LIBS
d7040cdb 9524fi
ce2cded5
L
9525echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9526echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9527if test $ac_cv_lib_dl_dlopen = yes; then
9528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 9529else
d7040cdb 9530
ce2cded5
L
9531 lt_cv_dlopen="dyld"
9532 lt_cv_dlopen_libs=
9533 lt_cv_dlopen_self=yes
9534
d7040cdb 9535fi
ce2cded5
L
9536
9537 ;;
9538
9539 *)
9540 echo "$as_me:$LINENO: checking for shl_load" >&5
9541echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9542if test "${ac_cv_func_shl_load+set}" = set; then
d7040cdb
SE
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9544else
ce2cded5
L
9545 cat >conftest.$ac_ext <<_ACEOF
9546/* confdefs.h. */
9547_ACEOF
9548cat confdefs.h >>conftest.$ac_ext
9549cat >>conftest.$ac_ext <<_ACEOF
9550/* end confdefs.h. */
9551/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9553#define shl_load innocuous_shl_load
d7040cdb 9554
ce2cded5
L
9555/* System header to define __stub macros and hopefully few prototypes,
9556 which can conflict with char shl_load (); below.
9557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9558 <limits.h> exists even on freestanding compilers. */
d7040cdb 9559
ce2cded5
L
9560#ifdef __STDC__
9561# include <limits.h>
9562#else
9563# include <assert.h>
9564#endif
d7040cdb 9565
ce2cded5 9566#undef shl_load
d7040cdb 9567
ce2cded5
L
9568/* Override any gcc2 internal prototype to avoid an error. */
9569#ifdef __cplusplus
9570extern "C"
9571{
9572#endif
9573/* We use char because int might match the return type of a gcc2
9574 builtin and then its argument prototype would still apply. */
9575char shl_load ();
9576/* The GNU C library defines this for functions which it implements
9577 to always fail with ENOSYS. Some functions are actually named
9578 something starting with __ and the normal name is an alias. */
9579#if defined (__stub_shl_load) || defined (__stub___shl_load)
9580choke me
9581#else
9582char (*f) () = shl_load;
9583#endif
9584#ifdef __cplusplus
9585}
9586#endif
d7040cdb 9587
ce2cded5
L
9588int
9589main ()
9590{
9591return f != shl_load;
9592 ;
9593 return 0;
9594}
9595_ACEOF
9596rm -f conftest.$ac_objext conftest$ac_exeext
9597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598 (eval $ac_link) 2>conftest.er1
9599 ac_status=$?
9600 grep -v '^ *+' conftest.er1 >conftest.err
9601 rm -f conftest.er1
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try='test -z "$ac_c_werror_flag"
9606 || test ! -s conftest.err'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_func_shl_load=yes
9619else
9620 echo "$as_me: failed program was:" >&5
9621sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9622
ce2cded5
L
9623ac_cv_func_shl_load=no
9624fi
9625rm -f conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627fi
9628echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9629echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9630if test $ac_cv_func_shl_load = yes; then
9631 lt_cv_dlopen="shl_load"
9632else
9633 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9634echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9635if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637else
9638 ac_check_lib_save_LIBS=$LIBS
9639LIBS="-ldld $LIBS"
9640cat >conftest.$ac_ext <<_ACEOF
9641/* confdefs.h. */
9642_ACEOF
9643cat confdefs.h >>conftest.$ac_ext
9644cat >>conftest.$ac_ext <<_ACEOF
9645/* end confdefs.h. */
d7040cdb 9646
ce2cded5
L
9647/* Override any gcc2 internal prototype to avoid an error. */
9648#ifdef __cplusplus
9649extern "C"
9650#endif
9651/* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */
9653char shl_load ();
9654int
9655main ()
9656{
9657shl_load ();
9658 ;
9659 return 0;
9660}
9661_ACEOF
9662rm -f conftest.$ac_objext conftest$ac_exeext
9663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>conftest.er1
d7040cdb 9665 ac_status=$?
ce2cded5
L
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
d7040cdb 9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9670 (exit $ac_status); } &&
9671 { ac_try='test -z "$ac_c_werror_flag"
9672 || test ! -s conftest.err'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 (eval $ac_try) 2>&5
d7040cdb
SE
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9677 (exit $ac_status); }; } &&
9678 { ac_try='test -s conftest$ac_exeext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
d7040cdb
SE
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9683 (exit $ac_status); }; }; then
9684 ac_cv_lib_dld_shl_load=yes
9685else
9686 echo "$as_me: failed program was:" >&5
9687sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9688
ce2cded5
L
9689ac_cv_lib_dld_shl_load=no
9690fi
9691rm -f conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext conftest.$ac_ext
9693LIBS=$ac_check_lib_save_LIBS
9694fi
9695echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9696echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9697if test $ac_cv_lib_dld_shl_load = yes; then
9698 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9699else
9700 echo "$as_me:$LINENO: checking for dlopen" >&5
9701echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9702if test "${ac_cv_func_dlopen+set}" = set; then
d7040cdb
SE
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705 cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h. */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h. */
ce2cded5
L
9711/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9713#define dlopen innocuous_dlopen
9714
9715/* System header to define __stub macros and hopefully few prototypes,
9716 which can conflict with char dlopen (); below.
9717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718 <limits.h> exists even on freestanding compilers. */
9719
9720#ifdef __STDC__
9721# include <limits.h>
9722#else
9723# include <assert.h>
9724#endif
d7040cdb 9725
ce2cded5
L
9726#undef dlopen
9727
9728/* Override any gcc2 internal prototype to avoid an error. */
9729#ifdef __cplusplus
9730extern "C"
d7040cdb 9731{
ce2cded5
L
9732#endif
9733/* We use char because int might match the return type of a gcc2
9734 builtin and then its argument prototype would still apply. */
9735char dlopen ();
9736/* The GNU C library defines this for functions which it implements
9737 to always fail with ENOSYS. Some functions are actually named
9738 something starting with __ and the normal name is an alias. */
9739#if defined (__stub_dlopen) || defined (__stub___dlopen)
9740choke me
9741#else
9742char (*f) () = dlopen;
9743#endif
9744#ifdef __cplusplus
9745}
d7040cdb
SE
9746#endif
9747
ce2cded5
L
9748int
9749main ()
9750{
9751return f != dlopen;
d7040cdb
SE
9752 ;
9753 return 0;
9754}
9755_ACEOF
ce2cded5
L
9756rm -f conftest.$ac_objext conftest$ac_exeext
9757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
ce2cded5 9772 { ac_try='test -s conftest$ac_exeext'
0ab6f085
AM
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
ce2cded5 9778 ac_cv_func_dlopen=yes
d7040cdb
SE
9779else
9780 echo "$as_me: failed program was:" >&5
9781sed 's/^/| /' conftest.$ac_ext >&5
9782
ce2cded5 9783ac_cv_func_dlopen=no
d7040cdb 9784fi
ce2cded5
L
9785rm -f conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9787fi
ce2cded5
L
9788echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9789echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9790if test $ac_cv_func_dlopen = yes; then
9791 lt_cv_dlopen="dlopen"
9792else
9793 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9794echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9795if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
ce2cded5
L
9798 ac_check_lib_save_LIBS=$LIBS
9799LIBS="-ldl $LIBS"
9800cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9801/* confdefs.h. */
9802_ACEOF
9803cat confdefs.h >>conftest.$ac_ext
9804cat >>conftest.$ac_ext <<_ACEOF
9805/* end confdefs.h. */
9806
ce2cded5
L
9807/* Override any gcc2 internal prototype to avoid an error. */
9808#ifdef __cplusplus
9809extern "C"
9810#endif
9811/* We use char because int might match the return type of a gcc2
9812 builtin and then its argument prototype would still apply. */
9813char dlopen ();
d7040cdb
SE
9814int
9815main ()
9816{
ce2cded5 9817dlopen ();
d7040cdb
SE
9818 ;
9819 return 0;
9820}
9821_ACEOF
ce2cded5
L
9822rm -f conftest.$ac_objext conftest$ac_exeext
9823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag"
9832 || test ! -s conftest.err'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
d7040cdb
SE
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085 9837 (exit $ac_status); }; } &&
ce2cded5 9838 { ac_try='test -s conftest$ac_exeext'
0ab6f085
AM
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 (eval $ac_try) 2>&5
d7040cdb
SE
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085 9843 (exit $ac_status); }; }; then
ce2cded5 9844 ac_cv_lib_dl_dlopen=yes
d7040cdb
SE
9845else
9846 echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
ce2cded5 9849ac_cv_lib_dl_dlopen=no
1b9750d6 9850fi
ce2cded5
L
9851rm -f conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9853LIBS=$ac_check_lib_save_LIBS
d7040cdb 9854fi
ce2cded5
L
9855echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9856echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9857if test $ac_cv_lib_dl_dlopen = yes; then
9858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 9859else
ce2cded5
L
9860 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9861echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9862if test "${ac_cv_lib_svld_dlopen+set}" = set; then
d7040cdb
SE
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864else
ce2cded5
L
9865 ac_check_lib_save_LIBS=$LIBS
9866LIBS="-lsvld $LIBS"
d7040cdb
SE
9867cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h. */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
9872/* end confdefs.h. */
d7040cdb 9873
ce2cded5
L
9874/* Override any gcc2 internal prototype to avoid an error. */
9875#ifdef __cplusplus
9876extern "C"
9877#endif
9878/* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9880char dlopen ();
d7040cdb
SE
9881int
9882main ()
9883{
ce2cded5 9884dlopen ();
d7040cdb
SE
9885 ;
9886 return 0;
9887}
9888_ACEOF
ce2cded5
L
9889rm -f conftest.$ac_objext conftest$ac_exeext
9890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>conftest.er1
0ab6f085
AM
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
ce2cded5 9905 { ac_try='test -s conftest$ac_exeext'
0ab6f085
AM
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
ce2cded5 9911 ac_cv_lib_svld_dlopen=yes
0ab6f085
AM
9912else
9913 echo "$as_me: failed program was:" >&5
9914sed 's/^/| /' conftest.$ac_ext >&5
9915
ce2cded5 9916ac_cv_lib_svld_dlopen=no
0ab6f085 9917fi
ce2cded5
L
9918rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920LIBS=$ac_check_lib_save_LIBS
0ab6f085 9921fi
ce2cded5
L
9922echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9923echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9924if test $ac_cv_lib_svld_dlopen = yes; then
9925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9926else
9927 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9928echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9929if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931else
9932 ac_check_lib_save_LIBS=$LIBS
9933LIBS="-ldld $LIBS"
9934cat >conftest.$ac_ext <<_ACEOF
0ab6f085
AM
9935/* confdefs.h. */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h. */
ce2cded5
L
9940
9941/* Override any gcc2 internal prototype to avoid an error. */
9942#ifdef __cplusplus
9943extern "C"
9944#endif
9945/* We use char because int might match the return type of a gcc2
9946 builtin and then its argument prototype would still apply. */
9947char dld_link ();
0ab6f085
AM
9948int
9949main ()
9950{
ce2cded5 9951dld_link ();
0ab6f085
AM
9952 ;
9953 return 0;
9954}
9955_ACEOF
ce2cded5
L
9956rm -f conftest.$ac_objext conftest$ac_exeext
9957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958 (eval $ac_link) 2>conftest.er1
0ab6f085
AM
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
ce2cded5 9972 { ac_try='test -s conftest$ac_exeext'
0ab6f085
AM
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
ce2cded5 9978 ac_cv_lib_dld_dld_link=yes
0ab6f085
AM
9979else
9980 echo "$as_me: failed program was:" >&5
9981sed 's/^/| /' conftest.$ac_ext >&5
9982
ce2cded5 9983ac_cv_lib_dld_dld_link=no
0ab6f085 9984fi
ce2cded5
L
9985rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987LIBS=$ac_check_lib_save_LIBS
9988fi
9989echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9990echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9991if test $ac_cv_lib_dld_dld_link = yes; then
9992 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9993fi
9994
9995
9996fi
9997
9998
9999fi
10000
10001
10002fi
10003
10004
10005fi
10006
10007
10008fi
10009
10010 ;;
10011 esac
10012
10013 if test "x$lt_cv_dlopen" != xno; then
10014 enable_dlopen=yes
10015 else
10016 enable_dlopen=no
10017 fi
10018
10019 case $lt_cv_dlopen in
10020 dlopen)
10021 save_CPPFLAGS="$CPPFLAGS"
10022 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10023
10024 save_LDFLAGS="$LDFLAGS"
10025 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10026
10027 save_LIBS="$LIBS"
10028 LIBS="$lt_cv_dlopen_libs $LIBS"
10029
10030 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10031echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10032if test "${lt_cv_dlopen_self+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034else
10035 if test "$cross_compiling" = yes; then :
10036 lt_cv_dlopen_self=cross
10037else
10038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10039 lt_status=$lt_dlunknown
10040 cat > conftest.$ac_ext <<_LT_EOF
58c85be7 10041#line 10041 "configure"
ce2cded5
L
10042#include "confdefs.h"
10043
10044#if HAVE_DLFCN_H
10045#include <dlfcn.h>
10046#endif
10047
10048#include <stdio.h>
10049
10050#ifdef RTLD_GLOBAL
10051# define LT_DLGLOBAL RTLD_GLOBAL
10052#else
10053# ifdef DL_GLOBAL
10054# define LT_DLGLOBAL DL_GLOBAL
10055# else
10056# define LT_DLGLOBAL 0
10057# endif
10058#endif
10059
10060/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10061 find out it does not work in some platform. */
10062#ifndef LT_DLLAZY_OR_NOW
10063# ifdef RTLD_LAZY
10064# define LT_DLLAZY_OR_NOW RTLD_LAZY
10065# else
10066# ifdef DL_LAZY
10067# define LT_DLLAZY_OR_NOW DL_LAZY
10068# else
10069# ifdef RTLD_NOW
10070# define LT_DLLAZY_OR_NOW RTLD_NOW
10071# else
10072# ifdef DL_NOW
10073# define LT_DLLAZY_OR_NOW DL_NOW
10074# else
10075# define LT_DLLAZY_OR_NOW 0
10076# endif
10077# endif
10078# endif
10079# endif
10080#endif
10081
10082#ifdef __cplusplus
10083extern "C" void exit (int);
10084#endif
10085
10086void fnord() { int i=42;}
10087int main ()
0ab6f085 10088{
ce2cded5
L
10089 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10090 int status = $lt_dlunknown;
10091
10092 if (self)
10093 {
10094 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10095 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10096 /* dlclose (self); */
10097 }
10098 else
10099 puts (dlerror ());
10100
10101 exit (status);
10102}
10103_LT_EOF
10104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10105 (eval $ac_link) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10109 (./conftest; exit; ) >&5 2>/dev/null
10110 lt_status=$?
10111 case x$lt_status in
10112 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10113 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10114 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10115 esac
10116 else :
10117 # compilation failed
10118 lt_cv_dlopen_self=no
10119 fi
10120fi
10121rm -fr conftest*
10122
10123
10124fi
10125echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10126echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10127
10128 if test "x$lt_cv_dlopen_self" = xyes; then
10129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10130 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10131echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10132if test "${lt_cv_dlopen_self_static+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134else
10135 if test "$cross_compiling" = yes; then :
10136 lt_cv_dlopen_self_static=cross
10137else
10138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10139 lt_status=$lt_dlunknown
10140 cat > conftest.$ac_ext <<_LT_EOF
58c85be7 10141#line 10141 "configure"
ce2cded5
L
10142#include "confdefs.h"
10143
10144#if HAVE_DLFCN_H
10145#include <dlfcn.h>
10146#endif
10147
10148#include <stdio.h>
10149
10150#ifdef RTLD_GLOBAL
10151# define LT_DLGLOBAL RTLD_GLOBAL
10152#else
10153# ifdef DL_GLOBAL
10154# define LT_DLGLOBAL DL_GLOBAL
10155# else
10156# define LT_DLGLOBAL 0
10157# endif
10158#endif
10159
10160/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10161 find out it does not work in some platform. */
10162#ifndef LT_DLLAZY_OR_NOW
10163# ifdef RTLD_LAZY
10164# define LT_DLLAZY_OR_NOW RTLD_LAZY
10165# else
10166# ifdef DL_LAZY
10167# define LT_DLLAZY_OR_NOW DL_LAZY
10168# else
10169# ifdef RTLD_NOW
10170# define LT_DLLAZY_OR_NOW RTLD_NOW
10171# else
10172# ifdef DL_NOW
10173# define LT_DLLAZY_OR_NOW DL_NOW
10174# else
10175# define LT_DLLAZY_OR_NOW 0
10176# endif
10177# endif
10178# endif
10179# endif
10180#endif
10181
10182#ifdef __cplusplus
10183extern "C" void exit (int);
10184#endif
10185
10186void fnord() { int i=42;}
10187int main ()
10188{
10189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10190 int status = $lt_dlunknown;
10191
10192 if (self)
10193 {
10194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10196 /* dlclose (self); */
10197 }
10198 else
10199 puts (dlerror ());
10200
10201 exit (status);
0ab6f085 10202}
ce2cded5
L
10203_LT_EOF
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205 (eval $ac_link) 2>&5
0ab6f085
AM
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10208 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10209 (./conftest; exit; ) >&5 2>/dev/null
10210 lt_status=$?
10211 case x$lt_status in
10212 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10213 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10214 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10215 esac
10216 else :
10217 # compilation failed
10218 lt_cv_dlopen_self_static=no
10219 fi
10220fi
10221rm -fr conftest*
10222
d7040cdb
SE
10223
10224fi
ce2cded5
L
10225echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10226echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10227 fi
10228
10229 CPPFLAGS="$save_CPPFLAGS"
10230 LDFLAGS="$save_LDFLAGS"
10231 LIBS="$save_LIBS"
10232 ;;
10233 esac
10234
10235 case $lt_cv_dlopen_self in
10236 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10237 *) enable_dlopen_self=unknown ;;
10238 esac
10239
10240 case $lt_cv_dlopen_self_static in
10241 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10242 *) enable_dlopen_self_static=unknown ;;
10243 esac
d7040cdb
SE
10244fi
10245
ce2cded5
L
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262striplib=
10263old_striplib=
10264echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10265echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10266if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10267 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10268 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10269 echo "$as_me:$LINENO: result: yes" >&5
10270echo "${ECHO_T}yes" >&6
0ab6f085 10271else
ce2cded5
L
10272# FIXME - insert some real tests, host_os isn't really good enough
10273 case $host_os in
10274 darwin*)
10275 if test -n "$STRIP" ; then
10276 striplib="$STRIP -x"
10277 old_striplib="$STRIP -S"
10278 echo "$as_me:$LINENO: result: yes" >&5
10279echo "${ECHO_T}yes" >&6
10280 else
10281 echo "$as_me:$LINENO: result: no" >&5
10282echo "${ECHO_T}no" >&6
10283 fi
10284 ;;
10285 *)
10286 echo "$as_me:$LINENO: result: no" >&5
10287echo "${ECHO_T}no" >&6
10288 ;;
10289 esac
10290fi
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303 # Report which library types will actually be built
10304 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10305echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10306 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10307echo "${ECHO_T}$can_build_shared" >&6
10308
10309 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10310echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10311 test "$can_build_shared" = "no" && enable_shared=no
10312
10313 # On AIX, shared libraries and static libraries use the same namespace, and
10314 # are all built from PIC.
10315 case $host_os in
10316 aix3*)
10317 test "$enable_shared" = yes && enable_static=no
10318 if test -n "$RANLIB"; then
10319 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10320 postinstall_cmds='$RANLIB $lib'
10321 fi
10322 ;;
10323
50e7d84b 10324 aix[4-9]*)
ce2cded5
L
10325 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10326 test "$enable_shared" = yes && enable_static=no
10327 fi
10328 ;;
10329 esac
10330 echo "$as_me:$LINENO: result: $enable_shared" >&5
10331echo "${ECHO_T}$enable_shared" >&6
10332
10333 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10334echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10335 # Make sure either enable_shared or enable_static is yes.
10336 test "$enable_shared" = yes || enable_static=yes
10337 echo "$as_me:$LINENO: result: $enable_static" >&5
10338echo "${ECHO_T}$enable_static" >&6
10339
10340
10341
d7040cdb 10342
0ab6f085 10343fi
d7040cdb
SE
10344ac_ext=c
10345ac_cpp='$CPP $CPPFLAGS'
10346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10348ac_compiler_gnu=$ac_cv_c_compiler_gnu
10349
ce2cded5 10350CC="$lt_save_CC"
0ab6f085 10351
0ab6f085
AM
10352
10353
d7040cdb
SE
10354
10355
d7040cdb 10356
d7040cdb 10357
d7040cdb 10358
ce2cded5
L
10359
10360
10361
10362
10363
10364 ac_config_commands="$ac_config_commands libtool"
10365
10366
10367
10368
10369# Only expand once:
10370
d7040cdb
SE
10371
10372
10373
10374for ac_func in setmode
10375do
10376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
0ab6f085
AM
10377echo "$as_me:$LINENO: checking for $ac_func" >&5
10378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10379if eval "test \"\${$as_ac_var+set}\" = set"; then
d7040cdb
SE
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
10382 cat >conftest.$ac_ext <<_ACEOF
10383/* confdefs.h. */
10384_ACEOF
10385cat confdefs.h >>conftest.$ac_ext
10386cat >>conftest.$ac_ext <<_ACEOF
10387/* end confdefs.h. */
10388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10390#define $ac_func innocuous_$ac_func
10391
10392/* System header to define __stub macros and hopefully few prototypes,
10393 which can conflict with char $ac_func (); below.
10394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10395 <limits.h> exists even on freestanding compilers. */
10396
10397#ifdef __STDC__
10398# include <limits.h>
10399#else
10400# include <assert.h>
10401#endif
10402
10403#undef $ac_func
10404
0ab6f085 10405/* Override any gcc2 internal prototype to avoid an error. */
d7040cdb
SE
10406#ifdef __cplusplus
10407extern "C"
0ab6f085 10408{
d7040cdb 10409#endif
0ab6f085
AM
10410/* We use char because int might match the return type of a gcc2
10411 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10412char $ac_func ();
10413/* The GNU C library defines this for functions which it implements
10414 to always fail with ENOSYS. Some functions are actually named
10415 something starting with __ and the normal name is an alias. */
0ab6f085 10416#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d7040cdb 10417choke me
0ab6f085
AM
10418#else
10419char (*f) () = $ac_func;
10420#endif
10421#ifdef __cplusplus
10422}
d7040cdb
SE
10423#endif
10424
10425int
10426main ()
10427{
0ab6f085 10428return f != $ac_func;
d7040cdb
SE
10429 ;
10430 return 0;
10431}
10432_ACEOF
10433rm -f conftest.$ac_objext conftest$ac_exeext
0ab6f085
AM
10434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10436 ac_status=$?
10437 grep -v '^ *+' conftest.er1 >conftest.err
10438 rm -f conftest.er1
10439 cat conftest.err >&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
10441 (exit $ac_status); } &&
10442 { ac_try='test -z "$ac_c_werror_flag"
10443 || test ! -s conftest.err'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; } &&
10449 { ac_try='test -s conftest$ac_exeext'
10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10452 ac_status=$?
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
d7040cdb
SE
10455 eval "$as_ac_var=yes"
10456else
10457 echo "$as_me: failed program was:" >&5
10458sed 's/^/| /' conftest.$ac_ext >&5
10459
0ab6f085 10460eval "$as_ac_var=no"
d7040cdb 10461fi
0ab6f085 10462rm -f conftest.err conftest.$ac_objext \
d7040cdb
SE
10463 conftest$ac_exeext conftest.$ac_ext
10464fi
0ab6f085
AM
10465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10466echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d7040cdb
SE
10467if test `eval echo '${'$as_ac_var'}'` = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10470_ACEOF
10471
10472fi
10473done
10474
10475
19aec961 10476ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi"
d7040cdb
SE
10477# If we haven't got the data from the intl directory,
10478# assume NLS is disabled.
10479USE_NLS=no
10480LIBINTL=
10481LIBINTL_DEP=
10482INCINTL=
10483XGETTEXT=
10484GMSGFMT=
10485POSUB=
10486
10487if test -f ../intl/config.intl; then
10488 . ../intl/config.intl
10489fi
0ab6f085
AM
10490echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10491echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
d7040cdb 10492if test x"$USE_NLS" != xyes; then
0ab6f085
AM
10493 echo "$as_me:$LINENO: result: no" >&5
10494echo "${ECHO_T}no" >&6
d7040cdb 10495else
0ab6f085
AM
10496 echo "$as_me:$LINENO: result: yes" >&5
10497echo "${ECHO_T}yes" >&6
d7040cdb
SE
10498
10499cat >>confdefs.h <<\_ACEOF
10500#define ENABLE_NLS 1
10501_ACEOF
10502
10503
0ab6f085
AM
10504 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10505echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
d7040cdb
SE
10506 # Look for .po and .gmo files in the source directory.
10507 CATALOGS=
10508 XLINGUAS=
10509 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10510 # If there aren't any .gmo files the shell will give us the
10511 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10512 # weeded out.
10513 case "$cat" in *\**)
10514 continue;;
10515 esac
10516 # The quadruple backslash is collapsed to a double backslash
10517 # by the backticks, then collapsed again by the double quotes,
10518 # leaving us with one backslash in the sed expression (right
10519 # before the dot that mustn't act as a wildcard).
10520 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10521 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10522 # The user is allowed to set LINGUAS to a list of languages to
10523 # install catalogs for. If it's empty that means "all of them."
10524 if test "x$LINGUAS" = x; then
10525 CATALOGS="$CATALOGS $cat"
10526 XLINGUAS="$XLINGUAS $lang"
10527 else
10528 case "$LINGUAS" in *$lang*)
10529 CATALOGS="$CATALOGS $cat"
10530 XLINGUAS="$XLINGUAS $lang"
10531 ;;
10532 esac
10533 fi
10534 done
10535 LINGUAS="$XLINGUAS"
0ab6f085
AM
10536 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10537echo "${ECHO_T}$LINGUAS" >&6
d7040cdb
SE
10538
10539
10540 DATADIRNAME=share
10541
10542 INSTOBJEXT=.mo
10543
10544 GENCAT=gencat
10545
10546 CATOBJEXT=.gmo
10547
10548fi
10549
10550 MKINSTALLDIRS=
10551 if test -n "$ac_aux_dir"; then
10552 case "$ac_aux_dir" in
10553 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10554 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10555 esac
10556 fi
10557 if test -z "$MKINSTALLDIRS"; then
10558 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10559 fi
10560
10561
10562
0ab6f085
AM
10563 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10564echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10565 # Check whether --enable-nls or --disable-nls was given.
d7040cdb 10566if test "${enable_nls+set}" = set; then
0ab6f085
AM
10567 enableval="$enable_nls"
10568 USE_NLS=$enableval
d7040cdb
SE
10569else
10570 USE_NLS=yes
0ab6f085
AM
10571fi;
10572 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10573echo "${ECHO_T}$USE_NLS" >&6
d7040cdb
SE
10574
10575
10576
10577
10578
10579
10580# Prepare PATH_SEPARATOR.
10581# The user is always right.
10582if test "${PATH_SEPARATOR+set}" != set; then
10583 echo "#! /bin/sh" >conf$$.sh
10584 echo "exit 0" >>conf$$.sh
10585 chmod +x conf$$.sh
10586 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10587 PATH_SEPARATOR=';'
10588 else
10589 PATH_SEPARATOR=:
10590 fi
10591 rm -f conf$$.sh
10592fi
10593
10594# Find out how to test for executable files. Don't use a zero-byte file,
10595# as systems may use methods other than mode bits to determine executability.
10596cat >conf$$.file <<_ASEOF
10597#! /bin/sh
10598exit 0
10599_ASEOF
10600chmod +x conf$$.file
10601if test -x conf$$.file >/dev/null 2>&1; then
10602 ac_executable_p="test -x"
10603else
10604 ac_executable_p="test -f"
10605fi
10606rm -f conf$$.file
10607
10608# Extract the first word of "msgfmt", so it can be a program name with args.
10609set dummy msgfmt; ac_word=$2
0ab6f085
AM
10610echo "$as_me:$LINENO: checking for $ac_word" >&5
10611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb
SE
10612if test "${ac_cv_path_MSGFMT+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10614else
10615 case "$MSGFMT" in
10616 [\\/]* | ?:[\\/]*)
10617 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10618 ;;
10619 *)
10620 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10621 for ac_dir in $PATH; do
10622 IFS="$ac_save_IFS"
10623 test -z "$ac_dir" && ac_dir=.
10624 for ac_exec_ext in '' $ac_executable_extensions; do
10625 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10626 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10627 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10628 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10629 break 2
10630 fi
10631 fi
10632 done
10633 done
10634 IFS="$ac_save_IFS"
10635 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10636 ;;
10637esac
10638fi
10639MSGFMT="$ac_cv_path_MSGFMT"
10640if test "$MSGFMT" != ":"; then
0ab6f085
AM
10641 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10642echo "${ECHO_T}$MSGFMT" >&6
d7040cdb 10643else
0ab6f085
AM
10644 echo "$as_me:$LINENO: result: no" >&5
10645echo "${ECHO_T}no" >&6
d7040cdb
SE
10646fi
10647
10648 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10649set dummy gmsgfmt; ac_word=$2
0ab6f085
AM
10650echo "$as_me:$LINENO: checking for $ac_word" >&5
10651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb
SE
10652if test "${ac_cv_path_GMSGFMT+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10654else
10655 case $GMSGFMT in
10656 [\\/]* | ?:[\\/]*)
10657 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10658 ;;
10659 *)
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661for as_dir in $PATH
10662do
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 10666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb
SE
10667 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10670 fi
10671done
10672done
10673
10674 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10675 ;;
10676esac
10677fi
10678GMSGFMT=$ac_cv_path_GMSGFMT
0ab6f085 10679
d7040cdb 10680if test -n "$GMSGFMT"; then
0ab6f085
AM
10681 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10682echo "${ECHO_T}$GMSGFMT" >&6
d7040cdb 10683else
0ab6f085
AM
10684 echo "$as_me:$LINENO: result: no" >&5
10685echo "${ECHO_T}no" >&6
d7040cdb
SE
10686fi
10687
10688
10689
10690# Prepare PATH_SEPARATOR.
10691# The user is always right.
10692if test "${PATH_SEPARATOR+set}" != set; then
10693 echo "#! /bin/sh" >conf$$.sh
10694 echo "exit 0" >>conf$$.sh
10695 chmod +x conf$$.sh
10696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10697 PATH_SEPARATOR=';'
10698 else
10699 PATH_SEPARATOR=:
10700 fi
10701 rm -f conf$$.sh
10702fi
10703
10704# Find out how to test for executable files. Don't use a zero-byte file,
10705# as systems may use methods other than mode bits to determine executability.
10706cat >conf$$.file <<_ASEOF
10707#! /bin/sh
10708exit 0
10709_ASEOF
10710chmod +x conf$$.file
10711if test -x conf$$.file >/dev/null 2>&1; then
10712 ac_executable_p="test -x"
10713else
10714 ac_executable_p="test -f"
10715fi
10716rm -f conf$$.file
10717
10718# Extract the first word of "xgettext", so it can be a program name with args.
10719set dummy xgettext; ac_word=$2
0ab6f085
AM
10720echo "$as_me:$LINENO: checking for $ac_word" >&5
10721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb
SE
10722if test "${ac_cv_path_XGETTEXT+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724else
10725 case "$XGETTEXT" in
10726 [\\/]* | ?:[\\/]*)
10727 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10728 ;;
10729 *)
10730 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10731 for ac_dir in $PATH; do
10732 IFS="$ac_save_IFS"
10733 test -z "$ac_dir" && ac_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10736 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10737 (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
10738 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10739 break 2
10740 fi
10741 fi
10742 done
10743 done
10744 IFS="$ac_save_IFS"
10745 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10746 ;;
10747esac
10748fi
10749XGETTEXT="$ac_cv_path_XGETTEXT"
10750if test "$XGETTEXT" != ":"; then
0ab6f085
AM
10751 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10752echo "${ECHO_T}$XGETTEXT" >&6
d7040cdb 10753else
0ab6f085
AM
10754 echo "$as_me:$LINENO: result: no" >&5
10755echo "${ECHO_T}no" >&6
d7040cdb
SE
10756fi
10757
10758 rm -f messages.po
10759
10760
10761# Prepare PATH_SEPARATOR.
10762# The user is always right.
10763if test "${PATH_SEPARATOR+set}" != set; then
10764 echo "#! /bin/sh" >conf$$.sh
10765 echo "exit 0" >>conf$$.sh
10766 chmod +x conf$$.sh
10767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10768 PATH_SEPARATOR=';'
10769 else
10770 PATH_SEPARATOR=:
10771 fi
10772 rm -f conf$$.sh
10773fi
10774
10775# Find out how to test for executable files. Don't use a zero-byte file,
10776# as systems may use methods other than mode bits to determine executability.
10777cat >conf$$.file <<_ASEOF
10778#! /bin/sh
10779exit 0
10780_ASEOF
10781chmod +x conf$$.file
10782if test -x conf$$.file >/dev/null 2>&1; then
10783 ac_executable_p="test -x"
10784else
10785 ac_executable_p="test -f"
10786fi
10787rm -f conf$$.file
10788
10789# Extract the first word of "msgmerge", so it can be a program name with args.
10790set dummy msgmerge; ac_word=$2
0ab6f085
AM
10791echo "$as_me:$LINENO: checking for $ac_word" >&5
10792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb
SE
10793if test "${ac_cv_path_MSGMERGE+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795else
10796 case "$MSGMERGE" in
10797 [\\/]* | ?:[\\/]*)
10798 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10799 ;;
10800 *)
10801 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10802 for ac_dir in $PATH; do
10803 IFS="$ac_save_IFS"
10804 test -z "$ac_dir" && ac_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10807 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10808 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10809 break 2
10810 fi
10811 fi
10812 done
10813 done
10814 IFS="$ac_save_IFS"
10815 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10816 ;;
10817esac
10818fi
10819MSGMERGE="$ac_cv_path_MSGMERGE"
10820if test "$MSGMERGE" != ":"; then
0ab6f085
AM
10821 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10822echo "${ECHO_T}$MSGMERGE" >&6
d7040cdb 10823else
0ab6f085
AM
10824 echo "$as_me:$LINENO: result: no" >&5
10825echo "${ECHO_T}no" >&6
d7040cdb
SE
10826fi
10827
10828
10829 if test "$GMSGFMT" != ":"; then
10830 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10831 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10832 : ;
10833 else
10834 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
0ab6f085
AM
10835 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10836echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
d7040cdb
SE
10837 GMSGFMT=":"
10838 fi
10839 fi
10840
10841 if test "$XGETTEXT" != ":"; then
10842 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10843 (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
10844 : ;
10845 else
0ab6f085
AM
10846 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10847echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
d7040cdb
SE
10848 XGETTEXT=":"
10849 fi
10850 rm -f messages.po
10851 fi
10852
0ab6f085 10853 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
10854
10855
10856
0ab6f085
AM
10857echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10858echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10859 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
d7040cdb 10860if test "${enable_maintainer_mode+set}" = set; then
0ab6f085
AM
10861 enableval="$enable_maintainer_mode"
10862 USE_MAINTAINER_MODE=$enableval
252b5132 10863else
d7040cdb 10864 USE_MAINTAINER_MODE=no
0ab6f085
AM
10865fi;
10866 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10867echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6bf9431b 10868
d7040cdb
SE
10869
10870if test $USE_MAINTAINER_MODE = yes; then
10871 MAINTAINER_MODE_TRUE=
10872 MAINTAINER_MODE_FALSE='#'
10873else
10874 MAINTAINER_MODE_TRUE='#'
10875 MAINTAINER_MODE_FALSE=
20e95c23 10876fi
6bf9431b 10877
d7040cdb
SE
10878 MAINT=$MAINTAINER_MODE_TRUE
10879
10880
10881
10882
10883if false; then
10884 GENINSRC_NEVER_TRUE=
10885 GENINSRC_NEVER_FALSE='#'
10886else
10887 GENINSRC_NEVER_TRUE='#'
10888 GENINSRC_NEVER_FALSE=
20e95c23 10889fi
6bf9431b
BE
10890
10891
10892
10893
10894for ac_header in sys/gmon_out.h
10895do
10896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
0ab6f085
AM
10897if eval "test \"\${$as_ac_Header+set}\" = set"; then
10898 echo "$as_me:$LINENO: checking for $ac_header" >&5
10899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10900if eval "test \"\${$as_ac_Header+set}\" = set"; then
6bf9431b
BE
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10902fi
0ab6f085
AM
10903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6bf9431b
BE
10905else
10906 # Is the header compilable?
0ab6f085
AM
10907echo "$as_me:$LINENO: checking $ac_header usability" >&5
10908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6bf9431b
BE
10909cat >conftest.$ac_ext <<_ACEOF
10910/* confdefs.h. */
10911_ACEOF
10912cat confdefs.h >>conftest.$ac_ext
10913cat >>conftest.$ac_ext <<_ACEOF
10914/* end confdefs.h. */
10915$ac_includes_default
10916#include <$ac_header>
10917_ACEOF
10918rm -f conftest.$ac_objext
0ab6f085
AM
10919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10920 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
10921 ac_status=$?
10922 grep -v '^ *+' conftest.er1 >conftest.err
10923 rm -f conftest.er1
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
10926 (exit $ac_status); } &&
10927 { ac_try='test -z "$ac_c_werror_flag"
10928 || test ! -s conftest.err'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try='test -s conftest.$ac_objext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
6bf9431b
BE
10940 ac_header_compiler=yes
10941else
10942 echo "$as_me: failed program was:" >&5
10943sed 's/^/| /' conftest.$ac_ext >&5
10944
0ab6f085 10945ac_header_compiler=no
6bf9431b 10946fi
0ab6f085
AM
10947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10949echo "${ECHO_T}$ac_header_compiler" >&6
6bf9431b
BE
10950
10951# Is the header present?
0ab6f085
AM
10952echo "$as_me:$LINENO: checking $ac_header presence" >&5
10953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6bf9431b
BE
10954cat >conftest.$ac_ext <<_ACEOF
10955/* confdefs.h. */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h. */
10960#include <$ac_header>
10961_ACEOF
0ab6f085
AM
10962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6bf9431b
BE
10964 ac_status=$?
10965 grep -v '^ *+' conftest.er1 >conftest.err
10966 rm -f conftest.er1
10967 cat conftest.err >&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
10969 (exit $ac_status); } >/dev/null; then
10970 if test -s conftest.err; then
10971 ac_cpp_err=$ac_c_preproc_warn_flag
10972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10973 else
10974 ac_cpp_err=
10975 fi
10976else
10977 ac_cpp_err=yes
10978fi
10979if test -z "$ac_cpp_err"; then
6bf9431b
BE
10980 ac_header_preproc=yes
10981else
10982 echo "$as_me: failed program was:" >&5
10983sed 's/^/| /' conftest.$ac_ext >&5
10984
10985 ac_header_preproc=no
10986fi
10987rm -f conftest.err conftest.$ac_ext
0ab6f085
AM
10988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10989echo "${ECHO_T}$ac_header_preproc" >&6
6bf9431b
BE
10990
10991# So? What about this header?
10992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10993 yes:no: )
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10998 ac_header_preproc=yes
10999 ;;
11000 no:yes:* )
11001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11004echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11008echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
0ab6f085
AM
11013 (
11014 cat <<\_ASBOX
11015## ------------------------------------------ ##
11016## Report this to the AC_PACKAGE_NAME lists. ##
11017## ------------------------------------------ ##
11018_ASBOX
11019 ) |
11020 sed "s/^/$as_me: WARNING: /" >&2
6bf9431b
BE
11021 ;;
11022esac
0ab6f085
AM
11023echo "$as_me:$LINENO: checking for $ac_header" >&5
11024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11025if eval "test \"\${$as_ac_Header+set}\" = set"; then
6bf9431b
BE
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027else
11028 eval "$as_ac_Header=\$ac_header_preproc"
11029fi
0ab6f085
AM
11030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6bf9431b
BE
11032
11033fi
11034if test `eval echo '${'$as_ac_Header'}'` = yes; then
11035 cat >>confdefs.h <<_ACEOF
11036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11037_ACEOF
11038
11039fi
11040
11041done
11042
11043
0ab6f085
AM
11044echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11045echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
34875e64
NC
11046if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
11049 cat >conftest.$ac_ext <<_ACEOF
11050/* confdefs.h. */
11051_ACEOF
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
11054/* end confdefs.h. */
11055#include <unistd.h>
11056int
11057main ()
11058{
11059extern int getopt (int, char *const*, const char *);
11060 ;
11061 return 0;
11062}
11063_ACEOF
11064rm -f conftest.$ac_objext
0ab6f085
AM
11065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11066 (eval $ac_compile) 2>conftest.er1
34875e64
NC
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
11072 (exit $ac_status); } &&
11073 { ac_try='test -z "$ac_c_werror_flag"
11074 || test ! -s conftest.err'
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; } &&
11080 { ac_try='test -s conftest.$ac_objext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
34875e64
NC
11086 gprof_cv_decl_getopt_unistd_h=yes
11087else
11088 echo "$as_me: failed program was:" >&5
11089sed 's/^/| /' conftest.$ac_ext >&5
11090
0ab6f085 11091gprof_cv_decl_getopt_unistd_h=no
34875e64 11092fi
0ab6f085 11093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11094fi
11095
0ab6f085
AM
11096echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
11097echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
34875e64
NC
11098if test $gprof_cv_decl_getopt_unistd_h = yes; then
11099
11100cat >>confdefs.h <<\_ACEOF
11101#define HAVE_DECL_GETOPT 1
11102_ACEOF
11103
11104fi
11105
1b9750d6 11106# Some systems have fabs only in -lm, not in -lc.
0ab6f085
AM
11107echo "$as_me:$LINENO: checking for library containing fabs" >&5
11108echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6
1b9750d6
NC
11109if test "${ac_cv_search_fabs+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112 ac_func_search_save_LIBS=$LIBS
0ab6f085 11113ac_cv_search_fabs=no
1b9750d6
NC
11114cat >conftest.$ac_ext <<_ACEOF
11115/* confdefs.h. */
11116_ACEOF
11117cat confdefs.h >>conftest.$ac_ext
11118cat >>conftest.$ac_ext <<_ACEOF
11119/* end confdefs.h. */
11120
0ab6f085 11121/* Override any gcc2 internal prototype to avoid an error. */
1b9750d6
NC
11122#ifdef __cplusplus
11123extern "C"
11124#endif
0ab6f085
AM
11125/* We use char because int might match the return type of a gcc2
11126 builtin and then its argument prototype would still apply. */
1b9750d6
NC
11127char fabs ();
11128int
11129main ()
11130{
0ab6f085 11131fabs ();
1b9750d6
NC
11132 ;
11133 return 0;
11134}
11135_ACEOF
0ab6f085
AM
11136rm -f conftest.$ac_objext conftest$ac_exeext
11137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138 (eval $ac_link) 2>conftest.er1
1b9750d6
NC
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
11144 (exit $ac_status); } &&
11145 { ac_try='test -z "$ac_c_werror_flag"
11146 || test ! -s conftest.err'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; } &&
11152 { ac_try='test -s conftest$ac_exeext'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 ac_cv_search_fabs="none required"
1b9750d6
NC
11159else
11160 echo "$as_me: failed program was:" >&5
11161sed 's/^/| /' conftest.$ac_ext >&5
11162
1b9750d6 11163fi
0ab6f085
AM
11164rm -f conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
11166if test "$ac_cv_search_fabs" = no; then
11167 for ac_lib in m; do
11168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11169 cat >conftest.$ac_ext <<_ACEOF
11170/* confdefs.h. */
11171_ACEOF
11172cat confdefs.h >>conftest.$ac_ext
11173cat >>conftest.$ac_ext <<_ACEOF
11174/* end confdefs.h. */
1b9750d6 11175
0ab6f085
AM
11176/* Override any gcc2 internal prototype to avoid an error. */
11177#ifdef __cplusplus
11178extern "C"
11179#endif
11180/* We use char because int might match the return type of a gcc2
11181 builtin and then its argument prototype would still apply. */
11182char fabs ();
11183int
11184main ()
11185{
11186fabs ();
11187 ;
11188 return 0;
11189}
11190_ACEOF
11191rm -f conftest.$ac_objext conftest$ac_exeext
11192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11193 (eval $ac_link) 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
11200 { ac_try='test -z "$ac_c_werror_flag"
11201 || test ! -s conftest.err'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; } &&
11207 { ac_try='test -s conftest$ac_exeext'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
11213 ac_cv_search_fabs="-l$ac_lib"
11214break
1b9750d6 11215else
0ab6f085
AM
11216 echo "$as_me: failed program was:" >&5
11217sed 's/^/| /' conftest.$ac_ext >&5
11218
11219fi
11220rm -f conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext conftest.$ac_ext
11222 done
1b9750d6 11223fi
1b9750d6
NC
11224LIBS=$ac_func_search_save_LIBS
11225fi
0ab6f085
AM
11226echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5
11227echo "${ECHO_T}$ac_cv_search_fabs" >&6
11228if test "$ac_cv_search_fabs" != no; then
11229 test "$ac_cv_search_fabs" = "none required" || LIBS="$ac_cv_search_fabs $LIBS"
1b9750d6
NC
11230
11231fi
11232
11233
9e9b66a9 11234
a541e3ce 11235GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 11236
0ab6f085 11237# Check whether --enable-werror or --disable-werror was given.
569acd2c 11238if test "${enable_werror+set}" = set; then
0ab6f085
AM
11239 enableval="$enable_werror"
11240 case "${enableval}" in
1ad12f97
NC
11241 yes | y) ERROR_ON_WARNING="yes" ;;
11242 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
11243 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11244echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
11245 { (exit 1); exit 1; }; } ;;
11246 esac
0ab6f085 11247fi;
1ad12f97 11248
32b1cf22
L
11249# Enable -Wno-format by default when using gcc on mingw
11250case "${host}" in
11251 *-*-mingw32*)
11252 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11253 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11254 fi
11255 ;;
11256 *) ;;
11257esac
11258
9e9b66a9
AM
11259# Enable -Werror by default when using gcc
11260if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11261 ERROR_ON_WARNING=yes
11262fi
11263
11264NO_WERROR=
11265if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 11266 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 11267 NO_WERROR="-Wno-error"
1ad12f97
NC
11268fi
11269
a541e3ce
SE
11270if test "${GCC}" = yes ; then
11271 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11272fi
11273
0ab6f085 11274# Check whether --enable-build-warnings or --disable-build-warnings was given.
6bf9431b 11275if test "${enable_build_warnings+set}" = set; then
0ab6f085
AM
11276 enableval="$enable_build_warnings"
11277 case "${enableval}" in
a541e3ce
SE
11278 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11279 no) if test "${GCC}" = yes ; then
11280 WARN_CFLAGS="-w"
11281 fi;;
6bf9431b 11282 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11283 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 11284 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11285 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 11286 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 11287esac
0ab6f085 11288fi;
9e9b66a9
AM
11289
11290if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11291 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
11292fi
11293
11294
9e9b66a9
AM
11295
11296
11297
108a6f8e
CD
11298
11299
11300
11301
0ab6f085 11302 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6bf9431b 11303
6bf9431b
BE
11304cat >confcache <<\_ACEOF
11305# This file is a shell script that caches the results of configure
11306# tests run on this system so they can be shared between configure
11307# scripts and configure runs, see configure's option --config-cache.
11308# It is not useful on other systems. If it contains results you don't
11309# want to keep, you may remove or edit it.
11310#
11311# config.status only pays attention to the cache file if you give it
11312# the --recheck option to rerun configure.
11313#
11314# `ac_cv_env_foo' variables (set or unset) will be overridden when
11315# loading this file, other *unset* `ac_cv_foo' will be assigned the
11316# following values.
11317
11318_ACEOF
11319
11320# The following way of writing the cache mishandles newlines in values,
11321# but we know of no workaround that is simple, portable, and efficient.
0ab6f085 11322# So, don't put newlines in cache variables' values.
6bf9431b
BE
11323# Ultrix sh set writes to stderr and can't be redirected directly,
11324# and sets the high bit in the cache file unless we assign to the vars.
0ab6f085 11325{
6bf9431b 11326 (set) 2>&1 |
0ab6f085
AM
11327 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11328 *ac_space=\ *)
6bf9431b
BE
11329 # `set' does not quote correctly, so add quotes (double-quote
11330 # substitution turns \\\\ into \\, and sed turns \\ into \).
11331 sed -n \
11332 "s/'/'\\\\''/g;
11333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
0ab6f085 11334 ;;
6bf9431b
BE
11335 *)
11336 # `set' quotes correctly as required by POSIX, so do not add quotes.
0ab6f085
AM
11337 sed -n \
11338 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6bf9431b 11339 ;;
0ab6f085
AM
11340 esac;
11341} |
6bf9431b
BE
11342 sed '
11343 t clear
0ab6f085 11344 : clear
6bf9431b
BE
11345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11346 t end
0ab6f085
AM
11347 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11348 : end' >>confcache
11349if diff $cache_file confcache >/dev/null 2>&1; then :; else
11350 if test -w $cache_file; then
11351 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6bf9431b
BE
11352 cat confcache >$cache_file
11353 else
0ab6f085 11354 echo "not updating unwritable cache $cache_file"
6bf9431b
BE
11355 fi
11356fi
11357rm -f confcache
11358
11359test "x$prefix" = xNONE && prefix=$ac_default_prefix
11360# Let make expand exec_prefix.
11361test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11362
0ab6f085
AM
11363# VPATH may cause trouble with some makes, so we remove $(srcdir),
11364# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11365# trailing colons and then remove the whole line if VPATH becomes empty
11366# (actually we leave an empty line to preserve line numbers).
11367if test "x$srcdir" = x.; then
11368 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11369s/:*\$(srcdir):*/:/;
11370s/:*\${srcdir}:*/:/;
11371s/:*@srcdir@:*/:/;
11372s/^\([^=]*=[ ]*\):*/\1/;
11373s/:*$//;
11374s/^[^=]*=[ ]*$//;
11375}'
11376fi
11377
6bf9431b
BE
11378DEFS=-DHAVE_CONFIG_H
11379
11380ac_libobjs=
11381ac_ltlibobjs=
11382for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11383 # 1. Remove the extension, and $U if already installed.
0ab6f085
AM
11384 ac_i=`echo "$ac_i" |
11385 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11386 # 2. Add them.
11387 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11388 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6bf9431b
BE
11389done
11390LIBOBJS=$ac_libobjs
11391
11392LTLIBOBJS=$ac_ltlibobjs
11393
11394
11395if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11396 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11397Usually this means the macro was only invoked conditionally." >&5
11398echo "$as_me: error: conditional \"AMDEP\" was never defined.
11399Usually this means the macro was only invoked conditionally." >&2;}
11400 { (exit 1); exit 1; }; }
11401fi
11402if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11403 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11404Usually this means the macro was only invoked conditionally." >&5
11405echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11406Usually this means the macro was only invoked conditionally." >&2;}
11407 { (exit 1); exit 1; }; }
11408fi
11409if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11410 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11411Usually this means the macro was only invoked conditionally." >&5
11412echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11413Usually this means the macro was only invoked conditionally." >&2;}
11414 { (exit 1); exit 1; }; }
11415fi
d5fbea21
DJ
11416if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
11417 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
11418Usually this means the macro was only invoked conditionally." >&5
11419echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
11420Usually this means the macro was only invoked conditionally." >&2;}
11421 { (exit 1); exit 1; }; }
11422fi
6bf9431b
BE
11423
11424: ${CONFIG_STATUS=./config.status}
11425ac_clean_files_save=$ac_clean_files
11426ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11427{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11428echo "$as_me: creating $CONFIG_STATUS" >&6;}
11429cat >$CONFIG_STATUS <<_ACEOF
11430#! $SHELL
11431# Generated by $as_me.
11432# Run this file to recreate the current configuration.
11433# Compiler output produced by configure, useful for debugging
11434# configure, is in config.log if it exists.
11435
11436debug=false
11437ac_cs_recheck=false
11438ac_cs_silent=false
11439SHELL=\${CONFIG_SHELL-$SHELL}
11440_ACEOF
11441
11442cat >>$CONFIG_STATUS <<\_ACEOF
11443## --------------------- ##
11444## M4sh Initialization. ##
11445## --------------------- ##
11446
0ab6f085 11447# Be Bourne compatible
6bf9431b
BE
11448if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11449 emulate sh
11450 NULLCMD=:
11451 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11452 # is contrary to our usage. Disable this feature.
11453 alias -g '${1+"$@"}'='"$@"'
0ab6f085
AM
11454elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11455 set -o posix
6bf9431b 11456fi
0ab6f085 11457DUALCASE=1; export DUALCASE # for MKS sh
6bf9431b
BE
11458
11459# Support unset when possible.
11460if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11461 as_unset=unset
11462else
11463 as_unset=false
11464fi
11465
11466
11467# Work around bugs in pre-3.0 UWIN ksh.
0ab6f085 11468$as_unset ENV MAIL MAILPATH
6bf9431b
BE
11469PS1='$ '
11470PS2='> '
11471PS4='+ '
11472
11473# NLS nuisances.
11474for as_var in \
11475 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11476 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11477 LC_TELEPHONE LC_TIME
11478do
11479 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11480 eval $as_var=C; export $as_var
11481 else
0ab6f085 11482 $as_unset $as_var
6bf9431b
BE
11483 fi
11484done
11485
11486# Required to use basename.
0ab6f085 11487if expr a : '\(a\)' >/dev/null 2>&1; then
6bf9431b
BE
11488 as_expr=expr
11489else
11490 as_expr=false
11491fi
11492
0ab6f085 11493if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6bf9431b
BE
11494 as_basename=basename
11495else
11496 as_basename=false
252b5132 11497fi
252b5132 11498
252b5132 11499
6bf9431b 11500# Name of the executable.
0ab6f085 11501as_me=`$as_basename "$0" ||
6bf9431b
BE
11502$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11503 X"$0" : 'X\(//\)$' \| \
0ab6f085
AM
11504 X"$0" : 'X\(/\)$' \| \
11505 . : '\(.\)' 2>/dev/null ||
6bf9431b 11506echo X/"$0" |
0ab6f085
AM
11507 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11508 /^X\/\(\/\/\)$/{ s//\1/; q; }
11509 /^X\/\(\/\).*/{ s//\1/; q; }
11510 s/.*/./; q'`
6bf9431b 11511
0ab6f085
AM
11512
11513# PATH needs CR, and LINENO needs CR and PATH.
11514# Avoid depending upon Character Ranges.
11515as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11516as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11517as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11518as_cr_digits='0123456789'
11519as_cr_alnum=$as_cr_Letters$as_cr_digits
11520
11521# The user is always right.
11522if test "${PATH_SEPARATOR+set}" != set; then
11523 echo "#! /bin/sh" >conf$$.sh
11524 echo "exit 0" >>conf$$.sh
11525 chmod +x conf$$.sh
11526 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11527 PATH_SEPARATOR=';'
11528 else
11529 PATH_SEPARATOR=:
11530 fi
11531 rm -f conf$$.sh
11532fi
252b5132 11533
252b5132 11534
0ab6f085
AM
11535 as_lineno_1=$LINENO
11536 as_lineno_2=$LINENO
11537 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11538 test "x$as_lineno_1" != "x$as_lineno_2" &&
11539 test "x$as_lineno_3" = "x$as_lineno_2" || {
11540 # Find who we are. Look in the path if we contain no path at all
11541 # relative or not.
11542 case $0 in
11543 *[\\/]* ) as_myself=$0 ;;
11544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545for as_dir in $PATH
11546do
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
11549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11550done
252b5132 11551
0ab6f085
AM
11552 ;;
11553 esac
11554 # We did not find ourselves, most probably we were run as `sh COMMAND'
11555 # in which case we are not to be found in the path.
11556 if test "x$as_myself" = x; then
11557 as_myself=$0
11558 fi
11559 if test ! -f "$as_myself"; then
11560 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11561echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11562 { (exit 1); exit 1; }; }
11563 fi
11564 case $CONFIG_SHELL in
11565 '')
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11568do
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for as_base in sh bash ksh sh5; do
11572 case $as_dir in
11573 /*)
11574 if ("$as_dir/$as_base" -c '
6bf9431b
BE
11575 as_lineno_1=$LINENO
11576 as_lineno_2=$LINENO
0ab6f085 11577 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6bf9431b 11578 test "x$as_lineno_1" != "x$as_lineno_2" &&
0ab6f085
AM
11579 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11580 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11581 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11582 CONFIG_SHELL=$as_dir/$as_base
11583 export CONFIG_SHELL
11584 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11585 fi;;
11586 esac
11587 done
11588done
11589;;
11590 esac
6bf9431b
BE
11591
11592 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11593 # uniformly replaced by the line number. The first 'sed' inserts a
0ab6f085
AM
11594 # line-number line before each line; the second 'sed' does the real
11595 # work. The second script uses 'N' to pair each line-number line
11596 # with the numbered line, and appends trailing '-' during
11597 # substitution so that $LINENO is not a special case at line end.
6bf9431b 11598 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
0ab6f085
AM
11599 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11600 sed '=' <$as_myself |
6bf9431b
BE
11601 sed '
11602 N
0ab6f085
AM
11603 s,$,-,
11604 : loop
11605 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6bf9431b 11606 t loop
0ab6f085
AM
11607 s,-$,,
11608 s,^['$as_cr_digits']*\n,,
6bf9431b 11609 ' >$as_me.lineno &&
0ab6f085
AM
11610 chmod +x $as_me.lineno ||
11611 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11612echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6bf9431b
BE
11613 { (exit 1); exit 1; }; }
11614
11615 # Don't try to exec as it changes $[0], causing all sort of problems
11616 # (the dirname of $[0] is not the place where we might find the
0ab6f085
AM
11617 # original and so on. Autoconf is especially sensible to this).
11618 . ./$as_me.lineno
6bf9431b
BE
11619 # Exit status is that of the last command.
11620 exit
11621}
11622
11623
0ab6f085
AM
11624case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11625 *c*,-n*) ECHO_N= ECHO_C='
11626' ECHO_T=' ' ;;
11627 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11628 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6bf9431b
BE
11629esac
11630
0ab6f085 11631if expr a : '\(a\)' >/dev/null 2>&1; then
6bf9431b 11632 as_expr=expr
0eee5820 11633else
6bf9431b 11634 as_expr=false
0eee5820 11635fi
6bf9431b
BE
11636
11637rm -f conf$$ conf$$.exe conf$$.file
11638echo >conf$$.file
11639if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085
AM
11640 # We could just check for DJGPP; but this test a) works b) is more generic
11641 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11642 if test -f conf$$.exe; then
11643 # Don't use ln at all; we don't have any links
6bf9431b 11644 as_ln_s='cp -p'
0ab6f085
AM
11645 else
11646 as_ln_s='ln -s'
11647 fi
6bf9431b
BE
11648elif ln conf$$.file conf$$ 2>/dev/null; then
11649 as_ln_s=ln
11650else
11651 as_ln_s='cp -p'
0eee5820 11652fi
0ab6f085 11653rm -f conf$$ conf$$.exe conf$$.file
6bf9431b
BE
11654
11655if mkdir -p . 2>/dev/null; then
11656 as_mkdir_p=:
0ab6f085
AM
11657else
11658 test -d ./-p && rmdir ./-p
11659 as_mkdir_p=false
1b9750d6 11660fi
0ab6f085
AM
11661
11662as_executable_p="test -f"
0eee5820 11663
6bf9431b
BE
11664# Sed expression to map a string onto a valid CPP name.
11665as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11666
11667# Sed expression to map a string onto a valid variable name.
11668as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11669
1b9750d6 11670
0ab6f085
AM
11671# IFS
11672# We need space, tab and new line, in precisely that order.
11673as_nl='
11674'
11675IFS=" $as_nl"
11676
11677# CDPATH.
11678$as_unset CDPATH
11679
6bf9431b
BE
11680exec 6>&1
11681
0ab6f085 11682# Open the log real soon, to keep \$[0] and so on meaningful, and to
6bf9431b 11683# report actual input values of CONFIG_FILES etc. instead of their
0ab6f085
AM
11684# values after options handling. Logging --version etc. is OK.
11685exec 5>>config.log
11686{
11687 echo
11688 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11689## Running $as_me. ##
11690_ASBOX
11691} >&5
11692cat >&5 <<_CSEOF
11693
6bf9431b 11694This file was extended by $as_me, which was
0ab6f085 11695generated by GNU Autoconf 2.59. Invocation command line was
6bf9431b
BE
11696
11697 CONFIG_FILES = $CONFIG_FILES
11698 CONFIG_HEADERS = $CONFIG_HEADERS
11699 CONFIG_LINKS = $CONFIG_LINKS
11700 CONFIG_COMMANDS = $CONFIG_COMMANDS
11701 $ $0 $@
11702
0ab6f085
AM
11703_CSEOF
11704echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11705echo >&5
6bf9431b
BE
11706_ACEOF
11707
11708# Files that config.status was made for.
0ab6f085
AM
11709if test -n "$ac_config_files"; then
11710 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11711fi
a2d91340 11712
0ab6f085
AM
11713if test -n "$ac_config_headers"; then
11714 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11715fi
11716
11717if test -n "$ac_config_links"; then
11718 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11719fi
11720
11721if test -n "$ac_config_commands"; then
11722 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11723fi
a2d91340 11724
6bf9431b 11725cat >>$CONFIG_STATUS <<\_ACEOF
0ab6f085 11726
6bf9431b
BE
11727ac_cs_usage="\
11728\`$as_me' instantiates files from templates according to the
11729current configuration.
11730
11731Usage: $0 [OPTIONS] [FILE]...
11732
11733 -h, --help print this help, then exit
0ab6f085 11734 -V, --version print version number, then exit
6bf9431b
BE
11735 -q, --quiet do not print progress messages
11736 -d, --debug don't remove temporary files
11737 --recheck update $as_me by reconfiguring in the same conditions
11738 --file=FILE[:TEMPLATE]
11739 instantiate the configuration file FILE
11740 --header=FILE[:TEMPLATE]
11741 instantiate the configuration header FILE
11742
11743Configuration files:
11744$config_files
11745
11746Configuration headers:
11747$config_headers
11748
11749Configuration commands:
11750$config_commands
11751
11752Report bugs to <bug-autoconf@gnu.org>."
1b9750d6 11753_ACEOF
0ab6f085 11754
6bf9431b
BE
11755cat >>$CONFIG_STATUS <<_ACEOF
11756ac_cs_version="\\
11757config.status
0ab6f085
AM
11758configured by $0, generated by GNU Autoconf 2.59,
11759 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6bf9431b 11760
0ab6f085 11761Copyright (C) 2003 Free Software Foundation, Inc.
6bf9431b
BE
11762This config.status script is free software; the Free Software Foundation
11763gives unlimited permission to copy, distribute and modify it."
0ab6f085
AM
11764srcdir=$srcdir
11765INSTALL="$INSTALL"
6bf9431b
BE
11766_ACEOF
11767
11768cat >>$CONFIG_STATUS <<\_ACEOF
11769# If no file are specified by the user, then we need to provide default
11770# value. By we need to know if files were specified by the user.
11771ac_need_defaults=:
11772while test $# != 0
11773do
11774 case $1 in
11775 --*=*)
0ab6f085
AM
11776 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11777 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6bf9431b 11778 ac_shift=:
252b5132 11779 ;;
0ab6f085 11780 -*)
6bf9431b
BE
11781 ac_option=$1
11782 ac_optarg=$2
11783 ac_shift=shift
252b5132 11784 ;;
0ab6f085
AM
11785 *) # This is not an option, so the user has probably given explicit
11786 # arguments.
11787 ac_option=$1
11788 ac_need_defaults=false;;
6bf9431b 11789 esac
252b5132 11790
6bf9431b
BE
11791 case $ac_option in
11792 # Handling of the options.
0ab6f085
AM
11793_ACEOF
11794cat >>$CONFIG_STATUS <<\_ACEOF
6bf9431b
BE
11795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11796 ac_cs_recheck=: ;;
0ab6f085
AM
11797 --version | --vers* | -V )
11798 echo "$ac_cs_version"; exit 0 ;;
11799 --he | --h)
11800 # Conflict between --help and --header
11801 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11802Try \`$0 --help' for more information." >&5
11803echo "$as_me: error: ambiguous option: $1
11804Try \`$0 --help' for more information." >&2;}
11805 { (exit 1); exit 1; }; };;
11806 --help | --hel | -h )
11807 echo "$ac_cs_usage"; exit 0 ;;
11808 --debug | --d* | -d )
6bf9431b
BE
11809 debug=: ;;
11810 --file | --fil | --fi | --f )
11811 $ac_shift
11812 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11813 ac_need_defaults=false;;
11814 --header | --heade | --head | --hea )
11815 $ac_shift
11816 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11817 ac_need_defaults=false;;
11818 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11819 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11820 ac_cs_silent=: ;;
252b5132 11821
6bf9431b 11822 # This is an error.
0ab6f085
AM
11823 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11824Try \`$0 --help' for more information." >&5
11825echo "$as_me: error: unrecognized option: $1
11826Try \`$0 --help' for more information." >&2;}
6bf9431b 11827 { (exit 1); exit 1; }; } ;;
252b5132 11828
0ab6f085 11829 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 11830
6bf9431b
BE
11831 esac
11832 shift
11833done
252b5132 11834
6bf9431b 11835ac_configure_extra_args=
252b5132 11836
6bf9431b
BE
11837if $ac_cs_silent; then
11838 exec 6>/dev/null
11839 ac_configure_extra_args="$ac_configure_extra_args --silent"
11840fi
252b5132 11841
6bf9431b
BE
11842_ACEOF
11843cat >>$CONFIG_STATUS <<_ACEOF
11844if \$ac_cs_recheck; then
0ab6f085
AM
11845 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11846 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6bf9431b
BE
11847fi
11848
11849_ACEOF
11850
11851cat >>$CONFIG_STATUS <<_ACEOF
252b5132 11852#
0ab6f085 11853# INIT-COMMANDS section.
252b5132 11854#
0ab6f085 11855
6bf9431b 11856AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
11857
11858
11859# The HP-UX ksh and POSIX shell print the target directory to stdout
11860# if CDPATH is set.
11861(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11862
11863sed_quote_subst='$sed_quote_subst'
11864double_quote_subst='$double_quote_subst'
11865delay_variable_subst='$delay_variable_subst'
11866macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11867macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11868enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11869enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11870pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11871enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11872host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11873host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11874host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11875build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11876build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11877build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11878SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11879Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11880GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11881EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11882FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11883LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11884NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11885LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11886max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11887ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11888exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11889lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11890lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11891lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11892reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11893reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11894deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11895file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11896AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11897AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11898STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11899RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11900old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11901old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11902old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11903CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11904CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11905compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11906GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11907lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11908lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11909lt_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"`'
11910objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11911SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11912ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11913MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11914lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11915lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11916lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11917lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11918lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11919need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11920libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11921shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11922extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11923archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11924enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11925export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11926whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11927compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11928old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11929old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11930archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11931archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11932module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11933module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11934with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11935allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11936no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11937hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11938hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11939hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11940hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11941hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11942hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11943hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11944hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11945inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11946link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11947fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11948always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11949export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11950exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11951include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11952prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11953file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11954variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11955need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11956need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11957version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11958runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11959shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11960shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11961libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11962library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11963soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11964postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11965postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11966finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11967finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11968hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11969sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11970sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11971hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11972enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11973enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11974enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11975old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11976striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11977
11978LTCC='$LTCC'
11979LTCFLAGS='$LTCFLAGS'
11980compiler='$compiler_DEFAULT'
11981
11982# Quote evaled strings.
11983for var in SED \
11984GREP \
11985EGREP \
11986FGREP \
11987LD \
11988NM \
11989LN_S \
11990lt_SP2NL \
11991lt_NL2SP \
11992reload_flag \
11993deplibs_check_method \
11994file_magic_cmd \
11995AR \
11996AR_FLAGS \
11997STRIP \
11998RANLIB \
11999CC \
12000CFLAGS \
12001compiler \
12002lt_cv_sys_global_symbol_pipe \
12003lt_cv_sys_global_symbol_to_cdecl \
12004lt_cv_sys_global_symbol_to_c_name_address \
12005SHELL \
12006ECHO \
12007lt_prog_compiler_no_builtin_flag \
12008lt_prog_compiler_wl \
12009lt_prog_compiler_pic \
12010lt_prog_compiler_static \
12011lt_cv_prog_compiler_c_o \
12012need_locks \
12013shrext_cmds \
12014export_dynamic_flag_spec \
12015whole_archive_flag_spec \
12016compiler_needs_object \
12017with_gnu_ld \
12018allow_undefined_flag \
12019no_undefined_flag \
12020hardcode_libdir_flag_spec \
12021hardcode_libdir_flag_spec_ld \
12022hardcode_libdir_separator \
12023fix_srcfile_path \
12024exclude_expsyms \
12025include_expsyms \
12026file_list_spec \
12027variables_saved_for_relink \
12028libname_spec \
12029library_names_spec \
12030soname_spec \
12031finish_eval \
12032old_striplib \
12033striplib; do
12034 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12035 *[\\\\\\\`\\"\\\$]*)
12036 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12037 ;;
12038 *)
12039 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12040 ;;
12041 esac
12042done
12043
12044# Double-quote double-evaled strings.
12045for var in reload_cmds \
12046old_postinstall_cmds \
12047old_postuninstall_cmds \
12048old_archive_cmds \
12049extract_expsyms_cmds \
12050old_archive_from_new_cmds \
12051old_archive_from_expsyms_cmds \
12052archive_cmds \
12053archive_expsym_cmds \
12054module_cmds \
12055module_expsym_cmds \
12056export_symbols_cmds \
12057prelink_cmds \
12058postinstall_cmds \
12059postuninstall_cmds \
12060finish_cmds \
12061sys_lib_search_path_spec \
12062sys_lib_dlsearch_path_spec; do
12063 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12064 *[\\\\\\\`\\"\\\$]*)
12065 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12066 ;;
12067 *)
12068 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12069 ;;
12070 esac
12071done
12072
12073# Fix-up fallback echo if it was mangled by the above quoting rules.
12074case \$lt_ECHO in
12075*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12076 ;;
12077esac
12078
12079ac_aux_dir='$ac_aux_dir'
12080xsi_shell='$xsi_shell'
12081lt_shell_append='$lt_shell_append'
12082
12083# See if we are running on zsh, and set the options which allow our
12084# commands through without removal of \ escapes INIT.
12085if test -n "\${ZSH_VERSION+set}" ; then
12086 setopt NO_GLOB_SUBST
12087fi
12088
12089
12090 PACKAGE='$PACKAGE'
12091 VERSION='$VERSION'
12092 TIMESTAMP='$TIMESTAMP'
12093 RM='$RM'
12094 ofile='$ofile'
12095
12096
12097
20e95c23
DJ
12098# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12099 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12100 # from automake.
12101 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12102 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12103 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
12104
12105
12106_ACEOF
12107
1b9750d6 12108
0ab6f085
AM
12109
12110cat >>$CONFIG_STATUS <<\_ACEOF
6bf9431b 12111for ac_config_target in $ac_config_targets
252b5132 12112do
0ab6f085
AM
12113 case "$ac_config_target" in
12114 # Handling of arguments.
12115 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12116 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12117 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12118 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12119 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12120 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
6bf9431b
BE
12121 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12122echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12123 { (exit 1); exit 1; }; };;
252b5132
RH
12124 esac
12125done
12126
6bf9431b
BE
12127# If the user did not use the arguments to specify the items to instantiate,
12128# then the envvar interface is used. Set only those that are not.
12129# We use the long form for the default assignment because of an extremely
12130# bizarre bug on SunOS 4.1.3.
12131if $ac_need_defaults; then
12132 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12133 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12134 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12135fi
12136
12137# Have a temporary directory for convenience. Make it in the build tree
0ab6f085 12138# simply because there is no reason to put it here, and in addition,
6bf9431b 12139# creating and moving files from /tmp can sometimes cause problems.
0ab6f085 12140# Create a temporary directory, and hook for its removal unless debugging.
6bf9431b
BE
12141$debug ||
12142{
0ab6f085 12143 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6bf9431b
BE
12144 trap '{ (exit 1); exit 1; }' 1 2 13 15
12145}
0ab6f085 12146
6bf9431b 12147# Create a (secure) tmp directory for tmp files.
252b5132 12148
6bf9431b 12149{
0ab6f085 12150 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6bf9431b
BE
12151 test -n "$tmp" && test -d "$tmp"
12152} ||
12153{
0ab6f085
AM
12154 tmp=./confstat$$-$RANDOM
12155 (umask 077 && mkdir $tmp)
6bf9431b
BE
12156} ||
12157{
12158 echo "$me: cannot create a temporary directory in ." >&2
12159 { (exit 1); exit 1; }
12160}
252b5132 12161
0ab6f085
AM
12162_ACEOF
12163
12164cat >>$CONFIG_STATUS <<_ACEOF
12165
6bf9431b 12166#
0ab6f085 12167# CONFIG_FILES section.
6bf9431b
BE
12168#
12169
12170# No need to generate the scripts if there are no CONFIG_FILES.
12171# This happens for instance when ./config.status config.h
0ab6f085
AM
12172if test -n "\$CONFIG_FILES"; then
12173 # Protect against being on the right side of a sed subst in config.status.
12174 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12175 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12176s,@SHELL@,$SHELL,;t t
12177s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12178s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12179s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12180s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12181s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12182s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12183s,@exec_prefix@,$exec_prefix,;t t
12184s,@prefix@,$prefix,;t t
12185s,@program_transform_name@,$program_transform_name,;t t
12186s,@bindir@,$bindir,;t t
12187s,@sbindir@,$sbindir,;t t
12188s,@libexecdir@,$libexecdir,;t t
12189s,@datadir@,$datadir,;t t
12190s,@sysconfdir@,$sysconfdir,;t t
12191s,@sharedstatedir@,$sharedstatedir,;t t
12192s,@localstatedir@,$localstatedir,;t t
12193s,@libdir@,$libdir,;t t
12194s,@includedir@,$includedir,;t t
12195s,@oldincludedir@,$oldincludedir,;t t
12196s,@infodir@,$infodir,;t t
12197s,@mandir@,$mandir,;t t
12198s,@build_alias@,$build_alias,;t t
12199s,@host_alias@,$host_alias,;t t
12200s,@target_alias@,$target_alias,;t t
12201s,@DEFS@,$DEFS,;t t
12202s,@ECHO_C@,$ECHO_C,;t t
12203s,@ECHO_N@,$ECHO_N,;t t
12204s,@ECHO_T@,$ECHO_T,;t t
12205s,@LIBS@,$LIBS,;t t
12206s,@build@,$build,;t t
12207s,@build_cpu@,$build_cpu,;t t
12208s,@build_vendor@,$build_vendor,;t t
12209s,@build_os@,$build_os,;t t
12210s,@host@,$host,;t t
12211s,@host_cpu@,$host_cpu,;t t
12212s,@host_vendor@,$host_vendor,;t t
12213s,@host_os@,$host_os,;t t
12214s,@target@,$target,;t t
12215s,@target_cpu@,$target_cpu,;t t
12216s,@target_vendor@,$target_vendor,;t t
12217s,@target_os@,$target_os,;t t
12218s,@CC@,$CC,;t t
12219s,@CFLAGS@,$CFLAGS,;t t
12220s,@LDFLAGS@,$LDFLAGS,;t t
12221s,@CPPFLAGS@,$CPPFLAGS,;t t
12222s,@ac_ct_CC@,$ac_ct_CC,;t t
12223s,@EXEEXT@,$EXEEXT,;t t
12224s,@OBJEXT@,$OBJEXT,;t t
12225s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12226s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12227s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12228s,@CYGPATH_W@,$CYGPATH_W,;t t
12229s,@PACKAGE@,$PACKAGE,;t t
12230s,@VERSION@,$VERSION,;t t
12231s,@ACLOCAL@,$ACLOCAL,;t t
12232s,@AUTOCONF@,$AUTOCONF,;t t
12233s,@AUTOMAKE@,$AUTOMAKE,;t t
12234s,@AUTOHEADER@,$AUTOHEADER,;t t
12235s,@MAKEINFO@,$MAKEINFO,;t t
12236s,@install_sh@,$install_sh,;t t
12237s,@STRIP@,$STRIP,;t t
12238s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12239s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12240s,@mkdir_p@,$mkdir_p,;t t
12241s,@AWK@,$AWK,;t t
12242s,@SET_MAKE@,$SET_MAKE,;t t
12243s,@am__leading_dot@,$am__leading_dot,;t t
12244s,@AMTAR@,$AMTAR,;t t
12245s,@am__tar@,$am__tar,;t t
12246s,@am__untar@,$am__untar,;t t
12247s,@DEPDIR@,$DEPDIR,;t t
12248s,@am__include@,$am__include,;t t
12249s,@am__quote@,$am__quote,;t t
12250s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12251s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12252s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12253s,@CCDEPMODE@,$CCDEPMODE,;t t
12254s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12255s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12256s,@LIBTOOL@,$LIBTOOL,;t t
12257s,@SED@,$SED,;t t
12258s,@EGREP@,$EGREP,;t t
12259s,@FGREP@,$FGREP,;t t
12260s,@GREP@,$GREP,;t t
12261s,@LD@,$LD,;t t
12262s,@DUMPBIN@,$DUMPBIN,;t t
12263s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12264s,@NM@,$NM,;t t
12265s,@LN_S@,$LN_S,;t t
12266s,@AR@,$AR,;t t
12267s,@ac_ct_AR@,$ac_ct_AR,;t t
12268s,@RANLIB@,$RANLIB,;t t
12269s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12270s,@lt_ECHO@,$lt_ECHO,;t t
12271s,@CPP@,$CPP,;t t
12272s,@USE_NLS@,$USE_NLS,;t t
12273s,@LIBINTL@,$LIBINTL,;t t
12274s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12275s,@INCINTL@,$INCINTL,;t t
12276s,@XGETTEXT@,$XGETTEXT,;t t
12277s,@GMSGFMT@,$GMSGFMT,;t t
12278s,@POSUB@,$POSUB,;t t
12279s,@CATALOGS@,$CATALOGS,;t t
12280s,@DATADIRNAME@,$DATADIRNAME,;t t
12281s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12282s,@GENCAT@,$GENCAT,;t t
12283s,@CATOBJEXT@,$CATOBJEXT,;t t
12284s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12285s,@MSGFMT@,$MSGFMT,;t t
12286s,@MSGMERGE@,$MSGMERGE,;t t
12287s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12288s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12289s,@MAINT@,$MAINT,;t t
12290s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
12291s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
12292s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12293s,@NO_WERROR@,$NO_WERROR,;t t
12294s,@datarootdir@,$datarootdir,;t t
12295s,@docdir@,$docdir,;t t
12296s,@htmldir@,$htmldir,;t t
12297s,@LIBOBJS@,$LIBOBJS,;t t
12298s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12299CEOF
1b9750d6 12300
1b9750d6 12301_ACEOF
1b9750d6 12302
0ab6f085
AM
12303 cat >>$CONFIG_STATUS <<\_ACEOF
12304 # Split the substitutions into bite-sized pieces for seds with
12305 # small command number limits, like on Digital OSF/1 and HP-UX.
12306 ac_max_sed_lines=48
12307 ac_sed_frag=1 # Number of current file.
12308 ac_beg=1 # First line for current file.
12309 ac_end=$ac_max_sed_lines # Line after last line for current file.
12310 ac_more_lines=:
12311 ac_sed_cmds=
12312 while $ac_more_lines; do
12313 if test $ac_beg -gt 1; then
12314 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12315 else
12316 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12317 fi
12318 if test ! -s $tmp/subs.frag; then
12319 ac_more_lines=false
12320 else
12321 # The purpose of the label and of the branching condition is to
12322 # speed up the sed processing (if there are no `@' at all, there
12323 # is no need to browse any of the substitutions).
12324 # These are the two extra sed commands mentioned above.
12325 (echo ':t
12326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12327 if test -z "$ac_sed_cmds"; then
12328 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12329 else
12330 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12331 fi
12332 ac_sed_frag=`expr $ac_sed_frag + 1`
12333 ac_beg=$ac_end
12334 ac_end=`expr $ac_end + $ac_max_sed_lines`
12335 fi
12336 done
12337 if test -z "$ac_sed_cmds"; then
12338 ac_sed_cmds=cat
12339 fi
12340fi # test -n "$CONFIG_FILES"
1b9750d6 12341
1b9750d6 12342_ACEOF
6bf9431b 12343cat >>$CONFIG_STATUS <<\_ACEOF
0ab6f085
AM
12344for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12346 case $ac_file in
12347 - | *:- | *:-:* ) # input from stdin
12348 cat >$tmp/stdin
12349 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12350 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12351 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12353 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12354 esac
12355
0ab6f085
AM
12356 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12357 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6bf9431b
BE
12358$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12359 X"$ac_file" : 'X\(//\)[^/]' \| \
12360 X"$ac_file" : 'X\(//\)$' \| \
0ab6f085
AM
12361 X"$ac_file" : 'X\(/\)' \| \
12362 . : '\(.\)' 2>/dev/null ||
6bf9431b 12363echo X"$ac_file" |
0ab6f085
AM
12364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12366 /^X\(\/\/\)$/{ s//\1/; q; }
12367 /^X\(\/\).*/{ s//\1/; q; }
12368 s/.*/./; q'`
12369 { if $as_mkdir_p; then
12370 mkdir -p "$ac_dir"
12371 else
12372 as_dir="$ac_dir"
6bf9431b 12373 as_dirs=
0ab6f085
AM
12374 while test ! -d "$as_dir"; do
12375 as_dirs="$as_dir $as_dirs"
12376 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6bf9431b
BE
12377$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12378 X"$as_dir" : 'X\(//\)[^/]' \| \
12379 X"$as_dir" : 'X\(//\)$' \| \
0ab6f085
AM
12380 X"$as_dir" : 'X\(/\)' \| \
12381 . : '\(.\)' 2>/dev/null ||
6bf9431b 12382echo X"$as_dir" |
0ab6f085
AM
12383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12385 /^X\(\/\/\)$/{ s//\1/; q; }
12386 /^X\(\/\).*/{ s//\1/; q; }
12387 s/.*/./; q'`
6bf9431b 12388 done
0ab6f085
AM
12389 test ! -n "$as_dirs" || mkdir $as_dirs
12390 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12391echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6bf9431b 12392 { (exit 1); exit 1; }; }; }
0ab6f085 12393
6bf9431b
BE
12394 ac_builddir=.
12395
0ab6f085 12396if test "$ac_dir" != .; then
6bf9431b 12397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
0ab6f085
AM
12398 # A "../" for each directory in $ac_dir_suffix.
12399 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12400else
12401 ac_dir_suffix= ac_top_builddir=
12402fi
252b5132 12403
6bf9431b 12404case $srcdir in
0ab6f085 12405 .) # No --srcdir option. We are building in place.
6bf9431b 12406 ac_srcdir=.
0ab6f085
AM
12407 if test -z "$ac_top_builddir"; then
12408 ac_top_srcdir=.
12409 else
12410 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12411 fi ;;
12412 [\\/]* | ?:[\\/]* ) # Absolute path.
6bf9431b 12413 ac_srcdir=$srcdir$ac_dir_suffix;
0ab6f085
AM
12414 ac_top_srcdir=$srcdir ;;
12415 *) # Relative path.
12416 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12417 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6bf9431b 12418esac
252b5132 12419
0ab6f085
AM
12420# Do not use `cd foo && pwd` to compute absolute paths, because
12421# the directories may not exist.
12422case `pwd` in
12423.) ac_abs_builddir="$ac_dir";;
12424*)
12425 case "$ac_dir" in
12426 .) ac_abs_builddir=`pwd`;;
12427 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12428 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12429 esac;;
12430esac
12431case $ac_abs_builddir in
12432.) ac_abs_top_builddir=${ac_top_builddir}.;;
12433*)
12434 case ${ac_top_builddir}. in
12435 .) ac_abs_top_builddir=$ac_abs_builddir;;
12436 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12437 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12438 esac;;
12439esac
12440case $ac_abs_builddir in
12441.) ac_abs_srcdir=$ac_srcdir;;
12442*)
12443 case $ac_srcdir in
12444 .) ac_abs_srcdir=$ac_abs_builddir;;
12445 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12446 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12447 esac;;
12448esac
12449case $ac_abs_builddir in
12450.) ac_abs_top_srcdir=$ac_top_srcdir;;
12451*)
12452 case $ac_top_srcdir in
12453 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12454 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12455 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12456 esac;;
12457esac
252b5132 12458
6bf9431b
BE
12459
12460 case $INSTALL in
12461 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
0ab6f085 12462 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132 12463 esac
1b9750d6 12464
0ab6f085
AM
12465 if test x"$ac_file" != x-; then
12466 { echo "$as_me:$LINENO: creating $ac_file" >&5
12467echo "$as_me: creating $ac_file" >&6;}
12468 rm -f "$ac_file"
12469 fi
12470 # Let's still pretend it is `configure' which instantiates (i.e., don't
12471 # use $as_me), people would be surprised to read:
12472 # /* config.h. Generated by config.status. */
12473 if test x"$ac_file" = x-; then
12474 configure_input=
12475 else
12476 configure_input="$ac_file. "
12477 fi
12478 configure_input=$configure_input"Generated from `echo $ac_file_in |
12479 sed 's,.*/,,'` by configure."
12480
12481 # First look for the input files in the build tree, otherwise in the
12482 # src tree.
12483 ac_file_inputs=`IFS=:
12484 for f in $ac_file_in; do
12485 case $f in
12486 -) echo $tmp/stdin ;;
12487 [\\/$]*)
12488 # Absolute (can't be DOS-style, as IFS=:)
12489 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12490echo "$as_me: error: cannot find input file: $f" >&2;}
12491 { (exit 1); exit 1; }; }
12492 echo "$f";;
12493 *) # Relative
12494 if test -f "$f"; then
12495 # Build tree
12496 echo "$f"
12497 elif test -f "$srcdir/$f"; then
12498 # Source tree
12499 echo "$srcdir/$f"
12500 else
12501 # /dev/null tree
12502 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12503echo "$as_me: error: cannot find input file: $f" >&2;}
12504 { (exit 1); exit 1; }; }
12505 fi;;
12506 esac
12507 done` || { (exit 1); exit 1; }
6bf9431b
BE
12508_ACEOF
12509cat >>$CONFIG_STATUS <<_ACEOF
12510 sed "$ac_vpsub
12511$extrasub
12512_ACEOF
12513cat >>$CONFIG_STATUS <<\_ACEOF
12514:t
12515/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
0ab6f085
AM
12516s,@configure_input@,$configure_input,;t t
12517s,@srcdir@,$ac_srcdir,;t t
12518s,@abs_srcdir@,$ac_abs_srcdir,;t t
12519s,@top_srcdir@,$ac_top_srcdir,;t t
12520s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12521s,@builddir@,$ac_builddir,;t t
12522s,@abs_builddir@,$ac_abs_builddir,;t t
12523s,@top_builddir@,$ac_top_builddir,;t t
12524s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12525s,@INSTALL@,$ac_INSTALL,;t t
12526" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12527 rm -f $tmp/stdin
12528 if test x"$ac_file" != x-; then
12529 mv $tmp/out $ac_file
12530 else
12531 cat $tmp/out
12532 rm -f $tmp/out
12533 fi
12534
12535done
12536_ACEOF
12537cat >>$CONFIG_STATUS <<\_ACEOF
12538
12539#
12540# CONFIG_HEADER section.
12541#
12542
12543# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12544# NAME is the cpp macro being defined and VALUE is the value it is being given.
12545#
12546# ac_d sets the value in "#define NAME VALUE" lines.
12547ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12548ac_dB='[ ].*$,\1#\2'
12549ac_dC=' '
12550ac_dD=',;t'
12551# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12552ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12553ac_uB='$,\1#\2define\3'
12554ac_uC=' '
12555ac_uD=',;t'
12556
12557for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12558 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6bf9431b 12559 case $ac_file in
0ab6f085
AM
12560 - | *:- | *:-:* ) # input from stdin
12561 cat >$tmp/stdin
12562 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12563 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12564 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12566 * ) ac_file_in=$ac_file.in ;;
252b5132 12567 esac
0ab6f085
AM
12568
12569 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12570echo "$as_me: creating $ac_file" >&6;}
12571
12572 # First look for the input files in the build tree, otherwise in the
12573 # src tree.
12574 ac_file_inputs=`IFS=:
12575 for f in $ac_file_in; do
12576 case $f in
12577 -) echo $tmp/stdin ;;
12578 [\\/$]*)
12579 # Absolute (can't be DOS-style, as IFS=:)
12580 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12581echo "$as_me: error: cannot find input file: $f" >&2;}
12582 { (exit 1); exit 1; }; }
12583 # Do quote $f, to prevent DOS paths from being IFS'd.
12584 echo "$f";;
12585 *) # Relative
12586 if test -f "$f"; then
12587 # Build tree
12588 echo "$f"
12589 elif test -f "$srcdir/$f"; then
12590 # Source tree
12591 echo "$srcdir/$f"
12592 else
12593 # /dev/null tree
12594 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12595echo "$as_me: error: cannot find input file: $f" >&2;}
12596 { (exit 1); exit 1; }; }
12597 fi;;
12598 esac
12599 done` || { (exit 1); exit 1; }
12600 # Remove the trailing spaces.
12601 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12602
12603_ACEOF
12604
12605# Transform confdefs.h into two sed scripts, `conftest.defines' and
12606# `conftest.undefs', that substitutes the proper values into
12607# config.h.in to produce config.h. The first handles `#define'
12608# templates, and the second `#undef' templates.
12609# And first: Protect against being on the right side of a sed subst in
12610# config.status. Protect against being in an unquoted here document
12611# in config.status.
12612rm -f conftest.defines conftest.undefs
12613# Using a here document instead of a string reduces the quoting nightmare.
12614# Putting comments in sed scripts is not portable.
12615#
12616# `end' is used to avoid that the second main sed command (meant for
12617# 0-ary CPP macros) applies to n-ary macro definitions.
12618# See the Autoconf documentation for `clear'.
12619cat >confdef2sed.sed <<\_ACEOF
12620s/[\\&,]/\\&/g
12621s,[\\$`],\\&,g
12622t clear
12623: clear
12624s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12625t end
12626s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12627: end
12628_ACEOF
12629# If some macros were called several times there might be several times
12630# the same #defines, which is useless. Nevertheless, we may not want to
12631# sort them, since we want the *last* AC-DEFINE to be honored.
12632uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12633sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12634rm -f confdef2sed.sed
12635
12636# This sed command replaces #undef with comments. This is necessary, for
252b5132
RH
12637# example, in the case of _POSIX_SOURCE, which is predefined and required
12638# on some systems where configure will not decide to define it.
0ab6f085
AM
12639cat >>conftest.undefs <<\_ACEOF
12640s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12641_ACEOF
12642
12643# Break up conftest.defines because some shells have a limit on the size
12644# of here documents, and old seds have small limits too (100 cmds).
12645echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12646echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12647echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12648echo ' :' >>$CONFIG_STATUS
12649rm -f conftest.tail
12650while grep . conftest.defines >/dev/null
6bf9431b 12651do
0ab6f085
AM
12652 # Write a limited-size here document to $tmp/defines.sed.
12653 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12654 # Speed up: don't consider the non `#define' lines.
12655 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12656 # Work around the forget-to-reset-the-flag bug.
12657 echo 't clr' >>$CONFIG_STATUS
12658 echo ': clr' >>$CONFIG_STATUS
12659 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6bf9431b 12660 echo 'CEOF
0ab6f085
AM
12661 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12662 rm -f $tmp/in
12663 mv $tmp/out $tmp/in
12664' >>$CONFIG_STATUS
12665 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6bf9431b
BE
12666 rm -f conftest.defines
12667 mv conftest.tail conftest.defines
12668done
0ab6f085
AM
12669rm -f conftest.defines
12670echo ' fi # grep' >>$CONFIG_STATUS
12671echo >>$CONFIG_STATUS
12672
12673# Break up conftest.undefs because some shells have a limit on the size
12674# of here documents, and old seds have small limits too (100 cmds).
12675echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12676rm -f conftest.tail
12677while grep . conftest.undefs >/dev/null
12678do
12679 # Write a limited-size here document to $tmp/undefs.sed.
12680 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12681 # Speed up: don't consider the non `#undef'
12682 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12683 # Work around the forget-to-reset-the-flag bug.
12684 echo 't clr' >>$CONFIG_STATUS
12685 echo ': clr' >>$CONFIG_STATUS
12686 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12687 echo 'CEOF
12688 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12689 rm -f $tmp/in
12690 mv $tmp/out $tmp/in
12691' >>$CONFIG_STATUS
12692 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12693 rm -f conftest.undefs
12694 mv conftest.tail conftest.undefs
12695done
12696rm -f conftest.undefs
6bf9431b
BE
12697
12698cat >>$CONFIG_STATUS <<\_ACEOF
0ab6f085
AM
12699 # Let's still pretend it is `configure' which instantiates (i.e., don't
12700 # use $as_me), people would be surprised to read:
12701 # /* config.h. Generated by config.status. */
12702 if test x"$ac_file" = x-; then
12703 echo "/* Generated by configure. */" >$tmp/config.h
12704 else
12705 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12706 fi
12707 cat $tmp/in >>$tmp/config.h
12708 rm -f $tmp/in
6bf9431b 12709 if test x"$ac_file" != x-; then
0ab6f085 12710 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6bf9431b
BE
12711 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12712echo "$as_me: $ac_file is unchanged" >&6;}
12713 else
0ab6f085
AM
12714 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12715$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12716 X"$ac_file" : 'X\(//\)[^/]' \| \
12717 X"$ac_file" : 'X\(//\)$' \| \
12718 X"$ac_file" : 'X\(/\)' \| \
12719 . : '\(.\)' 2>/dev/null ||
12720echo X"$ac_file" |
12721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12723 /^X\(\/\/\)$/{ s//\1/; q; }
12724 /^X\(\/\).*/{ s//\1/; q; }
12725 s/.*/./; q'`
12726 { if $as_mkdir_p; then
12727 mkdir -p "$ac_dir"
12728 else
12729 as_dir="$ac_dir"
12730 as_dirs=
12731 while test ! -d "$as_dir"; do
12732 as_dirs="$as_dir $as_dirs"
12733 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12734$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12735 X"$as_dir" : 'X\(//\)[^/]' \| \
12736 X"$as_dir" : 'X\(//\)$' \| \
12737 X"$as_dir" : 'X\(/\)' \| \
12738 . : '\(.\)' 2>/dev/null ||
12739echo X"$as_dir" |
12740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12742 /^X\(\/\/\)$/{ s//\1/; q; }
12743 /^X\(\/\).*/{ s//\1/; q; }
12744 s/.*/./; q'`
12745 done
12746 test ! -n "$as_dirs" || mkdir $as_dirs
12747 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12748echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12749 { (exit 1); exit 1; }; }; }
12750
6bf9431b 12751 rm -f $ac_file
0ab6f085 12752 mv $tmp/config.h $ac_file
252b5132 12753 fi
6bf9431b 12754 else
0ab6f085
AM
12755 cat $tmp/config.h
12756 rm -f $tmp/config.h
252b5132 12757 fi
6bf9431b
BE
12758# Compute $ac_file's index in $config_headers.
12759_am_stamp_count=1
12760for _am_header in $config_headers :; do
12761 case $_am_header in
12762 $ac_file | $ac_file:* )
12763 break ;;
12764 * )
12765 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12766 esac
12767done
0ab6f085 12768echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6bf9431b
BE
12769$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12770 X$ac_file : 'X\(//\)[^/]' \| \
12771 X$ac_file : 'X\(//\)$' \| \
0ab6f085
AM
12772 X$ac_file : 'X\(/\)' \| \
12773 . : '\(.\)' 2>/dev/null ||
6bf9431b 12774echo X$ac_file |
0ab6f085
AM
12775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12777 /^X\(\/\/\)$/{ s//\1/; q; }
12778 /^X\(\/\).*/{ s//\1/; q; }
12779 s/.*/./; q'`/stamp-h$_am_stamp_count
12780done
12781_ACEOF
12782cat >>$CONFIG_STATUS <<\_ACEOF
6bf9431b 12783
0ab6f085
AM
12784#
12785# CONFIG_COMMANDS section.
12786#
12787for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12788 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12789 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12790 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12791$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12792 X"$ac_dest" : 'X\(//\)[^/]' \| \
12793 X"$ac_dest" : 'X\(//\)$' \| \
12794 X"$ac_dest" : 'X\(/\)' \| \
12795 . : '\(.\)' 2>/dev/null ||
12796echo X"$ac_dest" |
12797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12799 /^X\(\/\/\)$/{ s//\1/; q; }
12800 /^X\(\/\).*/{ s//\1/; q; }
12801 s/.*/./; q'`
12802 { if $as_mkdir_p; then
12803 mkdir -p "$ac_dir"
12804 else
12805 as_dir="$ac_dir"
12806 as_dirs=
12807 while test ! -d "$as_dir"; do
12808 as_dirs="$as_dir $as_dirs"
12809 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12810$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12811 X"$as_dir" : 'X\(//\)[^/]' \| \
12812 X"$as_dir" : 'X\(//\)$' \| \
12813 X"$as_dir" : 'X\(/\)' \| \
12814 . : '\(.\)' 2>/dev/null ||
12815echo X"$as_dir" |
12816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12818 /^X\(\/\/\)$/{ s//\1/; q; }
12819 /^X\(\/\).*/{ s//\1/; q; }
12820 s/.*/./; q'`
12821 done
12822 test ! -n "$as_dirs" || mkdir $as_dirs
12823 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12824echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12825 { (exit 1); exit 1; }; }; }
12826
12827 ac_builddir=.
12828
12829if test "$ac_dir" != .; then
12830 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12831 # A "../" for each directory in $ac_dir_suffix.
12832 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12833else
12834 ac_dir_suffix= ac_top_builddir=
12835fi
12836
12837case $srcdir in
12838 .) # No --srcdir option. We are building in place.
12839 ac_srcdir=.
12840 if test -z "$ac_top_builddir"; then
12841 ac_top_srcdir=.
12842 else
12843 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12844 fi ;;
12845 [\\/]* | ?:[\\/]* ) # Absolute path.
12846 ac_srcdir=$srcdir$ac_dir_suffix;
12847 ac_top_srcdir=$srcdir ;;
12848 *) # Relative path.
12849 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12850 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12851esac
12852
12853# Do not use `cd foo && pwd` to compute absolute paths, because
12854# the directories may not exist.
12855case `pwd` in
12856.) ac_abs_builddir="$ac_dir";;
12857*)
12858 case "$ac_dir" in
12859 .) ac_abs_builddir=`pwd`;;
12860 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12861 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12862 esac;;
12863esac
12864case $ac_abs_builddir in
12865.) ac_abs_top_builddir=${ac_top_builddir}.;;
12866*)
12867 case ${ac_top_builddir}. in
12868 .) ac_abs_top_builddir=$ac_abs_builddir;;
12869 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12870 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12871 esac;;
12872esac
12873case $ac_abs_builddir in
12874.) ac_abs_srcdir=$ac_srcdir;;
12875*)
12876 case $ac_srcdir in
12877 .) ac_abs_srcdir=$ac_abs_builddir;;
12878 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12879 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12880 esac;;
12881esac
12882case $ac_abs_builddir in
12883.) ac_abs_top_srcdir=$ac_top_srcdir;;
12884*)
12885 case $ac_top_srcdir in
12886 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12887 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12888 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12889 esac;;
12890esac
6bf9431b
BE
12891
12892
0ab6f085
AM
12893 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12894echo "$as_me: executing $ac_dest commands" >&6;}
12895 case $ac_dest in
12896 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6bf9431b
BE
12897 # Strip MF so we end up with the name of the file.
12898 mf=`echo "$mf" | sed -e 's/:.*$//'`
12899 # Check whether this is an Automake generated Makefile or not.
12900 # We used to match only the files named `Makefile.in', but
12901 # some people rename them; so instead we look at the file content.
12902 # Grep'ing the first line is not enough: some people post-process
12903 # each Makefile.in and add a new line on top of each file to say so.
12904 # So let's grep whole file.
12905 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
0ab6f085 12906 dirpart=`(dirname "$mf") 2>/dev/null ||
6bf9431b
BE
12907$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12908 X"$mf" : 'X\(//\)[^/]' \| \
12909 X"$mf" : 'X\(//\)$' \| \
0ab6f085
AM
12910 X"$mf" : 'X\(/\)' \| \
12911 . : '\(.\)' 2>/dev/null ||
6bf9431b 12912echo X"$mf" |
0ab6f085
AM
12913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12915 /^X\(\/\/\)$/{ s//\1/; q; }
12916 /^X\(\/\).*/{ s//\1/; q; }
12917 s/.*/./; q'`
6bf9431b
BE
12918 else
12919 continue
12920 fi
df76639a
AM
12921 # Extract the definition of DEPDIR, am__include, and am__quote
12922 # from the Makefile without running `make'.
6bf9431b
BE
12923 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12924 test -z "$DEPDIR" && continue
df76639a
AM
12925 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12926 test -z "am__include" && continue
12927 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6bf9431b
BE
12928 # When using ansi2knr, U may be empty or an underscore; expand it
12929 U=`sed -n 's/^U = //p' < "$mf"`
df76639a
AM
12930 # Find all dependency output files, they are included files with
12931 # $(DEPDIR) in their names. We invoke sed twice because it is the
12932 # simplest approach to changing $(DEPDIR) to its actual value in the
12933 # expansion.
12934 for file in `sed -n "
12935 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6bf9431b
BE
12936 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12937 # Make sure the directory exists.
12938 test -f "$dirpart/$file" && continue
0ab6f085 12939 fdir=`(dirname "$file") 2>/dev/null ||
6bf9431b
BE
12940$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12941 X"$file" : 'X\(//\)[^/]' \| \
12942 X"$file" : 'X\(//\)$' \| \
0ab6f085
AM
12943 X"$file" : 'X\(/\)' \| \
12944 . : '\(.\)' 2>/dev/null ||
6bf9431b 12945echo X"$file" |
0ab6f085
AM
12946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12948 /^X\(\/\/\)$/{ s//\1/; q; }
12949 /^X\(\/\).*/{ s//\1/; q; }
12950 s/.*/./; q'`
12951 { if $as_mkdir_p; then
12952 mkdir -p $dirpart/$fdir
12953 else
12954 as_dir=$dirpart/$fdir
6bf9431b 12955 as_dirs=
0ab6f085
AM
12956 while test ! -d "$as_dir"; do
12957 as_dirs="$as_dir $as_dirs"
12958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6bf9431b
BE
12959$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12960 X"$as_dir" : 'X\(//\)[^/]' \| \
12961 X"$as_dir" : 'X\(//\)$' \| \
0ab6f085
AM
12962 X"$as_dir" : 'X\(/\)' \| \
12963 . : '\(.\)' 2>/dev/null ||
6bf9431b 12964echo X"$as_dir" |
0ab6f085
AM
12965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12967 /^X\(\/\/\)$/{ s//\1/; q; }
12968 /^X\(\/\).*/{ s//\1/; q; }
12969 s/.*/./; q'`
6bf9431b 12970 done
0ab6f085
AM
12971 test ! -n "$as_dirs" || mkdir $as_dirs
12972 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12973echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6bf9431b 12974 { (exit 1); exit 1; }; }; }
0ab6f085 12975
6bf9431b
BE
12976 # echo "creating $dirpart/$file"
12977 echo '# dummy' > "$dirpart/$file"
12978 done
12979done
d7040cdb 12980 ;;
0ab6f085 12981 libtool )
d7040cdb
SE
12982
12983 # See if we are running on zsh, and set the options which allow our
12984 # commands through without removal of \ escapes.
12985 if test -n "${ZSH_VERSION+set}" ; then
12986 setopt NO_GLOB_SUBST
12987 fi
12988
12989 cfgfile="${ofile}T"
12990 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12991 $RM "$cfgfile"
12992
12993 cat <<_LT_EOF >> "$cfgfile"
12994#! $SHELL
12995
12996# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12997# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12998# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12999# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13000#
13001# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13002# 2006, 2007 Free Software Foundation, Inc.
13003#
13004# This file is part of GNU Libtool:
13005# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13006#
13007# This program is free software; you can redistribute it and/or modify
13008# it under the terms of the GNU General Public License as published by
13009# the Free Software Foundation; either version 2 of the License, or
13010# (at your option) any later version.
13011#
13012# This program is distributed in the hope that it will be useful, but
13013# WITHOUT ANY WARRANTY; without even the implied warranty of
13014# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13015# General Public License for more details.
13016#
13017# You should have received a copy of the GNU General Public License
13018# along with this program; if not, a copy can be downloaded from
13019# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13020# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13021# MA 02110-1301, USA.
13022#
13023# As a special exception to the GNU General Public License, if you
13024# distribute this file as part of a program that contains a
13025# configuration script generated by Autoconf, you may include it under
13026# the same distribution terms that you use for the rest of that program.
13027
13028
13029# The names of the tagged configurations supported by this script.
13030available_tags=""
13031
13032# ### BEGIN LIBTOOL CONFIG
13033
13034# Which release of libtool.m4 was used?
13035macro_version=$macro_version
13036macro_revision=$macro_revision
13037
13038# Whether or not to build shared libraries.
13039build_libtool_libs=$enable_shared
13040
13041# Whether or not to build static libraries.
13042build_old_libs=$enable_static
13043
13044# What type of objects to build.
13045pic_mode=$pic_mode
13046
13047# Whether or not to optimize for fast installation.
13048fast_install=$enable_fast_install
13049
13050# The host system.
13051host_alias=$host_alias
13052host=$host
13053host_os=$host_os
13054
13055# The build system.
13056build_alias=$build_alias
13057build=$build
13058build_os=$build_os
13059
13060# A sed program that does not truncate output.
13061SED=$lt_SED
13062
13063# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13064Xsed="\$SED -e 1s/^X//"
13065
13066# A grep program that handles long lines.
13067GREP=$lt_GREP
13068
13069# An ERE matcher.
13070EGREP=$lt_EGREP
13071
13072# A literal string matcher.
13073FGREP=$lt_FGREP
13074
13075# A BSD- or MS-compatible name lister.
13076NM=$lt_NM
13077
13078# Whether we need soft or hard links.
13079LN_S=$lt_LN_S
13080
13081# What is the maximum length of a command?
13082max_cmd_len=$max_cmd_len
13083
13084# Object file suffix (normally "o").
13085objext=$ac_objext
13086
13087# Executable file suffix (normally "").
13088exeext=$exeext
13089
13090# whether the shell understands "unset".
13091lt_unset=$lt_unset
13092
13093# turn spaces into newlines.
13094SP2NL=$lt_lt_SP2NL
13095
13096# turn newlines into spaces.
13097NL2SP=$lt_lt_NL2SP
13098
13099# How to create reloadable object files.
13100reload_flag=$lt_reload_flag
13101reload_cmds=$lt_reload_cmds
13102
13103# Method to check whether dependent libraries are shared objects.
13104deplibs_check_method=$lt_deplibs_check_method
13105
13106# Command to use when deplibs_check_method == "file_magic".
13107file_magic_cmd=$lt_file_magic_cmd
13108
13109# The archiver.
13110AR=$lt_AR
13111AR_FLAGS=$lt_AR_FLAGS
13112
13113# A symbol stripping program.
13114STRIP=$lt_STRIP
13115
13116# Commands used to install an old-style archive.
13117RANLIB=$lt_RANLIB
13118old_postinstall_cmds=$lt_old_postinstall_cmds
13119old_postuninstall_cmds=$lt_old_postuninstall_cmds
13120
13121# A C compiler.
13122LTCC=$lt_CC
13123
13124# LTCC compiler flags.
13125LTCFLAGS=$lt_CFLAGS
13126
13127# Take the output of nm and produce a listing of raw symbols and C names.
13128global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13129
13130# Transform the output of nm in a proper C declaration.
13131global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13132
13133# Transform the output of nm in a C name address pair.
13134global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13135
13136# The name of the directory that contains temporary libtool files.
13137objdir=$objdir
13138
13139# Shell to use when invoking shell scripts.
13140SHELL=$lt_SHELL
13141
13142# An echo program that does not interpret backslashes.
13143ECHO=$lt_ECHO
13144
13145# Used to examine libraries when file_magic_cmd begins with "file".
13146MAGIC_CMD=$MAGIC_CMD
13147
13148# Must we lock files when doing compilation?
13149need_locks=$lt_need_locks
13150
13151# Old archive suffix (normally "a").
13152libext=$libext
13153
13154# Shared library suffix (normally ".so").
13155shrext_cmds=$lt_shrext_cmds
13156
13157# The commands to extract the exported symbol list from a shared archive.
13158extract_expsyms_cmds=$lt_extract_expsyms_cmds
13159
13160# Variables whose values should be saved in libtool wrapper scripts and
13161# restored at link time.
13162variables_saved_for_relink=$lt_variables_saved_for_relink
13163
13164# Do we need the "lib" prefix for modules?
13165need_lib_prefix=$need_lib_prefix
13166
13167# Do we need a version for libraries?
13168need_version=$need_version
13169
13170# Library versioning type.
13171version_type=$version_type
13172
13173# Shared library runtime path variable.
13174runpath_var=$runpath_var
13175
13176# Shared library path variable.
13177shlibpath_var=$shlibpath_var
13178
13179# Is shlibpath searched before the hard-coded library search path?
13180shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13181
13182# Format of library name prefix.
13183libname_spec=$lt_libname_spec
13184
13185# List of archive names. First name is the real one, the rest are links.
13186# The last name is the one that the linker finds with -lNAME
13187library_names_spec=$lt_library_names_spec
13188
13189# The coded name of the library, if different from the real name.
13190soname_spec=$lt_soname_spec
13191
13192# Command to use after installation of a shared archive.
13193postinstall_cmds=$lt_postinstall_cmds
13194
13195# Command to use after uninstallation of a shared archive.
13196postuninstall_cmds=$lt_postuninstall_cmds
13197
13198# Commands used to finish a libtool library installation in a directory.
13199finish_cmds=$lt_finish_cmds
13200
13201# As "finish_cmds", except a single script fragment to be evaled but
13202# not shown.
13203finish_eval=$lt_finish_eval
13204
13205# Whether we should hardcode library paths into libraries.
13206hardcode_into_libs=$hardcode_into_libs
13207
13208# Compile-time system search path for libraries.
13209sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13210
13211# Run-time system search path for libraries.
13212sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13213
13214# Whether dlopen is supported.
13215dlopen_support=$enable_dlopen
13216
13217# Whether dlopen of programs is supported.
13218dlopen_self=$enable_dlopen_self
13219
13220# Whether dlopen of statically linked programs is supported.
13221dlopen_self_static=$enable_dlopen_self_static
13222
13223# Commands to strip libraries.
13224old_striplib=$lt_old_striplib
13225striplib=$lt_striplib
13226
13227
13228# The linker used to build libraries.
13229LD=$lt_LD
13230
13231# Commands used to build an old-style archive.
13232old_archive_cmds=$lt_old_archive_cmds
13233
13234# A language specific compiler.
13235CC=$lt_compiler
13236
13237# Is the compiler the GNU compiler?
13238with_gcc=$GCC
13239
13240# Compiler flag to turn off builtin functions.
13241no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13242
13243# How to pass a linker flag through the compiler.
13244wl=$lt_lt_prog_compiler_wl
13245
13246# Additional compiler flags for building library objects.
13247pic_flag=$lt_lt_prog_compiler_pic
13248
13249# Compiler flag to prevent dynamic linking.
13250link_static_flag=$lt_lt_prog_compiler_static
13251
13252# Does compiler simultaneously support -c and -o options?
13253compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13254
13255# Whether or not to add -lc for building shared libraries.
13256build_libtool_need_lc=$archive_cmds_need_lc
13257
13258# Whether or not to disallow shared libs when runtime libs are static.
13259allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13260
13261# Compiler flag to allow reflexive dlopens.
13262export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13263
13264# Compiler flag to generate shared objects directly from archives.
13265whole_archive_flag_spec=$lt_whole_archive_flag_spec
13266
13267# Whether the compiler copes with passing no objects directly.
13268compiler_needs_object=$lt_compiler_needs_object
13269
13270# Create an old-style archive from a shared archive.
13271old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13272
13273# Create a temporary old-style archive to link instead of a shared archive.
13274old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13275
13276# Commands used to build a shared archive.
13277archive_cmds=$lt_archive_cmds
13278archive_expsym_cmds=$lt_archive_expsym_cmds
13279
13280# Commands used to build a loadable module if different from building
13281# a shared archive.
13282module_cmds=$lt_module_cmds
13283module_expsym_cmds=$lt_module_expsym_cmds
13284
13285# Whether we are building with GNU ld or not.
13286with_gnu_ld=$lt_with_gnu_ld
13287
13288# Flag that allows shared libraries with undefined symbols to be built.
13289allow_undefined_flag=$lt_allow_undefined_flag
13290
13291# Flag that enforces no undefined symbols.
13292no_undefined_flag=$lt_no_undefined_flag
13293
13294# Flag to hardcode \$libdir into a binary during linking.
13295# This must work even if \$libdir does not exist
13296hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13297
13298# If ld is used when linking, flag to hardcode \$libdir into a binary
13299# during linking. This must work even if \$libdir does not exist.
13300hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13301
13302# Whether we need a single "-rpath" flag with a separated argument.
13303hardcode_libdir_separator=$lt_hardcode_libdir_separator
13304
13305# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13306# DIR into the resulting binary.
13307hardcode_direct=$hardcode_direct
13308
13309# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13310# DIR into the resulting binary and the resulting library dependency is
13311# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13312# library is relocated.
13313hardcode_direct_absolute=$hardcode_direct_absolute
13314
13315# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13316# into the resulting binary.
13317hardcode_minus_L=$hardcode_minus_L
13318
13319# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13320# into the resulting binary.
13321hardcode_shlibpath_var=$hardcode_shlibpath_var
13322
13323# Set to "yes" if building a shared library automatically hardcodes DIR
13324# into the library and all subsequent libraries and executables linked
13325# against it.
13326hardcode_automatic=$hardcode_automatic
13327
13328# Set to yes if linker adds runtime paths of dependent libraries
13329# to runtime path list.
13330inherit_rpath=$inherit_rpath
13331
13332# Whether libtool must link a program against all its dependency libraries.
13333link_all_deplibs=$link_all_deplibs
13334
13335# Fix the shell variable \$srcfile for the compiler.
13336fix_srcfile_path=$lt_fix_srcfile_path
13337
13338# Set to "yes" if exported symbols are required.
13339always_export_symbols=$always_export_symbols
13340
13341# The commands to list exported symbols.
13342export_symbols_cmds=$lt_export_symbols_cmds
13343
13344# Symbols that should not be listed in the preloaded symbols.
13345exclude_expsyms=$lt_exclude_expsyms
13346
13347# Symbols that must always be exported.
13348include_expsyms=$lt_include_expsyms
13349
13350# Commands necessary for linking programs (against libraries) with templates.
13351prelink_cmds=$lt_prelink_cmds
13352
13353# Specify filename containing input files.
13354file_list_spec=$lt_file_list_spec
13355
13356# How to hardcode a shared library path into an executable.
13357hardcode_action=$hardcode_action
13358
13359# ### END LIBTOOL CONFIG
13360
13361_LT_EOF
13362
13363 case $host_os in
13364 aix3*)
13365 cat <<\_LT_EOF >> "$cfgfile"
13366# AIX sometimes has problems with the GCC collect2 program. For some
13367# reason, if we set the COLLECT_NAMES environment variable, the problems
13368# vanish in a puff of smoke.
13369if test "X${COLLECT_NAMES+set}" != Xset; then
13370 COLLECT_NAMES=
13371 export COLLECT_NAMES
13372fi
13373_LT_EOF
13374 ;;
13375 esac
13376
13377
13378ltmain="$ac_aux_dir/ltmain.sh"
13379
13380
13381 # We use sed instead of cat because bash on DJGPP gets confused if
13382 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13383 # text mode, it properly converts lines to CR/LF. This bash problem
13384 # is reportedly fixed, but why not run on old versions too?
13385 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13386 || (rm -f "$cfgfile"; exit 1)
13387
13388 case $xsi_shell in
13389 yes)
13390 cat << \_LT_EOF >> "$cfgfile"
13391# func_dirname file append nondir_replacement
13392# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13393# otherwise set result to NONDIR_REPLACEMENT.
13394func_dirname ()
13395{
13396 case ${1} in
13397 */*) func_dirname_result="${1%/*}${2}" ;;
13398 * ) func_dirname_result="${3}" ;;
13399 esac
13400}
13401
13402# func_basename file
13403func_basename ()
13404{
13405 func_basename_result="${1##*/}"
13406}
13407
13408# func_stripname prefix suffix name
13409# strip PREFIX and SUFFIX off of NAME.
13410# PREFIX and SUFFIX must not contain globbing or regex special
13411# characters, hashes, percent signs, but SUFFIX may contain a leading
13412# dot (in which case that matches only a dot).
13413func_stripname ()
13414{
13415 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13416 # positional parameters, so assign one to ordinary parameter first.
13417 func_stripname_result=${3}
13418 func_stripname_result=${func_stripname_result#"${1}"}
13419 func_stripname_result=${func_stripname_result%"${2}"}
13420}
13421
13422# func_opt_split
13423func_opt_split ()
13424{
13425 func_opt_split_opt=${1%%=*}
13426 func_opt_split_arg=${1#*=}
13427}
13428
13429# func_lo2o object
13430func_lo2o ()
13431{
13432 case ${1} in
13433 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13434 *) func_lo2o_result=${1} ;;
13435 esac
13436}
13437_LT_EOF
13438 ;;
13439 *) # Bourne compatible functions.
13440 cat << \_LT_EOF >> "$cfgfile"
13441# func_dirname file append nondir_replacement
13442# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13443# otherwise set result to NONDIR_REPLACEMENT.
13444func_dirname ()
13445{
13446 # Extract subdirectory from the argument.
13447 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13448 if test "X$func_dirname_result" = "X${1}"; then
13449 func_dirname_result="${3}"
13450 else
13451 func_dirname_result="$func_dirname_result${2}"
13452 fi
13453}
13454
13455# func_basename file
13456func_basename ()
13457{
13458 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13459}
13460
13461# func_stripname prefix suffix name
13462# strip PREFIX and SUFFIX off of NAME.
13463# PREFIX and SUFFIX must not contain globbing or regex special
13464# characters, hashes, percent signs, but SUFFIX may contain a leading
13465# dot (in which case that matches only a dot).
13466# func_strip_suffix prefix name
13467func_stripname ()
13468{
13469 case ${2} in
13470 .*) func_stripname_result=`$ECHO "X${3}" \
13471 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13472 *) func_stripname_result=`$ECHO "X${3}" \
13473 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13474 esac
13475}
13476
13477# sed scripts:
13478my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13479my_sed_long_arg='1s/^-[^=]*=//'
13480
13481# func_opt_split
13482func_opt_split ()
13483{
13484 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13485 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13486}
13487
13488# func_lo2o object
13489func_lo2o ()
13490{
13491 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13492}
13493_LT_EOF
13494esac
13495
13496case $lt_shell_append in
13497 yes)
13498 cat << \_LT_EOF >> "$cfgfile"
13499
13500# func_append var value
13501# Append VALUE to the end of shell variable VAR.
13502func_append ()
13503{
13504 eval "$1+=\$2"
13505}
13506_LT_EOF
13507 ;;
13508 *)
13509 cat << \_LT_EOF >> "$cfgfile"
13510
13511# func_append var value
13512# Append VALUE to the end of shell variable VAR.
13513func_append ()
13514{
13515 eval "$1=\$$1\$2"
13516}
13517_LT_EOF
13518 ;;
13519 esac
13520
13521
13522 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13523 || (rm -f "$cfgfile"; exit 1)
13524
13525 mv -f "$cfgfile" "$ofile" ||
13526 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13527 chmod +x "$ofile"
13528
6bf9431b 13529 ;;
0ab6f085 13530 default-1 )
20e95c23
DJ
13531 for ac_file in $CONFIG_FILES; do
13532 # Support "outfile[:infile[:infile...]]"
13533 case "$ac_file" in
13534 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13535 esac
13536 # PO directories have a Makefile.in generated from Makefile.in.in.
13537 case "$ac_file" in */Makefile.in)
13538 # Adjust a relative srcdir.
13539 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13540 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13541 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13542 # In autoconf-2.13 it is called $ac_given_srcdir.
13543 # In autoconf-2.50 it is called $srcdir.
13544 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13545 case "$ac_given_srcdir" in
13546 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13547 /*) top_srcdir="$ac_given_srcdir" ;;
13548 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13549 esac
13550 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13551 rm -f "$ac_dir/POTFILES"
13552 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13553 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13554 POMAKEFILEDEPS="POTFILES.in"
13555 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13556 # on $ac_dir but don't depend on user-specified configuration
13557 # parameters.
13558 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13559 # The LINGUAS file contains the set of available languages.
13560 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13561 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13562 fi
13563 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13564 # Hide the ALL_LINGUAS assigment from automake.
13565 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13566 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13567 else
13568 # The set of available languages was given in configure.in.
13569 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13570 fi
13571 case "$ac_given_srcdir" in
13572 .) srcdirpre= ;;
13573 *) srcdirpre='$(srcdir)/' ;;
13574 esac
13575 POFILES=
13576 GMOFILES=
13577 UPDATEPOFILES=
13578 DUMMYPOFILES=
13579 for lang in $ALL_LINGUAS; do
13580 POFILES="$POFILES $srcdirpre$lang.po"
13581 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13582 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13583 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13584 done
13585 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13586 # environment variable.
13587 INST_LINGUAS=
13588 if test -n "$ALL_LINGUAS"; then
13589 for presentlang in $ALL_LINGUAS; do
13590 useit=no
13591 if test "%UNSET%" != "$LINGUAS"; then
13592 desiredlanguages="$LINGUAS"
13593 else
13594 desiredlanguages="$ALL_LINGUAS"
13595 fi
13596 for desiredlang in $desiredlanguages; do
13597 # Use the presentlang catalog if desiredlang is
13598 # a. equal to presentlang, or
13599 # b. a variant of presentlang (because in this case,
13600 # presentlang can be used as a fallback for messages
13601 # which are not translated in the desiredlang catalog).
13602 case "$desiredlang" in
13603 "$presentlang"*) useit=yes;;
13604 esac
13605 done
13606 if test $useit = yes; then
13607 INST_LINGUAS="$INST_LINGUAS $presentlang"
13608 fi
13609 done
13610 fi
13611 CATALOGS=
13612 if test -n "$INST_LINGUAS"; then
13613 for lang in $INST_LINGUAS; do
13614 CATALOGS="$CATALOGS $lang.gmo"
13615 done
13616 fi
13617 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13618 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"
13619 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13620 if test -f "$f"; then
13621 case "$f" in
13622 *.orig | *.bak | *~) ;;
13623 *) cat "$f" >> "$ac_dir/Makefile" ;;
13624 esac
13625 fi
13626 done
13627 fi
13628 ;;
13629 esac
13630 done ;;
6bf9431b 13631 esac
0ab6f085
AM
13632done
13633_ACEOF
6bf9431b 13634
0ab6f085 13635cat >>$CONFIG_STATUS <<\_ACEOF
6bf9431b
BE
13636
13637{ (exit 0); exit 0; }
13638_ACEOF
252b5132 13639chmod +x $CONFIG_STATUS
6bf9431b
BE
13640ac_clean_files=$ac_clean_files_save
13641
13642
13643# configure is writing to config.log, and then calls config.status.
13644# config.status does its own redirection, appending to config.log.
13645# Unfortunately, on DOS this fails, as config.log is still kept open
13646# by configure, so config.status won't be able to write to it; its
13647# output is simply discarded. So we exec the FD to /dev/null,
13648# effectively closing config.log, so it can be properly (re)opened and
13649# appended to by config.status. When coming back to configure, we
13650# need to make the FD available again.
13651if test "$no_create" != yes; then
13652 ac_cs_success=:
13653 ac_config_status_args=
13654 test "$silent" = yes &&
13655 ac_config_status_args="$ac_config_status_args --quiet"
13656 exec 5>/dev/null
13657 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13658 exec 5>>config.log
13659 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13660 # would make configure fail if this is the last instruction.
13661 $ac_cs_success || { (exit 1); exit 1; }
13662fi
252b5132 13663
This page took 1.05917 seconds and 4 git commands to generate.