]> jfr.im git - solanum.git/blame - libratbox/configure
Merge branch 'isupport-charset' of github.com:grawity/charybdis
[solanum.git] / libratbox / configure
CommitLineData
db137867
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
08c2568c 3# Generated by GNU Autoconf 2.68 for libratbox devel.
db137867 4#
030272f3 5# $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
db137867 6#
96f4052b 7#
db137867 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
08c2568c
EM
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
96f4052b 11#
7083c021 12#
db137867
AC
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
7083c021
AC
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
db137867
AC
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
7083c021 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
db137867
AC
22 emulate sh
23 NULLCMD=:
030272f3 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
db137867
AC
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
7083c021
AC
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
db137867 34esac
db137867
AC
35fi
36
37
030272f3
VY
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7083c021
AC
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
030272f3
VY
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
db137867 58 else
030272f3
VY
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
7083c021 62 case $arg in #(
030272f3
VY
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
db137867 71 fi
030272f3
VY
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
db137867
AC
83fi
84
db137867
AC
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
db137867
AC
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
08c2568c 94as_myself=
7083c021 95case $0 in #((
db137867
AC
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
7083c021
AC
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
db137867
AC
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
030272f3 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7083c021 115 exit 1
db137867
AC
116fi
117
7083c021
AC
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
db137867
AC
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
030272f3
VY
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
db137867 135
7083c021
AC
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
b6d0720c
AC
177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
7083c021
AC
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
08c2568c 228 # Preserve -v and -x to the replacement shell.
7083c021
AC
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
08c2568c
EM
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
7083c021
AC
240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
250$0: including any error possibly output before this
251$0: message. Then install a modern shell, or manually run
252$0: the script under such a shell if you do have one."
253 fi
254 exit 1
255fi
256fi
257fi
258SHELL=${CONFIG_SHELL-/bin/sh}
259export SHELL
260# Unset more variables known to interfere with behavior of common tools.
261CLICOLOR_FORCE= GREP_OPTIONS=
262unset CLICOLOR_FORCE GREP_OPTIONS
263
264## --------------------- ##
265## M4sh Shell Functions. ##
266## --------------------- ##
267# as_fn_unset VAR
268# ---------------
269# Portably unset VAR.
270as_fn_unset ()
271{
272 { eval $1=; unset $1;}
273}
274as_unset=as_fn_unset
275
276# as_fn_set_status STATUS
277# -----------------------
278# Set $? to STATUS, without forking.
279as_fn_set_status ()
280{
281 return $1
282} # as_fn_set_status
283
284# as_fn_exit STATUS
285# -----------------
286# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
287as_fn_exit ()
288{
289 set +e
290 as_fn_set_status $1
291 exit $1
292} # as_fn_exit
293
294# as_fn_mkdir_p
295# -------------
296# Create "$as_dir" as a directory, including parents if necessary.
297as_fn_mkdir_p ()
298{
299
300 case $as_dir in #(
301 -*) as_dir=./$as_dir;;
302 esac
303 test -d "$as_dir" || eval $as_mkdir_p || {
304 as_dirs=
305 while :; do
306 case $as_dir in #(
307 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 *) as_qdir=$as_dir;;
309 esac
310 as_dirs="'$as_qdir' $as_dirs"
311 as_dir=`$as_dirname -- "$as_dir" ||
312$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
313 X"$as_dir" : 'X\(//\)[^/]' \| \
314 X"$as_dir" : 'X\(//\)$' \| \
315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
316$as_echo X"$as_dir" |
317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\/\)[^/].*/{
322 s//\1/
323 q
324 }
325 /^X\(\/\/\)$/{
326 s//\1/
327 q
328 }
329 /^X\(\/\).*/{
330 s//\1/
331 q
332 }
333 s/.*/./; q'`
334 test -d "$as_dir" && break
335 done
336 test -z "$as_dirs" || eval "mkdir $as_dirs"
08c2568c 337 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
338
339
340} # as_fn_mkdir_p
341# as_fn_append VAR VALUE
342# ----------------------
343# Append the text in VALUE to the end of the definition contained in VAR. Take
344# advantage of any shell optimizations that allow amortized linear growth over
345# repeated appends, instead of the typical quadratic growth present in naive
346# implementations.
347if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
348 eval 'as_fn_append ()
349 {
350 eval $1+=\$2
351 }'
352else
353 as_fn_append ()
354 {
355 eval $1=\$$1\$2
356 }
357fi # as_fn_append
358
359# as_fn_arith ARG...
360# ------------------
361# Perform arithmetic evaluation on the ARGs, and store the result in the
362# global $as_val. Take advantage of shells that can avoid forks. The arguments
363# must be portable across $(()) and expr.
364if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 eval 'as_fn_arith ()
366 {
367 as_val=$(( $* ))
368 }'
369else
370 as_fn_arith ()
371 {
372 as_val=`expr "$@" || test $? -eq 1`
373 }
374fi # as_fn_arith
375
376
08c2568c
EM
377# as_fn_error STATUS ERROR [LINENO LOG_FD]
378# ----------------------------------------
7083c021
AC
379# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
380# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
08c2568c 381# script with STATUS, using 1 if that was 0.
7083c021
AC
382as_fn_error ()
383{
08c2568c
EM
384 as_status=$1; test $as_status -eq 0 && as_status=1
385 if test "$4"; then
386 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
387 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 388 fi
08c2568c 389 $as_echo "$as_me: error: $2" >&2
7083c021
AC
390 as_fn_exit $as_status
391} # as_fn_error
392
db137867
AC
393if expr a : '\(a\)' >/dev/null 2>&1 &&
394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
395 as_expr=expr
396else
397 as_expr=false
398fi
399
400if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
401 as_basename=basename
402else
403 as_basename=false
404fi
405
7083c021
AC
406if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
407 as_dirname=dirname
408else
409 as_dirname=false
410fi
db137867 411
db137867
AC
412as_me=`$as_basename -- "$0" ||
413$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
414 X"$0" : 'X\(//\)$' \| \
415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
030272f3 416$as_echo X/"$0" |
db137867
AC
417 sed '/^.*\/\([^/][^/]*\)\/*$/{
418 s//\1/
419 q
420 }
421 /^X\/\(\/\/\)$/{
422 s//\1/
423 q
424 }
425 /^X\/\(\/\).*/{
426 s//\1/
427 q
428 }
429 s/.*/./; q'`
430
7083c021
AC
431# Avoid depending upon Character Ranges.
432as_cr_letters='abcdefghijklmnopqrstuvwxyz'
433as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
434as_cr_Letters=$as_cr_letters$as_cr_LETTERS
435as_cr_digits='0123456789'
436as_cr_alnum=$as_cr_Letters$as_cr_digits
db137867
AC
437
438
7083c021
AC
439 as_lineno_1=$LINENO as_lineno_1a=$LINENO
440 as_lineno_2=$LINENO as_lineno_2a=$LINENO
441 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
442 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
443 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
444 sed -n '
445 p
446 /[$]LINENO/=
447 ' <$as_myself |
448 sed '
449 s/[$]LINENO.*/&-/
450 t lineno
451 b
452 :lineno
453 N
454 :loop
455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 t loop
457 s/-\n.*//
458 ' >$as_me.lineno &&
459 chmod +x "$as_me.lineno" ||
460 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
db137867 461
7083c021
AC
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
db137867
AC
468}
469
7083c021
AC
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in #(((((
472-n*)
473 case `echo 'xy\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 xy) ECHO_C='\c';;
476 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 ECHO_T=' ';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
db137867 482
7083c021
AC
483rm -f conf$$ conf$$.exe conf$$.file
484if test -d conf$$.dir; then
485 rm -f conf$$.dir/conf$$.file
486else
487 rm -f conf$$.dir
488 mkdir conf$$.dir 2>/dev/null
db137867 489fi
7083c021
AC
490if (echo >conf$$.file) 2>/dev/null; then
491 if ln -s conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s='ln -s'
493 # ... but there are two gotchas:
494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
496 # In both cases, we have to default to `cp -p'.
497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
498 as_ln_s='cp -p'
499 elif ln conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s=ln
501 else
502 as_ln_s='cp -p'
503 fi
db137867 504else
7083c021 505 as_ln_s='cp -p'
db137867 506fi
7083c021
AC
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
db137867 509
7083c021
AC
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p='mkdir -p "$as_dir"'
512else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
db137867
AC
515fi
516
7083c021
AC
517if test -x / >/dev/null 2>&1; then
518 as_test_x='test -x'
db137867 519else
7083c021
AC
520 if ls -dL / >/dev/null 2>&1; then
521 as_ls_L_option=L
522 else
523 as_ls_L_option=
524 fi
525 as_test_x='
526 eval sh -c '\''
527 if test -d "$1"; then
528 test -d "$1/.";
529 else
530 case $1 in #(
531 -*)set "./$1";;
532 esac;
533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
534 ???[sx]*):;;*)false;;esac;fi
535 '\'' sh
536 '
db137867 537fi
7083c021 538as_executable_p=$as_test_x
db137867 539
7083c021
AC
540# Sed expression to map a string onto a valid CPP name.
541as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
db137867 542
7083c021
AC
543# Sed expression to map a string onto a valid variable name.
544as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
db137867 545
db137867
AC
546SHELL=${CONFIG_SHELL-/bin/sh}
547
db137867 548
96f4052b
AC
549test -n "$DJDIR" || exec 7<&0 </dev/null
550exec 6>&1
db137867
AC
551
552# Name of the host.
08c2568c 553# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
db137867
AC
554# so uname gets run too.
555ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
556
557#
558# Initializations.
559#
560ac_default_prefix=/usr/local
561ac_clean_files=
562ac_config_libobj_dir=.
563LIBOBJS=
564cross_compiling=no
565subdirs=
566MFLAGS=
567MAKEFLAGS=
db137867
AC
568
569# Identity of this package.
570PACKAGE_NAME='libratbox'
571PACKAGE_TARNAME='libratbox'
572PACKAGE_VERSION='devel'
573PACKAGE_STRING='libratbox devel'
574PACKAGE_BUGREPORT=''
7083c021 575PACKAGE_URL=''
db137867
AC
576
577ac_default_prefix=/usr/local/libratbox
578# Factoring default headers for most tests.
579ac_includes_default="\
580#include <stdio.h>
581#ifdef HAVE_SYS_TYPES_H
582# include <sys/types.h>
583#endif
584#ifdef HAVE_SYS_STAT_H
585# include <sys/stat.h>
586#endif
587#ifdef STDC_HEADERS
588# include <stdlib.h>
589# include <stddef.h>
590#else
591# ifdef HAVE_STDLIB_H
592# include <stdlib.h>
593# endif
594#endif
595#ifdef HAVE_STRING_H
596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597# include <memory.h>
598# endif
599# include <string.h>
600#endif
601#ifdef HAVE_STRINGS_H
602# include <strings.h>
603#endif
604#ifdef HAVE_INTTYPES_H
605# include <inttypes.h>
606#endif
607#ifdef HAVE_STDINT_H
608# include <stdint.h>
609#endif
610#ifdef HAVE_UNISTD_H
611# include <unistd.h>
612#endif"
613
96f4052b 614ac_header_list=
7083c021
AC
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
030272f3
VY
618LIBOBJS
619RB_PREFIX
620SSL_LIBS
621SSL_CFLAGS
622SEDOBJ
623PICFLAGS
030272f3 624ALLOCA
030272f3
VY
625MINGW_FALSE
626MINGW_TRUE
7083c021
AC
627OTOOL64
628OTOOL
629LIPO
030272f3
VY
630NMEDIT
631DSYMUTIL
b6d0720c 632MANIFEST_TOOL
030272f3 633RANLIB
b6d0720c 634ac_ct_AR
030272f3 635AR
b6d0720c 636DLLTOOL
7083c021 637OBJDUMP
030272f3 638LN_S
7083c021
AC
639NM
640ac_ct_DUMPBIN
641DUMPBIN
642LD
643FGREP
030272f3
VY
644host_os
645host_vendor
646host_cpu
647host
648build_os
649build_vendor
650build_cpu
651build
7083c021 652LIBTOOL
030272f3
VY
653TOUCH
654LN
655MV
656CP
657RM
658AS
659MAINT
660MAINTAINER_MODE_FALSE
661MAINTAINER_MODE_TRUE
662SED
663EGREP
664GREP
665CPP
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
682am__untar
683am__tar
684AMTAR
685am__leading_dot
686SET_MAKE
687AWK
688mkdir_p
689MKDIR_P
690INSTALL_STRIP_PROGRAM
691STRIP
692install_sh
693MAKEINFO
694AUTOHEADER
695AUTOMAKE
696AUTOCONF
697ACLOCAL
698VERSION
699PACKAGE
700CYGPATH_W
701am__isrc
702INSTALL_DATA
703INSTALL_SCRIPT
704INSTALL_PROGRAM
705target_alias
706host_alias
db137867 707build_alias
030272f3
VY
708LIBS
709ECHO_T
710ECHO_N
711ECHO_C
712DEFS
713mandir
714localedir
715libdir
716psdir
717pdfdir
718dvidir
719htmldir
720infodir
721docdir
722oldincludedir
723includedir
724localstatedir
725sharedstatedir
726sysconfdir
727datadir
728datarootdir
729libexecdir
730sbindir
731bindir
732program_transform_name
733prefix
734exec_prefix
7083c021 735PACKAGE_URL
030272f3
VY
736PACKAGE_BUGREPORT
737PACKAGE_STRING
738PACKAGE_VERSION
739PACKAGE_TARNAME
740PACKAGE_NAME
741PATH_SEPARATOR
742SHELL'
743ac_subst_files=''
744ac_user_opts='
745enable_option_checking
746enable_dependency_tracking
747enable_static
748enable_shared
749enable_maintainer_mode
7083c021 750with_pic
030272f3
VY
751enable_fast_install
752with_gnu_ld
b6d0720c 753with_sysroot
030272f3 754enable_libtool_lock
030272f3
VY
755enable_ipv6
756enable_openssl
030272f3
VY
757enable_assert
758enable_profile
759enable_balloc
760enable_warnings
761'
762 ac_precious_vars='build_alias
db137867
AC
763host_alias
764target_alias
db137867
AC
765CC
766CFLAGS
767LDFLAGS
030272f3 768LIBS
db137867 769CPPFLAGS
271a98fe 770CPP'
3202e249 771
db137867
AC
772
773# Initialize some variables set by options.
774ac_init_help=
775ac_init_version=false
030272f3
VY
776ac_unrecognized_opts=
777ac_unrecognized_sep=
db137867
AC
778# The variables have the same names as the options, with
779# dashes changed to underlines.
780cache_file=/dev/null
781exec_prefix=NONE
782no_create=
783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
791verbose=
792x_includes=NONE
793x_libraries=NONE
794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
800# (The list follows the same order as the GNU Coding Standards.)
801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
809includedir='${prefix}/include'
810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
820
821ac_prev=
822ac_dashdash=
823for ac_option
824do
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
830 fi
831
832 case $ac_option in
08c2568c
EM
833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *=) ac_optarg= ;;
835 *) ac_optarg=yes ;;
db137867
AC
836 esac
837
838 # Accept the important Cygnus configure options, so we can diagnose typos.
839
840 case $ac_dashdash$ac_option in
841 --)
842 ac_dashdash=yes ;;
843
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 ac_prev=bindir ;;
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 bindir=$ac_optarg ;;
848
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
853
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
860
861 --config-cache | -C)
862 cache_file=config.cache ;;
863
864 -datadir | --datadir | --datadi | --datad)
865 ac_prev=datadir ;;
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
868
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
875
876 -disable-* | --disable-*)
030272f3 877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
db137867 878 # Reject names that are not valid shell variable names.
030272f3 879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 880 as_fn_error $? "invalid feature name: $ac_useropt"
030272f3
VY
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
884 *"
885"enable_$ac_useropt"
886"*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=no ;;
db137867
AC
891
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
896
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
901
902 -enable-* | --enable-*)
030272f3 903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
db137867 904 # Reject names that are not valid shell variable names.
030272f3 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 906 as_fn_error $? "invalid feature name: $ac_useropt"
030272f3
VY
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911"enable_$ac_useropt"
912"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=\$ac_optarg ;;
db137867
AC
917
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
926
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
930
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
937
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
942
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
955
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
960
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
965
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
972
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
984
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
989
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
993
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
997
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1001
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1010
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1015
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1022
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1029
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1046
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1060
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
1065 sbindir=$ac_optarg ;;
1066
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
1076 sharedstatedir=$ac_optarg ;;
1077
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
1081 site=$ac_optarg ;;
1082
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1087
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1094
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1099
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1102
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1105
1106 -with-* | --with-*)
030272f3 1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
db137867 1108 # Reject names that are not valid shell variable names.
030272f3 1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 1110 as_fn_error $? "invalid package name: $ac_useropt"
030272f3
VY
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115"with_$ac_useropt"
1116"*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
db137867
AC
1121
1122 -without-* | --without-*)
030272f3 1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
db137867 1124 # Reject names that are not valid shell variable names.
030272f3 1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 1126 as_fn_error $? "invalid package name: $ac_useropt"
030272f3
VY
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"with_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=no ;;
db137867
AC
1137
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1141
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1148
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1155
08c2568c
EM
1156 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157Try \`$0 --help' for more information"
db137867
AC
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
7083c021
AC
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
08c2568c 1165 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1166 esac
db137867
AC
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1169
1170 *)
1171 # FIXME: should be removed in autoconf 3.0.
030272f3 1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
db137867 1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
030272f3 1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
08c2568c 1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
db137867
AC
1176 ;;
1177
1178 esac
1179done
1180
1181if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
08c2568c 1183 as_fn_error $? "missing argument to $ac_option"
db137867
AC
1184fi
1185
030272f3
VY
1186if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1188 no) ;;
08c2568c 1189 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
030272f3
VY
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 esac
1192fi
1193
1194# Check all directory arguments for consistency.
db137867
AC
1195for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1199do
1200 eval ac_val=\$$ac_var
030272f3
VY
1201 # Remove trailing slashes.
1202 case $ac_val in
1203 */ )
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1206 esac
1207 # Be sure to have absolute directory names.
db137867
AC
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
08c2568c 1212 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
db137867
AC
1213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
08c2568c
EM
1226 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used" >&2
db137867
AC
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1230 fi
1231fi
1232
1233ac_tool_prefix=
1234test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236test "$silent" = yes && exec 6>/dev/null
1237
1238
1239ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240ac_ls_di=`ls -di .` &&
1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
08c2568c 1242 as_fn_error $? "working directory cannot be determined"
db137867 1243test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
08c2568c 1244 as_fn_error $? "pwd does not report name of working directory"
db137867
AC
1245
1246
1247# Find the source files, if location was not specified.
1248if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
030272f3
VY
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256$as_echo X"$as_myself" |
db137867
AC
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\).*/{
1270 s//\1/
1271 q
1272 }
1273 s/.*/./; q'`
1274 srcdir=$ac_confdir
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 srcdir=..
1277 fi
1278else
1279 ac_srcdir_defaulted=no
1280fi
1281if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
08c2568c 1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
db137867
AC
1284fi
1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286ac_abs_confdir=`(
08c2568c 1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
db137867
AC
1288 pwd)`
1289# When building in place, set srcdir=.
1290if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1292fi
1293# Remove unnecessary trailing slashes from srcdir.
1294# Double slashes in file names in object file debugging info
1295# mess up M-x gdb in Emacs.
1296case $srcdir in
1297*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298esac
1299for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304done
1305
1306#
1307# Report the --help message.
1308#
1309if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313\`configure' configures libratbox devel to adapt to many kinds of systems.
1314
1315Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318VAR=VALUE. See below for descriptions of some of the useful variables.
1319
1320Defaults for the options are specified in brackets.
1321
1322Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
08c2568c 1327 -q, --quiet, --silent do not print \`checking ...' messages
db137867
AC
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332
1333Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
030272f3 1335 [$ac_default_prefix]
db137867 1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
030272f3 1337 [PREFIX]
db137867
AC
1338
1339By default, \`make install' will install all the files in
1340\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342for instance \`--prefix=\$HOME'.
1343
1344For better control, use the options below.
1345
1346Fine tuning of the installation directories:
030272f3
VY
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
db137867
AC
1366_ACEOF
1367
1368 cat <<\_ACEOF
1369
1370Program names:
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1374
1375System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of libratbox devel:";;
1384 esac
1385 cat <<\_ACEOF
1386
1387Optional Features:
030272f3 1388 --disable-option-checking ignore unrecognized --enable/--with options
db137867
AC
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --disable-dependency-tracking speeds up one-time build
1392 --enable-dependency-tracking do not reject slow dependency extractors
1393 --enable-static[=PKGS] build static libraries [default=no]
1394 --enable-shared[=PKGS] build shared libraries [default=yes]
1395 --enable-maintainer-mode enable make rules and dependencies not useful
1396 (and sometimes confusing) to the casual installer
1397 --enable-fast-install[=PKGS]
1398 optimize for fast installation [default=yes]
1399 --disable-libtool-lock avoid locking (might break parallel builds)
1400 --disable-ipv6 Disable IPv6 support
1401 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1402 --disable-openssl Disable OpenSSL support.
1403 --enable-assert Enable assert(). Choose between soft(warnings) and
1404 hard(aborts the daemon)
1405 --enable-profile Enable profiling
1406 --disable-balloc Disable the block allocator.
1407 --enable-warnings Enable all sorts of warnings for debugging.
1408
1409Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a949ab1a 1412 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
db137867 1413 both]
7083c021 1414 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b6d0720c
AC
1415 --with-sysroot=DIR Search for dependent libraries within DIR
1416 (or the compiler's sysroot if not specified).
db137867
AC
1417
1418Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
96f4052b 1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
db137867
AC
1425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
db137867
AC
1427
1428Use these variables to override the choices made by `configure' or to help
1429it to find libraries and programs with nonstandard names/locations.
1430
7083c021 1431Report bugs to the package provider.
db137867
AC
1432_ACEOF
1433ac_status=$?
1434fi
1435
1436if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
030272f3
VY
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441 continue
db137867
AC
1442 ac_builddir=.
1443
1444case "$ac_dir" in
1445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446*)
030272f3 1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
db137867 1448 # A ".." for each directory in $ac_dir_suffix.
030272f3 1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
db137867
AC
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 esac ;;
1454esac
1455ac_abs_top_builddir=$ac_pwd
1456ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457# for backward compatibility:
1458ac_top_builddir=$ac_top_build_prefix
1459
1460case $srcdir in
1461 .) # We are building in place.
1462 ac_srcdir=.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1469 *) # Relative name.
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473esac
1474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1484 else
030272f3 1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
db137867
AC
1486 fi || ac_status=$?
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1488 done
1489fi
1490
1491test -n "$ac_init_help" && exit $ac_status
1492if $ac_init_version; then
1493 cat <<\_ACEOF
1494libratbox configure devel
08c2568c 1495generated by GNU Autoconf 2.68
db137867 1496
08c2568c 1497Copyright (C) 2010 Free Software Foundation, Inc.
db137867
AC
1498This configure script is free software; the Free Software Foundation
1499gives unlimited permission to copy, distribute and modify it.
1500
030272f3 1501$Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
db137867
AC
1502_ACEOF
1503 exit
1504fi
7083c021
AC
1505
1506## ------------------------ ##
1507## Autoconf initialization. ##
1508## ------------------------ ##
1509
1510# ac_fn_c_try_compile LINENO
1511# --------------------------
1512# Try to compile conftest.$ac_ext, and return whether this succeeded.
1513ac_fn_c_try_compile ()
1514{
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext
1517 if { { ac_try="$ac_compile"
1518case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521esac
1522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523$as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_compile") 2>conftest.err
1525 ac_status=$?
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1530 fi
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest.$ac_objext; then :
1536 ac_retval=0
1537else
1538 $as_echo "$as_me: failed program was:" >&5
1539sed 's/^/| /' conftest.$ac_ext >&5
1540
1541 ac_retval=1
1542fi
08c2568c 1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1544 as_fn_set_status $ac_retval
7083c021
AC
1545
1546} # ac_fn_c_try_compile
1547
1548# ac_fn_c_try_cpp LINENO
1549# ----------------------
1550# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1551ac_fn_c_try_cpp ()
1552{
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 if { { ac_try="$ac_cpp conftest.$ac_ext"
1555case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558esac
1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560$as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1567 fi
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
08c2568c 1569 test $ac_status = 0; } > conftest.i && {
7083c021
AC
1570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 }; then :
1573 ac_retval=0
1574else
1575 $as_echo "$as_me: failed program was:" >&5
1576sed 's/^/| /' conftest.$ac_ext >&5
1577
1578 ac_retval=1
1579fi
08c2568c 1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1581 as_fn_set_status $ac_retval
7083c021
AC
1582
1583} # ac_fn_c_try_cpp
1584
1585# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1586# -------------------------------------------------------
1587# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1588# the include files in INCLUDES and setting the cache variable VAR
1589# accordingly.
1590ac_fn_c_check_header_mongrel ()
1591{
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
08c2568c 1593 if eval \${$3+:} false; then :
7083c021
AC
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1595$as_echo_n "checking for $2... " >&6; }
08c2568c 1596if eval \${$3+:} false; then :
7083c021
AC
1597 $as_echo_n "(cached) " >&6
1598fi
1599eval ac_res=\$$3
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601$as_echo "$ac_res" >&6; }
1602else
1603 # Is the header compilable?
1604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1605$as_echo_n "checking $2 usability... " >&6; }
1606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h. */
1608$4
1609#include <$2>
1610_ACEOF
1611if ac_fn_c_try_compile "$LINENO"; then :
1612 ac_header_compiler=yes
1613else
1614 ac_header_compiler=no
1615fi
1616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1618$as_echo "$ac_header_compiler" >&6; }
1619
1620# Is the header present?
1621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1622$as_echo_n "checking $2 presence... " >&6; }
1623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624/* end confdefs.h. */
1625#include <$2>
1626_ACEOF
1627if ac_fn_c_try_cpp "$LINENO"; then :
1628 ac_header_preproc=yes
1629else
1630 ac_header_preproc=no
1631fi
08c2568c 1632rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
1633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1634$as_echo "$ac_header_preproc" >&6; }
1635
1636# So? What about this header?
1637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1638 yes:no: )
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1640$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 ;;
1644 no:yes:* )
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1646$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1648$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1650$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1652$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1655 ;;
1656esac
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658$as_echo_n "checking for $2... " >&6; }
08c2568c 1659if eval \${$3+:} false; then :
7083c021
AC
1660 $as_echo_n "(cached) " >&6
1661else
1662 eval "$3=\$ac_header_compiler"
1663fi
1664eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666$as_echo "$ac_res" >&6; }
1667fi
08c2568c 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1669
1670} # ac_fn_c_check_header_mongrel
1671
1672# ac_fn_c_try_run LINENO
1673# ----------------------
1674# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1675# that executables *can* be run.
1676ac_fn_c_try_run ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_link"
1680case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690 { { case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_try") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; }; }; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: program exited with status $ac_status" >&5
1703 $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=$ac_status
1707fi
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
08c2568c 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1710 as_fn_set_status $ac_retval
7083c021
AC
1711
1712} # ac_fn_c_try_run
1713
1714# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715# -------------------------------------------------------
1716# Tests whether HEADER exists and can be compiled using the include files in
1717# INCLUDES, setting the cache variable VAR accordingly.
1718ac_fn_c_check_header_compile ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722$as_echo_n "checking for $2... " >&6; }
08c2568c 1723if eval \${$3+:} false; then :
7083c021
AC
1724 $as_echo_n "(cached) " >&6
1725else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727/* end confdefs.h. */
1728$4
1729#include <$2>
1730_ACEOF
1731if ac_fn_c_try_compile "$LINENO"; then :
1732 eval "$3=yes"
1733else
1734 eval "$3=no"
1735fi
1736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737fi
1738eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
08c2568c 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1742
1743} # ac_fn_c_check_header_compile
1744
1745# ac_fn_c_try_link LINENO
1746# -----------------------
1747# Try to link conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_c_try_link ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest$ac_exeext
1752 if { { ac_try="$ac_link"
1753case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 $as_test_x conftest$ac_exeext
1773 }; then :
1774 ac_retval=0
1775else
1776 $as_echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780fi
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
08c2568c 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1787 as_fn_set_status $ac_retval
7083c021
AC
1788
1789} # ac_fn_c_try_link
1790
1791# ac_fn_c_check_func LINENO FUNC VAR
1792# ----------------------------------
1793# Tests whether FUNC exists, setting the cache variable VAR accordingly
1794ac_fn_c_check_func ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
08c2568c 1799if eval \${$3+:} false; then :
7083c021
AC
1800 $as_echo_n "(cached) " >&6
1801else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1806#define $2 innocuous_$2
1807
1808/* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char $2 (); below.
1810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1811 <limits.h> exists even on freestanding compilers. */
1812
1813#ifdef __STDC__
1814# include <limits.h>
1815#else
1816# include <assert.h>
1817#endif
1818
1819#undef $2
1820
1821/* Override any GCC internal prototype to avoid an error.
1822 Use char because int might match the return type of a GCC
1823 builtin and then its argument prototype would still apply. */
1824#ifdef __cplusplus
1825extern "C"
1826#endif
1827char $2 ();
1828/* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831#if defined __stub_$2 || defined __stub___$2
1832choke me
1833#endif
1834
1835int
1836main ()
1837{
1838return $2 ();
1839 ;
1840 return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_link "$LINENO"; then :
1844 eval "$3=yes"
1845else
1846 eval "$3=no"
1847fi
1848rm -f core conftest.err conftest.$ac_objext \
1849 conftest$ac_exeext conftest.$ac_ext
1850fi
1851eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
08c2568c 1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1855
1856} # ac_fn_c_check_func
1857
1858# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1859# -------------------------------------------
1860# Tests whether TYPE exists after having included INCLUDES, setting cache
1861# variable VAR accordingly.
1862ac_fn_c_check_type ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
08c2568c 1867if eval \${$3+:} false; then :
7083c021
AC
1868 $as_echo_n "(cached) " >&6
1869else
1870 eval "$3=no"
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872/* end confdefs.h. */
1873$4
1874int
1875main ()
1876{
1877if (sizeof ($2))
1878 return 0;
1879 ;
1880 return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_compile "$LINENO"; then :
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h. */
1886$4
1887int
1888main ()
1889{
1890if (sizeof (($2)))
1891 return 0;
1892 ;
1893 return 0;
1894}
1895_ACEOF
1896if ac_fn_c_try_compile "$LINENO"; then :
1897
1898else
1899 eval "$3=yes"
1900fi
1901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902fi
1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
08c2568c 1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1909
1910} # ac_fn_c_check_type
1911
1912# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1913# ----------------------------------------------------
1914# Tries to find if the field MEMBER exists in type AGGR, after including
1915# INCLUDES, setting cache variable VAR accordingly.
1916ac_fn_c_check_member ()
1917{
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1920$as_echo_n "checking for $2.$3... " >&6; }
08c2568c 1921if eval \${$4+:} false; then :
7083c021
AC
1922 $as_echo_n "(cached) " >&6
1923else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h. */
1926$5
1927int
1928main ()
1929{
1930static $2 ac_aggr;
1931if (ac_aggr.$3)
1932return 0;
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938 eval "$4=yes"
1939else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h. */
1942$5
1943int
1944main ()
1945{
1946static $2 ac_aggr;
1947if (sizeof ac_aggr.$3)
1948return 0;
1949 ;
1950 return 0;
1951}
1952_ACEOF
1953if ac_fn_c_try_compile "$LINENO"; then :
1954 eval "$4=yes"
1955else
1956 eval "$4=no"
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959fi
1960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961fi
1962eval ac_res=\$$4
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964$as_echo "$ac_res" >&6; }
08c2568c 1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1966
1967} # ac_fn_c_check_member
db137867
AC
1968cat >config.log <<_ACEOF
1969This file contains any messages produced by compilers while
1970running configure, to aid debugging if configure makes a mistake.
1971
1972It was created by libratbox $as_me devel, which was
08c2568c 1973generated by GNU Autoconf 2.68. Invocation command line was
db137867
AC
1974
1975 $ $0 $@
1976
1977_ACEOF
1978exec 5>>config.log
1979{
1980cat <<_ASUNAME
1981## --------- ##
1982## Platform. ##
1983## --------- ##
1984
1985hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1986uname -m = `(uname -m) 2>/dev/null || echo unknown`
1987uname -r = `(uname -r) 2>/dev/null || echo unknown`
1988uname -s = `(uname -s) 2>/dev/null || echo unknown`
1989uname -v = `(uname -v) 2>/dev/null || echo unknown`
1990
1991/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1992/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1993
1994/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1995/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1996/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1997/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1998/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1999/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2000/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2001
2002_ASUNAME
2003
2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005for as_dir in $PATH
2006do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
7083c021
AC
2009 $as_echo "PATH: $as_dir"
2010 done
db137867
AC
2011IFS=$as_save_IFS
2012
2013} >&5
2014
2015cat >&5 <<_ACEOF
2016
2017
2018## ----------- ##
2019## Core tests. ##
2020## ----------- ##
2021
2022_ACEOF
2023
2024
2025# Keep a trace of the command line.
2026# Strip out --no-create and --no-recursion so they do not pile up.
2027# Strip out --silent because we don't want to record it for future runs.
2028# Also quote any args containing shell meta-characters.
2029# Make two passes to allow for proper duplicate-argument suppression.
2030ac_configure_args=
2031ac_configure_args0=
2032ac_configure_args1=
2033ac_must_keep_next=false
2034for ac_pass in 1 2
2035do
2036 for ac_arg
2037 do
2038 case $ac_arg in
2039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2041 | -silent | --silent | --silen | --sile | --sil)
2042 continue ;;
2043 *\'*)
030272f3 2044 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
db137867
AC
2045 esac
2046 case $ac_pass in
7083c021 2047 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
db137867 2048 2)
7083c021 2049 as_fn_append ac_configure_args1 " '$ac_arg'"
db137867
AC
2050 if test $ac_must_keep_next = true; then
2051 ac_must_keep_next=false # Got value, back to normal.
2052 else
2053 case $ac_arg in
2054 *=* | --config-cache | -C | -disable-* | --disable-* \
2055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2057 | -with-* | --with-* | -without-* | --without-* | --x)
2058 case "$ac_configure_args0 " in
2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2060 esac
2061 ;;
2062 -* ) ac_must_keep_next=true ;;
2063 esac
2064 fi
7083c021 2065 as_fn_append ac_configure_args " '$ac_arg'"
db137867
AC
2066 ;;
2067 esac
2068 done
2069done
7083c021
AC
2070{ ac_configure_args0=; unset ac_configure_args0;}
2071{ ac_configure_args1=; unset ac_configure_args1;}
db137867
AC
2072
2073# When interrupted or exit'd, cleanup temporary files, and complete
2074# config.log. We remove comments because anyway the quotes in there
2075# would cause problems or look ugly.
2076# WARNING: Use '\'' to represent an apostrophe within the trap.
2077# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2078trap 'exit_status=$?
2079 # Save into config.log some information that might help in debugging.
2080 {
2081 echo
2082
08c2568c 2083 $as_echo "## ---------------- ##
db137867 2084## Cache variables. ##
08c2568c 2085## ---------------- ##"
db137867
AC
2086 echo
2087 # The following way of writing the cache mishandles newlines in values,
2088(
2089 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2090 eval ac_val=\$$ac_var
2091 case $ac_val in #(
2092 *${as_nl}*)
2093 case $ac_var in #(
7083c021 2094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
030272f3 2095$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
db137867
AC
2096 esac
2097 case $ac_var in #(
2098 _ | IFS | as_nl) ;; #(
030272f3 2099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7083c021 2100 *) { eval $ac_var=; unset $ac_var;} ;;
db137867
AC
2101 esac ;;
2102 esac
2103 done
2104 (set) 2>&1 |
2105 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2106 *${as_nl}ac_space=\ *)
2107 sed -n \
2108 "s/'\''/'\''\\\\'\'''\''/g;
2109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110 ;; #(
2111 *)
2112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2113 ;;
2114 esac |
2115 sort
2116)
2117 echo
2118
08c2568c 2119 $as_echo "## ----------------- ##
db137867 2120## Output variables. ##
08c2568c 2121## ----------------- ##"
db137867
AC
2122 echo
2123 for ac_var in $ac_subst_vars
2124 do
2125 eval ac_val=\$$ac_var
2126 case $ac_val in
030272f3 2127 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
db137867 2128 esac
030272f3 2129 $as_echo "$ac_var='\''$ac_val'\''"
db137867
AC
2130 done | sort
2131 echo
2132
2133 if test -n "$ac_subst_files"; then
08c2568c 2134 $as_echo "## ------------------- ##
db137867 2135## File substitutions. ##
08c2568c 2136## ------------------- ##"
db137867
AC
2137 echo
2138 for ac_var in $ac_subst_files
2139 do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
030272f3 2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
db137867 2143 esac
030272f3 2144 $as_echo "$ac_var='\''$ac_val'\''"
db137867
AC
2145 done | sort
2146 echo
2147 fi
2148
2149 if test -s confdefs.h; then
08c2568c 2150 $as_echo "## ----------- ##
db137867 2151## confdefs.h. ##
08c2568c 2152## ----------- ##"
db137867
AC
2153 echo
2154 cat confdefs.h
2155 echo
2156 fi
2157 test "$ac_signal" != 0 &&
030272f3
VY
2158 $as_echo "$as_me: caught signal $ac_signal"
2159 $as_echo "$as_me: exit $exit_status"
db137867
AC
2160 } >&5
2161 rm -f core *.core core.conftest.* &&
2162 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2163 exit $exit_status
2164' 0
2165for ac_signal in 1 2 13 15; do
7083c021 2166 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
db137867
AC
2167done
2168ac_signal=0
2169
2170# confdefs.h avoids OS command line length limits that DEFS can exceed.
2171rm -f -r conftest* confdefs.h
2172
7083c021
AC
2173$as_echo "/* confdefs.h */" > confdefs.h
2174
db137867
AC
2175# Predefined preprocessor variables.
2176
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_NAME "$PACKAGE_NAME"
2179_ACEOF
2180
db137867
AC
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2183_ACEOF
2184
db137867
AC
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_VERSION "$PACKAGE_VERSION"
2187_ACEOF
2188
db137867
AC
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_STRING "$PACKAGE_STRING"
2191_ACEOF
2192
db137867
AC
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2195_ACEOF
2196
7083c021
AC
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_URL "$PACKAGE_URL"
2199_ACEOF
2200
db137867
AC
2201
2202# Let the site file select an alternate cache file if it wants to.
030272f3
VY
2203# Prefer an explicitly selected file to automatically selected ones.
2204ac_site_file1=NONE
2205ac_site_file2=NONE
db137867 2206if test -n "$CONFIG_SITE"; then
08c2568c
EM
2207 # We do not want a PATH search for config.site.
2208 case $CONFIG_SITE in #((
2209 -*) ac_site_file1=./$CONFIG_SITE;;
2210 */*) ac_site_file1=$CONFIG_SITE;;
2211 *) ac_site_file1=./$CONFIG_SITE;;
2212 esac
db137867 2213elif test "x$prefix" != xNONE; then
030272f3
VY
2214 ac_site_file1=$prefix/share/config.site
2215 ac_site_file2=$prefix/etc/config.site
db137867 2216else
030272f3
VY
2217 ac_site_file1=$ac_default_prefix/share/config.site
2218 ac_site_file2=$ac_default_prefix/etc/config.site
db137867 2219fi
030272f3 2220for ac_site_file in "$ac_site_file1" "$ac_site_file2"
db137867 2221do
030272f3 2222 test "x$ac_site_file" = xNONE && continue
96f4052b 2223 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
030272f3 2225$as_echo "$as_me: loading site script $ac_site_file" >&6;}
db137867 2226 sed 's/^/| /' "$ac_site_file" >&5
08c2568c
EM
2227 . "$ac_site_file" \
2228 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2230as_fn_error $? "failed to load site script $ac_site_file
2231See \`config.log' for more details" "$LINENO" 5; }
db137867
AC
2232 fi
2233done
2234
2235if test -r "$cache_file"; then
96f4052b
AC
2236 # Some versions of bash will fail to source /dev/null (special files
2237 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2238 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
030272f3 2240$as_echo "$as_me: loading cache $cache_file" >&6;}
db137867
AC
2241 case $cache_file in
2242 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2243 *) . "./$cache_file";;
2244 esac
2245 fi
2246else
7083c021 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
030272f3 2248$as_echo "$as_me: creating cache $cache_file" >&6;}
db137867
AC
2249 >$cache_file
2250fi
2251
96f4052b
AC
2252as_fn_append ac_header_list " stdlib.h"
2253as_fn_append ac_header_list " unistd.h"
2254as_fn_append ac_header_list " sys/param.h"
db137867
AC
2255# Check that the precious variables saved in the cache have kept the same
2256# value.
2257ac_cache_corrupted=false
2258for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
7083c021 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
030272f3 2266$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
db137867
AC
2267 ac_cache_corrupted=: ;;
2268 ,set)
7083c021 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
030272f3 2270$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
db137867
AC
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
030272f3
VY
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
7083c021 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
030272f3
VY
2280$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
7083c021 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
030272f3
VY
2284$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
7083c021 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
030272f3 2288$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
7083c021 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
030272f3 2290$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
db137867
AC
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
030272f3 2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
db137867
AC
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
7083c021 2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
db137867
AC
2302 esac
2303 fi
2304done
2305if $ac_cache_corrupted; then
7083c021 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083c021 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
030272f3 2309$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
08c2568c 2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
db137867 2311fi
7083c021
AC
2312## -------------------- ##
2313## Main body of script. ##
2314## -------------------- ##
db137867 2315
7083c021
AC
2316ac_ext=c
2317ac_cpp='$CPP $CPPFLAGS'
2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320ac_compiler_gnu=$ac_cv_c_compiler_gnu
db137867
AC
2321
2322
7083c021 2323am__api_version='1.11'
db137867 2324
7083c021
AC
2325ac_aux_dir=
2326for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
08c2568c
EM
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2339 fi
7083c021
AC
2340done
2341if test -z "$ac_aux_dir"; then
08c2568c 2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7083c021 2343fi
db137867 2344
7083c021
AC
2345# These three variables are undocumented and unsupported,
2346# and are intended to be withdrawn in a future Autoconf release.
2347# They can cause serious problems if a builder's source tree is in a directory
2348# whose full name contains unusual characters.
2349ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
db137867
AC
2352
2353
2354# Find a good install program. We prefer a C program (faster),
2355# so one script is as good as another. But avoid the broken or
2356# incompatible versions:
2357# SysV /etc/install, /usr/sbin/install
2358# SunOS /usr/etc/install
2359# IRIX /sbin/install
2360# AIX /bin/install
2361# AmigaOS /C/install, which installs bootblocks on floppy discs
2362# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2363# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2364# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2365# OS/2's system install, which has a completely different semantic
2366# ./install, which can be erroneously created by make from ./install.sh.
030272f3 2367# Reject install programs that cannot install multiple files.
7083c021 2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
030272f3 2369$as_echo_n "checking for a BSD-compatible install... " >&6; }
db137867 2370if test -z "$INSTALL"; then
08c2568c 2371if ${ac_cv_path_install+:} false; then :
030272f3 2372 $as_echo_n "(cached) " >&6
db137867
AC
2373else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
7083c021
AC
2379 # Account for people who put trailing slashes in PATH elements.
2380case $as_dir/ in #((
2381 ./ | .// | /[cC]/* | \
db137867 2382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7083c021 2383 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
db137867
AC
2384 /usr/ucb/* ) ;;
2385 *)
2386 # OSF1 and SCO ODT 3.0 have their own names for install.
2387 # Don't use installbsd from OSF since it installs stuff as root
2388 # by default.
2389 for ac_prog in ginstall scoinst install; do
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2392 if test $ac_prog = install &&
2393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2394 # AIX install. It has an incompatible calling convention.
2395 :
2396 elif test $ac_prog = install &&
2397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398 # program-specific install script used by HP pwplus--don't use.
2399 :
2400 else
030272f3
VY
2401 rm -rf conftest.one conftest.two conftest.dir
2402 echo one > conftest.one
2403 echo two > conftest.two
2404 mkdir conftest.dir
2405 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2406 test -s conftest.one && test -s conftest.two &&
2407 test -s conftest.dir/conftest.one &&
2408 test -s conftest.dir/conftest.two
2409 then
2410 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2411 break 3
2412 fi
db137867
AC
2413 fi
2414 fi
2415 done
2416 done
2417 ;;
2418esac
030272f3 2419
7083c021 2420 done
db137867
AC
2421IFS=$as_save_IFS
2422
030272f3 2423rm -rf conftest.one conftest.two conftest.dir
db137867
AC
2424
2425fi
2426 if test "${ac_cv_path_install+set}" = set; then
2427 INSTALL=$ac_cv_path_install
2428 else
2429 # As a last resort, use the slow shell script. Don't cache a
2430 # value for INSTALL within a source directory, because that will
2431 # break other packages using the cache if that directory is
2432 # removed, or if the value is a relative name.
2433 INSTALL=$ac_install_sh
2434 fi
2435fi
7083c021 2436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
030272f3 2437$as_echo "$INSTALL" >&6; }
db137867
AC
2438
2439# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2440# It thinks the first close brace ends the variable substitution.
2441test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2442
2443test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2444
2445test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2446
7083c021 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
030272f3 2448$as_echo_n "checking whether build environment is sane... " >&6; }
db137867
AC
2449# Just in case
2450sleep 1
2451echo timestamp > conftest.file
7083c021
AC
2452# Reject unsafe characters in $srcdir or the absolute working directory
2453# name. Accept space and tab only in the latter.
2454am_lf='
2455'
2456case `pwd` in
2457 *[\\\"\#\$\&\'\`$am_lf]*)
08c2568c 2458 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
7083c021
AC
2459esac
2460case $srcdir in
2461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
08c2568c 2462 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7083c021
AC
2463esac
2464
db137867
AC
2465# Do `set' in a subshell so we don't clobber the current shell's
2466# arguments. Must try -L first in case configure is actually a
2467# symlink; some systems play weird games with the mod time of symlinks
2468# (eg FreeBSD returns the mod time of the symlink's containing
2469# directory).
2470if (
7083c021 2471 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
db137867
AC
2472 if test "$*" = "X"; then
2473 # -L didn't work.
7083c021 2474 set X `ls -t "$srcdir/configure" conftest.file`
db137867
AC
2475 fi
2476 rm -f conftest.file
2477 if test "$*" != "X $srcdir/configure conftest.file" \
2478 && test "$*" != "X conftest.file $srcdir/configure"; then
2479
2480 # If neither matched, then we have a broken ls. This can happen
2481 # if, for instance, CONFIG_SHELL is bash and it inherits a
2482 # broken ls alias from the environment. This has actually
2483 # happened. Such a system could not be considered "sane".
08c2568c 2484 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
7083c021 2485alias in your environment" "$LINENO" 5
db137867
AC
2486 fi
2487
2488 test "$2" = conftest.file
2489 )
2490then
2491 # Ok.
2492 :
2493else
08c2568c 2494 as_fn_error $? "newly created file is older than distributed files!
7083c021 2495Check your system clock" "$LINENO" 5
db137867 2496fi
7083c021 2497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3 2498$as_echo "yes" >&6; }
db137867
AC
2499test "$program_prefix" != NONE &&
2500 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2501# Use a double $ so make ignores it.
2502test "$program_suffix" != NONE &&
2503 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
030272f3 2504# Double any \ or $.
db137867 2505# By default was `s,x,x', remove it if useless.
030272f3
VY
2506ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2507program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
db137867
AC
2508
2509# expand $ac_aux_dir to an absolute path
2510am_aux_dir=`cd $ac_aux_dir && pwd`
2511
7083c021
AC
2512if test x"${MISSING+set}" != xset; then
2513 case $am_aux_dir in
2514 *\ * | *\ *)
2515 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2516 *)
2517 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2518 esac
2519fi
db137867
AC
2520# Use eval to expand $SHELL
2521if eval "$MISSING --run true"; then
2522 am_missing_run="$MISSING --run "
2523else
2524 am_missing_run=
7083c021 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
030272f3 2526$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
db137867
AC
2527fi
2528
7083c021
AC
2529if test x"${install_sh}" != xset; then
2530 case $am_aux_dir in
2531 *\ * | *\ *)
2532 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2533 *)
2534 install_sh="\${SHELL} $am_aux_dir/install-sh"
2535 esac
2536fi
2537
2538# Installed binaries are usually stripped using `strip' when the user
2539# run `make install-strip'. However `strip' might not be the right
2540# tool to use in cross-compilation environments, therefore Automake
2541# will honor the `STRIP' environment variable to overrule this program.
2542if test "$cross_compiling" != no; then
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545set dummy ${ac_tool_prefix}strip; ac_word=$2
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2548if ${ac_cv_prog_STRIP+:} false; then :
7083c021
AC
2549 $as_echo_n "(cached) " >&6
2550else
2551 if test -n "$STRIP"; then
2552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2553else
2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565done
2566 done
2567IFS=$as_save_IFS
2568
2569fi
2570fi
2571STRIP=$ac_cv_prog_STRIP
2572if test -n "$STRIP"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2574$as_echo "$STRIP" >&6; }
2575else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577$as_echo "no" >&6; }
2578fi
2579
2580
2581fi
2582if test -z "$ac_cv_prog_STRIP"; then
2583 ac_ct_STRIP=$STRIP
2584 # Extract the first word of "strip", so it can be a program name with args.
2585set dummy strip; ac_word=$2
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2588if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7083c021
AC
2589 $as_echo_n "(cached) " >&6
2590else
2591 if test -n "$ac_ct_STRIP"; then
2592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_ac_ct_STRIP="strip"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2604 fi
2605done
2606 done
2607IFS=$as_save_IFS
2608
2609fi
2610fi
2611ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612if test -n "$ac_ct_STRIP"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2614$as_echo "$ac_ct_STRIP" >&6; }
2615else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
2618fi
2619
2620 if test "x$ac_ct_STRIP" = x; then
2621 STRIP=":"
2622 else
2623 case $cross_compiling:$ac_tool_warned in
2624yes:)
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627ac_tool_warned=yes ;;
2628esac
2629 STRIP=$ac_ct_STRIP
2630 fi
2631else
2632 STRIP="$ac_cv_prog_STRIP"
2633fi
2634
2635fi
2636INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2637
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
030272f3 2639$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
db137867 2640if test -z "$MKDIR_P"; then
08c2568c 2641 if ${ac_cv_path_mkdir+:} false; then :
030272f3 2642 $as_echo_n "(cached) " >&6
db137867
AC
2643else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2646do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
7083c021 2649 for ac_prog in mkdir gmkdir; do
db137867
AC
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2652 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2653 'mkdir (GNU coreutils) '* | \
2654 'mkdir (coreutils) '* | \
2655 'mkdir (fileutils) '4.1*)
2656 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2657 break 3;;
2658 esac
2659 done
2660 done
7083c021 2661 done
db137867
AC
2662IFS=$as_save_IFS
2663
2664fi
2665
96f4052b 2666 test -d ./--version && rmdir ./--version
db137867
AC
2667 if test "${ac_cv_path_mkdir+set}" = set; then
2668 MKDIR_P="$ac_cv_path_mkdir -p"
2669 else
2670 # As a last resort, use the slow shell script. Don't cache a
2671 # value for MKDIR_P within a source directory, because that will
2672 # break other packages using the cache if that directory is
2673 # removed, or if the value is a relative name.
db137867
AC
2674 MKDIR_P="$ac_install_sh -d"
2675 fi
2676fi
7083c021 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
030272f3 2678$as_echo "$MKDIR_P" >&6; }
db137867
AC
2679
2680mkdir_p="$MKDIR_P"
2681case $mkdir_p in
2682 [\\/$]* | ?:[\\/]*) ;;
2683 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2684esac
2685
2686for ac_prog in gawk mawk nawk awk
2687do
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689set dummy $ac_prog; ac_word=$2
7083c021 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 2691$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2692if ${ac_cv_prog_AWK+:} false; then :
030272f3 2693 $as_echo_n "(cached) " >&6
db137867
AC
2694else
2695 if test -n "$AWK"; then
2696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
7083c021 2703 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_AWK="$ac_prog"
7083c021 2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
2707 break 2
2708 fi
2709done
7083c021 2710 done
db137867
AC
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715AWK=$ac_cv_prog_AWK
2716if test -n "$AWK"; then
7083c021 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
030272f3 2718$as_echo "$AWK" >&6; }
db137867 2719else
7083c021 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2721$as_echo "no" >&6; }
db137867
AC
2722fi
2723
2724
2725 test -n "$AWK" && break
2726done
2727
7083c021 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
030272f3
VY
2729$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2730set x ${MAKE-make}
2731ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
08c2568c 2732if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
030272f3 2733 $as_echo_n "(cached) " >&6
db137867
AC
2734else
2735 cat >conftest.make <<\_ACEOF
2736SHELL = /bin/sh
2737all:
2738 @echo '@@@%%%=$(MAKE)=@@@%%%'
2739_ACEOF
08c2568c 2740# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
db137867
AC
2741case `${MAKE-make} -f conftest.make 2>/dev/null` in
2742 *@@@%%%=?*=@@@%%%*)
2743 eval ac_cv_prog_make_${ac_make}_set=yes;;
2744 *)
2745 eval ac_cv_prog_make_${ac_make}_set=no;;
2746esac
2747rm -f conftest.make
2748fi
2749if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7083c021 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3 2751$as_echo "yes" >&6; }
db137867
AC
2752 SET_MAKE=
2753else
7083c021 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2755$as_echo "no" >&6; }
db137867
AC
2756 SET_MAKE="MAKE=${MAKE-make}"
2757fi
2758
2759rm -rf .tst 2>/dev/null
2760mkdir .tst 2>/dev/null
2761if test -d .tst; then
2762 am__leading_dot=.
2763else
2764 am__leading_dot=_
2765fi
2766rmdir .tst 2>/dev/null
2767
2768if test "`cd $srcdir && pwd`" != "`pwd`"; then
2769 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2770 # is not polluted with repeated "-I."
2771 am__isrc=' -I$(srcdir)'
2772 # test to see if srcdir already configured
2773 if test -f $srcdir/config.status; then
08c2568c 2774 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
db137867
AC
2775 fi
2776fi
2777
2778# test whether we have cygpath
2779if test -z "$CYGPATH_W"; then
2780 if (cygpath --version) >/dev/null 2>/dev/null; then
2781 CYGPATH_W='cygpath -w'
2782 else
2783 CYGPATH_W=echo
2784 fi
2785fi
2786
2787
2788# Define the identity of the package.
2789 PACKAGE=libratbox
2790 VERSION=devel
2791
2792
2793# Some tools Automake needs.
2794
2795ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2796
2797
2798AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2799
2800
2801AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2802
2803
2804AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2805
2806
2807MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2808
db137867
AC
2809# We need awk for the "check" target. The system "awk" is bad on
2810# some platforms.
271a98fe
JT
2811# Always define AMTAR for backward compatibility.
2812
2813AMTAR=${AMTAR-"${am_missing_run}tar"}
db137867 2814
271a98fe 2815am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
db137867
AC
2816
2817
2818
2819
2820
2821
2822ac_config_headers="$ac_config_headers include/libratbox_config.h"
2823
2824
2825
db137867
AC
2826DEPDIR="${am__leading_dot}deps"
2827
2828ac_config_commands="$ac_config_commands depfiles"
2829
2830
2831am_make=${MAKE-make}
2832cat > confinc << 'END'
2833am__doit:
7083c021 2834 @echo this is the am__doit target
db137867
AC
2835.PHONY: am__doit
2836END
2837# If we don't find an include directive, just comment out the code.
7083c021 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
030272f3 2839$as_echo_n "checking for style of include used by $am_make... " >&6; }
db137867
AC
2840am__include="#"
2841am__quote=
2842_am_result=none
2843# First try GNU make style include.
2844echo "include confinc" > confmf
7083c021
AC
2845# Ignore all kinds of additional output from `make'.
2846case `$am_make -s -f confmf 2> /dev/null` in #(
2847*the\ am__doit\ target*)
2848 am__include=include
2849 am__quote=
2850 _am_result=GNU
2851 ;;
2852esac
db137867
AC
2853# Now try BSD make style include.
2854if test "$am__include" = "#"; then
2855 echo '.include "confinc"' > confmf
7083c021
AC
2856 case `$am_make -s -f confmf 2> /dev/null` in #(
2857 *the\ am__doit\ target*)
2858 am__include=.include
2859 am__quote="\""
2860 _am_result=BSD
2861 ;;
2862 esac
db137867
AC
2863fi
2864
2865
7083c021 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
030272f3 2867$as_echo "$_am_result" >&6; }
db137867
AC
2868rm -f confinc confmf
2869
2870# Check whether --enable-dependency-tracking was given.
7083c021 2871if test "${enable_dependency_tracking+set}" = set; then :
db137867
AC
2872 enableval=$enable_dependency_tracking;
2873fi
2874
2875if test "x$enable_dependency_tracking" != xno; then
2876 am_depcomp="$ac_aux_dir/depcomp"
2877 AMDEPBACKSLASH='\'
2878fi
2879 if test "x$enable_dependency_tracking" != xno; then
2880 AMDEP_TRUE=
2881 AMDEP_FALSE='#'
2882else
2883 AMDEP_TRUE='#'
2884 AMDEP_FALSE=
2885fi
2886
2887
2888ac_ext=c
2889ac_cpp='$CPP $CPPFLAGS'
2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2895set dummy ${ac_tool_prefix}gcc; ac_word=$2
7083c021 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 2897$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2898if ${ac_cv_prog_CC+:} false; then :
030272f3 2899 $as_echo_n "(cached) " >&6
db137867
AC
2900else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
7083c021 2909 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7083c021 2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
2913 break 2
2914 fi
2915done
7083c021 2916 done
db137867
AC
2917IFS=$as_save_IFS
2918
2919fi
2920fi
2921CC=$ac_cv_prog_CC
2922if test -n "$CC"; then
7083c021 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 2924$as_echo "$CC" >&6; }
db137867 2925else
7083c021 2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2927$as_echo "no" >&6; }
db137867
AC
2928fi
2929
2930
2931fi
2932if test -z "$ac_cv_prog_CC"; then
2933 ac_ct_CC=$CC
2934 # Extract the first word of "gcc", so it can be a program name with args.
2935set dummy gcc; ac_word=$2
7083c021 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 2937$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2938if ${ac_cv_prog_ac_ct_CC+:} false; then :
030272f3 2939 $as_echo_n "(cached) " >&6
db137867
AC
2940else
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
7083c021 2949 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_ac_ct_CC="gcc"
7083c021 2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
2953 break 2
2954 fi
2955done
7083c021 2956 done
db137867
AC
2957IFS=$as_save_IFS
2958
2959fi
2960fi
2961ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962if test -n "$ac_ct_CC"; then
7083c021 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
030272f3 2964$as_echo "$ac_ct_CC" >&6; }
db137867 2965else
7083c021 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2967$as_echo "no" >&6; }
db137867
AC
2968fi
2969
2970 if test "x$ac_ct_CC" = x; then
2971 CC=""
2972 else
2973 case $cross_compiling:$ac_tool_warned in
2974yes:)
7083c021 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 2976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
2977ac_tool_warned=yes ;;
2978esac
2979 CC=$ac_ct_CC
2980 fi
2981else
2982 CC="$ac_cv_prog_CC"
2983fi
2984
2985if test -z "$CC"; then
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2988set dummy ${ac_tool_prefix}cc; ac_word=$2
7083c021 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 2990$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2991if ${ac_cv_prog_CC+:} false; then :
030272f3 2992 $as_echo_n "(cached) " >&6
db137867
AC
2993else
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
7083c021 3002 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 ac_cv_prog_CC="${ac_tool_prefix}cc"
7083c021 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3006 break 2
3007 fi
3008done
7083c021 3009 done
db137867
AC
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014CC=$ac_cv_prog_CC
3015if test -n "$CC"; then
7083c021 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3017$as_echo "$CC" >&6; }
db137867 3018else
7083c021 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3020$as_echo "no" >&6; }
db137867
AC
3021fi
3022
3023
3024 fi
3025fi
3026if test -z "$CC"; then
3027 # Extract the first word of "cc", so it can be a program name with args.
3028set dummy cc; ac_word=$2
7083c021 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3030$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3031if ${ac_cv_prog_CC+:} false; then :
030272f3 3032 $as_echo_n "(cached) " >&6
db137867
AC
3033else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
3037 ac_prog_rejected=no
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
7083c021 3043 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3046 ac_prog_rejected=yes
3047 continue
3048 fi
3049 ac_cv_prog_CC="cc"
7083c021 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3051 break 2
3052 fi
3053done
7083c021 3054 done
db137867
AC
3055IFS=$as_save_IFS
3056
3057if test $ac_prog_rejected = yes; then
3058 # We found a bogon in the path, so make sure we never use it.
3059 set dummy $ac_cv_prog_CC
3060 shift
3061 if test $# != 0; then
3062 # We chose a different compiler from the bogus one.
3063 # However, it has the same basename, so the bogon will be chosen
3064 # first if we set CC to just the basename; use the full file name.
3065 shift
3066 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3067 fi
3068fi
3069fi
3070fi
3071CC=$ac_cv_prog_CC
3072if test -n "$CC"; then
7083c021 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3074$as_echo "$CC" >&6; }
db137867 3075else
7083c021 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3077$as_echo "no" >&6; }
db137867
AC
3078fi
3079
3080
3081fi
3082if test -z "$CC"; then
3083 if test -n "$ac_tool_prefix"; then
3084 for ac_prog in cl.exe
3085 do
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7083c021 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3089$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3090if ${ac_cv_prog_CC+:} false; then :
030272f3 3091 $as_echo_n "(cached) " >&6
db137867
AC
3092else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
7083c021 3101 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7083c021 3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3105 break 2
3106 fi
3107done
7083c021 3108 done
db137867
AC
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113CC=$ac_cv_prog_CC
3114if test -n "$CC"; then
7083c021 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3116$as_echo "$CC" >&6; }
db137867 3117else
7083c021 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3119$as_echo "no" >&6; }
db137867
AC
3120fi
3121
3122
3123 test -n "$CC" && break
3124 done
3125fi
3126if test -z "$CC"; then
3127 ac_ct_CC=$CC
3128 for ac_prog in cl.exe
3129do
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131set dummy $ac_prog; ac_word=$2
7083c021 3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3133$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3134if ${ac_cv_prog_ac_ct_CC+:} false; then :
030272f3 3135 $as_echo_n "(cached) " >&6
db137867
AC
3136else
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139else
3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141for as_dir in $PATH
3142do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
7083c021 3145 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_ac_ct_CC="$ac_prog"
7083c021 3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3149 break 2
3150 fi
3151done
7083c021 3152 done
db137867
AC
3153IFS=$as_save_IFS
3154
3155fi
3156fi
3157ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158if test -n "$ac_ct_CC"; then
7083c021 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
030272f3 3160$as_echo "$ac_ct_CC" >&6; }
db137867 3161else
7083c021 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3163$as_echo "no" >&6; }
db137867
AC
3164fi
3165
3166
3167 test -n "$ac_ct_CC" && break
3168done
3169
3170 if test "x$ac_ct_CC" = x; then
3171 CC=""
3172 else
3173 case $cross_compiling:$ac_tool_warned in
3174yes:)
7083c021 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 3176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
3177ac_tool_warned=yes ;;
3178esac
3179 CC=$ac_ct_CC
3180 fi
3181fi
3182
3183fi
3184
3185
7083c021 3186test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3188as_fn_error $? "no acceptable C compiler found in \$PATH
3189See \`config.log' for more details" "$LINENO" 5; }
db137867
AC
3190
3191# Provide some information about the compiler.
7083c021 3192$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
030272f3
VY
3193set X $ac_compile
3194ac_compiler=$2
7083c021
AC
3195for ac_option in --version -v -V -qversion; do
3196 { { ac_try="$ac_compiler $ac_option >&5"
db137867
AC
3197case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
7083c021
AC
3201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202$as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
db137867 3204 ac_status=$?
7083c021
AC
3205 if test -s conftest.err; then
3206 sed '10a\
3207... rest of stderr output deleted ...
3208 10q' conftest.err >conftest.er1
3209 cat conftest.er1 >&5
7083c021 3210 fi
96f4052b 3211 rm -f conftest.er1 conftest.err
7083c021
AC
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }
3214done
db137867 3215
7083c021 3216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 3217/* end confdefs.h. */
96f4052b 3218
db137867
AC
3219int
3220main ()
3221{
3222
3223 ;
3224 return 0;
3225}
3226_ACEOF
3227ac_clean_files_save=$ac_clean_files
96f4052b 3228ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
db137867
AC
3229# Try to create an executable without -o first, disregard a.out.
3230# It will help us diagnose broken compilers, and finding out an intuition
3231# of exeext.
96f4052b
AC
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3233$as_echo_n "checking whether the C compiler works... " >&6; }
030272f3
VY
3234ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235
3236# The possible output files:
3237ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3238
db137867
AC
3239ac_rmfiles=
3240for ac_file in $ac_files
3241do
3242 case $ac_file in
030272f3 3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
db137867
AC
3244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245 esac
3246done
3247rm -f $ac_rmfiles
3248
7083c021 3249if { { ac_try="$ac_link_default"
db137867
AC
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
7083c021
AC
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
db137867
AC
3256 (eval "$ac_link_default") 2>&5
3257 ac_status=$?
7083c021
AC
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
db137867
AC
3260 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3261# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3262# in a Makefile. We should not override ac_cv_exeext if it was cached,
3263# so that the user can short-circuit this test for compilers unknown to
3264# Autoconf.
3265for ac_file in $ac_files ''
3266do
3267 test -f "$ac_file" || continue
3268 case $ac_file in
030272f3 3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
db137867
AC
3270 ;;
3271 [ab].out )
3272 # We found the default executable, but exeext='' is most
3273 # certainly right.
3274 break;;
3275 *.* )
7083c021 3276 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
db137867
AC
3277 then :; else
3278 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 fi
3280 # We set ac_cv_exeext here because the later test for it is not
3281 # safe: cross compilers may not add the suffix if given an `-o'
3282 # argument, so we may need to know it at that point already.
3283 # Even if this section looks crufty: it has the advantage of
3284 # actually working.
3285 break;;
3286 * )
3287 break;;
3288 esac
3289done
3290test "$ac_cv_exeext" = no && ac_cv_exeext=
3291
3292else
3293 ac_file=''
3294fi
7083c021 3295if test -z "$ac_file"; then :
96f4052b
AC
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298$as_echo "$as_me: failed program was:" >&5
db137867
AC
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
7083c021 3301{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3303as_fn_error 77 "C compiler cannot create executables
3304See \`config.log' for more details" "$LINENO" 5; }
96f4052b
AC
3305else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307$as_echo "yes" >&6; }
db137867 3308fi
96f4052b
AC
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3310$as_echo_n "checking for C compiler default output file name... " >&6; }
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3312$as_echo "$ac_file" >&6; }
db137867
AC
3313ac_exeext=$ac_cv_exeext
3314
96f4052b 3315rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
db137867 3316ac_clean_files=$ac_clean_files_save
7083c021 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
030272f3 3318$as_echo_n "checking for suffix of executables... " >&6; }
7083c021 3319if { { ac_try="$ac_link"
db137867
AC
3320case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
7083c021
AC
3324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325$as_echo "$ac_try_echo"; } >&5
db137867
AC
3326 (eval "$ac_link") 2>&5
3327 ac_status=$?
7083c021
AC
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
db137867
AC
3330 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3331# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3332# work properly (i.e., refer to `conftest.exe'), while it won't with
3333# `rm'.
3334for ac_file in conftest.exe conftest conftest.*; do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
030272f3 3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
db137867
AC
3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 break;;
3340 * ) break;;
3341 esac
3342done
3343else
7083c021 3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3346as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3347See \`config.log' for more details" "$LINENO" 5; }
db137867 3348fi
96f4052b 3349rm -f conftest conftest$ac_cv_exeext
7083c021 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
030272f3 3351$as_echo "$ac_cv_exeext" >&6; }
db137867
AC
3352
3353rm -f conftest.$ac_ext
3354EXEEXT=$ac_cv_exeext
3355ac_exeext=$EXEEXT
96f4052b
AC
3356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h. */
3358#include <stdio.h>
3359int
3360main ()
3361{
3362FILE *f = fopen ("conftest.out", "w");
3363 return ferror (f) || fclose (f) != 0;
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369ac_clean_files="$ac_clean_files conftest.out"
3370# Check that the compiler produces executables we can run. If not, either
3371# the compiler is broken, or we cross compile.
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3373$as_echo_n "checking whether we are cross compiling... " >&6; }
3374if test "$cross_compiling" != yes; then
3375 { { ac_try="$ac_link"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381$as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_link") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }
3386 if { ac_try='./conftest$ac_cv_exeext'
3387 { { case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392$as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_try") 2>&5
3394 ac_status=$?
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; }; then
3397 cross_compiling=no
3398 else
3399 if test "$cross_compiling" = maybe; then
3400 cross_compiling=yes
3401 else
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c 3404as_fn_error $? "cannot run C compiled programs.
96f4052b 3405If you meant to cross compile, use \`--host'.
08c2568c 3406See \`config.log' for more details" "$LINENO" 5; }
96f4052b
AC
3407 fi
3408 fi
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3411$as_echo "$cross_compiling" >&6; }
3412
3413rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3414ac_clean_files=$ac_clean_files_save
7083c021 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
030272f3 3416$as_echo_n "checking for suffix of object files... " >&6; }
08c2568c 3417if ${ac_cv_objext+:} false; then :
030272f3 3418 $as_echo_n "(cached) " >&6
db137867 3419else
7083c021 3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3421/* end confdefs.h. */
3422
3423int
3424main ()
3425{
3426
3427 ;
3428 return 0;
3429}
3430_ACEOF
3431rm -f conftest.o conftest.obj
7083c021 3432if { { ac_try="$ac_compile"
db137867
AC
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
7083c021
AC
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
db137867
AC
3439 (eval "$ac_compile") 2>&5
3440 ac_status=$?
7083c021
AC
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; then :
db137867
AC
3443 for ac_file in conftest.o conftest.obj conftest.*; do
3444 test -f "$ac_file" || continue;
3445 case $ac_file in
030272f3 3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
db137867
AC
3447 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448 break;;
3449 esac
3450done
3451else
030272f3 3452 $as_echo "$as_me: failed program was:" >&5
db137867
AC
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
7083c021 3455{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3457as_fn_error $? "cannot compute suffix of object files: cannot compile
3458See \`config.log' for more details" "$LINENO" 5; }
db137867 3459fi
db137867
AC
3460rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461fi
7083c021 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
030272f3 3463$as_echo "$ac_cv_objext" >&6; }
db137867
AC
3464OBJEXT=$ac_cv_objext
3465ac_objext=$OBJEXT
7083c021 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
030272f3 3467$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
08c2568c 3468if ${ac_cv_c_compiler_gnu+:} false; then :
030272f3 3469 $as_echo_n "(cached) " >&6
db137867 3470else
7083c021 3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3472/* end confdefs.h. */
3473
3474int
3475main ()
3476{
3477#ifndef __GNUC__
3478 choke me
3479#endif
3480
3481 ;
3482 return 0;
3483}
3484_ACEOF
7083c021 3485if ac_fn_c_try_compile "$LINENO"; then :
db137867
AC
3486 ac_compiler_gnu=yes
3487else
7083c021 3488 ac_compiler_gnu=no
db137867 3489fi
db137867
AC
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491ac_cv_c_compiler_gnu=$ac_compiler_gnu
3492
3493fi
7083c021 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
030272f3
VY
3495$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3496if test $ac_compiler_gnu = yes; then
3497 GCC=yes
3498else
3499 GCC=
3500fi
db137867
AC
3501ac_test_CFLAGS=${CFLAGS+set}
3502ac_save_CFLAGS=$CFLAGS
7083c021 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
030272f3 3504$as_echo_n "checking whether $CC accepts -g... " >&6; }
08c2568c 3505if ${ac_cv_prog_cc_g+:} false; then :
030272f3 3506 $as_echo_n "(cached) " >&6
db137867
AC
3507else
3508 ac_save_c_werror_flag=$ac_c_werror_flag
3509 ac_c_werror_flag=yes
3510 ac_cv_prog_cc_g=no
3511 CFLAGS="-g"
7083c021 3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3513/* end confdefs.h. */
3514
3515int
3516main ()
3517{
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
7083c021 3523if ac_fn_c_try_compile "$LINENO"; then :
db137867
AC
3524 ac_cv_prog_cc_g=yes
3525else
7083c021
AC
3526 CFLAGS=""
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3528/* end confdefs.h. */
3529
3530int
3531main ()
3532{
3533
3534 ;
3535 return 0;
3536}
3537_ACEOF
7083c021 3538if ac_fn_c_try_compile "$LINENO"; then :
db137867 3539
7083c021
AC
3540else
3541 ac_c_werror_flag=$ac_save_c_werror_flag
db137867 3542 CFLAGS="-g"
7083c021 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3544/* end confdefs.h. */
3545
3546int
3547main ()
3548{
3549
3550 ;
3551 return 0;
3552}
3553_ACEOF
7083c021 3554if ac_fn_c_try_compile "$LINENO"; then :
db137867 3555 ac_cv_prog_cc_g=yes
db137867 3556fi
db137867
AC
3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558fi
db137867
AC
3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560fi
db137867
AC
3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3563fi
7083c021 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
030272f3 3565$as_echo "$ac_cv_prog_cc_g" >&6; }
db137867
AC
3566if test "$ac_test_CFLAGS" = set; then
3567 CFLAGS=$ac_save_CFLAGS
3568elif test $ac_cv_prog_cc_g = yes; then
3569 if test "$GCC" = yes; then
3570 CFLAGS="-g -O2"
3571 else
3572 CFLAGS="-g"
3573 fi
3574else
3575 if test "$GCC" = yes; then
3576 CFLAGS="-O2"
3577 else
3578 CFLAGS=
3579 fi
3580fi
7083c021 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
030272f3 3582$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
08c2568c 3583if ${ac_cv_prog_cc_c89+:} false; then :
030272f3 3584 $as_echo_n "(cached) " >&6
db137867
AC
3585else
3586 ac_cv_prog_cc_c89=no
3587ac_save_CC=$CC
7083c021 3588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3589/* end confdefs.h. */
3590#include <stdarg.h>
3591#include <stdio.h>
3592#include <sys/types.h>
3593#include <sys/stat.h>
3594/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3595struct buf { int x; };
3596FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597static char *e (p, i)
3598 char **p;
3599 int i;
3600{
3601 return p[i];
3602}
3603static char *f (char * (*g) (char **, int), char **p, ...)
3604{
3605 char *s;
3606 va_list v;
3607 va_start (v,p);
3608 s = g (p, va_arg (v,int));
3609 va_end (v);
3610 return s;
3611}
3612
3613/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3614 function prototypes and stuff, but not '\xHH' hex character constants.
3615 These don't provoke an error unfortunately, instead are silently treated
3616 as 'x'. The following induces an error, until -std is added to get
3617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3618 array size at least. It's necessary to write '\x00'==0 to get something
3619 that's true only with -std. */
3620int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621
3622/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3623 inside strings and character constants. */
3624#define FOO(x) 'x'
3625int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3626
3627int test (int i, double x);
3628struct s1 {int (*f) (int a);};
3629struct s2 {int (*f) (double a);};
3630int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631int argc;
3632char **argv;
3633int
3634main ()
3635{
3636return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3637 ;
3638 return 0;
3639}
3640_ACEOF
3641for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3642 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3643do
3644 CC="$ac_save_CC $ac_arg"
7083c021 3645 if ac_fn_c_try_compile "$LINENO"; then :
db137867 3646 ac_cv_prog_cc_c89=$ac_arg
db137867 3647fi
db137867
AC
3648rm -f core conftest.err conftest.$ac_objext
3649 test "x$ac_cv_prog_cc_c89" != "xno" && break
3650done
3651rm -f conftest.$ac_ext
3652CC=$ac_save_CC
3653
3654fi
3655# AC_CACHE_VAL
3656case "x$ac_cv_prog_cc_c89" in
3657 x)
7083c021 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
030272f3 3659$as_echo "none needed" >&6; } ;;
db137867 3660 xno)
7083c021 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
030272f3 3662$as_echo "unsupported" >&6; } ;;
db137867
AC
3663 *)
3664 CC="$CC $ac_cv_prog_cc_c89"
7083c021 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
030272f3 3666$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
db137867 3667esac
7083c021 3668if test "x$ac_cv_prog_cc_c89" != xno; then :
db137867 3669
7083c021 3670fi
db137867
AC
3671
3672ac_ext=c
3673ac_cpp='$CPP $CPPFLAGS'
3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677
3678depcc="$CC" am_compiler_list=
3679
7083c021 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
030272f3 3681$as_echo_n "checking dependency style of $depcc... " >&6; }
08c2568c 3682if ${am_cv_CC_dependencies_compiler_type+:} false; then :
030272f3 3683 $as_echo_n "(cached) " >&6
db137867
AC
3684else
3685 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3686 # We make a subdir and do the tests there. Otherwise we can end up
3687 # making bogus files that we don't know about and never remove. For
3688 # instance it was reported that on HP-UX the gcc test will end up
3689 # making a dummy file named `D' -- because `-MD' means `put the output
3690 # in D'.
3691 mkdir conftest.dir
3692 # Copy depcomp to subdir because otherwise we won't find it if we're
3693 # using a relative directory.
3694 cp "$am_depcomp" conftest.dir
3695 cd conftest.dir
3696 # We will build objects and dependencies in a subdirectory because
3697 # it helps to detect inapplicable dependency modes. For instance
3698 # both Tru64's cc and ICC support -MD to output dependencies as a
3699 # side effect of compilation, but ICC will put the dependencies in
3700 # the current directory while Tru64 will put them in the object
3701 # directory.
3702 mkdir sub
3703
3704 am_cv_CC_dependencies_compiler_type=none
3705 if test "$am_compiler_list" = ""; then
3706 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3707 fi
7083c021
AC
3708 am__universal=false
3709 case " $depcc " in #(
3710 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3711 esac
3712
db137867
AC
3713 for depmode in $am_compiler_list; do
3714 # Setup a source with many dependencies, because some compilers
3715 # like to wrap large dependency lists on column 80 (with \), and
3716 # we should not choose a depcomp mode which is confused by this.
3717 #
3718 # We need to recreate these files for each test, as the compiler may
3719 # overwrite some of them when testing with obscure command lines.
3720 # This happens at least with the AIX C compiler.
3721 : > sub/conftest.c
3722 for i in 1 2 3 4 5 6; do
3723 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3724 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3725 # Solaris 8's {/usr,}/bin/sh.
3726 touch sub/conftst$i.h
3727 done
3728 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3729
7083c021
AC
3730 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3731 # mode. It turns out that the SunPro C++ compiler does not properly
3732 # handle `-M -o', and we need to detect this. Also, some Intel
3733 # versions had trouble with output in subdirs
3734 am__obj=sub/conftest.${OBJEXT-o}
3735 am__minus_obj="-o $am__obj"
db137867 3736 case $depmode in
7083c021
AC
3737 gcc)
3738 # This depmode causes a compiler race in universal mode.
3739 test "$am__universal" = false || continue
3740 ;;
db137867
AC
3741 nosideeffect)
3742 # after this tag, mechanisms are not by side-effect, so they'll
3743 # only be used when explicitly requested
3744 if test "x$enable_dependency_tracking" = xyes; then
3745 continue
3746 else
3747 break
3748 fi
3749 ;;
271a98fe 3750 msvisualcpp | msvcmsys)
7083c021
AC
3751 # This compiler won't grok `-c -o', but also, the minuso test has
3752 # not run yet. These depmodes are late enough in the game, and
3753 # so weak that their functioning should not be impacted.
3754 am__obj=conftest.${OBJEXT-o}
3755 am__minus_obj=
3756 ;;
db137867
AC
3757 none) break ;;
3758 esac
db137867 3759 if depmode=$depmode \
7083c021 3760 source=sub/conftest.c object=$am__obj \
db137867 3761 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7083c021 3762 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
db137867
AC
3763 >/dev/null 2>conftest.err &&
3764 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3765 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7083c021 3766 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
db137867
AC
3767 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3768 # icc doesn't choke on unknown options, it will just issue warnings
3769 # or remarks (even with -Werror). So we grep stderr for any message
3770 # that says an option was ignored or not supported.
3771 # When given -MP, icc 7.0 and 7.1 complain thusly:
3772 # icc: Command line warning: ignoring option '-M'; no argument required
3773 # The diagnosis changed in icc 8.0:
3774 # icc: Command line remark: option '-MP' not supported
3775 if (grep 'ignoring option' conftest.err ||
3776 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3777 am_cv_CC_dependencies_compiler_type=$depmode
3778 break
3779 fi
3780 fi
3781 done
3782
3783 cd ..
3784 rm -rf conftest.dir
3785else
3786 am_cv_CC_dependencies_compiler_type=none
3787fi
3788
3789fi
7083c021 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
030272f3 3791$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
db137867
AC
3792CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3793
3794 if
3795 test "x$enable_dependency_tracking" != xno \
3796 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3797 am__fastdepCC_TRUE=
3798 am__fastdepCC_FALSE='#'
3799else
3800 am__fastdepCC_TRUE='#'
3801 am__fastdepCC_FALSE=
3802fi
3803
3804
030272f3
VY
3805
3806ac_ext=c
3807ac_cpp='$CPP $CPPFLAGS'
3808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083c021 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
030272f3
VY
3812$as_echo_n "checking how to run the C preprocessor... " >&6; }
3813# On Suns, sometimes $CPP names a directory.
3814if test -n "$CPP" && test -d "$CPP"; then
3815 CPP=
3816fi
3817if test -z "$CPP"; then
08c2568c 3818 if ${ac_cv_prog_CPP+:} false; then :
030272f3 3819 $as_echo_n "(cached) " >&6
db137867 3820else
030272f3
VY
3821 # Double quotes because CPP needs to be expanded
3822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3823 do
3824 ac_preproc_ok=false
3825for ac_c_preproc_warn_flag in '' yes
3826do
3827 # Use a header file that comes with gcc, so configuring glibc
3828 # with a fresh cross-compiler works.
3829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3830 # <limits.h> exists even on freestanding compilers.
3831 # On the NeXT, cc -E runs the code through the compiler's parser,
3832 # not just through cpp. "Syntax error" is here to catch this case.
7083c021 3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 3834/* end confdefs.h. */
030272f3
VY
3835#ifdef __STDC__
3836# include <limits.h>
db137867 3837#else
030272f3 3838# include <assert.h>
db137867 3839#endif
030272f3 3840 Syntax error
db137867 3841_ACEOF
7083c021 3842if ac_fn_c_try_cpp "$LINENO"; then :
db137867 3843
7083c021 3844else
030272f3
VY
3845 # Broken: fails on valid input.
3846continue
db137867 3847fi
08c2568c 3848rm -f conftest.err conftest.i conftest.$ac_ext
db137867 3849
030272f3
VY
3850 # OK, works on sane cases. Now check whether nonexistent headers
3851 # can be detected and how.
7083c021 3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
3853/* end confdefs.h. */
3854#include <ac_nonexistent.h>
3855_ACEOF
7083c021 3856if ac_fn_c_try_cpp "$LINENO"; then :
030272f3
VY
3857 # Broken: success on invalid input.
3858continue
3859else
030272f3
VY
3860 # Passes both tests.
3861ac_preproc_ok=:
3862break
3863fi
08c2568c 3864rm -f conftest.err conftest.i conftest.$ac_ext
db137867 3865
030272f3
VY
3866done
3867# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
08c2568c 3868rm -f conftest.i conftest.err conftest.$ac_ext
7083c021 3869if $ac_preproc_ok; then :
030272f3 3870 break
db137867
AC
3871fi
3872
030272f3
VY
3873 done
3874 ac_cv_prog_CPP=$CPP
db137867 3875
030272f3
VY
3876fi
3877 CPP=$ac_cv_prog_CPP
db137867 3878else
030272f3
VY
3879 ac_cv_prog_CPP=$CPP
3880fi
7083c021 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
030272f3
VY
3882$as_echo "$CPP" >&6; }
3883ac_preproc_ok=false
3884for ac_c_preproc_warn_flag in '' yes
db137867 3885do
030272f3
VY
3886 # Use a header file that comes with gcc, so configuring glibc
3887 # with a fresh cross-compiler works.
3888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889 # <limits.h> exists even on freestanding compilers.
3890 # On the NeXT, cc -E runs the code through the compiler's parser,
3891 # not just through cpp. "Syntax error" is here to catch this case.
7083c021 3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
3893/* end confdefs.h. */
3894#ifdef __STDC__
3895# include <limits.h>
3896#else
3897# include <assert.h>
3898#endif
3899 Syntax error
3900_ACEOF
7083c021 3901if ac_fn_c_try_cpp "$LINENO"; then :
db137867 3902
7083c021 3903else
030272f3
VY
3904 # Broken: fails on valid input.
3905continue
db137867 3906fi
08c2568c 3907rm -f conftest.err conftest.i conftest.$ac_ext
db137867 3908
030272f3
VY
3909 # OK, works on sane cases. Now check whether nonexistent headers
3910 # can be detected and how.
7083c021 3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
3912/* end confdefs.h. */
3913#include <ac_nonexistent.h>
3914_ACEOF
7083c021 3915if ac_fn_c_try_cpp "$LINENO"; then :
030272f3
VY
3916 # Broken: success on invalid input.
3917continue
3918else
030272f3
VY
3919 # Passes both tests.
3920ac_preproc_ok=:
3921break
3922fi
08c2568c 3923rm -f conftest.err conftest.i conftest.$ac_ext
030272f3
VY
3924
3925done
3926# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
08c2568c 3927rm -f conftest.i conftest.err conftest.$ac_ext
7083c021
AC
3928if $ac_preproc_ok; then :
3929
db137867 3930else
7083c021 3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3933as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3934See \`config.log' for more details" "$LINENO" 5; }
030272f3
VY
3935fi
3936
3937ac_ext=c
3938ac_cpp='$CPP $CPPFLAGS'
3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943
7083c021 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
030272f3 3945$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
08c2568c 3946if ${ac_cv_path_GREP+:} false; then :
030272f3 3947 $as_echo_n "(cached) " >&6
db137867 3948else
030272f3 3949 if test -z "$GREP"; then
db137867 3950 ac_path_GREP_found=false
030272f3
VY
3951 # Loop through the user's path and test for each of PROGNAME-LIST
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
db137867
AC
3953for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
7083c021 3957 for ac_prog in grep ggrep; do
030272f3
VY
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3960 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3961# Check for GNU ac_path_GREP and select it if it is found.
db137867
AC
3962 # Check for GNU $ac_path_GREP
3963case `"$ac_path_GREP" --version 2>&1` in
3964*GNU*)
3965 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3966*)
3967 ac_count=0
030272f3 3968 $as_echo_n 0123456789 >"conftest.in"
db137867
AC
3969 while :
3970 do
3971 cat "conftest.in" "conftest.in" >"conftest.tmp"
3972 mv "conftest.tmp" "conftest.in"
3973 cp "conftest.in" "conftest.nl"
030272f3 3974 $as_echo 'GREP' >> "conftest.nl"
db137867
AC
3975 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 3977 as_fn_arith $ac_count + 1 && ac_count=$as_val
db137867
AC
3978 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3979 # Best one so far, save it but keep looking for a better one
3980 ac_cv_path_GREP="$ac_path_GREP"
3981 ac_path_GREP_max=$ac_count
3982 fi
3983 # 10*(2^10) chars as input seems more than enough
3984 test $ac_count -gt 10 && break
3985 done
3986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3987esac
3988
030272f3
VY
3989 $ac_path_GREP_found && break 3
3990 done
db137867 3991 done
7083c021 3992 done
db137867 3993IFS=$as_save_IFS
030272f3 3994 if test -z "$ac_cv_path_GREP"; then
08c2568c 3995 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 3996 fi
db137867
AC
3997else
3998 ac_cv_path_GREP=$GREP
3999fi
4000
db137867 4001fi
7083c021 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
030272f3 4003$as_echo "$ac_cv_path_GREP" >&6; }
db137867
AC
4004 GREP="$ac_cv_path_GREP"
4005
4006
7083c021 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
030272f3 4008$as_echo_n "checking for egrep... " >&6; }
08c2568c 4009if ${ac_cv_path_EGREP+:} false; then :
030272f3 4010 $as_echo_n "(cached) " >&6
db137867
AC
4011else
4012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4013 then ac_cv_path_EGREP="$GREP -E"
4014 else
030272f3 4015 if test -z "$EGREP"; then
db137867 4016 ac_path_EGREP_found=false
030272f3
VY
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
db137867
AC
4019for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
7083c021 4023 for ac_prog in egrep; do
030272f3
VY
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4027# Check for GNU ac_path_EGREP and select it if it is found.
db137867
AC
4028 # Check for GNU $ac_path_EGREP
4029case `"$ac_path_EGREP" --version 2>&1` in
4030*GNU*)
4031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4032*)
4033 ac_count=0
030272f3 4034 $as_echo_n 0123456789 >"conftest.in"
db137867
AC
4035 while :
4036 do
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
030272f3 4040 $as_echo 'EGREP' >> "conftest.nl"
db137867
AC
4041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4043 as_fn_arith $ac_count + 1 && ac_count=$as_val
db137867
AC
4044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_EGREP="$ac_path_EGREP"
4047 ac_path_EGREP_max=$ac_count
4048 fi
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4051 done
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053esac
4054
030272f3
VY
4055 $ac_path_EGREP_found && break 3
4056 done
db137867 4057 done
7083c021 4058 done
db137867 4059IFS=$as_save_IFS
030272f3 4060 if test -z "$ac_cv_path_EGREP"; then
08c2568c 4061 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4062 fi
db137867
AC
4063else
4064 ac_cv_path_EGREP=$EGREP
4065fi
4066
db137867
AC
4067 fi
4068fi
7083c021 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
030272f3 4070$as_echo "$ac_cv_path_EGREP" >&6; }
db137867
AC
4071 EGREP="$ac_cv_path_EGREP"
4072
4073
7083c021 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
030272f3 4075$as_echo_n "checking for ANSI C header files... " >&6; }
08c2568c 4076if ${ac_cv_header_stdc+:} false; then :
030272f3 4077 $as_echo_n "(cached) " >&6
db137867 4078else
7083c021 4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4080/* end confdefs.h. */
030272f3
VY
4081#include <stdlib.h>
4082#include <stdarg.h>
4083#include <string.h>
4084#include <float.h>
db137867 4085
db137867
AC
4086int
4087main ()
4088{
030272f3 4089
db137867
AC
4090 ;
4091 return 0;
4092}
4093_ACEOF
7083c021 4094if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4095 ac_cv_header_stdc=yes
db137867 4096else
7083c021 4097 ac_cv_header_stdc=no
db137867 4098fi
030272f3
VY
4099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100
4101if test $ac_cv_header_stdc = yes; then
4102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7083c021 4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4104/* end confdefs.h. */
4105#include <string.h>
4106
4107_ACEOF
4108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021
AC
4109 $EGREP "memchr" >/dev/null 2>&1; then :
4110
db137867 4111else
030272f3 4112 ac_cv_header_stdc=no
db137867 4113fi
030272f3 4114rm -f conftest*
db137867
AC
4115
4116fi
4117
030272f3
VY
4118if test $ac_cv_header_stdc = yes; then
4119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7083c021 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4121/* end confdefs.h. */
030272f3 4122#include <stdlib.h>
db137867
AC
4123
4124_ACEOF
030272f3 4125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021
AC
4126 $EGREP "free" >/dev/null 2>&1; then :
4127
db137867 4128else
030272f3 4129 ac_cv_header_stdc=no
db137867 4130fi
030272f3 4131rm -f conftest*
db137867
AC
4132
4133fi
db137867 4134
030272f3
VY
4135if test $ac_cv_header_stdc = yes; then
4136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7083c021 4137 if test "$cross_compiling" = yes; then :
030272f3 4138 :
db137867 4139else
7083c021 4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4141/* end confdefs.h. */
030272f3
VY
4142#include <ctype.h>
4143#include <stdlib.h>
4144#if ((' ' & 0x0FF) == 0x020)
4145# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4146# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4147#else
4148# define ISLOWER(c) \
4149 (('a' <= (c) && (c) <= 'i') \
4150 || ('j' <= (c) && (c) <= 'r') \
4151 || ('s' <= (c) && (c) <= 'z'))
4152# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
db137867
AC
4153#endif
4154
030272f3
VY
4155#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4156int
4157main ()
4158{
4159 int i;
4160 for (i = 0; i < 256; i++)
4161 if (XOR (islower (i), ISLOWER (i))
4162 || toupper (i) != TOUPPER (i))
4163 return 2;
db137867
AC
4164 return 0;
4165}
4166_ACEOF
7083c021 4167if ac_fn_c_try_run "$LINENO"; then :
030272f3 4168
7083c021
AC
4169else
4170 ac_cv_header_stdc=no
030272f3 4171fi
7083c021
AC
4172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4173 conftest.$ac_objext conftest.beam conftest.$ac_ext
030272f3
VY
4174fi
4175
030272f3
VY
4176fi
4177fi
7083c021 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
030272f3
VY
4179$as_echo "$ac_cv_header_stdc" >&6; }
4180if test $ac_cv_header_stdc = yes; then
4181
7083c021 4182$as_echo "#define STDC_HEADERS 1" >>confdefs.h
030272f3
VY
4183
4184fi
4185
4186# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7083c021
AC
4187for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4188 inttypes.h stdint.h unistd.h
4189do :
4190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4191ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4192"
08c2568c 4193if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
4194 cat >>confdefs.h <<_ACEOF
4195#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4196_ACEOF
030272f3 4197
7083c021 4198fi
030272f3 4199
7083c021 4200done
030272f3
VY
4201
4202
4203
7083c021 4204 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
08c2568c 4205if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021
AC
4206 MINIX=yes
4207else
4208 MINIX=
4209fi
030272f3
VY
4210
4211
7083c021 4212 if test "$MINIX" = yes; then
030272f3 4213
7083c021 4214$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
030272f3 4215
db137867 4216
7083c021 4217$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
db137867 4218
db137867 4219
7083c021 4220$as_echo "#define _MINIX 1" >>confdefs.h
030272f3 4221
7083c021 4222 fi
030272f3
VY
4223
4224
7083c021 4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
030272f3 4226$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
08c2568c 4227if ${ac_cv_safe_to_define___extensions__+:} false; then :
030272f3 4228 $as_echo_n "(cached) " >&6
db137867 4229else
7083c021 4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 4231/* end confdefs.h. */
db137867 4232
030272f3
VY
4233# define __EXTENSIONS__ 1
4234 $ac_includes_default
4235int
4236main ()
4237{
4238
4239 ;
4240 return 0;
4241}
4242_ACEOF
7083c021 4243if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4244 ac_cv_safe_to_define___extensions__=yes
db137867 4245else
7083c021 4246 ac_cv_safe_to_define___extensions__=no
db137867 4247fi
030272f3
VY
4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249fi
7083c021 4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
030272f3
VY
4251$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4252 test $ac_cv_safe_to_define___extensions__ = yes &&
7083c021 4253 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
db137867 4254
7083c021 4255 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
030272f3 4256
7083c021 4257 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
030272f3 4258
7083c021
AC
4259 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4260
4261 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
030272f3 4262
030272f3
VY
4263
4264
4265
7083c021 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
030272f3 4267$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
08c2568c 4268if ${ac_cv_prog_cc_c99+:} false; then :
030272f3 4269 $as_echo_n "(cached) " >&6
db137867 4270else
030272f3
VY
4271 ac_cv_prog_cc_c99=no
4272ac_save_CC=$CC
7083c021 4273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4274/* end confdefs.h. */
4275#include <stdarg.h>
4276#include <stdbool.h>
4277#include <stdlib.h>
4278#include <wchar.h>
4279#include <stdio.h>
db137867 4280
030272f3
VY
4281// Check varargs macros. These examples are taken from C99 6.10.3.5.
4282#define debug(...) fprintf (stderr, __VA_ARGS__)
4283#define showlist(...) puts (#__VA_ARGS__)
4284#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4285static void
4286test_varargs_macros (void)
4287{
4288 int x = 1234;
4289 int y = 5678;
4290 debug ("Flag");
4291 debug ("X = %d\n", x);
4292 showlist (The first, second, and third items.);
4293 report (x>y, "x is %d but y is %d", x, y);
4294}
db137867 4295
030272f3
VY
4296// Check long long types.
4297#define BIG64 18446744073709551615ull
4298#define BIG32 4294967295ul
4299#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4300#if !BIG_OK
4301 your preprocessor is broken;
4302#endif
4303#if BIG_OK
4304#else
4305 your preprocessor is broken;
4306#endif
4307static long long int bignum = -9223372036854775807LL;
4308static unsigned long long int ubignum = BIG64;
db137867 4309
030272f3
VY
4310struct incomplete_array
4311{
4312 int datasize;
4313 double data[];
4314};
db137867 4315
030272f3
VY
4316struct named_init {
4317 int number;
4318 const wchar_t *name;
4319 double average;
4320};
db137867 4321
030272f3 4322typedef const char *ccp;
db137867 4323
030272f3
VY
4324static inline int
4325test_restrict (ccp restrict text)
4326{
4327 // See if C++-style comments work.
4328 // Iterate through items via the restricted pointer.
4329 // Also check for declarations in for loops.
4330 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4331 continue;
4332 return 0;
4333}
db137867 4334
030272f3
VY
4335// Check varargs and va_copy.
4336static void
4337test_varargs (const char *format, ...)
4338{
4339 va_list args;
4340 va_start (args, format);
4341 va_list args_copy;
4342 va_copy (args_copy, args);
db137867 4343
030272f3
VY
4344 const char *str;
4345 int number;
4346 float fnumber;
db137867 4347
030272f3
VY
4348 while (*format)
4349 {
4350 switch (*format++)
4351 {
4352 case 's': // string
4353 str = va_arg (args_copy, const char *);
4354 break;
4355 case 'd': // int
4356 number = va_arg (args_copy, int);
4357 break;
4358 case 'f': // float
4359 fnumber = va_arg (args_copy, double);
4360 break;
4361 default:
4362 break;
4363 }
4364 }
4365 va_end (args_copy);
4366 va_end (args);
4367}
db137867 4368
030272f3
VY
4369int
4370main ()
4371{
db137867 4372
030272f3
VY
4373 // Check bool.
4374 _Bool success = false;
db137867 4375
030272f3
VY
4376 // Check restrict.
4377 if (test_restrict ("String literal") == 0)
4378 success = true;
4379 char *restrict newvar = "Another string";
db137867 4380
030272f3
VY
4381 // Check varargs.
4382 test_varargs ("s, d' f .", "string", 65, 34.234);
4383 test_varargs_macros ();
db137867 4384
030272f3
VY
4385 // Check flexible array members.
4386 struct incomplete_array *ia =
4387 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4388 ia->datasize = 10;
4389 for (int i = 0; i < ia->datasize; ++i)
4390 ia->data[i] = i * 1.234;
db137867 4391
030272f3
VY
4392 // Check named initializers.
4393 struct named_init ni = {
4394 .number = 34,
4395 .name = L"Test wide string",
4396 .average = 543.34343,
4397 };
db137867 4398
030272f3 4399 ni.number = 58;
db137867 4400
030272f3
VY
4401 int dynamic_array[ni.number];
4402 dynamic_array[ni.number - 1] = 543;
4403
4404 // work around unused variable warnings
4405 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4406 || dynamic_array[ni.number - 1] != 543);
4407
4408 ;
4409 return 0;
4410}
4411_ACEOF
4412for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4413do
4414 CC="$ac_save_CC $ac_arg"
7083c021 4415 if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4416 ac_cv_prog_cc_c99=$ac_arg
db137867 4417fi
030272f3
VY
4418rm -f core conftest.err conftest.$ac_objext
4419 test "x$ac_cv_prog_cc_c99" != "xno" && break
4420done
4421rm -f conftest.$ac_ext
4422CC=$ac_save_CC
4423
db137867 4424fi
030272f3
VY
4425# AC_CACHE_VAL
4426case "x$ac_cv_prog_cc_c99" in
4427 x)
7083c021 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
030272f3
VY
4429$as_echo "none needed" >&6; } ;;
4430 xno)
7083c021 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
030272f3
VY
4432$as_echo "unsupported" >&6; } ;;
4433 *)
4434 CC="$CC $ac_cv_prog_cc_c99"
7083c021 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
030272f3 4436$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
db137867 4437esac
7083c021 4438if test "x$ac_cv_prog_cc_c99" != xno; then :
db137867 4439
030272f3
VY
4440fi
4441
4442
030272f3 4443
7083c021 4444if test x"$ac_cv_prog_cc_c99" = "xno"; then
08c2568c 4445 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
030272f3 4446fi
db137867 4447
db137867
AC
4448
4449
7083c021 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
030272f3 4451$as_echo_n "checking for egrep... " >&6; }
08c2568c 4452if ${ac_cv_path_EGREP+:} false; then :
030272f3 4453 $as_echo_n "(cached) " >&6
db137867 4454else
030272f3
VY
4455 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4456 then ac_cv_path_EGREP="$GREP -E"
4457 else
4458 if test -z "$EGREP"; then
4459 ac_path_EGREP_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
7083c021 4466 for ac_prog in egrep; do
030272f3
VY
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4470# Check for GNU ac_path_EGREP and select it if it is found.
4471 # Check for GNU $ac_path_EGREP
4472case `"$ac_path_EGREP" --version 2>&1` in
4473*GNU*)
4474 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4475*)
4476 ac_count=0
4477 $as_echo_n 0123456789 >"conftest.in"
4478 while :
4479 do
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo 'EGREP' >> "conftest.nl"
4484 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4486 as_fn_arith $ac_count + 1 && ac_count=$as_val
030272f3
VY
4487 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_EGREP="$ac_path_EGREP"
4490 ac_path_EGREP_max=$ac_count
4491 fi
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496esac
db137867 4497
030272f3
VY
4498 $ac_path_EGREP_found && break 3
4499 done
4500 done
7083c021 4501 done
030272f3
VY
4502IFS=$as_save_IFS
4503 if test -z "$ac_cv_path_EGREP"; then
08c2568c 4504 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4505 fi
db137867 4506else
030272f3 4507 ac_cv_path_EGREP=$EGREP
db137867 4508fi
030272f3
VY
4509
4510 fi
4511fi
7083c021 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
030272f3
VY
4513$as_echo "$ac_cv_path_EGREP" >&6; }
4514 EGREP="$ac_cv_path_EGREP"
4515
4516
7083c021 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
030272f3 4518$as_echo_n "checking for a sed that does not truncate output... " >&6; }
08c2568c 4519if ${ac_cv_path_SED+:} false; then :
030272f3
VY
4520 $as_echo_n "(cached) " >&6
4521else
4522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4523 for ac_i in 1 2 3 4 5 6 7; do
4524 ac_script="$ac_script$as_nl$ac_script"
4525 done
4526 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7083c021 4527 { ac_script=; unset ac_script;}
030272f3
VY
4528 if test -z "$SED"; then
4529 ac_path_SED_found=false
4530 # Loop through the user's path and test for each of PROGNAME-LIST
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
7083c021 4536 for ac_prog in sed gsed; do
030272f3
VY
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4539 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4540# Check for GNU ac_path_SED and select it if it is found.
4541 # Check for GNU $ac_path_SED
4542case `"$ac_path_SED" --version 2>&1` in
4543*GNU*)
4544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4545*)
4546 ac_count=0
4547 $as_echo_n 0123456789 >"conftest.in"
4548 while :
4549 do
4550 cat "conftest.in" "conftest.in" >"conftest.tmp"
4551 mv "conftest.tmp" "conftest.in"
4552 cp "conftest.in" "conftest.nl"
4553 $as_echo '' >> "conftest.nl"
4554 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4556 as_fn_arith $ac_count + 1 && ac_count=$as_val
030272f3
VY
4557 if test $ac_count -gt ${ac_path_SED_max-0}; then
4558 # Best one so far, save it but keep looking for a better one
4559 ac_cv_path_SED="$ac_path_SED"
4560 ac_path_SED_max=$ac_count
db137867 4561 fi
030272f3
VY
4562 # 10*(2^10) chars as input seems more than enough
4563 test $ac_count -gt 10 && break
db137867 4564 done
030272f3
VY
4565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566esac
4567
4568 $ac_path_SED_found && break 3
4569 done
4570 done
7083c021 4571 done
030272f3
VY
4572IFS=$as_save_IFS
4573 if test -z "$ac_cv_path_SED"; then
08c2568c 4574 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
030272f3 4575 fi
db137867 4576else
030272f3 4577 ac_cv_path_SED=$SED
db137867 4578fi
030272f3 4579
db137867 4580fi
7083c021 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
030272f3
VY
4582$as_echo "$ac_cv_path_SED" >&6; }
4583 SED="$ac_cv_path_SED"
4584 rm -f conftest.sed
db137867 4585
030272f3
VY
4586
4587F77=no
4588CXX=no
4589GCJ=no
4590
4591# Check whether --enable-static was given.
7083c021 4592if test "${enable_static+set}" = set; then :
030272f3
VY
4593 enableval=$enable_static; p=${PACKAGE-default}
4594 case $enableval in
4595 yes) enable_static=yes ;;
4596 no) enable_static=no ;;
4597 *)
4598 enable_static=no
4599 # Look at the argument we got. We use all the common list separators.
4600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4601 for pkg in $enableval; do
4602 IFS="$lt_save_ifs"
4603 if test "X$pkg" = "X$p"; then
4604 enable_static=yes
4605 fi
4606 done
4607 IFS="$lt_save_ifs"
4608 ;;
4609 esac
db137867 4610else
030272f3 4611 enable_static=no
db137867 4612fi
030272f3
VY
4613
4614
4615
7083c021
AC
4616
4617
4618
4619
4620
4621
030272f3 4622# Check whether --enable-shared was given.
7083c021 4623if test "${enable_shared+set}" = set; then :
030272f3
VY
4624 enableval=$enable_shared; p=${PACKAGE-default}
4625 case $enableval in
4626 yes) enable_shared=yes ;;
4627 no) enable_shared=no ;;
4628 *)
4629 enable_shared=no
4630 # Look at the argument we got. We use all the common list separators.
4631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4632 for pkg in $enableval; do
4633 IFS="$lt_save_ifs"
4634 if test "X$pkg" = "X$p"; then
4635 enable_shared=yes
4636 fi
4637 done
4638 IFS="$lt_save_ifs"
4639 ;;
4640 esac
db137867 4641else
030272f3 4642 enable_shared=yes
db137867 4643fi
db137867
AC
4644
4645
7083c021
AC
4646
4647
4648
4649
4650
4651
4652
4653
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
030272f3
VY
4655$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4656 # Check whether --enable-maintainer-mode was given.
7083c021 4657if test "${enable_maintainer_mode+set}" = set; then :
030272f3 4658 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
db137867 4659else
030272f3 4660 USE_MAINTAINER_MODE=no
db137867 4661fi
030272f3 4662
7083c021 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
030272f3
VY
4664$as_echo "$USE_MAINTAINER_MODE" >&6; }
4665 if test $USE_MAINTAINER_MODE = yes; then
4666 MAINTAINER_MODE_TRUE=
4667 MAINTAINER_MODE_FALSE='#'
4668else
4669 MAINTAINER_MODE_TRUE='#'
4670 MAINTAINER_MODE_FALSE=
4671fi
4672
4673 MAINT=$MAINTAINER_MODE_TRUE
4674
4675
4676
7083c021 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
030272f3 4678$as_echo_n "checking for library containing strerror... " >&6; }
08c2568c 4679if ${ac_cv_search_strerror+:} false; then :
030272f3
VY
4680 $as_echo_n "(cached) " >&6
4681else
4682 ac_func_search_save_LIBS=$LIBS
7083c021 4683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4684/* end confdefs.h. */
4685
4686/* Override any GCC internal prototype to avoid an error.
4687 Use char because int might match the return type of a GCC
4688 builtin and then its argument prototype would still apply. */
4689#ifdef __cplusplus
4690extern "C"
4691#endif
4692char strerror ();
4693int
4694main ()
4695{
4696return strerror ();
4697 ;
4698 return 0;
4699}
4700_ACEOF
4701for ac_lib in '' cposix; do
4702 if test -z "$ac_lib"; then
4703 ac_res="none required"
4704 else
4705 ac_res=-l$ac_lib
4706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4707 fi
7083c021 4708 if ac_fn_c_try_link "$LINENO"; then :
030272f3 4709 ac_cv_search_strerror=$ac_res
030272f3 4710fi
7083c021
AC
4711rm -f core conftest.err conftest.$ac_objext \
4712 conftest$ac_exeext
08c2568c 4713 if ${ac_cv_search_strerror+:} false; then :
030272f3
VY
4714 break
4715fi
4716done
08c2568c 4717if ${ac_cv_search_strerror+:} false; then :
7083c021 4718
030272f3
VY
4719else
4720 ac_cv_search_strerror=no
4721fi
4722rm conftest.$ac_ext
4723LIBS=$ac_func_search_save_LIBS
4724fi
7083c021 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
030272f3
VY
4726$as_echo "$ac_cv_search_strerror" >&6; }
4727ac_res=$ac_cv_search_strerror
7083c021 4728if test "$ac_res" != no; then :
030272f3
VY
4729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4730
4731fi
4732
7083c021 4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
030272f3 4734$as_echo_n "checking for inline... " >&6; }
08c2568c 4735if ${ac_cv_c_inline+:} false; then :
030272f3
VY
4736 $as_echo_n "(cached) " >&6
4737else
4738 ac_cv_c_inline=no
4739for ac_kw in inline __inline__ __inline; do
7083c021 4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4741/* end confdefs.h. */
4742#ifndef __cplusplus
4743typedef int foo_t;
4744static $ac_kw foo_t static_foo () {return 0; }
4745$ac_kw foo_t foo () {return 0; }
4746#endif
4747
4748_ACEOF
7083c021 4749if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4750 ac_cv_c_inline=$ac_kw
030272f3 4751fi
030272f3
VY
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 test "$ac_cv_c_inline" != no && break
4754done
4755
4756fi
7083c021 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
030272f3
VY
4758$as_echo "$ac_cv_c_inline" >&6; }
4759
030272f3
VY
4760case $ac_cv_c_inline in
4761 inline | yes) ;;
4762 *)
4763 case $ac_cv_c_inline in
4764 no) ac_val=;;
4765 *) ac_val=$ac_cv_c_inline;;
4766 esac
4767 cat >>confdefs.h <<_ACEOF
4768#ifndef __cplusplus
4769#define inline $ac_val
4770#endif
4771_ACEOF
db137867
AC
4772 ;;
4773esac
4774
7083c021 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
030272f3 4776$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
08c2568c 4777if ${ac_cv_c_const+:} false; then :
030272f3 4778 $as_echo_n "(cached) " >&6
db137867 4779else
7083c021 4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4781/* end confdefs.h. */
4782
4783int
4784main ()
4785{
4786/* FIXME: Include the comments suggested by Paul. */
4787#ifndef __cplusplus
4788 /* Ultrix mips cc rejects this. */
4789 typedef int charset[2];
4790 const charset cs;
4791 /* SunOS 4.1.1 cc rejects this. */
4792 char const *const *pcpcc;
4793 char **ppc;
4794 /* NEC SVR4.0.2 mips cc rejects this. */
4795 struct point {int x, y;};
4796 static struct point const zero = {0,0};
4797 /* AIX XL C 1.02.0.0 rejects this.
4798 It does not let you subtract one const X* pointer from another in
4799 an arm of an if-expression whose if-part is not a constant
4800 expression */
4801 const char *g = "string";
4802 pcpcc = &g + (g ? g-g : 0);
4803 /* HPUX 7.0 cc rejects these. */
4804 ++pcpcc;
4805 ppc = (char**) pcpcc;
4806 pcpcc = (char const *const *) ppc;
4807 { /* SCO 3.2v4 cc rejects this. */
4808 char *t;
4809 char const *s = 0 ? (char *) 0 : (char const *) 0;
4810
4811 *t++ = 0;
4812 if (s) return 0;
4813 }
4814 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4815 int x[] = {25, 17};
4816 const int *foo = &x[0];
4817 ++foo;
4818 }
4819 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4820 typedef const int *iptr;
4821 iptr p = 0;
4822 ++p;
4823 }
4824 { /* AIX XL C 1.02.0.0 rejects this saying
4825 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4826 struct s { int j; const int *ap[3]; };
4827 struct s *b; b->j = 5;
4828 }
4829 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4830 const int foo = 10;
4831 if (!foo) return 0;
4832 }
4833 return !cs[0] && !zero.x;
4834#endif
4835
4836 ;
4837 return 0;
4838}
4839_ACEOF
7083c021 4840if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4841 ac_cv_c_const=yes
db137867 4842else
7083c021 4843 ac_cv_c_const=no
030272f3 4844fi
030272f3
VY
4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846fi
7083c021 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
030272f3
VY
4848$as_echo "$ac_cv_c_const" >&6; }
4849if test $ac_cv_c_const = no; then
4850
7083c021 4851$as_echo "#define const /**/" >>confdefs.h
030272f3
VY
4852
4853fi
4854
f171dafb
EM
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4856$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4857if ${ac_cv_c_bigendian+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859else
4860 ac_cv_c_bigendian=unknown
4861 # See if we're dealing with a universal compiler.
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h. */
4864#ifndef __APPLE_CC__
4865 not a universal capable compiler
4866 #endif
4867 typedef int dummy;
4868
4869_ACEOF
4870if ac_fn_c_try_compile "$LINENO"; then :
4871
4872 # Check for potential -arch flags. It is not universal unless
4873 # there are at least two -arch flags with different values.
4874 ac_arch=
4875 ac_prev=
4876 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4877 if test -n "$ac_prev"; then
4878 case $ac_word in
4879 i?86 | x86_64 | ppc | ppc64)
4880 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4881 ac_arch=$ac_word
4882 else
4883 ac_cv_c_bigendian=universal
4884 break
4885 fi
4886 ;;
4887 esac
4888 ac_prev=
4889 elif test "x$ac_word" = "x-arch"; then
4890 ac_prev=arch
4891 fi
4892 done
4893fi
4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 if test $ac_cv_c_bigendian = unknown; then
4896 # See if sys/param.h defines the BYTE_ORDER macro.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898/* end confdefs.h. */
4899#include <sys/types.h>
4900 #include <sys/param.h>
4901
4902int
4903main ()
4904{
4905#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4906 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4907 && LITTLE_ENDIAN)
4908 bogus endian macros
4909 #endif
4910
4911 ;
4912 return 0;
4913}
4914_ACEOF
4915if ac_fn_c_try_compile "$LINENO"; then :
4916 # It does; now see whether it defined to BIG_ENDIAN or not.
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h. */
4919#include <sys/types.h>
4920 #include <sys/param.h>
4921
4922int
4923main ()
4924{
4925#if BYTE_ORDER != BIG_ENDIAN
4926 not big endian
4927 #endif
4928
4929 ;
4930 return 0;
4931}
4932_ACEOF
4933if ac_fn_c_try_compile "$LINENO"; then :
4934 ac_cv_c_bigendian=yes
4935else
4936 ac_cv_c_bigendian=no
4937fi
4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939fi
4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 fi
4942 if test $ac_cv_c_bigendian = unknown; then
4943 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h. */
4946#include <limits.h>
4947
4948int
4949main ()
4950{
4951#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4952 bogus endian macros
4953 #endif
4954
4955 ;
4956 return 0;
4957}
4958_ACEOF
4959if ac_fn_c_try_compile "$LINENO"; then :
4960 # It does; now see whether it defined to _BIG_ENDIAN or not.
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962/* end confdefs.h. */
4963#include <limits.h>
4964
4965int
4966main ()
4967{
4968#ifndef _BIG_ENDIAN
4969 not big endian
4970 #endif
4971
4972 ;
4973 return 0;
4974}
4975_ACEOF
4976if ac_fn_c_try_compile "$LINENO"; then :
4977 ac_cv_c_bigendian=yes
4978else
4979 ac_cv_c_bigendian=no
4980fi
4981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982fi
4983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 fi
4985 if test $ac_cv_c_bigendian = unknown; then
4986 # Compile a test program.
4987 if test "$cross_compiling" = yes; then :
4988 # Try to guess by grepping values from an object file.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h. */
4991short int ascii_mm[] =
4992 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4993 short int ascii_ii[] =
4994 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4995 int use_ascii (int i) {
4996 return ascii_mm[i] + ascii_ii[i];
4997 }
4998 short int ebcdic_ii[] =
4999 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5000 short int ebcdic_mm[] =
5001 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5002 int use_ebcdic (int i) {
5003 return ebcdic_mm[i] + ebcdic_ii[i];
5004 }
5005 extern int foo;
5006
5007int
5008main ()
5009{
5010return use_ascii (foo) == use_ebcdic (foo);
5011 ;
5012 return 0;
5013}
5014_ACEOF
5015if ac_fn_c_try_compile "$LINENO"; then :
5016 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5017 ac_cv_c_bigendian=yes
5018 fi
5019 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5020 if test "$ac_cv_c_bigendian" = unknown; then
5021 ac_cv_c_bigendian=no
5022 else
5023 # finding both strings is unlikely to happen, but who knows?
5024 ac_cv_c_bigendian=unknown
5025 fi
5026 fi
5027fi
5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029else
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h. */
5032$ac_includes_default
5033int
5034main ()
5035{
5036
5037 /* Are we little or big endian? From Harbison&Steele. */
5038 union
5039 {
5040 long int l;
5041 char c[sizeof (long int)];
5042 } u;
5043 u.l = 1;
5044 return u.c[sizeof (long int) - 1] == 1;
5045
5046 ;
5047 return 0;
5048}
5049_ACEOF
5050if ac_fn_c_try_run "$LINENO"; then :
5051 ac_cv_c_bigendian=no
5052else
5053 ac_cv_c_bigendian=yes
5054fi
5055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5056 conftest.$ac_objext conftest.beam conftest.$ac_ext
5057fi
5058
5059 fi
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5062$as_echo "$ac_cv_c_bigendian" >&6; }
5063 case $ac_cv_c_bigendian in #(
5064 yes)
5065 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5066;; #(
5067 no)
5068 ;; #(
5069 universal)
5070
5071$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5072
5073 ;; #(
5074 *)
5075 as_fn_error $? "unknown endianness
5076 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5077 esac
5078
7083c021 5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
030272f3
VY
5080$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5081set x ${MAKE-make}
5082ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
08c2568c 5083if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
030272f3
VY
5084 $as_echo_n "(cached) " >&6
5085else
5086 cat >conftest.make <<\_ACEOF
5087SHELL = /bin/sh
5088all:
5089 @echo '@@@%%%=$(MAKE)=@@@%%%'
5090_ACEOF
08c2568c 5091# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
030272f3
VY
5092case `${MAKE-make} -f conftest.make 2>/dev/null` in
5093 *@@@%%%=?*=@@@%%%*)
5094 eval ac_cv_prog_make_${ac_make}_set=yes;;
5095 *)
5096 eval ac_cv_prog_make_${ac_make}_set=no;;
5097esac
5098rm -f conftest.make
5099fi
5100if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7083c021 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3
VY
5102$as_echo "yes" >&6; }
5103 SET_MAKE=
5104else
7083c021 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5106$as_echo "no" >&6; }
5107 SET_MAKE="MAKE=${MAKE-make}"
5108fi
5109
db137867 5110
030272f3
VY
5111# Extract the first word of "automake", so it can be a program name with args.
5112set dummy automake; ac_word=$2
7083c021 5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5114$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5115if ${ac_cv_path_AUTOMAKE+:} false; then :
030272f3
VY
5116 $as_echo_n "(cached) " >&6
5117else
5118 case $AUTOMAKE in
5119 [\\/]* | ?:[\\/]*)
5120 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
db137867 5121 ;;
030272f3
VY
5122 *)
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124for as_dir in $PATH
5125do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
7083c021 5128 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
7083c021 5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5132 break 2
5133 fi
5134done
7083c021 5135 done
030272f3 5136IFS=$as_save_IFS
db137867 5137
db137867 5138 ;;
030272f3
VY
5139esac
5140fi
5141AUTOMAKE=$ac_cv_path_AUTOMAKE
5142if test -n "$AUTOMAKE"; then
7083c021 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
030272f3
VY
5144$as_echo "$AUTOMAKE" >&6; }
5145else
7083c021 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5147$as_echo "no" >&6; }
5148fi
db137867 5149
db137867 5150
030272f3
VY
5151# Extract the first word of "aclocal", so it can be a program name with args.
5152set dummy aclocal; ac_word=$2
7083c021 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5154$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5155if ${ac_cv_path_ACLOCAL+:} false; then :
030272f3
VY
5156 $as_echo_n "(cached) " >&6
5157else
5158 case $ACLOCAL in
5159 [\\/]* | ?:[\\/]*)
5160 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
db137867 5161 ;;
db137867 5162 *)
030272f3
VY
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
7083c021 5168 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
7083c021 5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5172 break 2
5173 fi
5174done
7083c021 5175 done
030272f3 5176IFS=$as_save_IFS
db137867 5177
db137867 5178 ;;
030272f3
VY
5179esac
5180fi
5181ACLOCAL=$ac_cv_path_ACLOCAL
5182if test -n "$ACLOCAL"; then
7083c021 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
030272f3
VY
5184$as_echo "$ACLOCAL" >&6; }
5185else
7083c021 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5187$as_echo "no" >&6; }
5188fi
db137867 5189
db137867 5190
030272f3
VY
5191# Extract the first word of "autoheader", so it can be a program name with args.
5192set dummy autoheader; ac_word=$2
7083c021 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5194$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5195if ${ac_cv_path_AUTOHEADER+:} false; then :
030272f3
VY
5196 $as_echo_n "(cached) " >&6
5197else
5198 case $AUTOHEADER in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
db137867 5201 ;;
030272f3
VY
5202 *)
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
7083c021 5208 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
7083c021 5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3 5212 break 2
db137867 5213 fi
030272f3 5214done
7083c021 5215 done
030272f3
VY
5216IFS=$as_save_IFS
5217
db137867 5218 ;;
030272f3
VY
5219esac
5220fi
5221AUTOHEADER=$ac_cv_path_AUTOHEADER
5222if test -n "$AUTOHEADER"; then
7083c021 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
030272f3
VY
5224$as_echo "$AUTOHEADER" >&6; }
5225else
7083c021 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5227$as_echo "no" >&6; }
5228fi
db137867 5229
030272f3
VY
5230
5231# Extract the first word of "as", so it can be a program name with args.
5232set dummy as; ac_word=$2
7083c021 5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5234$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5235if ${ac_cv_path_AS+:} false; then :
030272f3
VY
5236 $as_echo_n "(cached) " >&6
5237else
5238 case $AS in
5239 [\\/]* | ?:[\\/]*)
5240 ac_cv_path_AS="$AS" # Let the user override the test with a path.
db137867 5241 ;;
030272f3
VY
5242 *)
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
7083c021 5248 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
7083c021 5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5252 break 2
5253 fi
5254done
7083c021 5255 done
030272f3 5256IFS=$as_save_IFS
db137867 5257
db137867 5258 ;;
030272f3
VY
5259esac
5260fi
5261AS=$ac_cv_path_AS
5262if test -n "$AS"; then
7083c021 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
030272f3
VY
5264$as_echo "$AS" >&6; }
5265else
7083c021 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5267$as_echo "no" >&6; }
5268fi
db137867 5269
db137867 5270
030272f3
VY
5271# Extract the first word of "rm", so it can be a program name with args.
5272set dummy rm; ac_word=$2
7083c021 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5274$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5275if ${ac_cv_path_RM+:} false; then :
030272f3
VY
5276 $as_echo_n "(cached) " >&6
5277else
5278 case $RM in
5279 [\\/]* | ?:[\\/]*)
5280 ac_cv_path_RM="$RM" # Let the user override the test with a path.
db137867 5281 ;;
030272f3
VY
5282 *)
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH
5285do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
7083c021 5288 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7083c021 5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5292 break 2
5293 fi
5294done
7083c021 5295 done
030272f3 5296IFS=$as_save_IFS
db137867 5297
db137867 5298 ;;
030272f3
VY
5299esac
5300fi
5301RM=$ac_cv_path_RM
5302if test -n "$RM"; then
7083c021 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
030272f3
VY
5304$as_echo "$RM" >&6; }
5305else
7083c021 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5307$as_echo "no" >&6; }
5308fi
db137867 5309
db137867 5310
030272f3
VY
5311# Extract the first word of "cp", so it can be a program name with args.
5312set dummy cp; ac_word=$2
7083c021 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5314$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5315if ${ac_cv_path_CP+:} false; then :
030272f3
VY
5316 $as_echo_n "(cached) " >&6
5317else
5318 case $CP in
5319 [\\/]* | ?:[\\/]*)
5320 ac_cv_path_CP="$CP" # Let the user override the test with a path.
db137867 5321 ;;
030272f3
VY
5322 *)
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH
5325do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
7083c021 5328 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
7083c021 5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5332 break 2
5333 fi
5334done
7083c021 5335 done
030272f3 5336IFS=$as_save_IFS
db137867 5337
db137867
AC
5338 ;;
5339esac
db137867 5340fi
030272f3
VY
5341CP=$ac_cv_path_CP
5342if test -n "$CP"; then
7083c021 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
030272f3
VY
5344$as_echo "$CP" >&6; }
5345else
7083c021 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5347$as_echo "no" >&6; }
db137867
AC
5348fi
5349
db137867 5350
030272f3
VY
5351# Extract the first word of "mv", so it can be a program name with args.
5352set dummy mv; ac_word=$2
7083c021 5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5354$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5355if ${ac_cv_path_MV+:} false; then :
030272f3
VY
5356 $as_echo_n "(cached) " >&6
5357else
5358 case $MV in
5359 [\\/]* | ?:[\\/]*)
5360 ac_cv_path_MV="$MV" # Let the user override the test with a path.
db137867 5361 ;;
030272f3
VY
5362 *)
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
7083c021 5368 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7083c021 5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3 5372 break 2
db137867 5373 fi
030272f3 5374done
7083c021 5375 done
030272f3 5376IFS=$as_save_IFS
db137867 5377
db137867 5378 ;;
030272f3
VY
5379esac
5380fi
5381MV=$ac_cv_path_MV
5382if test -n "$MV"; then
7083c021 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
030272f3
VY
5384$as_echo "$MV" >&6; }
5385else
7083c021 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5387$as_echo "no" >&6; }
5388fi
5389
5390
5391# Extract the first word of "ln", so it can be a program name with args.
5392set dummy ln; ac_word=$2
7083c021 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5394$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5395if ${ac_cv_path_LN+:} false; then :
030272f3
VY
5396 $as_echo_n "(cached) " >&6
5397else
5398 case $LN in
5399 [\\/]* | ?:[\\/]*)
5400 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5401 ;;
5402 *)
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
7083c021 5408 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7083c021 5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5412 break 2
5413 fi
5414done
7083c021 5415 done
030272f3 5416IFS=$as_save_IFS
db137867 5417
030272f3
VY
5418 ;;
5419esac
5420fi
5421LN=$ac_cv_path_LN
5422if test -n "$LN"; then
7083c021 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
030272f3 5424$as_echo "$LN" >&6; }
db137867 5425else
7083c021 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5427$as_echo "no" >&6; }
5428fi
db137867 5429
db137867 5430
030272f3
VY
5431# Extract the first word of "touch", so it can be a program name with args.
5432set dummy touch; ac_word=$2
7083c021 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5434$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5435if ${ac_cv_path_TOUCH+:} false; then :
030272f3
VY
5436 $as_echo_n "(cached) " >&6
5437else
5438 case $TOUCH in
5439 [\\/]* | ?:[\\/]*)
5440 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5441 ;;
5442 *)
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
7083c021 5448 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
7083c021 5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5452 break 2
5453 fi
5454done
7083c021 5455 done
030272f3 5456IFS=$as_save_IFS
db137867 5457
030272f3 5458 ;;
db137867 5459esac
030272f3
VY
5460fi
5461TOUCH=$ac_cv_path_TOUCH
5462if test -n "$TOUCH"; then
7083c021 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
030272f3 5464$as_echo "$TOUCH" >&6; }
db137867 5465else
7083c021 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5467$as_echo "no" >&6; }
db137867
AC
5468fi
5469
030272f3
VY
5470
5471ac_ext=c
db137867
AC
5472ac_cpp='$CPP $CPPFLAGS'
5473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476
030272f3 5477
7083c021
AC
5478case `pwd` in
5479 *\ * | *\ *)
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5481$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5482esac
5483
5484
5485
a949ab1a
AC
5486macro_version='2.4.2'
5487macro_revision='1.3337'
7083c021
AC
5488
5489
5490
5491
5492
5493
5494
5495
5496
030272f3
VY
5497
5498
7083c021
AC
5499
5500
5501ltmain="$ac_aux_dir/ltmain.sh"
5502
030272f3
VY
5503# Make sure we can run config.sub.
5504$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
08c2568c 5505 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
030272f3 5506
7083c021 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
030272f3 5508$as_echo_n "checking build system type... " >&6; }
08c2568c 5509if ${ac_cv_build+:} false; then :
030272f3
VY
5510 $as_echo_n "(cached) " >&6
5511else
5512 ac_build_alias=$build_alias
5513test "x$ac_build_alias" = x &&
5514 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5515test "x$ac_build_alias" = x &&
08c2568c 5516 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
030272f3 5517ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
08c2568c 5518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
030272f3
VY
5519
5520fi
7083c021 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
030272f3
VY
5522$as_echo "$ac_cv_build" >&6; }
5523case $ac_cv_build in
5524*-*-*) ;;
08c2568c 5525*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
030272f3
VY
5526esac
5527build=$ac_cv_build
5528ac_save_IFS=$IFS; IFS='-'
5529set x $ac_cv_build
5530shift
5531build_cpu=$1
5532build_vendor=$2
5533shift; shift
5534# Remember, the first character of IFS is used to create $*,
5535# except with old shells:
5536build_os=$*
5537IFS=$ac_save_IFS
5538case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5539
5540
7083c021 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
030272f3 5542$as_echo_n "checking host system type... " >&6; }
08c2568c 5543if ${ac_cv_host+:} false; then :
030272f3
VY
5544 $as_echo_n "(cached) " >&6
5545else
5546 if test "x$host_alias" = x; then
5547 ac_cv_host=$ac_cv_build
5548else
5549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
08c2568c 5550 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
030272f3
VY
5551fi
5552
5553fi
7083c021 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
030272f3
VY
5555$as_echo "$ac_cv_host" >&6; }
5556case $ac_cv_host in
5557*-*-*) ;;
08c2568c 5558*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
030272f3
VY
5559esac
5560host=$ac_cv_host
5561ac_save_IFS=$IFS; IFS='-'
5562set x $ac_cv_host
5563shift
5564host_cpu=$1
5565host_vendor=$2
5566shift; shift
5567# Remember, the first character of IFS is used to create $*,
5568# except with old shells:
5569host_os=$*
5570IFS=$ac_save_IFS
5571case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5572
5573
b6d0720c
AC
5574# Backslashify metacharacters that are still active within
5575# double-quoted strings.
5576sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5577
5578# Same as above, but do not quote variable references.
5579double_quote_subst='s/\(["`\\]\)/\\\1/g'
5580
5581# Sed substitution to delay expansion of an escaped shell variable in a
5582# double_quote_subst'ed string.
5583delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5584
5585# Sed substitution to delay expansion of an escaped single quote.
5586delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5587
5588# Sed substitution to avoid accidental globbing in evaled expressions
5589no_glob_subst='s/\*/\\\*/g'
5590
5591ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5592ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5593ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5596$as_echo_n "checking how to print strings... " >&6; }
5597# Test print first, because it will be a builtin if present.
5598if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5599 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5600 ECHO='print -r --'
5601elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5602 ECHO='printf %s\n'
5603else
5604 # Use this function as a fallback that always works.
5605 func_fallback_echo ()
5606 {
5607 eval 'cat <<_LTECHO_EOF
5608$1
5609_LTECHO_EOF'
5610 }
5611 ECHO='func_fallback_echo'
5612fi
5613
5614# func_echo_all arg...
5615# Invoke $ECHO with all args, space-separated.
5616func_echo_all ()
5617{
5618 $ECHO ""
5619}
5620
5621case "$ECHO" in
5622 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5623$as_echo "printf" >&6; } ;;
5624 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5625$as_echo "print -r" >&6; } ;;
5626 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5627$as_echo "cat" >&6; } ;;
5628esac
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
7083c021 5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
030272f3 5644$as_echo_n "checking for a sed that does not truncate output... " >&6; }
08c2568c 5645if ${ac_cv_path_SED+:} false; then :
030272f3
VY
5646 $as_echo_n "(cached) " >&6
5647else
7083c021
AC
5648 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5649 for ac_i in 1 2 3 4 5 6 7; do
5650 ac_script="$ac_script$as_nl$ac_script"
5651 done
5652 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5653 { ac_script=; unset ac_script;}
5654 if test -z "$SED"; then
5655 ac_path_SED_found=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
030272f3
VY
5658for as_dir in $PATH
5659do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
7083c021 5662 for ac_prog in sed gsed; do
030272f3 5663 for ac_exec_ext in '' $ac_executable_extensions; do
7083c021
AC
5664 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5665 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5666# Check for GNU ac_path_SED and select it if it is found.
5667 # Check for GNU $ac_path_SED
5668case `"$ac_path_SED" --version 2>&1` in
5669*GNU*)
5670 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5671*)
5672 ac_count=0
5673 $as_echo_n 0123456789 >"conftest.in"
5674 while :
5675 do
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo '' >> "conftest.nl"
5680 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682 as_fn_arith $ac_count + 1 && ac_count=$as_val
5683 if test $ac_count -gt ${ac_path_SED_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_SED="$ac_path_SED"
5686 ac_path_SED_max=$ac_count
5687 fi
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5690 done
5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692esac
5693
5694 $ac_path_SED_found && break 3
030272f3
VY
5695 done
5696 done
7083c021 5697 done
030272f3 5698IFS=$as_save_IFS
7083c021 5699 if test -z "$ac_cv_path_SED"; then
08c2568c 5700 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
db137867 5701 fi
7083c021
AC
5702else
5703 ac_cv_path_SED=$SED
5704fi
db137867 5705
030272f3 5706fi
7083c021
AC
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5708$as_echo "$ac_cv_path_SED" >&6; }
5709 SED="$ac_cv_path_SED"
5710 rm -f conftest.sed
db137867 5711
7083c021
AC
5712test -z "$SED" && SED=sed
5713Xsed="$SED -e 1s/^X//"
db137867 5714
db137867
AC
5715
5716
db137867 5717
7083c021
AC
5718
5719
5720
5721
5722
5723
5724
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5726$as_echo_n "checking for fgrep... " >&6; }
08c2568c 5727if ${ac_cv_path_FGREP+:} false; then :
7083c021
AC
5728 $as_echo_n "(cached) " >&6
5729else
5730 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5731 then ac_cv_path_FGREP="$GREP -F"
5732 else
5733 if test -z "$FGREP"; then
5734 ac_path_FGREP_found=false
5735 # Loop through the user's path and test for each of PROGNAME-LIST
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_prog in fgrep; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5744 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5745# Check for GNU ac_path_FGREP and select it if it is found.
5746 # Check for GNU $ac_path_FGREP
5747case `"$ac_path_FGREP" --version 2>&1` in
5748*GNU*)
5749 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5750*)
5751 ac_count=0
5752 $as_echo_n 0123456789 >"conftest.in"
5753 while :
5754 do
5755 cat "conftest.in" "conftest.in" >"conftest.tmp"
5756 mv "conftest.tmp" "conftest.in"
5757 cp "conftest.in" "conftest.nl"
5758 $as_echo 'FGREP' >> "conftest.nl"
5759 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5761 as_fn_arith $ac_count + 1 && ac_count=$as_val
5762 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5763 # Best one so far, save it but keep looking for a better one
5764 ac_cv_path_FGREP="$ac_path_FGREP"
5765 ac_path_FGREP_max=$ac_count
5766 fi
5767 # 10*(2^10) chars as input seems more than enough
5768 test $ac_count -gt 10 && break
5769 done
5770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771esac
5772
5773 $ac_path_FGREP_found && break 3
5774 done
5775 done
5776 done
5777IFS=$as_save_IFS
5778 if test -z "$ac_cv_path_FGREP"; then
08c2568c 5779 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021
AC
5780 fi
5781else
5782 ac_cv_path_FGREP=$FGREP
5783fi
5784
5785 fi
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5788$as_echo "$ac_cv_path_FGREP" >&6; }
5789 FGREP="$ac_cv_path_FGREP"
5790
5791
5792test -z "$GREP" && GREP=grep
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812# Check whether --with-gnu-ld was given.
5813if test "${with_gnu_ld+set}" = set; then :
5814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5815else
5816 with_gnu_ld=no
5817fi
5818
5819ac_prog=ld
5820if test "$GCC" = yes; then
5821 # Check if gcc -print-prog-name=ld gives a path.
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5823$as_echo_n "checking for ld used by $CC... " >&6; }
5824 case $host in
5825 *-*-mingw*)
5826 # gcc leaves a trailing carriage return which upsets mingw
5827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5828 *)
5829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5830 esac
5831 case $ac_prog in
5832 # Accept absolute paths.
5833 [\\/]* | ?:[\\/]*)
5834 re_direlt='/[^/][^/]*/\.\./'
5835 # Canonicalize the pathname of ld
5836 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5837 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5838 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5839 done
5840 test -z "$LD" && LD="$ac_prog"
5841 ;;
5842 "")
5843 # If it fails, then pretend we aren't using GCC.
5844 ac_prog=ld
5845 ;;
5846 *)
5847 # If it is relative, then search for the first ld in PATH.
5848 with_gnu_ld=unknown
5849 ;;
5850 esac
5851elif test "$with_gnu_ld" = yes; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5853$as_echo_n "checking for GNU ld... " >&6; }
5854else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
030272f3 5856$as_echo_n "checking for non-GNU ld... " >&6; }
db137867 5857fi
08c2568c 5858if ${lt_cv_path_LD+:} false; then :
030272f3
VY
5859 $as_echo_n "(cached) " >&6
5860else
5861 if test -z "$LD"; then
5862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5863 for ac_dir in $PATH; do
5864 IFS="$lt_save_ifs"
5865 test -z "$ac_dir" && ac_dir=.
5866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5867 lt_cv_path_LD="$ac_dir/$ac_prog"
5868 # Check to see if the program is GNU ld. I'd rather use --version,
5869 # but apparently some variants of GNU ld only accept -v.
5870 # Break only if it was the GNU/non-GNU ld that we prefer.
5871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5872 *GNU* | *'with BFD'*)
5873 test "$with_gnu_ld" != no && break
5874 ;;
5875 *)
5876 test "$with_gnu_ld" != yes && break
5877 ;;
5878 esac
5879 fi
5880 done
5881 IFS="$lt_save_ifs"
5882else
5883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
db137867 5884fi
db137867 5885fi
030272f3
VY
5886
5887LD="$lt_cv_path_LD"
5888if test -n "$LD"; then
7083c021 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
030272f3 5890$as_echo "$LD" >&6; }
db137867 5891else
7083c021 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5893$as_echo "no" >&6; }
db137867 5894fi
08c2568c 5895test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7083c021 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
030272f3 5897$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
08c2568c 5898if ${lt_cv_prog_gnu_ld+:} false; then :
030272f3 5899 $as_echo_n "(cached) " >&6
db137867 5900else
030272f3
VY
5901 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5902case `$LD -v 2>&1 </dev/null` in
5903*GNU* | *'with BFD'*)
5904 lt_cv_prog_gnu_ld=yes
5905 ;;
5906*)
5907 lt_cv_prog_gnu_ld=no
5908 ;;
5909esac
db137867 5910fi
7083c021 5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
030272f3
VY
5912$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5913with_gnu_ld=$lt_cv_prog_gnu_ld
db137867 5914
db137867 5915
db137867 5916
7083c021
AC
5917
5918
5919
5920
5921
5922
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5924$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
08c2568c 5925if ${lt_cv_path_NM+:} false; then :
030272f3
VY
5926 $as_echo_n "(cached) " >&6
5927else
5928 if test -n "$NM"; then
5929 # Let the user override the test.
5930 lt_cv_path_NM="$NM"
5931else
5932 lt_nm_to_check="${ac_tool_prefix}nm"
5933 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5934 lt_nm_to_check="$lt_nm_to_check nm"
5935 fi
5936 for lt_tmp_nm in $lt_nm_to_check; do
5937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5938 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5939 IFS="$lt_save_ifs"
5940 test -z "$ac_dir" && ac_dir=.
5941 tmp_nm="$ac_dir/$lt_tmp_nm"
5942 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5943 # Check to see if the nm accepts a BSD-compat flag.
5944 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5945 # nm: unknown option "B" ignored
5946 # Tru64's nm complains that /dev/null is an invalid object file
5947 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5948 */dev/null* | *'Invalid file or object type'*)
5949 lt_cv_path_NM="$tmp_nm -B"
5950 break
5951 ;;
5952 *)
5953 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5954 */dev/null*)
5955 lt_cv_path_NM="$tmp_nm -p"
5956 break
5957 ;;
5958 *)
5959 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5960 continue # so that we can try to find one that supports BSD flags
5961 ;;
5962 esac
5963 ;;
5964 esac
5965 fi
5966 done
5967 IFS="$lt_save_ifs"
5968 done
7083c021 5969 : ${lt_cv_path_NM=no}
db137867 5970fi
030272f3 5971fi
7083c021 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
030272f3 5973$as_echo "$lt_cv_path_NM" >&6; }
7083c021
AC
5974if test "$lt_cv_path_NM" != "no"; then
5975 NM="$lt_cv_path_NM"
5976else
5977 # Didn't find any BSD compatible name lister, look for dumpbin.
b6d0720c
AC
5978 if test -n "$DUMPBIN"; then :
5979 # Let the user override the test.
5980 else
5981 if test -n "$ac_tool_prefix"; then
5982 for ac_prog in dumpbin "link -dump"
7083c021
AC
5983 do
5984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5985set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5988if ${ac_cv_prog_DUMPBIN+:} false; then :
7083c021
AC
5989 $as_echo_n "(cached) " >&6
5990else
5991 if test -n "$DUMPBIN"; then
5992 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005done
6006 done
6007IFS=$as_save_IFS
db137867 6008
7083c021
AC
6009fi
6010fi
6011DUMPBIN=$ac_cv_prog_DUMPBIN
6012if test -n "$DUMPBIN"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6014$as_echo "$DUMPBIN" >&6; }
db137867 6015else
7083c021
AC
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017$as_echo "no" >&6; }
db137867
AC
6018fi
6019
7083c021
AC
6020
6021 test -n "$DUMPBIN" && break
6022 done
6023fi
6024if test -z "$DUMPBIN"; then
6025 ac_ct_DUMPBIN=$DUMPBIN
b6d0720c 6026 for ac_prog in dumpbin "link -dump"
7083c021
AC
6027do
6028 # Extract the first word of "$ac_prog", so it can be a program name with args.
6029set dummy $ac_prog; ac_word=$2
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6032if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
030272f3
VY
6033 $as_echo_n "(cached) " >&6
6034else
7083c021
AC
6035 if test -n "$ac_ct_DUMPBIN"; then
6036 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6037else
6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050 done
6051IFS=$as_save_IFS
db137867 6052
7083c021
AC
6053fi
6054fi
6055ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6056if test -n "$ac_ct_DUMPBIN"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6058$as_echo "$ac_ct_DUMPBIN" >&6; }
6059else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061$as_echo "no" >&6; }
6062fi
db137867 6063
db137867 6064
7083c021
AC
6065 test -n "$ac_ct_DUMPBIN" && break
6066done
db137867 6067
7083c021
AC
6068 if test "x$ac_ct_DUMPBIN" = x; then
6069 DUMPBIN=":"
030272f3 6070 else
7083c021
AC
6071 case $cross_compiling:$ac_tool_warned in
6072yes:)
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075ac_tool_warned=yes ;;
6076esac
6077 DUMPBIN=$ac_ct_DUMPBIN
030272f3 6078 fi
7083c021 6079fi
db137867 6080
b6d0720c
AC
6081 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6082 *COFF*)
6083 DUMPBIN="$DUMPBIN -symbols"
6084 ;;
6085 *)
6086 DUMPBIN=:
6087 ;;
6088 esac
6089 fi
db137867 6090
7083c021
AC
6091 if test "$DUMPBIN" != ":"; then
6092 NM="$DUMPBIN"
030272f3 6093 fi
7083c021
AC
6094fi
6095test -z "$NM" && NM=nm
db137867 6096
db137867 6097
db137867 6098
db137867 6099
030272f3 6100
030272f3 6101
7083c021
AC
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6103$as_echo_n "checking the name lister ($NM) interface... " >&6; }
08c2568c 6104if ${lt_cv_nm_interface+:} false; then :
7083c021
AC
6105 $as_echo_n "(cached) " >&6
6106else
6107 lt_cv_nm_interface="BSD nm"
6108 echo "int some_variable = 0;" > conftest.$ac_ext
b6d0720c 6109 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7083c021
AC
6110 (eval "$ac_compile" 2>conftest.err)
6111 cat conftest.err >&5
b6d0720c 6112 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7083c021
AC
6113 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6114 cat conftest.err >&5
b6d0720c 6115 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7083c021
AC
6116 cat conftest.out >&5
6117 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6118 lt_cv_nm_interface="MS dumpbin"
030272f3 6119 fi
7083c021
AC
6120 rm -f conftest*
6121fi
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6123$as_echo "$lt_cv_nm_interface" >&6; }
db137867 6124
7083c021
AC
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6126$as_echo_n "checking whether ln -s works... " >&6; }
6127LN_S=$as_ln_s
6128if test "$LN_S" = "ln -s"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6130$as_echo "yes" >&6; }
6131else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6133$as_echo "no, using $LN_S" >&6; }
6134fi
db137867 6135
7083c021
AC
6136# find the maximum length of command line arguments
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6138$as_echo_n "checking the maximum length of command line arguments... " >&6; }
08c2568c 6139if ${lt_cv_sys_max_cmd_len+:} false; then :
7083c021
AC
6140 $as_echo_n "(cached) " >&6
6141else
6142 i=0
6143 teststring="ABCD"
db137867 6144
7083c021
AC
6145 case $build_os in
6146 msdosdjgpp*)
6147 # On DJGPP, this test can blow up pretty badly due to problems in libc
6148 # (any single argument exceeding 2000 bytes causes a buffer overrun
6149 # during glob expansion). Even if it were fixed, the result of this
6150 # check would be larger than it should be.
6151 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6152 ;;
db137867 6153
7083c021
AC
6154 gnu*)
6155 # Under GNU Hurd, this test is not required because there is
6156 # no limit to the length of command line arguments.
6157 # Libtool will interpret -1 as no limit whatsoever
6158 lt_cv_sys_max_cmd_len=-1;
6159 ;;
db137867 6160
7083c021
AC
6161 cygwin* | mingw* | cegcc*)
6162 # On Win9x/ME, this test blows up -- it succeeds, but takes
6163 # about 5 minutes as the teststring grows exponentially.
6164 # Worse, since 9x/ME are not pre-emptively multitasking,
6165 # you end up with a "frozen" computer, even though with patience
6166 # the test eventually succeeds (with a max line length of 256k).
6167 # Instead, let's just punt: use the minimum linelength reported by
6168 # all of the supported platforms: 8192 (on NT/2K/XP).
6169 lt_cv_sys_max_cmd_len=8192;
6170 ;;
db137867 6171
b6d0720c
AC
6172 mint*)
6173 # On MiNT this can take a long time and run out of memory.
6174 lt_cv_sys_max_cmd_len=8192;
6175 ;;
6176
7083c021
AC
6177 amigaos*)
6178 # On AmigaOS with pdksh, this test takes hours, literally.
6179 # So we just punt and use a minimum line length of 8192.
6180 lt_cv_sys_max_cmd_len=8192;
6181 ;;
db137867 6182
7083c021
AC
6183 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6184 # This has been around since 386BSD, at least. Likely further.
6185 if test -x /sbin/sysctl; then
6186 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6187 elif test -x /usr/sbin/sysctl; then
6188 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6189 else
6190 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6191 fi
6192 # And add a safety zone
6193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
030272f3 6195 ;;
7083c021
AC
6196
6197 interix*)
6198 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6199 lt_cv_sys_max_cmd_len=196608
030272f3 6200 ;;
7083c021 6201
a949ab1a
AC
6202 os2*)
6203 # The test takes a long time on OS/2.
6204 lt_cv_sys_max_cmd_len=8192
6205 ;;
6206
7083c021
AC
6207 osf*)
6208 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6209 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6210 # nice to cause kernel panics so lets avoid the loop below.
6211 # First set a reasonable default.
6212 lt_cv_sys_max_cmd_len=16384
6213 #
6214 if test -x /sbin/sysconfig; then
6215 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6216 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6217 esac
6218 fi
030272f3 6219 ;;
7083c021
AC
6220 sco3.2v5*)
6221 lt_cv_sys_max_cmd_len=102400
030272f3 6222 ;;
7083c021
AC
6223 sysv5* | sco5v6* | sysv4.2uw2*)
6224 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6225 if test -n "$kargmax"; then
6226 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6227 else
6228 lt_cv_sys_max_cmd_len=32768
6229 fi
030272f3 6230 ;;
7083c021
AC
6231 *)
6232 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6233 if test -n "$lt_cv_sys_max_cmd_len"; then
6234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6236 else
6237 # Make teststring a little bigger before we do anything with it.
6238 # a 1K string should be a reasonable start.
6239 for i in 1 2 3 4 5 6 7 8 ; do
6240 teststring=$teststring$teststring
6241 done
6242 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6243 # If test is not a shell built-in, we'll probably end up computing a
6244 # maximum length that is only half of the actual maximum length, but
6245 # we can't tell.
a949ab1a 6246 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
b6d0720c 6247 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7083c021
AC
6248 test $i != 17 # 1/2 MB should be enough
6249 do
6250 i=`expr $i + 1`
6251 teststring=$teststring$teststring
6252 done
6253 # Only check the string length outside the loop.
6254 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6255 teststring=
6256 # Add a significant safety factor because C++ compilers can tack on
6257 # massive amounts of additional arguments before passing them to the
6258 # linker. It appears as though 1/2 is a usable value.
6259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6260 fi
030272f3
VY
6261 ;;
6262 esac
030272f3 6263
7083c021 6264fi
db137867 6265
7083c021
AC
6266if test -n $lt_cv_sys_max_cmd_len ; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6268$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6269else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6271$as_echo "none" >&6; }
db137867 6272fi
7083c021 6273max_cmd_len=$lt_cv_sys_max_cmd_len
030272f3 6274
db137867 6275
db137867
AC
6276
6277
6278
6279
7083c021
AC
6280: ${CP="cp -f"}
6281: ${MV="mv -f"}
6282: ${RM="rm -f"}
db137867 6283
7083c021
AC
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6285$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6286# Try some XSI features
6287xsi_shell=no
6288( _lt_dummy="a/b/c"
b6d0720c
AC
6289 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6290 = c,a/b,b/c, \
7083c021
AC
6291 && eval 'test $(( 1 + 1 )) -eq 2 \
6292 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6293 && xsi_shell=yes
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6295$as_echo "$xsi_shell" >&6; }
6296
6297
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6299$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6300lt_shell_append=no
6301( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6302 >/dev/null 2>&1 \
6303 && lt_shell_append=yes
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6305$as_echo "$lt_shell_append" >&6; }
6306
6307
6308if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6309 lt_unset=unset
6310else
6311 lt_unset=false
030272f3 6312fi
db137867
AC
6313
6314
7083c021
AC
6315
6316
6317
6318# test EBCDIC or ASCII
6319case `echo X|tr X '\101'` in
6320 A) # ASCII based system
6321 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6322 lt_SP2NL='tr \040 \012'
6323 lt_NL2SP='tr \015\012 \040\040'
030272f3 6324 ;;
7083c021
AC
6325 *) # EBCDIC based system
6326 lt_SP2NL='tr \100 \n'
6327 lt_NL2SP='tr \r\n \100\100'
030272f3 6328 ;;
7083c021 6329esac
db137867 6330
db137867 6331
db137867 6332
db137867 6333
030272f3 6334
030272f3 6335
db137867
AC
6336
6337
6338
b6d0720c
AC
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6340$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6341if ${lt_cv_to_host_file_cmd+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343else
6344 case $host in
6345 *-*-mingw* )
6346 case $build in
6347 *-*-mingw* ) # actually msys
6348 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6349 ;;
6350 *-*-cygwin* )
6351 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6352 ;;
6353 * ) # otherwise, assume *nix
6354 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6355 ;;
6356 esac
6357 ;;
6358 *-*-cygwin* )
6359 case $build in
6360 *-*-mingw* ) # actually msys
6361 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6362 ;;
6363 *-*-cygwin* )
6364 lt_cv_to_host_file_cmd=func_convert_file_noop
6365 ;;
6366 * ) # otherwise, assume *nix
6367 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6368 ;;
6369 esac
6370 ;;
6371 * ) # unhandled hosts (and "normal" native builds)
6372 lt_cv_to_host_file_cmd=func_convert_file_noop
6373 ;;
6374esac
6375
6376fi
6377
6378to_host_file_cmd=$lt_cv_to_host_file_cmd
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6380$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6381
6382
6383
6384
6385
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6387$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6388if ${lt_cv_to_tool_file_cmd+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390else
6391 #assume ordinary cross tools, or native build.
6392lt_cv_to_tool_file_cmd=func_convert_file_noop
6393case $host in
6394 *-*-mingw* )
6395 case $build in
6396 *-*-mingw* ) # actually msys
6397 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6398 ;;
6399 esac
6400 ;;
6401esac
6402
6403fi
6404
6405to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6407$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6408
6409
6410
6411
6412
7083c021
AC
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6414$as_echo_n "checking for $LD option to reload object files... " >&6; }
08c2568c 6415if ${lt_cv_ld_reload_flag+:} false; then :
030272f3 6416 $as_echo_n "(cached) " >&6
db137867 6417else
7083c021 6418 lt_cv_ld_reload_flag='-r'
db137867 6419fi
7083c021
AC
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6421$as_echo "$lt_cv_ld_reload_flag" >&6; }
6422reload_flag=$lt_cv_ld_reload_flag
6423case $reload_flag in
6424"" | " "*) ;;
6425*) reload_flag=" $reload_flag" ;;
6426esac
6427reload_cmds='$LD$reload_flag -o $output$reload_objs'
6428case $host_os in
b6d0720c
AC
6429 cygwin* | mingw* | pw32* | cegcc*)
6430 if test "$GCC" != yes; then
6431 reload_cmds=false
6432 fi
6433 ;;
7083c021
AC
6434 darwin*)
6435 if test "$GCC" = yes; then
6436 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6437 else
6438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6439 fi
6440 ;;
db137867 6441esac
db137867 6442
db137867 6443
db137867 6444
db137867 6445
db137867 6446
db137867 6447
db137867 6448
db137867 6449
7083c021
AC
6450
6451if test -n "$ac_tool_prefix"; then
6452 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6453set dummy ${ac_tool_prefix}objdump; ac_word=$2
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6455$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6456if ${ac_cv_prog_OBJDUMP+:} false; then :
030272f3 6457 $as_echo_n "(cached) " >&6
db137867 6458else
7083c021
AC
6459 if test -n "$OBJDUMP"; then
6460 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
db137867
AC
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
7083c021 6467 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6469 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6471 break 2
6472 fi
6473done
7083c021 6474 done
db137867
AC
6475IFS=$as_save_IFS
6476
6477fi
6478fi
7083c021
AC
6479OBJDUMP=$ac_cv_prog_OBJDUMP
6480if test -n "$OBJDUMP"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6482$as_echo "$OBJDUMP" >&6; }
db137867 6483else
7083c021 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6485$as_echo "no" >&6; }
db137867
AC
6486fi
6487
6488
db137867 6489fi
7083c021
AC
6490if test -z "$ac_cv_prog_OBJDUMP"; then
6491 ac_ct_OBJDUMP=$OBJDUMP
6492 # Extract the first word of "objdump", so it can be a program name with args.
6493set dummy objdump; ac_word=$2
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6495$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6496if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
030272f3 6497 $as_echo_n "(cached) " >&6
db137867 6498else
7083c021
AC
6499 if test -n "$ac_ct_OBJDUMP"; then
6500 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
db137867
AC
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
7083c021 6507 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6509 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6511 break 2
6512 fi
6513done
7083c021 6514 done
db137867
AC
6515IFS=$as_save_IFS
6516
6517fi
6518fi
7083c021
AC
6519ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6520if test -n "$ac_ct_OBJDUMP"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6522$as_echo "$ac_ct_OBJDUMP" >&6; }
db137867 6523else
7083c021 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6525$as_echo "no" >&6; }
db137867
AC
6526fi
6527
7083c021
AC
6528 if test "x$ac_ct_OBJDUMP" = x; then
6529 OBJDUMP="false"
db137867
AC
6530 else
6531 case $cross_compiling:$ac_tool_warned in
6532yes:)
7083c021 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 6534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
6535ac_tool_warned=yes ;;
6536esac
7083c021 6537 OBJDUMP=$ac_ct_OBJDUMP
db137867 6538 fi
7083c021
AC
6539else
6540 OBJDUMP="$ac_cv_prog_OBJDUMP"
db137867 6541fi
db137867 6542
7083c021 6543test -z "$OBJDUMP" && OBJDUMP=objdump
db137867 6544
db137867 6545
db137867 6546
db137867 6547
db137867 6548
db137867 6549
db137867 6550
db137867 6551
db137867 6552
7083c021
AC
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6554$as_echo_n "checking how to recognize dependent libraries... " >&6; }
08c2568c 6555if ${lt_cv_deplibs_check_method+:} false; then :
7083c021 6556 $as_echo_n "(cached) " >&6
db137867 6557else
7083c021
AC
6558 lt_cv_file_magic_cmd='$MAGIC_CMD'
6559lt_cv_file_magic_test_file=
6560lt_cv_deplibs_check_method='unknown'
6561# Need to set the preceding variable on all platforms that support
6562# interlibrary dependencies.
6563# 'none' -- dependencies not supported.
6564# `unknown' -- same as none, but documents that we really don't know.
6565# 'pass_all' -- all dependencies passed with no checks.
6566# 'test_compile' -- check by making test program.
6567# 'file_magic [[regex]]' -- check by looking for files in library path
6568# which responds to the $file_magic_cmd with a given extended regex.
6569# If you have `file' or equivalent on your system and you're not sure
6570# whether `pass_all' will *always* work, you probably want this one.
db137867 6571
7083c021
AC
6572case $host_os in
6573aix[4-9]*)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
db137867 6576
7083c021
AC
6577beos*)
6578 lt_cv_deplibs_check_method=pass_all
6579 ;;
db137867 6580
7083c021
AC
6581bsdi[45]*)
6582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6583 lt_cv_file_magic_cmd='/usr/bin/file -L'
6584 lt_cv_file_magic_test_file=/shlib/libc.so
6585 ;;
db137867 6586
7083c021
AC
6587cygwin*)
6588 # func_win32_libid is a shell function defined in ltmain.sh
6589 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6590 lt_cv_file_magic_cmd='func_win32_libid'
6591 ;;
db137867 6592
7083c021
AC
6593mingw* | pw32*)
6594 # Base MSYS/MinGW do not provide the 'file' command needed by
6595 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6596 # unless we find 'file', for example because we are cross-compiling.
b6d0720c
AC
6597 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6598 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7083c021
AC
6599 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6600 lt_cv_file_magic_cmd='func_win32_libid'
6601 else
b6d0720c
AC
6602 # Keep this pattern in sync with the one in func_win32_libid.
6603 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7083c021
AC
6604 lt_cv_file_magic_cmd='$OBJDUMP -f'
6605 fi
6606 ;;
db137867 6607
b6d0720c 6608cegcc*)
7083c021
AC
6609 # use the weaker test based on 'objdump'. See mingw*.
6610 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6611 lt_cv_file_magic_cmd='$OBJDUMP -f'
6612 ;;
db137867 6613
7083c021
AC
6614darwin* | rhapsody*)
6615 lt_cv_deplibs_check_method=pass_all
6616 ;;
db137867 6617
7083c021
AC
6618freebsd* | dragonfly*)
6619 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6620 case $host_cpu in
6621 i*86 )
6622 # Not sure whether the presence of OpenBSD here was a mistake.
6623 # Let's accept both of them until this is cleared up.
6624 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6625 lt_cv_file_magic_cmd=/usr/bin/file
6626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6627 ;;
6628 esac
db137867 6629 else
7083c021 6630 lt_cv_deplibs_check_method=pass_all
db137867 6631 fi
7083c021 6632 ;;
db137867 6633
7083c021
AC
6634gnu*)
6635 lt_cv_deplibs_check_method=pass_all
6636 ;;
db137867 6637
b6d0720c
AC
6638haiku*)
6639 lt_cv_deplibs_check_method=pass_all
6640 ;;
6641
7083c021
AC
6642hpux10.20* | hpux11*)
6643 lt_cv_file_magic_cmd=/usr/bin/file
6644 case $host_cpu in
6645 ia64*)
6646 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6647 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6648 ;;
6649 hppa*64*)
b6d0720c 6650 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7083c021
AC
6651 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6652 ;;
6653 *)
b6d0720c 6654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7083c021
AC
6655 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6656 ;;
6657 esac
6658 ;;
db137867 6659
7083c021
AC
6660interix[3-9]*)
6661 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6663 ;;
db137867 6664
7083c021
AC
6665irix5* | irix6* | nonstopux*)
6666 case $LD in
6667 *-32|*"-32 ") libmagic=32-bit;;
6668 *-n32|*"-n32 ") libmagic=N32;;
6669 *-64|*"-64 ") libmagic=64-bit;;
6670 *) libmagic=never-match;;
6671 esac
6672 lt_cv_deplibs_check_method=pass_all
6673 ;;
db137867 6674
a949ab1a 6675# This must be glibc/ELF.
b6d0720c 6676linux* | k*bsd*-gnu | kopensolaris*-gnu)
7083c021
AC
6677 lt_cv_deplibs_check_method=pass_all
6678 ;;
db137867 6679
96f4052b 6680netbsd*)
7083c021
AC
6681 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6683 else
6684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6685 fi
6686 ;;
db137867 6687
7083c021
AC
6688newos6*)
6689 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6690 lt_cv_file_magic_cmd=/usr/bin/file
6691 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6692 ;;
db137867 6693
7083c021
AC
6694*nto* | *qnx*)
6695 lt_cv_deplibs_check_method=pass_all
6696 ;;
db137867 6697
7083c021
AC
6698openbsd*)
6699 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6701 else
6702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6703 fi
6704 ;;
db137867 6705
7083c021
AC
6706osf3* | osf4* | osf5*)
6707 lt_cv_deplibs_check_method=pass_all
6708 ;;
db137867 6709
7083c021
AC
6710rdos*)
6711 lt_cv_deplibs_check_method=pass_all
6712 ;;
db137867 6713
7083c021
AC
6714solaris*)
6715 lt_cv_deplibs_check_method=pass_all
6716 ;;
db137867 6717
7083c021
AC
6718sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6719 lt_cv_deplibs_check_method=pass_all
6720 ;;
db137867 6721
7083c021
AC
6722sysv4 | sysv4.3*)
6723 case $host_vendor in
6724 motorola)
6725 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]'
6726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6727 ;;
6728 ncr)
6729 lt_cv_deplibs_check_method=pass_all
6730 ;;
6731 sequent)
6732 lt_cv_file_magic_cmd='/bin/file'
6733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6734 ;;
6735 sni)
6736 lt_cv_file_magic_cmd='/bin/file'
6737 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6738 lt_cv_file_magic_test_file=/lib/libc.so
6739 ;;
6740 siemens)
6741 lt_cv_deplibs_check_method=pass_all
6742 ;;
6743 pc)
6744 lt_cv_deplibs_check_method=pass_all
6745 ;;
6746 esac
6747 ;;
db137867 6748
7083c021
AC
6749tpf*)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752esac
db137867 6753
db137867 6754fi
7083c021
AC
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6756$as_echo "$lt_cv_deplibs_check_method" >&6; }
b6d0720c
AC
6757
6758file_magic_glob=
6759want_nocaseglob=no
6760if test "$build" = "$host"; then
6761 case $host_os in
6762 mingw* | pw32*)
6763 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6764 want_nocaseglob=yes
6765 else
6766 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6767 fi
6768 ;;
6769 esac
6770fi
6771
7083c021
AC
6772file_magic_cmd=$lt_cv_file_magic_cmd
6773deplibs_check_method=$lt_cv_deplibs_check_method
6774test -z "$deplibs_check_method" && deplibs_check_method=unknown
db137867 6775
db137867 6776
db137867 6777
db137867 6778
db137867 6779
db137867 6780
db137867 6781
db137867 6782
db137867 6783
db137867 6784
b6d0720c
AC
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
db137867
AC
6795
6796
db137867 6797if test -n "$ac_tool_prefix"; then
b6d0720c
AC
6798 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6799set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7083c021 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6801$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 6802if ${ac_cv_prog_DLLTOOL+:} false; then :
030272f3 6803 $as_echo_n "(cached) " >&6
db137867 6804else
b6d0720c
AC
6805 if test -n "$DLLTOOL"; then
6806 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
db137867
AC
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
7083c021 6813 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b6d0720c 6815 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7083c021 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6817 break 2
6818 fi
6819done
7083c021 6820 done
db137867
AC
6821IFS=$as_save_IFS
6822
6823fi
6824fi
b6d0720c
AC
6825DLLTOOL=$ac_cv_prog_DLLTOOL
6826if test -n "$DLLTOOL"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6828$as_echo "$DLLTOOL" >&6; }
db137867 6829else
7083c021 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6831$as_echo "no" >&6; }
db137867
AC
6832fi
6833
6834
db137867 6835fi
b6d0720c
AC
6836if test -z "$ac_cv_prog_DLLTOOL"; then
6837 ac_ct_DLLTOOL=$DLLTOOL
6838 # Extract the first word of "dlltool", so it can be a program name with args.
6839set dummy dlltool; ac_word=$2
7083c021 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6841$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 6842if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
030272f3 6843 $as_echo_n "(cached) " >&6
db137867 6844else
b6d0720c
AC
6845 if test -n "$ac_ct_DLLTOOL"; then
6846 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
db137867
AC
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
7083c021 6853 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b6d0720c 6855 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7083c021 6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6857 break 2
6858 fi
6859done
7083c021 6860 done
db137867
AC
6861IFS=$as_save_IFS
6862
6863fi
6864fi
b6d0720c
AC
6865ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6866if test -n "$ac_ct_DLLTOOL"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6868$as_echo "$ac_ct_DLLTOOL" >&6; }
db137867 6869else
7083c021 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6871$as_echo "no" >&6; }
db137867
AC
6872fi
6873
b6d0720c
AC
6874 if test "x$ac_ct_DLLTOOL" = x; then
6875 DLLTOOL="false"
db137867
AC
6876 else
6877 case $cross_compiling:$ac_tool_warned in
6878yes:)
7083c021 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
6881ac_tool_warned=yes ;;
6882esac
b6d0720c 6883 DLLTOOL=$ac_ct_DLLTOOL
db137867 6884 fi
7083c021 6885else
b6d0720c 6886 DLLTOOL="$ac_cv_prog_DLLTOOL"
db137867
AC
6887fi
6888
b6d0720c
AC
6889test -z "$DLLTOOL" && DLLTOOL=dlltool
6890
6891
6892
6893
6894
6895
6896
db137867 6897
db137867 6898
db137867 6899
b6d0720c
AC
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6901$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6902if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904else
6905 lt_cv_sharedlib_from_linklib_cmd='unknown'
6906
6907case $host_os in
6908cygwin* | mingw* | pw32* | cegcc*)
6909 # two different shell functions defined in ltmain.sh
6910 # decide which to use based on capabilities of $DLLTOOL
6911 case `$DLLTOOL --help 2>&1` in
6912 *--identify-strict*)
6913 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6914 ;;
6915 *)
6916 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6917 ;;
6918 esac
6919 ;;
6920*)
6921 # fallback: assume linklib IS sharedlib
6922 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6923 ;;
6924esac
db137867 6925
b6d0720c
AC
6926fi
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6928$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6929sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6930test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
db137867 6931
db137867 6932
db137867 6933
db137867 6934
7083c021
AC
6935
6936
6937
6938if test -n "$ac_tool_prefix"; then
b6d0720c
AC
6939 for ac_prog in ar
6940 do
6941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7083c021
AC
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 6945if ${ac_cv_prog_AR+:} false; then :
7083c021
AC
6946 $as_echo_n "(cached) " >&6
6947else
b6d0720c
AC
6948 if test -n "$AR"; then
6949 ac_cv_prog_AR="$AR" # Let the user override the test.
7083c021
AC
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b6d0720c 6958 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7083c021
AC
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
db137867 6961 fi
7083c021
AC
6962done
6963 done
6964IFS=$as_save_IFS
6965
6966fi
6967fi
b6d0720c
AC
6968AR=$ac_cv_prog_AR
6969if test -n "$AR"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6971$as_echo "$AR" >&6; }
db137867 6972else
7083c021
AC
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974$as_echo "no" >&6; }
6975fi
6976
6977
b6d0720c
AC
6978 test -n "$AR" && break
6979 done
7083c021 6980fi
b6d0720c
AC
6981if test -z "$AR"; then
6982 ac_ct_AR=$AR
6983 for ac_prog in ar
6984do
6985 # Extract the first word of "$ac_prog", so it can be a program name with args.
6986set dummy $ac_prog; ac_word=$2
7083c021
AC
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 6989if ${ac_cv_prog_ac_ct_AR+:} false; then :
7083c021
AC
6990 $as_echo_n "(cached) " >&6
6991else
b6d0720c
AC
6992 if test -n "$ac_ct_AR"; then
6993 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7083c021
AC
6994else
6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b6d0720c 7002 ac_cv_prog_ac_ct_AR="$ac_prog"
7083c021
AC
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
db137867 7005 fi
7083c021
AC
7006done
7007 done
7008IFS=$as_save_IFS
7009
7010fi
7011fi
b6d0720c
AC
7012ac_ct_AR=$ac_cv_prog_ac_ct_AR
7013if test -n "$ac_ct_AR"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7015$as_echo "$ac_ct_AR" >&6; }
7083c021
AC
7016else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018$as_echo "no" >&6; }
db137867
AC
7019fi
7020
b6d0720c
AC
7021
7022 test -n "$ac_ct_AR" && break
7023done
7024
7025 if test "x$ac_ct_AR" = x; then
7026 AR="false"
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029yes:)
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032ac_tool_warned=yes ;;
7033esac
7034 AR=$ac_ct_AR
7035 fi
7036fi
7037
7038: ${AR=ar}
7039: ${AR_FLAGS=cru}
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7052$as_echo_n "checking for archiver @FILE support... " >&6; }
7053if ${lt_cv_ar_at_file+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055else
7056 lt_cv_ar_at_file=no
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h. */
7059
7060int
7061main ()
7062{
7063
7064 ;
7065 return 0;
7066}
7067_ACEOF
7068if ac_fn_c_try_compile "$LINENO"; then :
7069 echo conftest.$ac_objext > conftest.lst
7070 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7072 (eval $lt_ar_try) 2>&5
7073 ac_status=$?
7074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7075 test $ac_status = 0; }
7076 if test "$ac_status" -eq 0; then
7077 # Ensure the archiver fails upon bogus file names.
7078 rm -f conftest.$ac_objext libconftest.a
7079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7080 (eval $lt_ar_try) 2>&5
7081 ac_status=$?
7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; }
7084 if test "$ac_status" -ne 0; then
7085 lt_cv_ar_at_file=@
7086 fi
7087 fi
7088 rm -f conftest.* libconftest.a
7089
7090fi
7091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092
7093fi
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7095$as_echo "$lt_cv_ar_at_file" >&6; }
7096
7097if test "x$lt_cv_ar_at_file" = xno; then
7098 archiver_list_spec=
7099else
7100 archiver_list_spec=$lt_cv_ar_at_file
7101fi
7102
7103
7104
7105
7106
7107
7108
7109if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7111set dummy ${ac_tool_prefix}strip; ac_word=$2
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113$as_echo_n "checking for $ac_word... " >&6; }
7114if ${ac_cv_prog_STRIP+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116else
7117 if test -n "$STRIP"; then
7118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7119else
7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121for as_dir in $PATH
7122do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131done
7132 done
7133IFS=$as_save_IFS
7134
7135fi
7136fi
7137STRIP=$ac_cv_prog_STRIP
7138if test -n "$STRIP"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7140$as_echo "$STRIP" >&6; }
7141else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143$as_echo "no" >&6; }
7144fi
7145
7146
7147fi
7148if test -z "$ac_cv_prog_STRIP"; then
7149 ac_ct_STRIP=$STRIP
7150 # Extract the first word of "strip", so it can be a program name with args.
7151set dummy strip; ac_word=$2
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153$as_echo_n "checking for $ac_word... " >&6; }
7154if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156else
7157 if test -n "$ac_ct_STRIP"; then
7158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7159else
7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_prog_ac_ct_STRIP="strip"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171done
7172 done
7173IFS=$as_save_IFS
7174
7175fi
7176fi
7177ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7178if test -n "$ac_ct_STRIP"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7180$as_echo "$ac_ct_STRIP" >&6; }
7181else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183$as_echo "no" >&6; }
7184fi
7185
7186 if test "x$ac_ct_STRIP" = x; then
7187 STRIP=":"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190yes:)
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083c021
AC
7192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193ac_tool_warned=yes ;;
7194esac
7195 STRIP=$ac_ct_STRIP
7196 fi
030272f3 7197else
7083c021 7198 STRIP="$ac_cv_prog_STRIP"
030272f3 7199fi
db137867 7200
7083c021 7201test -z "$STRIP" && STRIP=:
db137867
AC
7202
7203
db137867 7204
db137867 7205
db137867 7206
db137867 7207
7083c021
AC
7208if test -n "$ac_tool_prefix"; then
7209 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7210set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7213if ${ac_cv_prog_RANLIB+:} false; then :
7083c021
AC
7214 $as_echo_n "(cached) " >&6
7215else
7216 if test -n "$RANLIB"; then
7217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7218else
7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230done
7231 done
7232IFS=$as_save_IFS
db137867 7233
7083c021
AC
7234fi
7235fi
7236RANLIB=$ac_cv_prog_RANLIB
7237if test -n "$RANLIB"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7239$as_echo "$RANLIB" >&6; }
7240else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242$as_echo "no" >&6; }
7243fi
db137867 7244
db137867 7245
7083c021
AC
7246fi
7247if test -z "$ac_cv_prog_RANLIB"; then
7248 ac_ct_RANLIB=$RANLIB
7249 # Extract the first word of "ranlib", so it can be a program name with args.
7250set dummy ranlib; ac_word=$2
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7253if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7083c021
AC
7254 $as_echo_n "(cached) " >&6
7255else
7256 if test -n "$ac_ct_RANLIB"; then
7257 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7258else
7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_prog_ac_ct_RANLIB="ranlib"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270done
7271 done
7272IFS=$as_save_IFS
db137867 7273
7083c021
AC
7274fi
7275fi
7276ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7277if test -n "$ac_ct_RANLIB"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7279$as_echo "$ac_ct_RANLIB" >&6; }
7280else
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282$as_echo "no" >&6; }
db137867
AC
7283fi
7284
7083c021
AC
7285 if test "x$ac_ct_RANLIB" = x; then
7286 RANLIB=":"
7287 else
7288 case $cross_compiling:$ac_tool_warned in
7289yes:)
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7292ac_tool_warned=yes ;;
7293esac
7294 RANLIB=$ac_ct_RANLIB
7295 fi
db137867 7296else
7083c021 7297 RANLIB="$ac_cv_prog_RANLIB"
db137867
AC
7298fi
7299
7083c021 7300test -z "$RANLIB" && RANLIB=:
db137867
AC
7301
7302
7303
7304
7083c021
AC
7305
7306
7307# Determine commands to create old-style static archives.
7308old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7309old_postinstall_cmds='chmod 644 $oldlib'
7310old_postuninstall_cmds=
7311
7312if test -n "$RANLIB"; then
7313 case $host_os in
7314 openbsd*)
a949ab1a 7315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7083c021
AC
7316 ;;
7317 *)
a949ab1a 7318 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7083c021
AC
7319 ;;
7320 esac
a949ab1a 7321 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7083c021
AC
7322fi
7323
b6d0720c
AC
7324case $host_os in
7325 darwin*)
7326 lock_old_archive_extraction=yes ;;
7327 *)
7328 lock_old_archive_extraction=no ;;
7329esac
7330
7331
7332
7333
7334
7335
7083c021
AC
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369# If no C compiler was specified, use CC.
7370LTCC=${LTCC-"$CC"}
7371
7372# If no C compiler flags were specified, use CFLAGS.
7373LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7374
7375# Allow CC to be a program name with arguments.
7376compiler=$CC
7377
7378
7379# Check for command to grab the raw symbol name followed by C symbol from nm.
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7381$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
08c2568c 7382if ${lt_cv_sys_global_symbol_pipe+:} false; then :
030272f3 7383 $as_echo_n "(cached) " >&6
db137867
AC
7384else
7385
7386# These are sane defaults that work on at least a few old systems.
7387# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7388
7389# Character class describing NM global symbol codes.
7390symcode='[BCDEGRST]'
7391
7392# Regexp to match symbols that can be accessed directly from C.
7393sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7394
db137867
AC
7395# Define system-specific variables.
7396case $host_os in
7397aix*)
7398 symcode='[BCDT]'
7399 ;;
7083c021 7400cygwin* | mingw* | pw32* | cegcc*)
db137867
AC
7401 symcode='[ABCDGISTW]'
7402 ;;
7083c021 7403hpux*)
db137867
AC
7404 if test "$host_cpu" = ia64; then
7405 symcode='[ABCDEGRST]'
7406 fi
db137867
AC
7407 ;;
7408irix* | nonstopux*)
7409 symcode='[BCDEGRST]'
7410 ;;
7411osf*)
7412 symcode='[BCDEGQRST]'
7413 ;;
7414solaris*)
7415 symcode='[BDRT]'
7416 ;;
7417sco3.2v5*)
7418 symcode='[DT]'
7419 ;;
7420sysv4.2uw2*)
7421 symcode='[DT]'
7422 ;;
7423sysv5* | sco5v6* | unixware* | OpenUNIX*)
7424 symcode='[ABDT]'
7425 ;;
7426sysv4)
7427 symcode='[DFNSTU]'
7428 ;;
7429esac
7430
7083c021
AC
7431# If we're using GNU nm, then use its standard symbol codes.
7432case `$NM -V 2>&1` in
7433*GNU* | *'with BFD'*)
7434 symcode='[ABCDGIRSTW]' ;;
7435esac
7436
7437# Transform an extracted symbol line into a proper C declaration.
7438# Some systems (esp. on ia64) link data and code symbols differently,
7439# so use this general approach.
7440lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7441
7442# Transform an extracted symbol line into symbol name and symbol address
b6d0720c
AC
7443lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7444lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7083c021 7445
db137867
AC
7446# Handle CRLF in mingw tool chain
7447opt_cr=
7448case $build_os in
7449mingw*)
7083c021 7450 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
db137867
AC
7451 ;;
7452esac
7453
7083c021 7454# Try without a prefix underscore, then with it.
db137867
AC
7455for ac_symprfx in "" "_"; do
7456
7457 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7458 symxfrm="\\1 $ac_symprfx\\2 \\2"
7459
7460 # Write the raw and C identifiers.
7083c021
AC
7461 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7462 # Fake it for dumpbin and say T for any non-static function
7463 # and D for any global variable.
7464 # Also find C++ and __fastcall symbols from MSVC++,
7465 # which start with @ or ?.
7466 lt_cv_sys_global_symbol_pipe="$AWK '"\
7467" {last_section=section; section=\$ 3};"\
a949ab1a 7468" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7083c021
AC
7469" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7470" \$ 0!~/External *\|/{next};"\
7471" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7472" {if(hide[section]) next};"\
7473" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7474" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7475" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7476" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7477" ' prfx=^$ac_symprfx"
7478 else
7479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7480 fi
b6d0720c 7481 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
db137867
AC
7482
7483 # Check to see that the pipe works correctly.
7484 pipe_works=no
7485
7486 rm -f conftest*
7083c021 7487 cat > conftest.$ac_ext <<_LT_EOF
db137867
AC
7488#ifdef __cplusplus
7489extern "C" {
7490#endif
7491char nm_test_var;
7083c021
AC
7492void nm_test_func(void);
7493void nm_test_func(void){}
db137867
AC
7494#ifdef __cplusplus
7495}
7496#endif
7497int main(){nm_test_var='a';nm_test_func();return(0);}
7083c021 7498_LT_EOF
db137867 7499
7083c021 7500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
db137867
AC
7501 (eval $ac_compile) 2>&5
7502 ac_status=$?
7083c021
AC
7503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; }; then
db137867
AC
7505 # Now try to grab the symbols.
7506 nlist=conftest.nm
b6d0720c
AC
7507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7508 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
db137867 7509 ac_status=$?
7083c021
AC
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; } && test -s "$nlist"; then
db137867
AC
7512 # Try sorting and uniquifying the output.
7513 if sort "$nlist" | uniq > "$nlist"T; then
7514 mv -f "$nlist"T "$nlist"
7515 else
7516 rm -f "$nlist"T
7517 fi
7518
7519 # Make sure that we snagged all the symbols we need.
7083c021
AC
7520 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7521 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7522 cat <<_LT_EOF > conftest.$ac_ext
b6d0720c
AC
7523/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7524#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7525/* DATA imports from DLLs on WIN32 con't be const, because runtime
7526 relocations are performed -- see ld's documentation on pseudo-relocs. */
7527# define LT_DLSYM_CONST
7528#elif defined(__osf__)
7529/* This system does not cope well with relocations in const data. */
7530# define LT_DLSYM_CONST
7531#else
7532# define LT_DLSYM_CONST const
7533#endif
7534
db137867
AC
7535#ifdef __cplusplus
7536extern "C" {
7537#endif
7538
7083c021 7539_LT_EOF
db137867 7540 # Now generate the symbol file.
7083c021 7541 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
db137867 7542
7083c021 7543 cat <<_LT_EOF >> conftest.$ac_ext
db137867 7544
7083c021 7545/* The mapping between symbol names and symbols. */
b6d0720c 7546LT_DLSYM_CONST struct {
db137867 7547 const char *name;
7083c021 7548 void *address;
db137867 7549}
7083c021 7550lt__PROGRAM__LTX_preloaded_symbols[] =
db137867 7551{
7083c021
AC
7552 { "@PROGRAM@", (void *) 0 },
7553_LT_EOF
7554 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7555 cat <<\_LT_EOF >> conftest.$ac_ext
7556 {0, (void *) 0}
db137867
AC
7557};
7558
7083c021
AC
7559/* This works around a problem in FreeBSD linker */
7560#ifdef FREEBSD_WORKAROUND
7561static const void *lt_preloaded_setup() {
7562 return lt__PROGRAM__LTX_preloaded_symbols;
7563}
7564#endif
7565
db137867
AC
7566#ifdef __cplusplus
7567}
7568#endif
7083c021 7569_LT_EOF
db137867
AC
7570 # Now try linking the two files.
7571 mv conftest.$ac_objext conftstm.$ac_objext
b6d0720c
AC
7572 lt_globsym_save_LIBS=$LIBS
7573 lt_globsym_save_CFLAGS=$CFLAGS
db137867
AC
7574 LIBS="conftstm.$ac_objext"
7575 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7083c021 7576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
db137867
AC
7577 (eval $ac_link) 2>&5
7578 ac_status=$?
7083c021
AC
7579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
db137867
AC
7581 pipe_works=yes
7582 fi
b6d0720c
AC
7583 LIBS=$lt_globsym_save_LIBS
7584 CFLAGS=$lt_globsym_save_CFLAGS
db137867
AC
7585 else
7586 echo "cannot find nm_test_func in $nlist" >&5
7587 fi
7588 else
7589 echo "cannot find nm_test_var in $nlist" >&5
7590 fi
7591 else
7592 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7593 fi
7594 else
7595 echo "$progname: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7597 fi
b676ea3b 7598 rm -rf conftest* conftst*
db137867
AC
7599
7600 # Do not use the global_symbol_pipe unless it works.
7601 if test "$pipe_works" = yes; then
7602 break
7603 else
7604 lt_cv_sys_global_symbol_pipe=
7605 fi
7606done
7607
7608fi
7609
7610if test -z "$lt_cv_sys_global_symbol_pipe"; then
7611 lt_cv_sys_global_symbol_to_cdecl=
7612fi
7613if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7083c021 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
030272f3 7615$as_echo "failed" >&6; }
db137867 7616else
7083c021 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
030272f3 7618$as_echo "ok" >&6; }
db137867
AC
7619fi
7620
b6d0720c
AC
7621# Response file support.
7622if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7623 nm_file_list_spec='@'
7624elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7625 nm_file_list_spec='@'
7626fi
7627
7628
7629
7630
7631
7632
7633
db137867
AC
7634
7635
7636
7637
7638
db137867 7639
db137867 7640
db137867 7641
db137867 7642
db137867 7643
db137867 7644
db137867 7645
db137867 7646
db137867 7647
db137867
AC
7648
7649
b6d0720c
AC
7650
7651
7652
7653
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7655$as_echo_n "checking for sysroot... " >&6; }
7656
7657# Check whether --with-sysroot was given.
7658if test "${with_sysroot+set}" = set; then :
7659 withval=$with_sysroot;
7660else
7661 with_sysroot=no
7662fi
7663
7664
7665lt_sysroot=
7666case ${with_sysroot} in #(
7667 yes)
7668 if test "$GCC" = yes; then
7669 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7670 fi
7671 ;; #(
7672 /*)
7673 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7674 ;; #(
7675 no|'')
7676 ;; #(
7677 *)
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7679$as_echo "${with_sysroot}" >&6; }
7680 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7681 ;;
7682esac
7683
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7685$as_echo "${lt_sysroot:-no}" >&6; }
db137867 7686
db137867 7687
db137867 7688
db137867 7689
7083c021
AC
7690
7691# Check whether --enable-libtool-lock was given.
7692if test "${enable_libtool_lock+set}" = set; then :
7693 enableval=$enable_libtool_lock;
db137867
AC
7694fi
7695
7083c021 7696test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
db137867 7697
7083c021
AC
7698# Some flags need to be propagated to the compiler or linker for good
7699# libtool support.
7700case $host in
7701ia64-*-hpux*)
7702 # Find out which ABI we are using.
7703 echo 'int i;' > conftest.$ac_ext
7704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7705 (eval $ac_compile) 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; }; then
7709 case `/usr/bin/file conftest.$ac_objext` in
7710 *ELF-32*)
7711 HPUX_IA64_MODE="32"
7712 ;;
7713 *ELF-64*)
7714 HPUX_IA64_MODE="64"
7715 ;;
7716 esac
7717 fi
7718 rm -rf conftest*
7719 ;;
7720*-*-irix6*)
7721 # Find out which ABI we are using.
b6d0720c 7722 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7083c021
AC
7723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7724 (eval $ac_compile) 2>&5
7725 ac_status=$?
7726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727 test $ac_status = 0; }; then
7728 if test "$lt_cv_prog_gnu_ld" = yes; then
7729 case `/usr/bin/file conftest.$ac_objext` in
7730 *32-bit*)
7731 LD="${LD-ld} -melf32bsmip"
7732 ;;
7733 *N32*)
7734 LD="${LD-ld} -melf32bmipn32"
7735 ;;
7736 *64-bit*)
7737 LD="${LD-ld} -melf64bmip"
7738 ;;
7739 esac
7740 else
7741 case `/usr/bin/file conftest.$ac_objext` in
7742 *32-bit*)
7743 LD="${LD-ld} -32"
7744 ;;
7745 *N32*)
7746 LD="${LD-ld} -n32"
7747 ;;
7748 *64-bit*)
7749 LD="${LD-ld} -64"
7750 ;;
7751 esac
7752 fi
7753 fi
7754 rm -rf conftest*
7755 ;;
7756
7757x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7758s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7759 # Find out which ABI we are using.
7760 echo 'int i;' > conftest.$ac_ext
7761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7762 (eval $ac_compile) 2>&5
7763 ac_status=$?
7764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765 test $ac_status = 0; }; then
7766 case `/usr/bin/file conftest.o` in
7767 *32-bit*)
7768 case $host in
7769 x86_64-*kfreebsd*-gnu)
7770 LD="${LD-ld} -m elf_i386_fbsd"
7771 ;;
7772 x86_64-*linux*)
7773 LD="${LD-ld} -m elf_i386"
7774 ;;
7775 ppc64-*linux*|powerpc64-*linux*)
7776 LD="${LD-ld} -m elf32ppclinux"
7777 ;;
7778 s390x-*linux*)
7779 LD="${LD-ld} -m elf_s390"
7780 ;;
7781 sparc64-*linux*)
7782 LD="${LD-ld} -m elf32_sparc"
7783 ;;
7784 esac
7785 ;;
7786 *64-bit*)
7787 case $host in
7788 x86_64-*kfreebsd*-gnu)
7789 LD="${LD-ld} -m elf_x86_64_fbsd"
7790 ;;
7791 x86_64-*linux*)
7792 LD="${LD-ld} -m elf_x86_64"
7793 ;;
7794 ppc*-*linux*|powerpc*-*linux*)
7795 LD="${LD-ld} -m elf64ppc"
7796 ;;
7797 s390*-*linux*|s390*-*tpf*)
7798 LD="${LD-ld} -m elf64_s390"
7799 ;;
7800 sparc*-*linux*)
7801 LD="${LD-ld} -m elf64_sparc"
7802 ;;
7803 esac
7804 ;;
7805 esac
7806 fi
7807 rm -rf conftest*
7808 ;;
7809
7810*-*-sco3.2v5*)
7811 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7812 SAVE_CFLAGS="$CFLAGS"
7813 CFLAGS="$CFLAGS -belf"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7815$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
08c2568c 7816if ${lt_cv_cc_needs_belf+:} false; then :
7083c021
AC
7817 $as_echo_n "(cached) " >&6
7818else
7819 ac_ext=c
7820ac_cpp='$CPP $CPPFLAGS'
7821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h. */
7827
7828int
7829main ()
7830{
7831
7832 ;
7833 return 0;
7834}
7835_ACEOF
7836if ac_fn_c_try_link "$LINENO"; then :
7837 lt_cv_cc_needs_belf=yes
7838else
7839 lt_cv_cc_needs_belf=no
7840fi
7841rm -f core conftest.err conftest.$ac_objext \
7842 conftest$ac_exeext conftest.$ac_ext
7843 ac_ext=c
7844ac_cpp='$CPP $CPPFLAGS'
7845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848
7849fi
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7851$as_echo "$lt_cv_cc_needs_belf" >&6; }
7852 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7853 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7854 CFLAGS="$SAVE_CFLAGS"
7855 fi
7856 ;;
a949ab1a 7857*-*solaris*)
7083c021
AC
7858 # Find out which ABI we are using.
7859 echo 'int i;' > conftest.$ac_ext
7860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7861 (eval $ac_compile) 2>&5
7862 ac_status=$?
7863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864 test $ac_status = 0; }; then
7865 case `/usr/bin/file conftest.o` in
7866 *64-bit*)
7867 case $lt_cv_prog_gnu_ld in
a949ab1a
AC
7868 yes*)
7869 case $host in
7870 i?86-*-solaris*)
7871 LD="${LD-ld} -m elf_x86_64"
7872 ;;
7873 sparc*-*-solaris*)
7874 LD="${LD-ld} -m elf64_sparc"
7875 ;;
7876 esac
7877 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7878 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7879 LD="${LD-ld}_sol2"
7880 fi
7881 ;;
7083c021
AC
7882 *)
7883 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7884 LD="${LD-ld} -64"
7885 fi
7886 ;;
7887 esac
7888 ;;
7889 esac
7890 fi
7891 rm -rf conftest*
7892 ;;
7893esac
7894
7895need_locks="$enable_libtool_lock"
7896
b6d0720c
AC
7897if test -n "$ac_tool_prefix"; then
7898 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7899set dummy ${ac_tool_prefix}mt; ac_word=$2
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901$as_echo_n "checking for $ac_word... " >&6; }
7902if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904else
7905 if test -n "$MANIFEST_TOOL"; then
7906 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7907else
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7918 fi
7919done
7920 done
7921IFS=$as_save_IFS
7922
7923fi
7924fi
7925MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7926if test -n "$MANIFEST_TOOL"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7928$as_echo "$MANIFEST_TOOL" >&6; }
7929else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
7932fi
7933
7934
7935fi
7936if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7937 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7938 # Extract the first word of "mt", so it can be a program name with args.
7939set dummy mt; ac_word=$2
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941$as_echo_n "checking for $ac_word... " >&6; }
7942if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944else
7945 if test -n "$ac_ct_MANIFEST_TOOL"; then
7946 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7947else
7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7958 fi
7959done
7960 done
7961IFS=$as_save_IFS
7962
7963fi
7964fi
7965ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7966if test -n "$ac_ct_MANIFEST_TOOL"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7968$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7969else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971$as_echo "no" >&6; }
7972fi
7973
7974 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7975 MANIFEST_TOOL=":"
7976 else
7977 case $cross_compiling:$ac_tool_warned in
7978yes:)
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981ac_tool_warned=yes ;;
7982esac
7983 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7984 fi
7985else
7986 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7987fi
7988
7989test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7991$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7992if ${lt_cv_path_mainfest_tool+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994else
7995 lt_cv_path_mainfest_tool=no
7996 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7997 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7998 cat conftest.err >&5
7999 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8000 lt_cv_path_mainfest_tool=yes
8001 fi
8002 rm -f conftest*
8003fi
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8005$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8006if test "x$lt_cv_path_mainfest_tool" != xyes; then
8007 MANIFEST_TOOL=:
8008fi
8009
8010
8011
8012
8013
7083c021
AC
8014
8015 case $host_os in
8016 rhapsody* | darwin*)
8017 if test -n "$ac_tool_prefix"; then
8018 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8019set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8022if ${ac_cv_prog_DSYMUTIL+:} false; then :
7083c021
AC
8023 $as_echo_n "(cached) " >&6
8024else
8025 if test -n "$DSYMUTIL"; then
8026 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8027else
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
db137867
AC
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
7083c021 8033 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8035 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
8037 break 2
8038 fi
8039done
7083c021
AC
8040 done
8041IFS=$as_save_IFS
8042
8043fi
8044fi
8045DSYMUTIL=$ac_cv_prog_DSYMUTIL
8046if test -n "$DSYMUTIL"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8048$as_echo "$DSYMUTIL" >&6; }
8049else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
8052fi
8053
8054
8055fi
8056if test -z "$ac_cv_prog_DSYMUTIL"; then
8057 ac_ct_DSYMUTIL=$DSYMUTIL
8058 # Extract the first word of "dsymutil", so it can be a program name with args.
8059set dummy dsymutil; ac_word=$2
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8062if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7083c021
AC
8063 $as_echo_n "(cached) " >&6
8064else
8065 if test -n "$ac_ct_DSYMUTIL"; then
8066 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8067else
8068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069for as_dir in $PATH
8070do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8075 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8078 fi
db137867 8079done
7083c021 8080 done
db137867
AC
8081IFS=$as_save_IFS
8082
8083fi
8084fi
7083c021
AC
8085ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8086if test -n "$ac_ct_DSYMUTIL"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8088$as_echo "$ac_ct_DSYMUTIL" >&6; }
db137867 8089else
7083c021 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8091$as_echo "no" >&6; }
db137867
AC
8092fi
8093
7083c021
AC
8094 if test "x$ac_ct_DSYMUTIL" = x; then
8095 DSYMUTIL=":"
db137867
AC
8096 else
8097 case $cross_compiling:$ac_tool_warned in
8098yes:)
7083c021 8099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
8101ac_tool_warned=yes ;;
8102esac
7083c021 8103 DSYMUTIL=$ac_ct_DSYMUTIL
db137867
AC
8104 fi
8105else
7083c021 8106 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
db137867
AC
8107fi
8108
7083c021
AC
8109 if test -n "$ac_tool_prefix"; then
8110 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8111set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8113$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8114if ${ac_cv_prog_NMEDIT+:} false; then :
030272f3 8115 $as_echo_n "(cached) " >&6
db137867 8116else
7083c021
AC
8117 if test -n "$NMEDIT"; then
8118 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
db137867
AC
8119else
8120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121for as_dir in $PATH
8122do
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
7083c021 8125 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8127 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
8129 break 2
8130 fi
8131done
7083c021 8132 done
db137867
AC
8133IFS=$as_save_IFS
8134
8135fi
8136fi
7083c021
AC
8137NMEDIT=$ac_cv_prog_NMEDIT
8138if test -n "$NMEDIT"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8140$as_echo "$NMEDIT" >&6; }
db137867 8141else
7083c021 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8143$as_echo "no" >&6; }
db137867
AC
8144fi
8145
8146
8147fi
7083c021
AC
8148if test -z "$ac_cv_prog_NMEDIT"; then
8149 ac_ct_NMEDIT=$NMEDIT
8150 # Extract the first word of "nmedit", so it can be a program name with args.
8151set dummy nmedit; ac_word=$2
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8153$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8154if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
030272f3 8155 $as_echo_n "(cached) " >&6
db137867 8156else
7083c021
AC
8157 if test -n "$ac_ct_NMEDIT"; then
8158 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
db137867
AC
8159else
8160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161for as_dir in $PATH
8162do
8163 IFS=$as_save_IFS
8164 test -z "$as_dir" && as_dir=.
7083c021 8165 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 8166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8167 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
8169 break 2
8170 fi
8171done
7083c021 8172 done
db137867
AC
8173IFS=$as_save_IFS
8174
8175fi
8176fi
7083c021
AC
8177ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8178if test -n "$ac_ct_NMEDIT"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8180$as_echo "$ac_ct_NMEDIT" >&6; }
db137867 8181else
7083c021 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8183$as_echo "no" >&6; }
db137867
AC
8184fi
8185
7083c021
AC
8186 if test "x$ac_ct_NMEDIT" = x; then
8187 NMEDIT=":"
db137867
AC
8188 else
8189 case $cross_compiling:$ac_tool_warned in
8190yes:)
7083c021 8191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
8193ac_tool_warned=yes ;;
8194esac
7083c021 8195 NMEDIT=$ac_ct_NMEDIT
db137867
AC
8196 fi
8197else
7083c021 8198 NMEDIT="$ac_cv_prog_NMEDIT"
db137867
AC
8199fi
8200
7083c021
AC
8201 if test -n "$ac_tool_prefix"; then
8202 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8203set dummy ${ac_tool_prefix}lipo; ac_word=$2
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8206if ${ac_cv_prog_LIPO+:} false; then :
7083c021
AC
8207 $as_echo_n "(cached) " >&6
8208else
8209 if test -n "$LIPO"; then
8210 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8211else
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223done
8224 done
8225IFS=$as_save_IFS
db137867 8226
db137867 8227fi
db137867 8228fi
7083c021
AC
8229LIPO=$ac_cv_prog_LIPO
8230if test -n "$LIPO"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8232$as_echo "$LIPO" >&6; }
db137867 8233else
7083c021 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8235$as_echo "no" >&6; }
db137867
AC
8236fi
8237
7083c021
AC
8238
8239fi
8240if test -z "$ac_cv_prog_LIPO"; then
8241 ac_ct_LIPO=$LIPO
8242 # Extract the first word of "lipo", so it can be a program name with args.
8243set dummy lipo; ac_word=$2
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8246if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
030272f3 8247 $as_echo_n "(cached) " >&6
db137867 8248else
7083c021
AC
8249 if test -n "$ac_ct_LIPO"; then
8250 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8251else
8252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253for as_dir in $PATH
8254do
8255 IFS=$as_save_IFS
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8259 ac_cv_prog_ac_ct_LIPO="lipo"
8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 break 2
8262 fi
8263done
db137867 8264 done
7083c021 8265IFS=$as_save_IFS
db137867 8266
7083c021
AC
8267fi
8268fi
8269ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8270if test -n "$ac_ct_LIPO"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8272$as_echo "$ac_ct_LIPO" >&6; }
db137867 8273else
7083c021 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8275$as_echo "no" >&6; }
db137867
AC
8276fi
8277
7083c021
AC
8278 if test "x$ac_ct_LIPO" = x; then
8279 LIPO=":"
db137867 8280 else
7083c021
AC
8281 case $cross_compiling:$ac_tool_warned in
8282yes:)
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8285ac_tool_warned=yes ;;
8286esac
8287 LIPO=$ac_ct_LIPO
db137867 8288 fi
7083c021
AC
8289else
8290 LIPO="$ac_cv_prog_LIPO"
db137867
AC
8291fi
8292
b676ea3b 8293 if test -n "$ac_tool_prefix"; then
7083c021
AC
8294 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8295set dummy ${ac_tool_prefix}otool; ac_word=$2
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8297$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8298if ${ac_cv_prog_OTOOL+:} false; then :
030272f3 8299 $as_echo_n "(cached) " >&6
b676ea3b 8300else
7083c021
AC
8301 if test -n "$OTOOL"; then
8302 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
b676ea3b
AC
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
7083c021 8309 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8311 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8313 break 2
8314 fi
8315done
7083c021 8316 done
b676ea3b
AC
8317IFS=$as_save_IFS
8318
8319fi
8320fi
7083c021
AC
8321OTOOL=$ac_cv_prog_OTOOL
8322if test -n "$OTOOL"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8324$as_echo "$OTOOL" >&6; }
b676ea3b 8325else
7083c021 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8327$as_echo "no" >&6; }
b676ea3b
AC
8328fi
8329
8330
8331fi
7083c021
AC
8332if test -z "$ac_cv_prog_OTOOL"; then
8333 ac_ct_OTOOL=$OTOOL
8334 # Extract the first word of "otool", so it can be a program name with args.
8335set dummy otool; ac_word=$2
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8337$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8338if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
030272f3 8339 $as_echo_n "(cached) " >&6
b676ea3b 8340else
7083c021
AC
8341 if test -n "$ac_ct_OTOOL"; then
8342 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
b676ea3b
AC
8343else
8344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345for as_dir in $PATH
8346do
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
7083c021 8349 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8351 ac_cv_prog_ac_ct_OTOOL="otool"
8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8353 break 2
8354 fi
8355done
7083c021 8356 done
b676ea3b
AC
8357IFS=$as_save_IFS
8358
8359fi
8360fi
7083c021
AC
8361ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8362if test -n "$ac_ct_OTOOL"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8364$as_echo "$ac_ct_OTOOL" >&6; }
b676ea3b 8365else
7083c021 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8367$as_echo "no" >&6; }
b676ea3b
AC
8368fi
8369
7083c021
AC
8370 if test "x$ac_ct_OTOOL" = x; then
8371 OTOOL=":"
b676ea3b
AC
8372 else
8373 case $cross_compiling:$ac_tool_warned in
8374yes:)
7083c021 8375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b676ea3b
AC
8377ac_tool_warned=yes ;;
8378esac
7083c021 8379 OTOOL=$ac_ct_OTOOL
b676ea3b
AC
8380 fi
8381else
7083c021 8382 OTOOL="$ac_cv_prog_OTOOL"
b676ea3b
AC
8383fi
8384
8385 if test -n "$ac_tool_prefix"; then
7083c021
AC
8386 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8387set dummy ${ac_tool_prefix}otool64; ac_word=$2
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8389$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8390if ${ac_cv_prog_OTOOL64+:} false; then :
030272f3 8391 $as_echo_n "(cached) " >&6
b676ea3b 8392else
7083c021
AC
8393 if test -n "$OTOOL64"; then
8394 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
b676ea3b
AC
8395else
8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397for as_dir in $PATH
8398do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
7083c021 8401 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8403 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8405 break 2
8406 fi
8407done
7083c021 8408 done
b676ea3b
AC
8409IFS=$as_save_IFS
8410
8411fi
8412fi
7083c021
AC
8413OTOOL64=$ac_cv_prog_OTOOL64
8414if test -n "$OTOOL64"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8416$as_echo "$OTOOL64" >&6; }
b676ea3b 8417else
7083c021 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8419$as_echo "no" >&6; }
b676ea3b
AC
8420fi
8421
8422
8423fi
7083c021
AC
8424if test -z "$ac_cv_prog_OTOOL64"; then
8425 ac_ct_OTOOL64=$OTOOL64
8426 # Extract the first word of "otool64", so it can be a program name with args.
8427set dummy otool64; ac_word=$2
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8429$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8430if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
030272f3 8431 $as_echo_n "(cached) " >&6
b676ea3b 8432else
7083c021
AC
8433 if test -n "$ac_ct_OTOOL64"; then
8434 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
b676ea3b
AC
8435else
8436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437for as_dir in $PATH
8438do
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
7083c021 8441 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8443 ac_cv_prog_ac_ct_OTOOL64="otool64"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8445 break 2
8446 fi
8447done
7083c021 8448 done
b676ea3b
AC
8449IFS=$as_save_IFS
8450
8451fi
8452fi
7083c021
AC
8453ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8454if test -n "$ac_ct_OTOOL64"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8456$as_echo "$ac_ct_OTOOL64" >&6; }
b676ea3b 8457else
7083c021 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8459$as_echo "no" >&6; }
b676ea3b
AC
8460fi
8461
7083c021
AC
8462 if test "x$ac_ct_OTOOL64" = x; then
8463 OTOOL64=":"
b676ea3b
AC
8464 else
8465 case $cross_compiling:$ac_tool_warned in
8466yes:)
7083c021 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b676ea3b
AC
8469ac_tool_warned=yes ;;
8470esac
7083c021 8471 OTOOL64=$ac_ct_OTOOL64
b676ea3b
AC
8472 fi
8473else
7083c021 8474 OTOOL64="$ac_cv_prog_OTOOL64"
b676ea3b
AC
8475fi
8476
8477
b676ea3b 8478
b676ea3b 8479
7083c021
AC
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8504$as_echo_n "checking for -single_module linker flag... " >&6; }
08c2568c 8505if ${lt_cv_apple_cc_single_mod+:} false; then :
7083c021
AC
8506 $as_echo_n "(cached) " >&6
8507else
8508 lt_cv_apple_cc_single_mod=no
8509 if test -z "${LT_MULTI_MODULE}"; then
8510 # By default we will add the -single_module flag. You can override
8511 # by either setting the environment variable LT_MULTI_MODULE
8512 # non-empty at configure time, or by adding -multi_module to the
8513 # link flags.
8514 rm -rf libconftest.dylib*
8515 echo "int foo(void){return 1;}" > conftest.c
8516 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8517-dynamiclib -Wl,-single_module conftest.c" >&5
8518 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8519 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8520 _lt_result=$?
a949ab1a
AC
8521 # If there is a non-empty error log, and "single_module"
8522 # appears in it, assume the flag caused a linker warning
8523 if test -s conftest.err && $GREP single_module conftest.err; then
8524 cat conftest.err >&5
8525 # Otherwise, if the output was created with a 0 exit code from
8526 # the compiler, it worked.
8527 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7083c021
AC
8528 lt_cv_apple_cc_single_mod=yes
8529 else
8530 cat conftest.err >&5
8531 fi
8532 rm -rf libconftest.dylib*
8533 rm -f conftest.*
8534 fi
8535fi
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8537$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
a949ab1a 8538
7083c021
AC
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8540$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
08c2568c 8541if ${lt_cv_ld_exported_symbols_list+:} false; then :
7083c021
AC
8542 $as_echo_n "(cached) " >&6
8543else
8544 lt_cv_ld_exported_symbols_list=no
8545 save_LDFLAGS=$LDFLAGS
8546 echo "_main" > conftest.sym
8547 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h. */
8550
8551int
8552main ()
8553{
8554
8555 ;
8556 return 0;
b676ea3b
AC
8557}
8558_ACEOF
7083c021 8559if ac_fn_c_try_link "$LINENO"; then :
b676ea3b
AC
8560 lt_cv_ld_exported_symbols_list=yes
8561else
7083c021 8562 lt_cv_ld_exported_symbols_list=no
b676ea3b 8563fi
7083c021
AC
8564rm -f core conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
8566 LDFLAGS="$save_LDFLAGS"
b676ea3b
AC
8567
8568fi
7083c021 8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
030272f3 8570$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
a949ab1a 8571
b6d0720c
AC
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8573$as_echo_n "checking for -force_load linker flag... " >&6; }
8574if ${lt_cv_ld_force_load+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576else
8577 lt_cv_ld_force_load=no
8578 cat > conftest.c << _LT_EOF
8579int forced_loaded() { return 2;}
8580_LT_EOF
8581 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8582 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8583 echo "$AR cru libconftest.a conftest.o" >&5
8584 $AR cru libconftest.a conftest.o 2>&5
8585 echo "$RANLIB libconftest.a" >&5
8586 $RANLIB libconftest.a 2>&5
8587 cat > conftest.c << _LT_EOF
8588int main() { return 0;}
8589_LT_EOF
8590 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8591 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8592 _lt_result=$?
a949ab1a
AC
8593 if test -s conftest.err && $GREP force_load conftest.err; then
8594 cat conftest.err >&5
8595 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
b6d0720c
AC
8596 lt_cv_ld_force_load=yes
8597 else
8598 cat conftest.err >&5
8599 fi
8600 rm -f conftest.err libconftest.a conftest conftest.c
8601 rm -rf conftest.dSYM
8602
8603fi
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8605$as_echo "$lt_cv_ld_force_load" >&6; }
b676ea3b 8606 case $host_os in
7083c021 8607 rhapsody* | darwin1.[012])
b676ea3b
AC
8608 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8609 darwin1.*)
7083c021
AC
8610 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8611 darwin*) # darwin 5.x on
b676ea3b
AC
8612 # if running on 10.5 or later, the deployment target defaults
8613 # to the OS version, if on x86, and 10.4, the deployment
8614 # target defaults to 10.4. Don't you love it?
8615 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7083c021
AC
8616 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8617 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8618 10.[012]*)
8619 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8620 10.*)
8621 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
b676ea3b
AC
8622 esac
8623 ;;
8624 esac
8625 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8626 _lt_dar_single_mod='$single_module'
8627 fi
8628 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8629 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8630 else
7083c021 8631 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
b676ea3b 8632 fi
b6d0720c 8633 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7083c021 8634 _lt_dsymutil='~$DSYMUTIL $lib || :'
b676ea3b
AC
8635 else
8636 _lt_dsymutil=
8637 fi
8638 ;;
8639 esac
8640
7083c021
AC
8641for ac_header in dlfcn.h
8642do :
8643 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8644"
08c2568c 8645if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7083c021
AC
8646 cat >>confdefs.h <<_ACEOF
8647#define HAVE_DLFCN_H 1
8648_ACEOF
b676ea3b 8649
db137867
AC
8650fi
8651
7083c021
AC
8652done
8653
8654
8655
b6d0720c
AC
8656
8657
7083c021
AC
8658# Set options
8659
8660
8661
8662 enable_dlopen=no
8663
8664
8665 enable_win32_dll=no
8666
8667
8668
db137867
AC
8669
8670
8671# Check whether --with-pic was given.
7083c021 8672if test "${with_pic+set}" = set; then :
a949ab1a
AC
8673 withval=$with_pic; lt_p=${PACKAGE-default}
8674 case $withval in
8675 yes|no) pic_mode=$withval ;;
8676 *)
8677 pic_mode=default
8678 # Look at the argument we got. We use all the common list separators.
8679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8680 for lt_pkg in $withval; do
8681 IFS="$lt_save_ifs"
8682 if test "X$lt_pkg" = "X$lt_p"; then
8683 pic_mode=yes
8684 fi
8685 done
8686 IFS="$lt_save_ifs"
8687 ;;
8688 esac
db137867
AC
8689else
8690 pic_mode=default
8691fi
8692
7083c021 8693
db137867
AC
8694test -z "$pic_mode" && pic_mode=default
8695
db137867
AC
8696
8697
db137867 8698
db137867 8699
db137867 8700
db137867 8701
7083c021
AC
8702 # Check whether --enable-fast-install was given.
8703if test "${enable_fast_install+set}" = set; then :
8704 enableval=$enable_fast_install; p=${PACKAGE-default}
8705 case $enableval in
8706 yes) enable_fast_install=yes ;;
8707 no) enable_fast_install=no ;;
8708 *)
8709 enable_fast_install=no
8710 # Look at the argument we got. We use all the common list separators.
8711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8712 for pkg in $enableval; do
8713 IFS="$lt_save_ifs"
8714 if test "X$pkg" = "X$p"; then
8715 enable_fast_install=yes
8716 fi
8717 done
8718 IFS="$lt_save_ifs"
8719 ;;
8720 esac
8721else
8722 enable_fast_install=yes
8723fi
db137867 8724
db137867 8725
db137867 8726
db137867
AC
8727
8728
db137867 8729
db137867
AC
8730
8731
8732
db137867 8733
db137867 8734
7083c021
AC
8735# This can be used to rebuild libtool when needed
8736LIBTOOL_DEPS="$ltmain"
db137867 8737
7083c021
AC
8738# Always use our own libtool.
8739LIBTOOL='$(SHELL) $(top_builddir)/libtool'
db137867 8740
db137867 8741
db137867 8742
db137867 8743
db137867 8744
db137867 8745
db137867 8746
db137867 8747
db137867 8748
db137867 8749
db137867 8750
db137867 8751
db137867 8752
db137867 8753
db137867 8754
db137867 8755
db137867 8756
db137867 8757
db137867 8758
db137867 8759
db137867 8760
a949ab1a
AC
8761
8762
8763
8764
db137867 8765
db137867 8766
b6d0720c 8767
db137867 8768
db137867 8769
7083c021 8770test -z "$LN_S" && LN_S="ln -s"
db137867 8771
db137867 8772
db137867 8773
db137867 8774
db137867 8775
db137867 8776
db137867 8777
db137867 8778
db137867 8779
db137867 8780
db137867 8781
db137867 8782
db137867 8783
db137867 8784
7083c021
AC
8785if test -n "${ZSH_VERSION+set}" ; then
8786 setopt NO_GLOB_SUBST
db137867 8787fi
db137867 8788
7083c021
AC
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8790$as_echo_n "checking for objdir... " >&6; }
08c2568c 8791if ${lt_cv_objdir+:} false; then :
7083c021 8792 $as_echo_n "(cached) " >&6
db137867 8793else
7083c021
AC
8794 rm -f .libs 2>/dev/null
8795mkdir .libs 2>/dev/null
8796if test -d .libs; then
8797 lt_cv_objdir=.libs
8798else
8799 # MS-DOS does not allow filenames that begin with a dot.
8800 lt_cv_objdir=_libs
8801fi
8802rmdir .libs 2>/dev/null
db137867 8803fi
7083c021
AC
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8805$as_echo "$lt_cv_objdir" >&6; }
8806objdir=$lt_cv_objdir
db137867
AC
8807
8808
db137867 8809
db137867 8810
db137867 8811
7083c021
AC
8812cat >>confdefs.h <<_ACEOF
8813#define LT_OBJDIR "$lt_cv_objdir/"
8814_ACEOF
db137867 8815
db137867 8816
db137867 8817
db137867 8818
7083c021
AC
8819case $host_os in
8820aix3*)
8821 # AIX sometimes has problems with the GCC collect2 program. For some
8822 # reason, if we set the COLLECT_NAMES environment variable, the problems
8823 # vanish in a puff of smoke.
8824 if test "X${COLLECT_NAMES+set}" != Xset; then
8825 COLLECT_NAMES=
8826 export COLLECT_NAMES
8827 fi
8828 ;;
8829esac
db137867 8830
7083c021
AC
8831# Global variables:
8832ofile=libtool
8833can_build_shared=yes
db137867 8834
7083c021
AC
8835# All known linkers require a `.a' archive for static linking (except MSVC,
8836# which needs '.lib').
8837libext=a
db137867 8838
7083c021 8839with_gnu_ld="$lt_cv_prog_gnu_ld"
db137867 8840
7083c021
AC
8841old_CC="$CC"
8842old_CFLAGS="$CFLAGS"
db137867 8843
7083c021
AC
8844# Set sane defaults for various variables
8845test -z "$CC" && CC=cc
8846test -z "$LTCC" && LTCC=$CC
8847test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8848test -z "$LD" && LD=ld
8849test -z "$ac_objext" && ac_objext=o
db137867 8850
7083c021
AC
8851for cc_temp in $compiler""; do
8852 case $cc_temp in
8853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8855 \-*) ;;
8856 *) break;;
8857 esac
8858done
b6d0720c 8859cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
db137867 8860
db137867 8861
7083c021
AC
8862# Only perform the check for file, if the check method requires it
8863test -z "$MAGIC_CMD" && MAGIC_CMD=file
8864case $deplibs_check_method in
8865file_magic*)
8866 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8868$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
08c2568c 8869if ${lt_cv_path_MAGIC_CMD+:} false; then :
7083c021
AC
8870 $as_echo_n "(cached) " >&6
8871else
8872 case $MAGIC_CMD in
8873[\\/*] | ?:[\\/]*)
8874 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8875 ;;
8876*)
8877 lt_save_MAGIC_CMD="$MAGIC_CMD"
8878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8880 for ac_dir in $ac_dummy; do
8881 IFS="$lt_save_ifs"
8882 test -z "$ac_dir" && ac_dir=.
8883 if test -f $ac_dir/${ac_tool_prefix}file; then
8884 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8885 if test -n "$file_magic_test_file"; then
8886 case $deplibs_check_method in
8887 "file_magic "*)
8888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8891 $EGREP "$file_magic_regex" > /dev/null; then
8892 :
8893 else
8894 cat <<_LT_EOF 1>&2
db137867 8895
7083c021
AC
8896*** Warning: the command libtool uses to detect shared libraries,
8897*** $file_magic_cmd, produces output that libtool cannot recognize.
8898*** The result is that libtool may fail to recognize shared libraries
8899*** as such. This will affect the creation of libtool libraries that
8900*** depend on shared libraries, but programs linked with such libtool
8901*** libraries will work regardless of this problem. Nevertheless, you
8902*** may want to report the problem to your system manager and/or to
8903*** bug-libtool@gnu.org
db137867 8904
7083c021
AC
8905_LT_EOF
8906 fi ;;
db137867 8907 esac
db137867 8908 fi
7083c021
AC
8909 break
8910 fi
8911 done
8912 IFS="$lt_save_ifs"
8913 MAGIC_CMD="$lt_save_MAGIC_CMD"
8914 ;;
8915esac
8916fi
db137867 8917
7083c021
AC
8918MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8919if test -n "$MAGIC_CMD"; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8921$as_echo "$MAGIC_CMD" >&6; }
8922else
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924$as_echo "no" >&6; }
8925fi
db137867 8926
db137867 8927
db137867 8928
7083c021
AC
8929
8930
8931if test -z "$lt_cv_path_MAGIC_CMD"; then
8932 if test -n "$ac_tool_prefix"; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8934$as_echo_n "checking for file... " >&6; }
08c2568c 8935if ${lt_cv_path_MAGIC_CMD+:} false; then :
7083c021 8936 $as_echo_n "(cached) " >&6
db137867 8937else
7083c021
AC
8938 case $MAGIC_CMD in
8939[\\/*] | ?:[\\/]*)
8940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8941 ;;
8942*)
8943 lt_save_MAGIC_CMD="$MAGIC_CMD"
8944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8945 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8946 for ac_dir in $ac_dummy; do
8947 IFS="$lt_save_ifs"
8948 test -z "$ac_dir" && ac_dir=.
8949 if test -f $ac_dir/file; then
8950 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8951 if test -n "$file_magic_test_file"; then
8952 case $deplibs_check_method in
8953 "file_magic "*)
8954 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8956 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8957 $EGREP "$file_magic_regex" > /dev/null; then
8958 :
8959 else
8960 cat <<_LT_EOF 1>&2
db137867 8961
7083c021
AC
8962*** Warning: the command libtool uses to detect shared libraries,
8963*** $file_magic_cmd, produces output that libtool cannot recognize.
8964*** The result is that libtool may fail to recognize shared libraries
8965*** as such. This will affect the creation of libtool libraries that
8966*** depend on shared libraries, but programs linked with such libtool
8967*** libraries will work regardless of this problem. Nevertheless, you
8968*** may want to report the problem to your system manager and/or to
8969*** bug-libtool@gnu.org
db137867 8970
7083c021
AC
8971_LT_EOF
8972 fi ;;
8973 esac
8974 fi
8975 break
8976 fi
8977 done
8978 IFS="$lt_save_ifs"
8979 MAGIC_CMD="$lt_save_MAGIC_CMD"
8980 ;;
8981esac
db137867
AC
8982fi
8983
7083c021
AC
8984MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8985if test -n "$MAGIC_CMD"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8987$as_echo "$MAGIC_CMD" >&6; }
8988else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990$as_echo "no" >&6; }
8991fi
db137867 8992
db137867 8993
7083c021
AC
8994 else
8995 MAGIC_CMD=:
8996 fi
8997fi
db137867 8998
7083c021
AC
8999 fi
9000 ;;
db137867 9001esac
db137867 9002
7083c021
AC
9003# Use C for the default configuration in the libtool script
9004
9005lt_save_CC="$CC"
9006ac_ext=c
9007ac_cpp='$CPP $CPPFLAGS'
9008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010ac_compiler_gnu=$ac_cv_c_compiler_gnu
9011
9012
9013# Source file extension for C test sources.
9014ac_ext=c
9015
9016# Object file extension for compiled C test sources.
9017objext=o
9018objext=$objext
9019
9020# Code to be used in simple compile tests
9021lt_simple_compile_test_code="int some_variable = 0;"
9022
9023# Code to be used in simple link tests
9024lt_simple_link_test_code='int main(){return(0);}'
9025
9026
9027
9028
9029
9030
9031
9032# If no C compiler was specified, use CC.
9033LTCC=${LTCC-"$CC"}
9034
9035# If no C compiler flags were specified, use CFLAGS.
9036LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9037
9038# Allow CC to be a program name with arguments.
9039compiler=$CC
9040
9041# Save the default compiler, since it gets overwritten when the other
9042# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9043compiler_DEFAULT=$CC
9044
9045# save warnings/boilerplate of simple test code
9046ac_outfile=conftest.$ac_objext
9047echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9048eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9049_lt_compiler_boilerplate=`cat conftest.err`
9050$RM conftest*
9051
9052ac_outfile=conftest.$ac_objext
9053echo "$lt_simple_link_test_code" >conftest.$ac_ext
9054eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9055_lt_linker_boilerplate=`cat conftest.err`
9056$RM -r conftest*
9057
9058
9059if test -n "$compiler"; then
9060
9061lt_prog_compiler_no_builtin_flag=
9062
9063if test "$GCC" = yes; then
b6d0720c
AC
9064 case $cc_basename in
9065 nvcc*)
9066 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9067 *)
9068 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9069 esac
7083c021
AC
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9072$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
08c2568c 9073if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7083c021 9074 $as_echo_n "(cached) " >&6
db137867 9075else
7083c021
AC
9076 lt_cv_prog_compiler_rtti_exceptions=no
9077 ac_outfile=conftest.$ac_objext
9078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9079 lt_compiler_flag="-fno-rtti -fno-exceptions"
9080 # Insert the option either (1) after the last *FLAGS variable, or
9081 # (2) before a word containing "conftest.", or (3) at the end.
9082 # Note that $ac_compile itself does not contain backslashes and begins
9083 # with a dollar sign (not a hyphen), so the echo should work correctly.
9084 # The option is referenced via a variable to avoid confusing sed.
9085 lt_compile=`echo "$ac_compile" | $SED \
9086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9088 -e 's:$: $lt_compiler_flag:'`
b6d0720c 9089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
9090 (eval "$lt_compile" 2>conftest.err)
9091 ac_status=$?
9092 cat conftest.err >&5
b6d0720c 9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
9094 if (exit $ac_status) && test -s "$ac_outfile"; then
9095 # The compiler can only warn and ignore the option if not recognized
9096 # So say no if there are warnings other than the usual output.
b6d0720c 9097 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7083c021
AC
9098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9099 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9100 lt_cv_prog_compiler_rtti_exceptions=yes
9101 fi
9102 fi
9103 $RM conftest*
db137867 9104
7083c021
AC
9105fi
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9107$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
db137867 9108
7083c021
AC
9109if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9110 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9111else
9112 :
db137867
AC
9113fi
9114
7083c021 9115fi
db137867 9116
7083c021
AC
9117
9118
9119
9120
9121
9122 lt_prog_compiler_wl=
9123lt_prog_compiler_pic=
9124lt_prog_compiler_static=
9125
7083c021
AC
9126
9127 if test "$GCC" = yes; then
9128 lt_prog_compiler_wl='-Wl,'
9129 lt_prog_compiler_static='-static'
9130
9131 case $host_os in
9132 aix*)
9133 # All AIX code is PIC.
9134 if test "$host_cpu" = ia64; then
9135 # AIX 5 now supports IA64 processor
9136 lt_prog_compiler_static='-Bstatic'
db137867
AC
9137 fi
9138 ;;
9139
9140 amigaos*)
7083c021
AC
9141 case $host_cpu in
9142 powerpc)
9143 # see comment about AmigaOS4 .so support
9144 lt_prog_compiler_pic='-fPIC'
9145 ;;
9146 m68k)
9147 # FIXME: we need at least 68020 code to build shared libraries, but
9148 # adding the `-m68020' flag to GCC prevents building anything better,
9149 # like `-m68040'.
9150 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9151 ;;
9152 esac
db137867
AC
9153 ;;
9154
7083c021
AC
9155 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9156 # PIC is the default for these OSes.
db137867
AC
9157 ;;
9158
7083c021
AC
9159 mingw* | cygwin* | pw32* | os2* | cegcc*)
9160 # This hack is so that the source file can tell whether it is being
9161 # built for inclusion in a dll (and should export symbols for example).
9162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9163 # (--disable-auto-import) libraries
9164 lt_prog_compiler_pic='-DDLL_EXPORT'
db137867
AC
9165 ;;
9166
9167 darwin* | rhapsody*)
7083c021
AC
9168 # PIC is the default on this platform
9169 # Common symbols not allowed in MH_DYLIB files
9170 lt_prog_compiler_pic='-fno-common'
db137867
AC
9171 ;;
9172
b6d0720c
AC
9173 haiku*)
9174 # PIC is the default for Haiku.
9175 # The "-static" flag exists, but is broken.
9176 lt_prog_compiler_static=
9177 ;;
9178
7083c021
AC
9179 hpux*)
9180 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9181 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9182 # sets the default TLS model and affects inlining.
9183 case $host_cpu in
9184 hppa*64*)
9185 # +Z the default
9186 ;;
9187 *)
9188 lt_prog_compiler_pic='-fPIC'
9189 ;;
9190 esac
db137867
AC
9191 ;;
9192
7083c021
AC
9193 interix[3-9]*)
9194 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9195 # Instead, we relocate shared libraries at runtime.
db137867
AC
9196 ;;
9197
7083c021
AC
9198 msdosdjgpp*)
9199 # Just because we use GCC doesn't mean we suddenly get shared libraries
9200 # on systems that don't support them.
9201 lt_prog_compiler_can_build_shared=no
9202 enable_shared=no
db137867
AC
9203 ;;
9204
7083c021
AC
9205 *nto* | *qnx*)
9206 # QNX uses GNU C++, but need to define -shared option too, otherwise
9207 # it will coredump.
9208 lt_prog_compiler_pic='-fPIC -shared'
db137867
AC
9209 ;;
9210
7083c021
AC
9211 sysv4*MP*)
9212 if test -d /usr/nec; then
9213 lt_prog_compiler_pic=-Kconform_pic
9214 fi
db137867
AC
9215 ;;
9216
7083c021
AC
9217 *)
9218 lt_prog_compiler_pic='-fPIC'
9219 ;;
9220 esac
b6d0720c
AC
9221
9222 case $cc_basename in
9223 nvcc*) # Cuda Compiler Driver 2.2
9224 lt_prog_compiler_wl='-Xlinker '
a949ab1a
AC
9225 if test -n "$lt_prog_compiler_pic"; then
9226 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9227 fi
b6d0720c
AC
9228 ;;
9229 esac
7083c021
AC
9230 else
9231 # PORTME Check for flag to pass linker flags through the system compiler.
9232 case $host_os in
9233 aix*)
9234 lt_prog_compiler_wl='-Wl,'
9235 if test "$host_cpu" = ia64; then
9236 # AIX 5 now supports IA64 processor
9237 lt_prog_compiler_static='-Bstatic'
db137867 9238 else
7083c021 9239 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
db137867 9240 fi
db137867
AC
9241 ;;
9242
7083c021
AC
9243 mingw* | cygwin* | pw32* | os2* | cegcc*)
9244 # This hack is so that the source file can tell whether it is being
9245 # built for inclusion in a dll (and should export symbols for example).
9246 lt_prog_compiler_pic='-DDLL_EXPORT'
9247 ;;
db137867 9248
7083c021
AC
9249 hpux9* | hpux10* | hpux11*)
9250 lt_prog_compiler_wl='-Wl,'
9251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9252 # not for PA HP-UX.
9253 case $host_cpu in
9254 hppa*64*|ia64*)
9255 # +Z the default
9256 ;;
9257 *)
9258 lt_prog_compiler_pic='+Z'
9259 ;;
9260 esac
9261 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9262 lt_prog_compiler_static='${wl}-a ${wl}archive'
9263 ;;
db137867 9264
7083c021
AC
9265 irix5* | irix6* | nonstopux*)
9266 lt_prog_compiler_wl='-Wl,'
9267 # PIC (with -KPIC) is the default.
9268 lt_prog_compiler_static='-non_shared'
db137867
AC
9269 ;;
9270
b6d0720c 9271 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7083c021
AC
9272 case $cc_basename in
9273 # old Intel for x86_64 which still supported -KPIC.
9274 ecc*)
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='-KPIC'
9277 lt_prog_compiler_static='-static'
9278 ;;
9279 # icc used to be incompatible with GCC.
9280 # ICC 10 doesn't accept -KPIC any more.
9281 icc* | ifort*)
9282 lt_prog_compiler_wl='-Wl,'
9283 lt_prog_compiler_pic='-fPIC'
9284 lt_prog_compiler_static='-static'
9285 ;;
9286 # Lahey Fortran 8.1.
9287 lf95*)
9288 lt_prog_compiler_wl='-Wl,'
9289 lt_prog_compiler_pic='--shared'
9290 lt_prog_compiler_static='--static'
9291 ;;
b6d0720c
AC
9292 nagfor*)
9293 # NAG Fortran compiler
9294 lt_prog_compiler_wl='-Wl,-Wl,,'
9295 lt_prog_compiler_pic='-PIC'
9296 lt_prog_compiler_static='-Bstatic'
9297 ;;
9298 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7083c021
AC
9299 # Portland Group compilers (*not* the Pentium gcc compiler,
9300 # which looks to be a dead project)
9301 lt_prog_compiler_wl='-Wl,'
9302 lt_prog_compiler_pic='-fpic'
9303 lt_prog_compiler_static='-Bstatic'
9304 ;;
9305 ccc*)
9306 lt_prog_compiler_wl='-Wl,'
9307 # All Alpha code is PIC.
9308 lt_prog_compiler_static='-non_shared'
9309 ;;
b6d0720c
AC
9310 xl* | bgxl* | bgf* | mpixl*)
9311 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7083c021
AC
9312 lt_prog_compiler_wl='-Wl,'
9313 lt_prog_compiler_pic='-qpic'
9314 lt_prog_compiler_static='-qstaticlink'
9315 ;;
9316 *)
9317 case `$CC -V 2>&1 | sed 5q` in
a949ab1a 9318 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
b6d0720c 9319 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7083c021
AC
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-Bstatic'
b6d0720c 9322 lt_prog_compiler_wl=''
db137867 9323 ;;
a949ab1a
AC
9324 *Sun\ F* | *Sun*Fortran*)
9325 lt_prog_compiler_pic='-KPIC'
9326 lt_prog_compiler_static='-Bstatic'
9327 lt_prog_compiler_wl='-Qoption ld '
9328 ;;
b6d0720c
AC
9329 *Sun\ C*)
9330 # Sun C 5.9
7083c021
AC
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-Bstatic'
b6d0720c 9333 lt_prog_compiler_wl='-Wl,'
db137867 9334 ;;
a949ab1a
AC
9335 *Intel*\ [CF]*Compiler*)
9336 lt_prog_compiler_wl='-Wl,'
9337 lt_prog_compiler_pic='-fPIC'
9338 lt_prog_compiler_static='-static'
9339 ;;
9340 *Portland\ Group*)
9341 lt_prog_compiler_wl='-Wl,'
9342 lt_prog_compiler_pic='-fpic'
9343 lt_prog_compiler_static='-Bstatic'
9344 ;;
db137867 9345 esac
7083c021
AC
9346 ;;
9347 esac
9348 ;;
db137867 9349
7083c021
AC
9350 newsos6)
9351 lt_prog_compiler_pic='-KPIC'
9352 lt_prog_compiler_static='-Bstatic'
9353 ;;
db137867 9354
7083c021
AC
9355 *nto* | *qnx*)
9356 # QNX uses GNU C++, but need to define -shared option too, otherwise
9357 # it will coredump.
9358 lt_prog_compiler_pic='-fPIC -shared'
db137867
AC
9359 ;;
9360
7083c021
AC
9361 osf3* | osf4* | osf5*)
9362 lt_prog_compiler_wl='-Wl,'
9363 # All OSF/1 code is PIC.
9364 lt_prog_compiler_static='-non_shared'
db137867
AC
9365 ;;
9366
7083c021
AC
9367 rdos*)
9368 lt_prog_compiler_static='-non_shared'
db137867
AC
9369 ;;
9370
7083c021
AC
9371 solaris*)
9372 lt_prog_compiler_pic='-KPIC'
9373 lt_prog_compiler_static='-Bstatic'
9374 case $cc_basename in
b6d0720c 9375 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7083c021
AC
9376 lt_prog_compiler_wl='-Qoption ld ';;
9377 *)
9378 lt_prog_compiler_wl='-Wl,';;
9379 esac
db137867
AC
9380 ;;
9381
7083c021
AC
9382 sunos4*)
9383 lt_prog_compiler_wl='-Qoption ld '
9384 lt_prog_compiler_pic='-PIC'
9385 lt_prog_compiler_static='-Bstatic'
db137867
AC
9386 ;;
9387
7083c021
AC
9388 sysv4 | sysv4.2uw2* | sysv4.3*)
9389 lt_prog_compiler_wl='-Wl,'
9390 lt_prog_compiler_pic='-KPIC'
9391 lt_prog_compiler_static='-Bstatic'
db137867
AC
9392 ;;
9393
7083c021
AC
9394 sysv4*MP*)
9395 if test -d /usr/nec ;then
9396 lt_prog_compiler_pic='-Kconform_pic'
9397 lt_prog_compiler_static='-Bstatic'
db137867 9398 fi
db137867
AC
9399 ;;
9400
7083c021
AC
9401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9402 lt_prog_compiler_wl='-Wl,'
9403 lt_prog_compiler_pic='-KPIC'
9404 lt_prog_compiler_static='-Bstatic'
9405 ;;
db137867 9406
7083c021
AC
9407 unicos*)
9408 lt_prog_compiler_wl='-Wl,'
9409 lt_prog_compiler_can_build_shared=no
db137867
AC
9410 ;;
9411
7083c021
AC
9412 uts4*)
9413 lt_prog_compiler_pic='-pic'
9414 lt_prog_compiler_static='-Bstatic'
db137867
AC
9415 ;;
9416
7083c021
AC
9417 *)
9418 lt_prog_compiler_can_build_shared=no
db137867 9419 ;;
7083c021
AC
9420 esac
9421 fi
db137867 9422
7083c021
AC
9423case $host_os in
9424 # For platforms which do not support PIC, -DPIC is meaningless:
9425 *djgpp*)
9426 lt_prog_compiler_pic=
9427 ;;
9428 *)
9429 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9430 ;;
9431esac
db137867 9432
b6d0720c
AC
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9434$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9435if ${lt_cv_prog_compiler_pic+:} false; then :
9436 $as_echo_n "(cached) " >&6
9437else
9438 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9439fi
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9441$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9442lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
db137867 9443
7083c021
AC
9444#
9445# Check to make sure the PIC flag actually works.
9446#
9447if test -n "$lt_prog_compiler_pic"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9449$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
08c2568c 9450if ${lt_cv_prog_compiler_pic_works+:} false; then :
7083c021
AC
9451 $as_echo_n "(cached) " >&6
9452else
9453 lt_cv_prog_compiler_pic_works=no
9454 ac_outfile=conftest.$ac_objext
9455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9456 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9457 # Insert the option either (1) after the last *FLAGS variable, or
9458 # (2) before a word containing "conftest.", or (3) at the end.
9459 # Note that $ac_compile itself does not contain backslashes and begins
9460 # with a dollar sign (not a hyphen), so the echo should work correctly.
9461 # The option is referenced via a variable to avoid confusing sed.
9462 lt_compile=`echo "$ac_compile" | $SED \
9463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9465 -e 's:$: $lt_compiler_flag:'`
b6d0720c 9466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
9467 (eval "$lt_compile" 2>conftest.err)
9468 ac_status=$?
9469 cat conftest.err >&5
b6d0720c 9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
9471 if (exit $ac_status) && test -s "$ac_outfile"; then
9472 # The compiler can only warn and ignore the option if not recognized
9473 # So say no if there are warnings other than the usual output.
b6d0720c 9474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7083c021
AC
9475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9477 lt_cv_prog_compiler_pic_works=yes
9478 fi
9479 fi
9480 $RM conftest*
9481
9482fi
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9484$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9485
9486if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9487 case $lt_prog_compiler_pic in
9488 "" | " "*) ;;
9489 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9490 esac
9491else
9492 lt_prog_compiler_pic=
9493 lt_prog_compiler_can_build_shared=no
9494fi
9495
9496fi
9497
9498
db137867 9499
db137867 9500
db137867 9501
db137867 9502
b6d0720c
AC
9503
9504
9505
9506
9507
db137867 9508#
7083c021 9509# Check to make sure the static flag actually works.
db137867 9510#
7083c021
AC
9511wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9513$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
08c2568c 9514if ${lt_cv_prog_compiler_static_works+:} false; then :
7083c021
AC
9515 $as_echo_n "(cached) " >&6
9516else
9517 lt_cv_prog_compiler_static_works=no
9518 save_LDFLAGS="$LDFLAGS"
9519 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9520 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9521 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9522 # The linker can only warn and ignore the option if not recognized
9523 # So say no if there are warnings
9524 if test -s conftest.err; then
9525 # Append any errors to the config.log.
9526 cat conftest.err 1>&5
b6d0720c 9527 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7083c021
AC
9528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9529 if diff conftest.exp conftest.er2 >/dev/null; then
9530 lt_cv_prog_compiler_static_works=yes
9531 fi
9532 else
9533 lt_cv_prog_compiler_static_works=yes
9534 fi
9535 fi
9536 $RM -r conftest*
9537 LDFLAGS="$save_LDFLAGS"
db137867 9538
7083c021
AC
9539fi
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9541$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
db137867 9542
7083c021
AC
9543if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9544 :
9545else
9546 lt_prog_compiler_static=
9547fi
db137867 9548
db137867 9549
db137867 9550
db137867 9551
db137867 9552
db137867 9553
db137867 9554
7083c021
AC
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9556$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
08c2568c 9557if ${lt_cv_prog_compiler_c_o+:} false; then :
7083c021
AC
9558 $as_echo_n "(cached) " >&6
9559else
9560 lt_cv_prog_compiler_c_o=no
9561 $RM -r conftest 2>/dev/null
9562 mkdir conftest
9563 cd conftest
9564 mkdir out
9565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 9566
7083c021
AC
9567 lt_compiler_flag="-o out/conftest2.$ac_objext"
9568 # Insert the option either (1) after the last *FLAGS variable, or
9569 # (2) before a word containing "conftest.", or (3) at the end.
9570 # Note that $ac_compile itself does not contain backslashes and begins
9571 # with a dollar sign (not a hyphen), so the echo should work correctly.
9572 lt_compile=`echo "$ac_compile" | $SED \
9573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9575 -e 's:$: $lt_compiler_flag:'`
b6d0720c 9576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
9577 (eval "$lt_compile" 2>out/conftest.err)
9578 ac_status=$?
9579 cat out/conftest.err >&5
b6d0720c 9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
9581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9582 then
9583 # The compiler can only warn and ignore the option if not recognized
9584 # So say no if there are warnings
b6d0720c 9585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7083c021
AC
9586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9588 lt_cv_prog_compiler_c_o=yes
9589 fi
9590 fi
9591 chmod u+w . 2>&5
9592 $RM conftest*
9593 # SGI C++ compiler will create directory out/ii_files/ for
9594 # template instantiation
9595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9596 $RM out/* && rmdir out
9597 cd ..
9598 $RM -r conftest
9599 $RM conftest*
db137867 9600
7083c021
AC
9601fi
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9603$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
db137867 9604
db137867 9605
db137867 9606
db137867 9607
db137867 9608
db137867 9609
7083c021
AC
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9611$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
08c2568c 9612if ${lt_cv_prog_compiler_c_o+:} false; then :
7083c021
AC
9613 $as_echo_n "(cached) " >&6
9614else
9615 lt_cv_prog_compiler_c_o=no
9616 $RM -r conftest 2>/dev/null
9617 mkdir conftest
9618 cd conftest
9619 mkdir out
9620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 9621
7083c021
AC
9622 lt_compiler_flag="-o out/conftest2.$ac_objext"
9623 # Insert the option either (1) after the last *FLAGS variable, or
9624 # (2) before a word containing "conftest.", or (3) at the end.
9625 # Note that $ac_compile itself does not contain backslashes and begins
9626 # with a dollar sign (not a hyphen), so the echo should work correctly.
9627 lt_compile=`echo "$ac_compile" | $SED \
9628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9630 -e 's:$: $lt_compiler_flag:'`
b6d0720c 9631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
9632 (eval "$lt_compile" 2>out/conftest.err)
9633 ac_status=$?
9634 cat out/conftest.err >&5
b6d0720c 9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
9636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9637 then
9638 # The compiler can only warn and ignore the option if not recognized
9639 # So say no if there are warnings
b6d0720c 9640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7083c021
AC
9641 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9642 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9643 lt_cv_prog_compiler_c_o=yes
9644 fi
9645 fi
9646 chmod u+w . 2>&5
9647 $RM conftest*
9648 # SGI C++ compiler will create directory out/ii_files/ for
9649 # template instantiation
9650 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9651 $RM out/* && rmdir out
9652 cd ..
9653 $RM -r conftest
9654 $RM conftest*
db137867 9655
7083c021
AC
9656fi
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9658$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9659
9660
9661
9662
9663hard_links="nottested"
9664if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9665 # do not overwrite the value of need_locks provided by the user
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9667$as_echo_n "checking if we can lock with hard links... " >&6; }
9668 hard_links=yes
9669 $RM conftest*
9670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9671 touch conftest.a
9672 ln conftest.a conftest.b 2>&5 || hard_links=no
9673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9675$as_echo "$hard_links" >&6; }
9676 if test "$hard_links" = no; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9678$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9679 need_locks=warn
9680 fi
9681else
9682 need_locks=no
9683fi
9684
9685
9686
9687
9688
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9691$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9692
9693 runpath_var=
9694 allow_undefined_flag=
9695 always_export_symbols=no
9696 archive_cmds=
9697 archive_expsym_cmds=
9698 compiler_needs_object=no
9699 enable_shared_with_static_runtimes=no
9700 export_dynamic_flag_spec=
9701 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9702 hardcode_automatic=no
9703 hardcode_direct=no
9704 hardcode_direct_absolute=no
9705 hardcode_libdir_flag_spec=
7083c021
AC
9706 hardcode_libdir_separator=
9707 hardcode_minus_L=no
9708 hardcode_shlibpath_var=unsupported
9709 inherit_rpath=no
9710 link_all_deplibs=unknown
9711 module_cmds=
9712 module_expsym_cmds=
9713 old_archive_from_new_cmds=
9714 old_archive_from_expsyms_cmds=
9715 thread_safe_flag_spec=
9716 whole_archive_flag_spec=
9717 # include_expsyms should be a list of space-separated symbols to be *always*
9718 # included in the symbol list
9719 include_expsyms=
9720 # exclude_expsyms can be an extended regexp of symbols to exclude
9721 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9722 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9723 # as well as any symbol that contains `d'.
9724 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9725 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9726 # platforms (ab)use it in PIC code, but their linkers get confused if
9727 # the symbol is explicitly referenced. Since portable code cannot
9728 # rely on this symbol name, it's probably fine to never include it in
9729 # preloaded symbol tables.
9730 # Exclude shared library initialization/finalization symbols.
9731 extract_expsyms_cmds=
db137867 9732
db137867 9733 case $host_os in
7083c021
AC
9734 cygwin* | mingw* | pw32* | cegcc*)
9735 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9736 # When not using gcc, we currently assume that we are using
9737 # Microsoft Visual C++.
9738 if test "$GCC" != yes; then
9739 with_gnu_ld=no
9740 fi
db137867 9741 ;;
7083c021
AC
9742 interix*)
9743 # we just hope/assume this is gcc and not c89 (= MSVC++)
9744 with_gnu_ld=yes
db137867 9745 ;;
7083c021
AC
9746 openbsd*)
9747 with_gnu_ld=no
db137867 9748 ;;
db137867 9749 esac
db137867 9750
7083c021 9751 ld_shlibs=yes
b6d0720c
AC
9752
9753 # On some targets, GNU ld is compatible enough with the native linker
9754 # that we're better off using the native interface for both.
9755 lt_use_gnu_ld_interface=no
7083c021 9756 if test "$with_gnu_ld" = yes; then
b6d0720c
AC
9757 case $host_os in
9758 aix*)
9759 # The AIX port of GNU ld has always aspired to compatibility
9760 # with the native linker. However, as the warning in the GNU ld
9761 # block says, versions before 2.19.5* couldn't really create working
9762 # shared libraries, regardless of the interface used.
9763 case `$LD -v 2>&1` in
9764 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9765 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9766 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9767 *)
9768 lt_use_gnu_ld_interface=yes
9769 ;;
9770 esac
9771 ;;
9772 *)
9773 lt_use_gnu_ld_interface=yes
9774 ;;
9775 esac
9776 fi
9777
9778 if test "$lt_use_gnu_ld_interface" = yes; then
7083c021
AC
9779 # If archive_cmds runs LD, not CC, wlarc should be empty
9780 wlarc='${wl}'
db137867 9781
7083c021
AC
9782 # Set some defaults for GNU ld with shared library support. These
9783 # are reset later if shared libraries are not supported. Putting them
9784 # here allows them to be overridden if necessary.
9785 runpath_var=LD_RUN_PATH
9786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9787 export_dynamic_flag_spec='${wl}--export-dynamic'
9788 # ancient GNU ld didn't support --whole-archive et. al.
9789 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9790 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
db137867 9791 else
7083c021 9792 whole_archive_flag_spec=
db137867 9793 fi
7083c021
AC
9794 supports_anon_versioning=no
9795 case `$LD -v 2>&1` in
b6d0720c 9796 *GNU\ gold*) supports_anon_versioning=yes ;;
7083c021
AC
9797 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9798 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9799 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9800 *\ 2.11.*) ;; # other 2.11 versions
9801 *) supports_anon_versioning=yes ;;
db137867 9802 esac
db137867 9803
7083c021
AC
9804 # See if GNU ld supports shared libraries.
9805 case $host_os in
9806 aix[3-9]*)
9807 # On AIX/PPC, the GNU linker is very broken
9808 if test "$host_cpu" != ia64; then
9809 ld_shlibs=no
9810 cat <<_LT_EOF 1>&2
db137867 9811
b6d0720c 9812*** Warning: the GNU linker, at least up to release 2.19, is reported
7083c021
AC
9813*** to be unable to reliably create shared libraries on AIX.
9814*** Therefore, libtool is disabling shared libraries support. If you
b6d0720c
AC
9815*** really care for shared libraries, you may want to install binutils
9816*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9817*** You will then need to restart the configuration process.
db137867 9818
7083c021
AC
9819_LT_EOF
9820 fi
9821 ;;
db137867
AC
9822
9823 amigaos*)
7083c021
AC
9824 case $host_cpu in
9825 powerpc)
9826 # see comment about AmigaOS4 .so support
9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9828 archive_expsym_cmds=''
9829 ;;
9830 m68k)
9831 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)'
9832 hardcode_libdir_flag_spec='-L$libdir'
9833 hardcode_minus_L=yes
9834 ;;
9835 esac
db137867
AC
9836 ;;
9837
9838 beos*)
7083c021
AC
9839 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9840 allow_undefined_flag=unsupported
db137867
AC
9841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9842 # support --undefined. This deserves some investigation. FIXME
7083c021 9843 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
db137867 9844 else
7083c021 9845 ld_shlibs=no
db137867
AC
9846 fi
9847 ;;
9848
7083c021
AC
9849 cygwin* | mingw* | pw32* | cegcc*)
9850 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
db137867 9851 # as there is no search path for DLLs.
7083c021 9852 hardcode_libdir_flag_spec='-L$libdir'
b6d0720c 9853 export_dynamic_flag_spec='${wl}--export-all-symbols'
7083c021
AC
9854 allow_undefined_flag=unsupported
9855 always_export_symbols=no
9856 enable_shared_with_static_runtimes=yes
b6d0720c
AC
9857 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9858 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7083c021
AC
9859
9860 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
db137867
AC
9862 # If the export-symbols file already is a .def file (1st line
9863 # is EXPORTS), use it as is; otherwise, prepend...
7083c021 9864 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
db137867
AC
9865 cp $export_symbols $output_objdir/$soname.def;
9866 else
9867 echo EXPORTS > $output_objdir/$soname.def;
9868 cat $export_symbols >> $output_objdir/$soname.def;
9869 fi~
9870 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9871 else
7083c021 9872 ld_shlibs=no
db137867
AC
9873 fi
9874 ;;
9875
b6d0720c
AC
9876 haiku*)
9877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878 link_all_deplibs=yes
9879 ;;
9880
db137867 9881 interix[3-9]*)
7083c021
AC
9882 hardcode_direct=no
9883 hardcode_shlibpath_var=no
9884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9885 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9887 # Instead, shared libraries are loaded at an image base (0x10000000 by
9888 # default) and relocated if they conflict, which is a slow very memory
9889 # consuming and fragmenting process. To avoid this, we pick a random,
9890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9891 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7083c021
AC
9892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9893 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'
db137867
AC
9894 ;;
9895
b6d0720c 9896 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7083c021
AC
9897 tmp_diet=no
9898 if test "$host_os" = linux-dietlibc; then
9899 case $cc_basename in
9900 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9901 esac
9902 fi
9903 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9904 && test "$tmp_diet" = no
9905 then
b6d0720c 9906 tmp_addflag=' $pic_flag'
7083c021 9907 tmp_sharedflag='-shared'
db137867 9908 case $cc_basename,$host_cpu in
7083c021 9909 pgcc*) # Portland Group C compiler
b6d0720c 9910 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
db137867
AC
9911 tmp_addflag=' $pic_flag'
9912 ;;
b6d0720c
AC
9913 pgf77* | pgf90* | pgf95* | pgfortran*)
9914 # Portland Group f77 and f90 compilers
9915 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
db137867 9916 tmp_addflag=' $pic_flag -Mnomain' ;;
7083c021 9917 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
db137867
AC
9918 tmp_addflag=' -i_dynamic' ;;
9919 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9920 tmp_addflag=' -i_dynamic -nofor_main' ;;
9921 ifc* | ifort*) # Intel Fortran compiler
9922 tmp_addflag=' -nofor_main' ;;
7083c021
AC
9923 lf95*) # Lahey Fortran 8.1
9924 whole_archive_flag_spec=
9925 tmp_sharedflag='--shared' ;;
b6d0720c 9926 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7083c021
AC
9927 tmp_sharedflag='-qmkshrobj'
9928 tmp_addflag= ;;
b6d0720c
AC
9929 nvcc*) # Cuda Compiler Driver 2.2
9930 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9931 compiler_needs_object=yes
9932 ;;
db137867
AC
9933 esac
9934 case `$CC -V 2>&1 | sed 5q` in
9935 *Sun\ C*) # Sun C 5.9
b6d0720c 9936 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7083c021 9937 compiler_needs_object=yes
db137867
AC
9938 tmp_sharedflag='-G' ;;
9939 *Sun\ F*) # Sun Fortran 8.3
9940 tmp_sharedflag='-G' ;;
db137867 9941 esac
7083c021 9942 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
db137867 9943
7083c021
AC
9944 if test "x$supports_anon_versioning" = xyes; then
9945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9947 echo "local: *; };" >> $output_objdir/$libname.ver~
9948 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9949 fi
9950
9951 case $cc_basename in
b6d0720c 9952 xlf* | bgf* | bgxlf* | mpixlf*)
7083c021
AC
9953 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9954 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
a949ab1a 9955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
b6d0720c 9956 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
7083c021
AC
9957 if test "x$supports_anon_versioning" = xyes; then
9958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9960 echo "local: *; };" >> $output_objdir/$libname.ver~
b6d0720c 9961 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7083c021
AC
9962 fi
9963 ;;
9964 esac
db137867 9965 else
7083c021 9966 ld_shlibs=no
db137867
AC
9967 fi
9968 ;;
9969
96f4052b 9970 netbsd*)
7083c021
AC
9971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9972 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
db137867
AC
9973 wlarc=
9974 else
b6d0720c
AC
9975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9976 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867
AC
9977 fi
9978 ;;
9979
9980 solaris*)
7083c021
AC
9981 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9982 ld_shlibs=no
9983 cat <<_LT_EOF 1>&2
db137867
AC
9984
9985*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9986*** create shared libraries on Solaris systems. Therefore, libtool
9987*** is disabling shared libraries support. We urge you to upgrade GNU
9988*** binutils to release 2.9.1 or newer. Another option is to modify
9989*** your PATH or compiler configuration so that the native linker is
9990*** used, and then restart.
9991
7083c021
AC
9992_LT_EOF
9993 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b6d0720c
AC
9994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867 9996 else
7083c021 9997 ld_shlibs=no
db137867
AC
9998 fi
9999 ;;
10000
10001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10002 case `$LD -v 2>&1` in
10003 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7083c021 10004 ld_shlibs=no
db137867
AC
10005 cat <<_LT_EOF 1>&2
10006
10007*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10008*** reliably create shared libraries on SCO systems. Therefore, libtool
10009*** is disabling shared libraries support. We urge you to upgrade GNU
10010*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10011*** your PATH or compiler configuration so that the native linker is
10012*** used, and then restart.
10013
10014_LT_EOF
10015 ;;
10016 *)
7083c021
AC
10017 # For security reasons, it is highly recommended that you always
10018 # use absolute paths for naming shared libraries, and exclude the
10019 # DT_RUNPATH tag from executables and libraries. But doing so
10020 # requires that you compile everything twice, which is a pain.
10021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10022 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867 10025 else
7083c021 10026 ld_shlibs=no
db137867
AC
10027 fi
10028 ;;
10029 esac
10030 ;;
10031
10032 sunos4*)
7083c021 10033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
db137867 10034 wlarc=
7083c021
AC
10035 hardcode_direct=yes
10036 hardcode_shlibpath_var=no
db137867
AC
10037 ;;
10038
10039 *)
7083c021 10040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b6d0720c
AC
10041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10042 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867 10043 else
7083c021 10044 ld_shlibs=no
db137867
AC
10045 fi
10046 ;;
10047 esac
10048
7083c021 10049 if test "$ld_shlibs" = no; then
db137867 10050 runpath_var=
7083c021
AC
10051 hardcode_libdir_flag_spec=
10052 export_dynamic_flag_spec=
10053 whole_archive_flag_spec=
db137867
AC
10054 fi
10055 else
10056 # PORTME fill in a description of your system's linker (not GNU ld)
10057 case $host_os in
10058 aix3*)
7083c021
AC
10059 allow_undefined_flag=unsupported
10060 always_export_symbols=yes
10061 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'
db137867
AC
10062 # Note: this linker hardcodes the directories in LIBPATH if there
10063 # are no directories specified by -L.
7083c021 10064 hardcode_minus_L=yes
db137867
AC
10065 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10066 # Neither direct hardcoding nor static linking is supported with a
10067 # broken collect2.
7083c021 10068 hardcode_direct=unsupported
db137867
AC
10069 fi
10070 ;;
10071
b676ea3b 10072 aix[4-9]*)
db137867
AC
10073 if test "$host_cpu" = ia64; then
10074 # On IA64, the linker does run time linking by default, so we don't
10075 # have to do anything special.
10076 aix_use_runtimelinking=no
10077 exp_sym_flag='-Bexport'
10078 no_entry_flag=""
10079 else
10080 # If we're using GNU nm, then we don't want the "-C" option.
10081 # -C means demangle to AIX nm, but means don't demangle with GNU nm
b6d0720c
AC
10082 # Also, AIX nm treats weak defined symbols like other global
10083 # defined symbols, whereas GNU nm marks them as "W".
7083c021 10084 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b6d0720c 10085 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
db137867 10086 else
7083c021 10087 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'
db137867
AC
10088 fi
10089 aix_use_runtimelinking=no
10090
10091 # Test if we are trying to use run time linking or normal
10092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10093 # need to do runtime linking.
b676ea3b 10094 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
db137867 10095 for ld_flag in $LDFLAGS; do
7083c021
AC
10096 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10097 aix_use_runtimelinking=yes
10098 break
10099 fi
db137867
AC
10100 done
10101 ;;
10102 esac
10103
10104 exp_sym_flag='-bexport'
10105 no_entry_flag='-bnoentry'
10106 fi
10107
10108 # When large executables or shared objects are built, AIX ld can
10109 # have problems creating the table of contents. If linking a library
10110 # or program results in "error TOC overflow" add -mminimal-toc to
10111 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10112 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10113
7083c021
AC
10114 archive_cmds=''
10115 hardcode_direct=yes
10116 hardcode_direct_absolute=yes
10117 hardcode_libdir_separator=':'
10118 link_all_deplibs=yes
10119 file_list_spec='${wl}-f,'
db137867
AC
10120
10121 if test "$GCC" = yes; then
10122 case $host_os in aix4.[012]|aix4.[012].*)
10123 # We only want to do this on AIX 4.2 and lower, the check
10124 # below for broken collect2 doesn't work under 4.3+
10125 collect2name=`${CC} -print-prog-name=collect2`
7083c021
AC
10126 if test -f "$collect2name" &&
10127 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
db137867 10128 then
7083c021
AC
10129 # We have reworked collect2
10130 :
db137867 10131 else
7083c021
AC
10132 # We have old collect2
10133 hardcode_direct=unsupported
10134 # It fails to find uninstalled libraries when the uninstalled
10135 # path is not listed in the libpath. Setting hardcode_minus_L
10136 # to unsupported forces relinking
10137 hardcode_minus_L=yes
10138 hardcode_libdir_flag_spec='-L$libdir'
10139 hardcode_libdir_separator=
db137867
AC
10140 fi
10141 ;;
10142 esac
10143 shared_flag='-shared'
10144 if test "$aix_use_runtimelinking" = yes; then
10145 shared_flag="$shared_flag "'${wl}-G'
10146 fi
10147 else
10148 # not using gcc
10149 if test "$host_cpu" = ia64; then
7083c021
AC
10150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10151 # chokes on -Wl,-G. The following line is correct:
db137867
AC
10152 shared_flag='-G'
10153 else
10154 if test "$aix_use_runtimelinking" = yes; then
10155 shared_flag='${wl}-G'
10156 else
10157 shared_flag='${wl}-bM:SRE'
10158 fi
10159 fi
10160 fi
10161
7083c021 10162 export_dynamic_flag_spec='${wl}-bexpall'
db137867
AC
10163 # It seems that -bexpall does not export symbols beginning with
10164 # underscore (_), so it is better to generate a list of symbols to export.
7083c021 10165 always_export_symbols=yes
db137867
AC
10166 if test "$aix_use_runtimelinking" = yes; then
10167 # Warning - without using the other runtime loading flags (-brtl),
10168 # -berok will link without error, but may produce a broken library.
7083c021
AC
10169 allow_undefined_flag='-berok'
10170 # Determine the default libpath from the value encoded in an
10171 # empty executable.
b6d0720c
AC
10172 if test "${lt_cv_aix_libpath+set}" = set; then
10173 aix_libpath=$lt_cv_aix_libpath
10174else
10175 if ${lt_cv_aix_libpath_+:} false; then :
10176 $as_echo_n "(cached) " >&6
10177else
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
10179/* end confdefs.h. */
10180
10181int
10182main ()
10183{
10184
10185 ;
10186 return 0;
10187}
10188_ACEOF
7083c021 10189if ac_fn_c_try_link "$LINENO"; then :
db137867 10190
b6d0720c
AC
10191 lt_aix_libpath_sed='
10192 /Import File Strings/,/^$/ {
10193 /^0/ {
10194 s/^0 *\([^ ]*\) *$/\1/
10195 p
10196 }
10197 }'
10198 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10199 # Check for a 64-bit object if we didn't find anything.
10200 if test -z "$lt_cv_aix_libpath_"; then
10201 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10202 fi
db137867 10203fi
7083c021
AC
10204rm -f core conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
b6d0720c
AC
10206 if test -z "$lt_cv_aix_libpath_"; then
10207 lt_cv_aix_libpath_="/usr/lib:/lib"
10208 fi
10209
10210fi
10211
10212 aix_libpath=$lt_cv_aix_libpath_
10213fi
db137867 10214
7083c021 10215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b6d0720c 10216 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7083c021 10217 else
db137867 10218 if test "$host_cpu" = ia64; then
7083c021
AC
10219 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10220 allow_undefined_flag="-z nodefs"
10221 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"
db137867 10222 else
7083c021
AC
10223 # Determine the default libpath from the value encoded in an
10224 # empty executable.
b6d0720c
AC
10225 if test "${lt_cv_aix_libpath+set}" = set; then
10226 aix_libpath=$lt_cv_aix_libpath
10227else
10228 if ${lt_cv_aix_libpath_+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230else
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
10232/* end confdefs.h. */
10233
10234int
10235main ()
10236{
10237
10238 ;
10239 return 0;
10240}
10241_ACEOF
7083c021 10242if ac_fn_c_try_link "$LINENO"; then :
db137867 10243
b6d0720c
AC
10244 lt_aix_libpath_sed='
10245 /Import File Strings/,/^$/ {
10246 /^0/ {
10247 s/^0 *\([^ ]*\) *$/\1/
10248 p
10249 }
10250 }'
10251 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10252 # Check for a 64-bit object if we didn't find anything.
10253 if test -z "$lt_cv_aix_libpath_"; then
10254 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10255 fi
db137867 10256fi
7083c021
AC
10257rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
b6d0720c
AC
10259 if test -z "$lt_cv_aix_libpath_"; then
10260 lt_cv_aix_libpath_="/usr/lib:/lib"
10261 fi
10262
10263fi
10264
10265 aix_libpath=$lt_cv_aix_libpath_
10266fi
db137867 10267
7083c021 10268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
db137867
AC
10269 # Warning - without using the other run time loading flags,
10270 # -berok will link without error, but may produce a broken library.
7083c021
AC
10271 no_undefined_flag=' ${wl}-bernotok'
10272 allow_undefined_flag=' ${wl}-berok'
b6d0720c
AC
10273 if test "$with_gnu_ld" = yes; then
10274 # We only use this code for GNU lds that support --whole-archive.
10275 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10276 else
10277 # Exported symbols can be pulled into shared objects from archives
10278 whole_archive_flag_spec='$convenience'
10279 fi
7083c021 10280 archive_cmds_need_lc=yes
db137867 10281 # This is similar to how AIX traditionally builds its shared libraries.
7083c021 10282 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'
db137867
AC
10283 fi
10284 fi
10285 ;;
10286
10287 amigaos*)
7083c021
AC
10288 case $host_cpu in
10289 powerpc)
10290 # see comment about AmigaOS4 .so support
10291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10292 archive_expsym_cmds=''
10293 ;;
10294 m68k)
10295 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)'
10296 hardcode_libdir_flag_spec='-L$libdir'
10297 hardcode_minus_L=yes
10298 ;;
10299 esac
db137867
AC
10300 ;;
10301
10302 bsdi[45]*)
7083c021 10303 export_dynamic_flag_spec=-rdynamic
db137867
AC
10304 ;;
10305
7083c021 10306 cygwin* | mingw* | pw32* | cegcc*)
db137867
AC
10307 # When not using gcc, we currently assume that we are using
10308 # Microsoft Visual C++.
10309 # hardcode_libdir_flag_spec is actually meaningless, as there is
10310 # no search path for DLLs.
b6d0720c
AC
10311 case $cc_basename in
10312 cl*)
10313 # Native MSVC
10314 hardcode_libdir_flag_spec=' '
10315 allow_undefined_flag=unsupported
10316 always_export_symbols=yes
10317 file_list_spec='@'
10318 # Tell ltmain to make .lib files, not .a files.
10319 libext=lib
10320 # Tell ltmain to make .dll files, not .so files.
10321 shrext_cmds=".dll"
10322 # FIXME: Setting linknames here is a bad hack.
10323 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10324 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10325 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10326 else
10327 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10328 fi~
10329 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10330 linknames='
10331 # The linker will not automatically build a static lib if we build a DLL.
10332 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10333 enable_shared_with_static_runtimes=yes
a949ab1a 10334 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
b6d0720c
AC
10335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10336 # Don't use ranlib
10337 old_postinstall_cmds='chmod 644 $oldlib'
10338 postlink_cmds='lt_outputfile="@OUTPUT@"~
10339 lt_tool_outputfile="@TOOL_OUTPUT@"~
10340 case $lt_outputfile in
10341 *.exe|*.EXE) ;;
10342 *)
10343 lt_outputfile="$lt_outputfile.exe"
10344 lt_tool_outputfile="$lt_tool_outputfile.exe"
10345 ;;
10346 esac~
10347 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10348 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10349 $RM "$lt_outputfile.manifest";
10350 fi'
10351 ;;
10352 *)
10353 # Assume MSVC wrapper
10354 hardcode_libdir_flag_spec=' '
10355 allow_undefined_flag=unsupported
10356 # Tell ltmain to make .lib files, not .a files.
10357 libext=lib
10358 # Tell ltmain to make .dll files, not .so files.
10359 shrext_cmds=".dll"
10360 # FIXME: Setting linknames here is a bad hack.
10361 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10362 # The linker will automatically build a .lib file if we build a DLL.
10363 old_archive_from_new_cmds='true'
10364 # FIXME: Should let the user specify the lib program.
10365 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10366 enable_shared_with_static_runtimes=yes
10367 ;;
10368 esac
db137867
AC
10369 ;;
10370
7083c021
AC
10371 darwin* | rhapsody*)
10372
10373
10374 archive_cmds_need_lc=no
10375 hardcode_direct=no
10376 hardcode_automatic=yes
10377 hardcode_shlibpath_var=unsupported
b6d0720c
AC
10378 if test "$lt_cv_ld_force_load" = "yes"; then
10379 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
a949ab1a 10380
b6d0720c
AC
10381 else
10382 whole_archive_flag_spec=''
10383 fi
7083c021
AC
10384 link_all_deplibs=yes
10385 allow_undefined_flag="$_lt_dar_allow_undefined"
10386 case $cc_basename in
10387 ifort*) _lt_dar_can_shared=yes ;;
10388 *) _lt_dar_can_shared=$GCC ;;
10389 esac
10390 if test "$_lt_dar_can_shared" = "yes"; then
b6d0720c 10391 output_verbose_link_cmd=func_echo_all
7083c021
AC
10392 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10393 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10394 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10395 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10396
10397 else
10398 ld_shlibs=no
10399 fi
10400
db137867
AC
10401 ;;
10402
10403 dgux*)
7083c021
AC
10404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10405 hardcode_libdir_flag_spec='-L$libdir'
10406 hardcode_shlibpath_var=no
db137867
AC
10407 ;;
10408
db137867
AC
10409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10410 # support. Future versions do this automatically, but an explicit c++rt0.o
10411 # does not break anything, and helps significantly (at the cost of a little
10412 # extra space).
10413 freebsd2.2*)
7083c021
AC
10414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10415 hardcode_libdir_flag_spec='-R$libdir'
10416 hardcode_direct=yes
10417 hardcode_shlibpath_var=no
db137867
AC
10418 ;;
10419
10420 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
a949ab1a 10421 freebsd2.*)
7083c021
AC
10422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10423 hardcode_direct=yes
10424 hardcode_minus_L=yes
10425 hardcode_shlibpath_var=no
db137867
AC
10426 ;;
10427
10428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10429 freebsd* | dragonfly*)
b6d0720c 10430 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7083c021
AC
10431 hardcode_libdir_flag_spec='-R$libdir'
10432 hardcode_direct=yes
10433 hardcode_shlibpath_var=no
db137867
AC
10434 ;;
10435
10436 hpux9*)
10437 if test "$GCC" = yes; then
b6d0720c 10438 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
db137867 10439 else
7083c021 10440 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'
db137867 10441 fi
7083c021
AC
10442 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10443 hardcode_libdir_separator=:
10444 hardcode_direct=yes
db137867
AC
10445
10446 # hardcode_minus_L: Not really in the search PATH,
10447 # but as the default location of the library.
7083c021
AC
10448 hardcode_minus_L=yes
10449 export_dynamic_flag_spec='${wl}-E'
db137867
AC
10450 ;;
10451
10452 hpux10*)
b6d0720c
AC
10453 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10454 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867 10455 else
7083c021 10456 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
db137867
AC
10457 fi
10458 if test "$with_gnu_ld" = no; then
7083c021 10459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7083c021
AC
10460 hardcode_libdir_separator=:
10461 hardcode_direct=yes
10462 hardcode_direct_absolute=yes
10463 export_dynamic_flag_spec='${wl}-E'
db137867
AC
10464 # hardcode_minus_L: Not really in the search PATH,
10465 # but as the default location of the library.
7083c021 10466 hardcode_minus_L=yes
db137867
AC
10467 fi
10468 ;;
10469
10470 hpux11*)
b6d0720c 10471 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
db137867
AC
10472 case $host_cpu in
10473 hppa*64*)
7083c021 10474 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10475 ;;
10476 ia64*)
b6d0720c 10477 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10478 ;;
10479 *)
b6d0720c 10480 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10481 ;;
10482 esac
10483 else
10484 case $host_cpu in
10485 hppa*64*)
7083c021 10486 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10487 ;;
10488 ia64*)
7083c021 10489 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10490 ;;
10491 *)
b6d0720c
AC
10492
10493 # Older versions of the 11.00 compiler do not understand -b yet
10494 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10496$as_echo_n "checking if $CC understands -b... " >&6; }
10497if ${lt_cv_prog_compiler__b+:} false; then :
10498 $as_echo_n "(cached) " >&6
10499else
10500 lt_cv_prog_compiler__b=no
10501 save_LDFLAGS="$LDFLAGS"
10502 LDFLAGS="$LDFLAGS -b"
10503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10505 # The linker can only warn and ignore the option if not recognized
10506 # So say no if there are warnings
10507 if test -s conftest.err; then
10508 # Append any errors to the config.log.
10509 cat conftest.err 1>&5
10510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10512 if diff conftest.exp conftest.er2 >/dev/null; then
10513 lt_cv_prog_compiler__b=yes
10514 fi
10515 else
10516 lt_cv_prog_compiler__b=yes
10517 fi
10518 fi
10519 $RM -r conftest*
10520 LDFLAGS="$save_LDFLAGS"
10521
10522fi
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10524$as_echo "$lt_cv_prog_compiler__b" >&6; }
10525
10526if test x"$lt_cv_prog_compiler__b" = xyes; then
10527 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10528else
10529 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10530fi
10531
db137867
AC
10532 ;;
10533 esac
10534 fi
10535 if test "$with_gnu_ld" = no; then
7083c021
AC
10536 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10537 hardcode_libdir_separator=:
db137867
AC
10538
10539 case $host_cpu in
10540 hppa*64*|ia64*)
7083c021
AC
10541 hardcode_direct=no
10542 hardcode_shlibpath_var=no
db137867
AC
10543 ;;
10544 *)
7083c021
AC
10545 hardcode_direct=yes
10546 hardcode_direct_absolute=yes
10547 export_dynamic_flag_spec='${wl}-E'
db137867
AC
10548
10549 # hardcode_minus_L: Not really in the search PATH,
10550 # but as the default location of the library.
7083c021 10551 hardcode_minus_L=yes
db137867
AC
10552 ;;
10553 esac
10554 fi
10555 ;;
10556
10557 irix5* | irix6* | nonstopux*)
10558 if test "$GCC" = yes; then
b6d0720c 10559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7083c021
AC
10560 # Try to use the -exported_symbol ld option, if it does not
10561 # work, assume that -exports_file does not work either and
10562 # implicitly export all symbols.
b6d0720c
AC
10563 # This should be the same for all languages, so no per-tag cache variable.
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10565$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10566if ${lt_cv_irix_exported_symbol+:} false; then :
10567 $as_echo_n "(cached) " >&6
10568else
10569 save_LDFLAGS="$LDFLAGS"
10570 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021 10572/* end confdefs.h. */
b6d0720c 10573int foo (void) { return 0; }
7083c021
AC
10574_ACEOF
10575if ac_fn_c_try_link "$LINENO"; then :
b6d0720c
AC
10576 lt_cv_irix_exported_symbol=yes
10577else
10578 lt_cv_irix_exported_symbol=no
7083c021
AC
10579fi
10580rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
b6d0720c
AC
10582 LDFLAGS="$save_LDFLAGS"
10583fi
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10585$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10586 if test "$lt_cv_irix_exported_symbol" = yes; then
10587 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10588 fi
db137867 10589 else
b6d0720c
AC
10590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
db137867 10592 fi
7083c021
AC
10593 archive_cmds_need_lc='no'
10594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10595 hardcode_libdir_separator=:
10596 inherit_rpath=yes
10597 link_all_deplibs=yes
db137867
AC
10598 ;;
10599
96f4052b 10600 netbsd*)
7083c021
AC
10601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
db137867 10603 else
7083c021 10604 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
db137867 10605 fi
7083c021
AC
10606 hardcode_libdir_flag_spec='-R$libdir'
10607 hardcode_direct=yes
10608 hardcode_shlibpath_var=no
db137867
AC
10609 ;;
10610
10611 newsos6)
7083c021
AC
10612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613 hardcode_direct=yes
10614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10615 hardcode_libdir_separator=:
10616 hardcode_shlibpath_var=no
10617 ;;
10618
10619 *nto* | *qnx*)
db137867
AC
10620 ;;
10621
10622 openbsd*)
10623 if test -f /usr/libexec/ld.so; then
7083c021
AC
10624 hardcode_direct=yes
10625 hardcode_shlibpath_var=no
10626 hardcode_direct_absolute=yes
10627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10629 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10631 export_dynamic_flag_spec='${wl}-E'
db137867
AC
10632 else
10633 case $host_os in
10634 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7083c021
AC
10635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10636 hardcode_libdir_flag_spec='-R$libdir'
db137867
AC
10637 ;;
10638 *)
7083c021
AC
10639 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10640 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
db137867
AC
10641 ;;
10642 esac
7083c021 10643 fi
db137867 10644 else
7083c021 10645 ld_shlibs=no
db137867
AC
10646 fi
10647 ;;
10648
10649 os2*)
7083c021
AC
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 hardcode_minus_L=yes
10652 allow_undefined_flag=unsupported
b6d0720c 10653 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'
7083c021 10654 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
db137867
AC
10655 ;;
10656
10657 osf3*)
10658 if test "$GCC" = yes; then
7083c021 10659 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b6d0720c 10660 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
db137867 10661 else
7083c021 10662 allow_undefined_flag=' -expect_unresolved \*'
b6d0720c 10663 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
db137867 10664 fi
7083c021
AC
10665 archive_cmds_need_lc='no'
10666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10667 hardcode_libdir_separator=:
db137867
AC
10668 ;;
10669
10670 osf4* | osf5*) # as osf3* with the addition of -msym flag
10671 if test "$GCC" = yes; then
7083c021 10672 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b6d0720c 10673 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7083c021 10674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
db137867 10675 else
7083c021 10676 allow_undefined_flag=' -expect_unresolved \*'
b6d0720c 10677 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7083c021 10678 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~
b6d0720c 10679 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
db137867
AC
10680
10681 # Both c and cxx compiler support -rpath directly
7083c021 10682 hardcode_libdir_flag_spec='-rpath $libdir'
db137867 10683 fi
7083c021
AC
10684 archive_cmds_need_lc='no'
10685 hardcode_libdir_separator=:
db137867
AC
10686 ;;
10687
10688 solaris*)
7083c021 10689 no_undefined_flag=' -z defs'
db137867
AC
10690 if test "$GCC" = yes; then
10691 wlarc='${wl}'
b6d0720c 10692 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7083c021 10693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
b6d0720c 10694 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
db137867 10695 else
7083c021
AC
10696 case `$CC -V 2>&1` in
10697 *"Compilers 5.0"*)
10698 wlarc=''
10699 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10702 ;;
10703 *)
10704 wlarc='${wl}'
10705 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10706 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10707 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10708 ;;
10709 esac
db137867 10710 fi
7083c021
AC
10711 hardcode_libdir_flag_spec='-R$libdir'
10712 hardcode_shlibpath_var=no
db137867
AC
10713 case $host_os in
10714 solaris2.[0-5] | solaris2.[0-5].*) ;;
10715 *)
10716 # The compiler driver will combine and reorder linker options,
10717 # but understands `-z linker_flag'. GCC discards it without `$wl',
10718 # but is careful enough not to reorder.
7083c021 10719 # Supported since Solaris 2.6 (maybe 2.5.1?)
db137867 10720 if test "$GCC" = yes; then
7083c021 10721 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
db137867 10722 else
7083c021 10723 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
db137867
AC
10724 fi
10725 ;;
10726 esac
7083c021 10727 link_all_deplibs=yes
db137867
AC
10728 ;;
10729
10730 sunos4*)
10731 if test "x$host_vendor" = xsequent; then
10732 # Use $CC to link under sequent, because it throws in some extra .o
10733 # files that make .init and .fini sections work.
7083c021 10734 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 10735 else
7083c021 10736 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
db137867 10737 fi
7083c021
AC
10738 hardcode_libdir_flag_spec='-L$libdir'
10739 hardcode_direct=yes
10740 hardcode_minus_L=yes
10741 hardcode_shlibpath_var=no
db137867
AC
10742 ;;
10743
10744 sysv4)
10745 case $host_vendor in
10746 sni)
7083c021
AC
10747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10748 hardcode_direct=yes # is this really true???
db137867
AC
10749 ;;
10750 siemens)
10751 ## LD is ld it makes a PLAMLIB
10752 ## CC just makes a GrossModule.
7083c021
AC
10753 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10754 reload_cmds='$CC -r -o $output$reload_objs'
10755 hardcode_direct=no
db137867
AC
10756 ;;
10757 motorola)
7083c021
AC
10758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10759 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
db137867
AC
10760 ;;
10761 esac
10762 runpath_var='LD_RUN_PATH'
7083c021 10763 hardcode_shlibpath_var=no
db137867
AC
10764 ;;
10765
10766 sysv4.3*)
7083c021
AC
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_shlibpath_var=no
10769 export_dynamic_flag_spec='-Bexport'
db137867
AC
10770 ;;
10771
10772 sysv4*MP*)
10773 if test -d /usr/nec; then
7083c021
AC
10774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10775 hardcode_shlibpath_var=no
db137867
AC
10776 runpath_var=LD_RUN_PATH
10777 hardcode_runpath_var=yes
7083c021 10778 ld_shlibs=yes
db137867
AC
10779 fi
10780 ;;
10781
10782 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7083c021
AC
10783 no_undefined_flag='${wl}-z,text'
10784 archive_cmds_need_lc=no
10785 hardcode_shlibpath_var=no
db137867
AC
10786 runpath_var='LD_RUN_PATH'
10787
10788 if test "$GCC" = yes; then
7083c021
AC
10789 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 10791 else
7083c021
AC
10792 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10793 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10794 fi
10795 ;;
10796
10797 sysv5* | sco3.2v5* | sco5v6*)
10798 # Note: We can NOT use -z defs as we might desire, because we do not
10799 # link with -lc, and that would cause any symbols used from libc to
10800 # always be unresolved, which means just about no library would
10801 # ever link correctly. If we're not using GNU ld we use -z text
10802 # though, which does catch some bad symbols but isn't as heavy-handed
10803 # as -z defs.
7083c021
AC
10804 no_undefined_flag='${wl}-z,text'
10805 allow_undefined_flag='${wl}-z,nodefs'
10806 archive_cmds_need_lc=no
10807 hardcode_shlibpath_var=no
10808 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10809 hardcode_libdir_separator=':'
10810 link_all_deplibs=yes
10811 export_dynamic_flag_spec='${wl}-Bexport'
db137867
AC
10812 runpath_var='LD_RUN_PATH'
10813
10814 if test "$GCC" = yes; then
7083c021
AC
10815 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10816 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 10817 else
7083c021
AC
10818 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10819 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10820 fi
10821 ;;
10822
10823 uts4*)
7083c021
AC
10824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10825 hardcode_libdir_flag_spec='-L$libdir'
10826 hardcode_shlibpath_var=no
db137867
AC
10827 ;;
10828
10829 *)
7083c021 10830 ld_shlibs=no
db137867
AC
10831 ;;
10832 esac
7083c021
AC
10833
10834 if test x$host_vendor = xsni; then
10835 case $host in
10836 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10837 export_dynamic_flag_spec='${wl}-Blargedynsym'
10838 ;;
10839 esac
10840 fi
db137867
AC
10841 fi
10842
7083c021
AC
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10844$as_echo "$ld_shlibs" >&6; }
10845test "$ld_shlibs" = no && can_build_shared=no
10846
10847with_gnu_ld=$with_gnu_ld
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
db137867
AC
10862
10863#
10864# Do we need to explicitly link libc?
10865#
7083c021 10866case "x$archive_cmds_need_lc" in
db137867
AC
10867x|xyes)
10868 # Assume -lc should be added
7083c021 10869 archive_cmds_need_lc=yes
db137867
AC
10870
10871 if test "$enable_shared" = yes && test "$GCC" = yes; then
7083c021 10872 case $archive_cmds in
db137867
AC
10873 *'~'*)
10874 # FIXME: we may have to deal with multi-command sequences.
10875 ;;
10876 '$CC '*)
10877 # Test whether the compiler implicitly links with -lc since on some
10878 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10879 # to ld, don't add -lc before -lgcc.
7083c021 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
030272f3 10881$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b6d0720c
AC
10882if ${lt_cv_archive_cmds_need_lc+:} false; then :
10883 $as_echo_n "(cached) " >&6
10884else
10885 $RM conftest*
10886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 10887
b6d0720c 10888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
db137867
AC
10889 (eval $ac_compile) 2>&5
10890 ac_status=$?
7083c021
AC
10891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10892 test $ac_status = 0; } 2>conftest.err; then
b6d0720c
AC
10893 soname=conftest
10894 lib=conftest
10895 libobjs=conftest.$ac_objext
10896 deplibs=
10897 wl=$lt_prog_compiler_wl
10898 pic_flag=$lt_prog_compiler_pic
10899 compiler_flags=-v
10900 linker_flags=-v
10901 verstring=
10902 output_objdir=.
10903 libname=conftest
10904 lt_save_allow_undefined_flag=$allow_undefined_flag
10905 allow_undefined_flag=
10906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7083c021 10907 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
db137867 10908 ac_status=$?
7083c021
AC
10909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10910 test $ac_status = 0; }
b6d0720c
AC
10911 then
10912 lt_cv_archive_cmds_need_lc=no
10913 else
10914 lt_cv_archive_cmds_need_lc=yes
10915 fi
10916 allow_undefined_flag=$lt_save_allow_undefined_flag
10917 else
10918 cat conftest.err 1>&5
10919 fi
10920 $RM conftest*
10921
10922fi
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10924$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10925 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
db137867
AC
10926 ;;
10927 esac
10928 fi
10929 ;;
10930esac
10931
db137867 10932
db137867 10933
db137867 10934
db137867 10935
db137867 10936
db137867 10937
db137867 10938
db137867 10939
db137867 10940
db137867 10941
db137867 10942
db137867 10943
db137867 10944
db137867 10945
db137867 10946
db137867 10947
db137867 10948
db137867 10949
db137867 10950
db137867 10951
db137867 10952
db137867 10953
db137867 10954
db137867 10955
db137867 10956
db137867 10957
db137867 10958
db137867 10959
db137867 10960
db137867 10961
db137867 10962
db137867 10963
db137867 10964
db137867 10965
db137867 10966
db137867 10967
db137867 10968
db137867 10969
db137867 10970
db137867 10971
db137867 10972
b676ea3b 10973
b676ea3b 10974
b676ea3b 10975
db137867 10976
db137867 10977
db137867 10978
db137867
AC
10979
10980
db137867 10981
db137867 10982
db137867 10983
db137867 10984
db137867 10985
db137867 10986
db137867 10987
db137867 10988
db137867 10989
db137867 10990
db137867 10991
db137867 10992
db137867 10993
db137867 10994
db137867 10995
db137867 10996
db137867 10997
db137867 10998
db137867 10999
db137867 11000
db137867 11001
db137867 11002
db137867 11003
db137867 11004
db137867 11005
db137867 11006
db137867 11007
db137867 11008
db137867 11009
db137867 11010
db137867 11011
db137867 11012
db137867 11013
db137867 11014
db137867 11015
db137867 11016
db137867 11017
db137867 11018
db137867 11019
db137867 11020
db137867 11021
db137867 11022
db137867 11023
db137867 11024
db137867 11025
db137867 11026
db137867 11027
db137867 11028
db137867 11029
db137867 11030
db137867 11031
db137867 11032
db137867 11033
db137867 11034
db137867 11035
db137867 11036
db137867 11037
db137867 11038
db137867 11039
db137867 11040
db137867 11041
db137867 11042
db137867 11043
b676ea3b 11044
db137867 11045
db137867 11046
db137867 11047
db137867 11048
db137867 11049
db137867 11050
db137867 11051
db137867 11052
db137867 11053
db137867 11054
db137867 11055
db137867 11056
db137867 11057
db137867 11058
db137867 11059
db137867 11060
db137867 11061
db137867 11062
db137867 11063
db137867 11064
db137867 11065
db137867 11066
db137867 11067
db137867 11068
db137867 11069
db137867 11070
db137867 11071
db137867 11072
db137867 11073
db137867 11074
db137867 11075
db137867 11076
7083c021
AC
11077
11078
11079
11080
11081
11082
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11084$as_echo_n "checking dynamic linker characteristics... " >&6; }
11085
11086if test "$GCC" = yes; then
11087 case $host_os in
11088 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11089 *) lt_awk_arg="/^libraries:/" ;;
11090 esac
b6d0720c
AC
11091 case $host_os in
11092 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11093 *) lt_sed_strip_eq="s,=/,/,g" ;;
11094 esac
11095 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11096 case $lt_search_path_spec in
11097 *\;*)
7083c021
AC
11098 # if the path contains ";" then we assume it to be the separator
11099 # otherwise default to the standard path separator (i.e. ":") - it is
11100 # assumed that no part of a normal pathname contains ";" but that should
11101 # okay in the real world where ";" in dirpaths is itself problematic.
b6d0720c
AC
11102 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11103 ;;
11104 *)
11105 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11106 ;;
11107 esac
7083c021
AC
11108 # Ok, now we have the path, separated by spaces, we can step through it
11109 # and add multilib dir if necessary.
11110 lt_tmp_lt_search_path_spec=
11111 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11112 for lt_sys_path in $lt_search_path_spec; do
11113 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11115 else
11116 test -d "$lt_sys_path" && \
11117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11118 fi
11119 done
b6d0720c 11120 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
7083c021
AC
11121BEGIN {RS=" "; FS="/|\n";} {
11122 lt_foo="";
11123 lt_count=0;
11124 for (lt_i = NF; lt_i > 0; lt_i--) {
11125 if ($lt_i != "" && $lt_i != ".") {
11126 if ($lt_i == "..") {
11127 lt_count++;
11128 } else {
11129 if (lt_count == 0) {
11130 lt_foo="/" $lt_i lt_foo;
11131 } else {
11132 lt_count--;
11133 }
11134 }
11135 }
11136 }
11137 if (lt_foo != "") { lt_freq[lt_foo]++; }
11138 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11139}'`
b6d0720c
AC
11140 # AWK program above erroneously prepends '/' to C:/dos/paths
11141 # for these hosts.
11142 case $host_os in
11143 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11144 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11145 esac
11146 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
7083c021
AC
11147else
11148 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11149fi
11150library_names_spec=
11151libname_spec='lib$name'
11152soname_spec=
11153shrext_cmds=".so"
11154postinstall_cmds=
11155postuninstall_cmds=
11156finish_cmds=
11157finish_eval=
11158shlibpath_var=
11159shlibpath_overrides_runpath=unknown
11160version_type=none
11161dynamic_linker="$host_os ld.so"
11162sys_lib_dlsearch_path_spec="/lib /usr/lib"
11163need_lib_prefix=unknown
11164hardcode_into_libs=no
11165
11166# when you set need_version to no, make sure it does not cause -set_version
11167# flags to be left without arguments
11168need_version=unknown
11169
11170case $host_os in
11171aix3*)
a949ab1a 11172 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11174 shlibpath_var=LIBPATH
11175
11176 # AIX 3 has no versioning support, so we append a major version to the name.
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 ;;
11179
11180aix[4-9]*)
a949ab1a 11181 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11182 need_lib_prefix=no
11183 need_version=no
11184 hardcode_into_libs=yes
11185 if test "$host_cpu" = ia64; then
11186 # AIX 5 supports IA64
11187 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 else
11190 # With GCC up to 2.95.x, collect2 would create an import file
11191 # for dependence libraries. The import file would start with
11192 # the line `#! .'. This would cause the generated library to
11193 # depend on `.', always an invalid library. This was fixed in
11194 # development snapshots of GCC prior to 3.0.
11195 case $host_os in
11196 aix4 | aix4.[01] | aix4.[01].*)
11197 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11198 echo ' yes '
11199 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11200 :
11201 else
11202 can_build_shared=no
11203 fi
11204 ;;
11205 esac
11206 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11207 # soname into executable. Probably we can add versioning support to
11208 # collect2, so additional links can be useful in future.
11209 if test "$aix_use_runtimelinking" = yes; then
11210 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11211 # instead of lib<name>.a to let people know that these are not
11212 # typical AIX shared libraries.
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 else
11215 # We preserve .a as extension for shared libraries through AIX4.2
11216 # and later when we are not doing run time linking.
11217 library_names_spec='${libname}${release}.a $libname.a'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 fi
11220 shlibpath_var=LIBPATH
11221 fi
11222 ;;
11223
11224amigaos*)
11225 case $host_cpu in
11226 powerpc)
11227 # Since July 2007 AmigaOS4 officially supports .so libraries.
11228 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11230 ;;
11231 m68k)
11232 library_names_spec='$libname.ixlibrary $libname.a'
11233 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b6d0720c 11234 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
7083c021
AC
11235 ;;
11236 esac
11237 ;;
11238
11239beos*)
11240 library_names_spec='${libname}${shared_ext}'
11241 dynamic_linker="$host_os ld.so"
11242 shlibpath_var=LIBRARY_PATH
11243 ;;
11244
11245bsdi[45]*)
a949ab1a 11246 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11247 need_version=no
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11253 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11254 # the default ld.so.conf also contains /usr/contrib/lib and
11255 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11256 # libtool to hard-code these into programs
11257 ;;
11258
11259cygwin* | mingw* | pw32* | cegcc*)
11260 version_type=windows
11261 shrext_cmds=".dll"
11262 need_version=no
11263 need_lib_prefix=no
11264
b6d0720c
AC
11265 case $GCC,$cc_basename in
11266 yes,*)
11267 # gcc
7083c021
AC
11268 library_names_spec='$libname.dll.a'
11269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11270 postinstall_cmds='base_file=`basename \${file}`~
11271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11272 dldir=$destdir/`dirname \$dlpath`~
11273 test -d \$dldir || mkdir -p \$dldir~
11274 $install_prog $dir/$dlname \$dldir/$dlname~
11275 chmod a+x \$dldir/$dlname~
11276 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11277 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11278 fi'
11279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11280 dlpath=$dir/\$dldll~
11281 $RM \$dlpath'
11282 shlibpath_overrides_runpath=yes
11283
11284 case $host_os in
11285 cygwin*)
11286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
b6d0720c
AC
11288
11289 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
7083c021
AC
11290 ;;
11291 mingw* | cegcc*)
11292 # MinGW DLLs use traditional 'lib' prefix
11293 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7083c021
AC
11294 ;;
11295 pw32*)
11296 # pw32 DLLs use 'pw' prefix rather than 'lib'
11297 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11298 ;;
11299 esac
b6d0720c
AC
11300 dynamic_linker='Win32 ld.exe'
11301 ;;
11302
11303 *,cl*)
11304 # Native MSVC
11305 libname_spec='$name'
11306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11307 library_names_spec='${libname}.dll.lib'
11308
11309 case $build_os in
11310 mingw*)
11311 sys_lib_search_path_spec=
11312 lt_save_ifs=$IFS
11313 IFS=';'
11314 for lt_path in $LIB
11315 do
11316 IFS=$lt_save_ifs
11317 # Let DOS variable expansion print the short 8.3 style file name.
11318 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11319 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11320 done
11321 IFS=$lt_save_ifs
11322 # Convert to MSYS style.
11323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11324 ;;
11325 cygwin*)
11326 # Convert to unix form, then to dos form, then back to unix form
11327 # but this time dos style (no spaces!) so that the unix form looks
11328 # like /cygdrive/c/PROGRA~1:/cygdr...
11329 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11330 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11331 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11332 ;;
11333 *)
11334 sys_lib_search_path_spec="$LIB"
11335 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11336 # It is most probably a Windows format PATH.
11337 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11338 else
11339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11340 fi
11341 # FIXME: find the short name or the path components, as spaces are
11342 # common. (e.g. "Program Files" -> "PROGRA~1")
11343 ;;
11344 esac
11345
11346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11347 postinstall_cmds='base_file=`basename \${file}`~
11348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11349 dldir=$destdir/`dirname \$dlpath`~
11350 test -d \$dldir || mkdir -p \$dldir~
11351 $install_prog $dir/$dlname \$dldir/$dlname'
11352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11353 dlpath=$dir/\$dldll~
11354 $RM \$dlpath'
11355 shlibpath_overrides_runpath=yes
11356 dynamic_linker='Win32 link.exe'
7083c021
AC
11357 ;;
11358
11359 *)
b6d0720c 11360 # Assume MSVC wrapper
7083c021 11361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b6d0720c 11362 dynamic_linker='Win32 ld.exe'
7083c021
AC
11363 ;;
11364 esac
7083c021
AC
11365 # FIXME: first we should search . and the directory the executable is in
11366 shlibpath_var=PATH
11367 ;;
11368
11369darwin* | rhapsody*)
11370 dynamic_linker="$host_os dyld"
11371 version_type=darwin
11372 need_lib_prefix=no
11373 need_version=no
11374 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11375 soname_spec='${libname}${release}${major}$shared_ext'
11376 shlibpath_overrides_runpath=yes
11377 shlibpath_var=DYLD_LIBRARY_PATH
11378 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11379
11380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11382 ;;
11383
11384dgux*)
a949ab1a 11385 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11386 need_lib_prefix=no
11387 need_version=no
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 ;;
11392
7083c021
AC
11393freebsd* | dragonfly*)
11394 # DragonFly does not have aout. When/if they implement a new
11395 # versioning mechanism, adjust this.
11396 if test -x /usr/bin/objformat; then
11397 objformat=`/usr/bin/objformat`
11398 else
11399 case $host_os in
a949ab1a 11400 freebsd[23].*) objformat=aout ;;
7083c021
AC
11401 *) objformat=elf ;;
11402 esac
db137867 11403 fi
5a241f54 11404 version_type=freebsd-$objformat
7083c021
AC
11405 case $version_type in
11406 freebsd-elf*)
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11408 need_version=no
11409 need_lib_prefix=no
11410 ;;
11411 freebsd-*)
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11413 need_version=yes
11414 ;;
11415 esac
11416 shlibpath_var=LD_LIBRARY_PATH
11417 case $host_os in
a949ab1a 11418 freebsd2.*)
7083c021
AC
11419 shlibpath_overrides_runpath=yes
11420 ;;
11421 freebsd3.[01]* | freebsdelf3.[01]*)
11422 shlibpath_overrides_runpath=yes
11423 hardcode_into_libs=yes
11424 ;;
11425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11427 shlibpath_overrides_runpath=no
11428 hardcode_into_libs=yes
11429 ;;
11430 *) # from 4.6 on, and DragonFly
11431 shlibpath_overrides_runpath=yes
11432 hardcode_into_libs=yes
11433 ;;
11434 esac
11435 ;;
db137867 11436
7083c021 11437gnu*)
a949ab1a 11438 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11439 need_lib_prefix=no
11440 need_version=no
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LD_LIBRARY_PATH
a949ab1a 11444 shlibpath_overrides_runpath=no
7083c021
AC
11445 hardcode_into_libs=yes
11446 ;;
db137867 11447
b6d0720c 11448haiku*)
a949ab1a 11449 version_type=linux # correct to gnu/linux during the next big refactor
b6d0720c
AC
11450 need_lib_prefix=no
11451 need_version=no
11452 dynamic_linker="$host_os runtime_loader"
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 shlibpath_var=LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11457 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11458 hardcode_into_libs=yes
11459 ;;
11460
7083c021
AC
11461hpux9* | hpux10* | hpux11*)
11462 # Give a soname corresponding to the major version so that dld.sl refuses to
11463 # link against other versions.
11464 version_type=sunos
11465 need_lib_prefix=no
11466 need_version=no
11467 case $host_cpu in
11468 ia64*)
11469 shrext_cmds='.so'
11470 hardcode_into_libs=yes
11471 dynamic_linker="$host_os dld.so"
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 if test "X$HPUX_IA64_MODE" = X32; then
11477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11478 else
11479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11480 fi
11481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11482 ;;
11483 hppa*64*)
11484 shrext_cmds='.sl'
11485 hardcode_into_libs=yes
11486 dynamic_linker="$host_os dld.sl"
11487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11493 ;;
11494 *)
11495 shrext_cmds='.sl'
11496 dynamic_linker="$host_os dld.sl"
11497 shlibpath_var=SHLIB_PATH
11498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 ;;
11502 esac
b6d0720c 11503 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
7083c021 11504 postinstall_cmds='chmod 555 $lib'
b6d0720c
AC
11505 # or fails outright, so override atomically:
11506 install_override_mode=555
7083c021 11507 ;;
db137867 11508
7083c021 11509interix[3-9]*)
a949ab1a 11510 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11511 need_lib_prefix=no
11512 need_version=no
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=no
11518 hardcode_into_libs=yes
11519 ;;
db137867 11520
7083c021
AC
11521irix5* | irix6* | nonstopux*)
11522 case $host_os in
11523 nonstopux*) version_type=nonstopux ;;
11524 *)
11525 if test "$lt_cv_prog_gnu_ld" = yes; then
a949ab1a 11526 version_type=linux # correct to gnu/linux during the next big refactor
db137867 11527 else
7083c021
AC
11528 version_type=irix
11529 fi ;;
11530 esac
11531 need_lib_prefix=no
11532 need_version=no
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11535 case $host_os in
11536 irix5* | nonstopux*)
11537 libsuff= shlibsuff=
11538 ;;
11539 *)
11540 case $LD in # libtool.m4 will add one of these switches to LD
11541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11542 libsuff= shlibsuff= libmagic=32-bit;;
11543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11544 libsuff=32 shlibsuff=N32 libmagic=N32;;
11545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11547 *) libsuff= shlibsuff= libmagic=never-match;;
11548 esac
11549 ;;
11550 esac
11551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11552 shlibpath_overrides_runpath=no
11553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11555 hardcode_into_libs=yes
11556 ;;
db137867 11557
7083c021
AC
11558# No shared lib support for Linux oldld, aout, or coff.
11559linux*oldld* | linux*aout* | linux*coff*)
11560 dynamic_linker=no
11561 ;;
db137867 11562
a949ab1a 11563# This must be glibc/ELF.
b6d0720c 11564linux* | k*bsd*-gnu | kopensolaris*-gnu)
a949ab1a 11565 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11566 need_lib_prefix=no
11567 need_version=no
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=no
b6d0720c 11573
7083c021 11574 # Some binutils ld are patched to set DT_RUNPATH
b6d0720c
AC
11575 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577else
11578 lt_cv_shlibpath_overrides_runpath=no
11579 save_LDFLAGS=$LDFLAGS
11580 save_libdir=$libdir
11581 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11582 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021 11584/* end confdefs.h. */
db137867 11585
7083c021
AC
11586int
11587main ()
11588{
db137867 11589
7083c021
AC
11590 ;
11591 return 0;
11592}
11593_ACEOF
11594if ac_fn_c_try_link "$LINENO"; then :
11595 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
b6d0720c 11596 lt_cv_shlibpath_overrides_runpath=yes
7083c021
AC
11597fi
11598fi
11599rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
b6d0720c
AC
11601 LDFLAGS=$save_LDFLAGS
11602 libdir=$save_libdir
11603
11604fi
11605
11606 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
db137867 11607
7083c021
AC
11608 # This implies no fast_install, which is unacceptable.
11609 # Some rework will be needed to allow for fast_install
11610 # before this can be enabled.
11611 hardcode_into_libs=yes
db137867 11612
7083c021
AC
11613 # Append ld.so.conf contents to the search path
11614 if test -f /etc/ld.so.conf; then
b6d0720c
AC
11615 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
db137867 11617 fi
db137867 11618
7083c021
AC
11619 # We used to test for /lib/ld.so.1 and disable shared libraries on
11620 # powerpc, because MkLinux only supported shared libraries with the
11621 # GNU dynamic linker. Since this was broken with cross compilers,
11622 # most powerpc-linux boxes support dynamic linking these days and
11623 # people can always --disable-shared, the test was removed, and we
11624 # assume the GNU/Linux dynamic linker is in use.
11625 dynamic_linker='GNU/Linux ld.so'
11626 ;;
11627
7083c021
AC
11628netbsd*)
11629 version_type=sunos
11630 need_lib_prefix=no
11631 need_version=no
11632 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11635 dynamic_linker='NetBSD (a.out) ld.so'
11636 else
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 dynamic_linker='NetBSD ld.elf_so'
11640 fi
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=yes
11643 hardcode_into_libs=yes
11644 ;;
db137867 11645
7083c021 11646newsos6)
a949ab1a 11647 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=yes
11651 ;;
db137867 11652
7083c021
AC
11653*nto* | *qnx*)
11654 version_type=qnx
11655 need_lib_prefix=no
11656 need_version=no
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=no
11661 hardcode_into_libs=yes
11662 dynamic_linker='ldqnx.so'
11663 ;;
db137867 11664
7083c021
AC
11665openbsd*)
11666 version_type=sunos
11667 sys_lib_dlsearch_path_spec="/usr/lib"
11668 need_lib_prefix=no
11669 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11670 case $host_os in
11671 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11672 *) need_version=no ;;
11673 esac
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11678 case $host_os in
11679 openbsd2.[89] | openbsd2.[89].*)
11680 shlibpath_overrides_runpath=no
11681 ;;
11682 *)
11683 shlibpath_overrides_runpath=yes
11684 ;;
11685 esac
11686 else
11687 shlibpath_overrides_runpath=yes
11688 fi
11689 ;;
db137867 11690
7083c021
AC
11691os2*)
11692 libname_spec='$name'
11693 shrext_cmds=".dll"
11694 need_lib_prefix=no
11695 library_names_spec='$libname${shared_ext} $libname.a'
11696 dynamic_linker='OS/2 ld.exe'
11697 shlibpath_var=LIBPATH
11698 ;;
db137867 11699
7083c021
AC
11700osf3* | osf4* | osf5*)
11701 version_type=osf
11702 need_lib_prefix=no
11703 need_version=no
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11708 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11709 ;;
db137867 11710
7083c021
AC
11711rdos*)
11712 dynamic_linker=no
11713 ;;
db137867 11714
7083c021 11715solaris*)
a949ab1a 11716 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11717 need_lib_prefix=no
11718 need_version=no
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 shlibpath_overrides_runpath=yes
11723 hardcode_into_libs=yes
11724 # ldd complains unless libraries are executable
11725 postinstall_cmds='chmod +x $lib'
11726 ;;
db137867 11727
7083c021
AC
11728sunos4*)
11729 version_type=sunos
11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 shlibpath_overrides_runpath=yes
11734 if test "$with_gnu_ld" = yes; then
11735 need_lib_prefix=no
11736 fi
11737 need_version=yes
11738 ;;
db137867 11739
7083c021 11740sysv4 | sysv4.3*)
a949ab1a 11741 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 case $host_vendor in
11746 sni)
11747 shlibpath_overrides_runpath=no
11748 need_lib_prefix=no
11749 runpath_var=LD_RUN_PATH
11750 ;;
11751 siemens)
11752 need_lib_prefix=no
11753 ;;
11754 motorola)
11755 need_lib_prefix=no
11756 need_version=no
11757 shlibpath_overrides_runpath=no
11758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11759 ;;
11760 esac
11761 ;;
db137867 11762
7083c021
AC
11763sysv4*MP*)
11764 if test -d /usr/nec ;then
a949ab1a 11765 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11766 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11767 soname_spec='$libname${shared_ext}.$major'
11768 shlibpath_var=LD_LIBRARY_PATH
11769 fi
11770 ;;
db137867 11771
7083c021
AC
11772sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11773 version_type=freebsd-elf
11774 need_lib_prefix=no
11775 need_version=no
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11777 soname_spec='${libname}${release}${shared_ext}$major'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 shlibpath_overrides_runpath=yes
11780 hardcode_into_libs=yes
11781 if test "$with_gnu_ld" = yes; then
11782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11783 else
11784 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11785 case $host_os in
11786 sco3.2v5*)
11787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11788 ;;
11789 esac
11790 fi
11791 sys_lib_dlsearch_path_spec='/usr/lib'
11792 ;;
db137867 11793
7083c021
AC
11794tpf*)
11795 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
a949ab1a 11796 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11797 need_lib_prefix=no
11798 need_version=no
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 shlibpath_overrides_runpath=no
11802 hardcode_into_libs=yes
11803 ;;
db137867 11804
7083c021 11805uts4*)
a949ab1a 11806 version_type=linux # correct to gnu/linux during the next big refactor
7083c021
AC
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 ;;
db137867 11811
7083c021
AC
11812*)
11813 dynamic_linker=no
11814 ;;
11815esac
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11817$as_echo "$dynamic_linker" >&6; }
11818test "$dynamic_linker" = no && can_build_shared=no
db137867 11819
7083c021
AC
11820variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11821if test "$GCC" = yes; then
11822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11823fi
db137867 11824
7083c021
AC
11825if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11826 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11827fi
11828if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11829 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11830fi
db137867 11831
db137867 11832
db137867 11833
db137867 11834
db137867 11835
db137867 11836
db137867 11837
db137867 11838
db137867 11839
db137867 11840
db137867 11841
db137867 11842
db137867 11843
db137867 11844
db137867 11845
db137867 11846
db137867 11847
db137867 11848
db137867 11849
db137867 11850
db137867 11851
db137867 11852
db137867 11853
db137867 11854
db137867 11855
db137867 11856
db137867 11857
db137867 11858
db137867 11859
db137867 11860
db137867 11861
db137867 11862
db137867 11863
db137867 11864
db137867 11865
db137867 11866
db137867 11867
db137867 11868
db137867 11869
db137867 11870
db137867 11871
db137867 11872
db137867 11873
db137867 11874
db137867 11875
b676ea3b 11876
db137867 11877
db137867 11878
db137867 11879
db137867 11880
db137867 11881
db137867 11882
db137867 11883
db137867 11884
db137867 11885
db137867 11886
db137867 11887
db137867 11888
db137867 11889
db137867 11890
db137867 11891
db137867 11892
db137867 11893
db137867 11894
db137867 11895
db137867 11896
db137867 11897
db137867 11898
db137867 11899
db137867 11900
db137867 11901
db137867 11902
db137867 11903
db137867 11904
db137867 11905
db137867 11906
db137867 11907
db137867 11908
db137867 11909
db137867
AC
11910
11911
b6d0720c
AC
11912
11913
11914
11915
11916
db137867
AC
11917
11918
db137867 11919
db137867 11920
db137867 11921
db137867 11922
7083c021
AC
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11924$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11925hardcode_action=
11926if test -n "$hardcode_libdir_flag_spec" ||
11927 test -n "$runpath_var" ||
11928 test "X$hardcode_automatic" = "Xyes" ; then
db137867 11929
7083c021
AC
11930 # We can hardcode non-existent directories.
11931 if test "$hardcode_direct" != no &&
11932 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11933 # have to relink, otherwise we might link with an installed library
11934 # when we should be linking with a yet-to-be-installed one
11935 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11936 test "$hardcode_minus_L" != no; then
11937 # Linking always hardcodes the temporary library directory.
11938 hardcode_action=relink
db137867 11939 else
7083c021
AC
11940 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11941 hardcode_action=immediate
db137867 11942 fi
7083c021
AC
11943else
11944 # We cannot hardcode anything, or else we can only hardcode existing
11945 # directories.
11946 hardcode_action=unsupported
11947fi
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11949$as_echo "$hardcode_action" >&6; }
11950
11951if test "$hardcode_action" = relink ||
11952 test "$inherit_rpath" = yes; then
11953 # Fast installation is not supported
11954 enable_fast_install=no
11955elif test "$shlibpath_overrides_runpath" = yes ||
11956 test "$enable_shared" = no; then
11957 # Fast installation is not necessary
11958 enable_fast_install=needless
db137867
AC
11959fi
11960
11961
11962
db137867 11963
db137867 11964
db137867 11965
7083c021
AC
11966 if test "x$enable_dlopen" != xyes; then
11967 enable_dlopen=unknown
11968 enable_dlopen_self=unknown
11969 enable_dlopen_self_static=unknown
11970else
11971 lt_cv_dlopen=no
11972 lt_cv_dlopen_libs=
db137867 11973
7083c021
AC
11974 case $host_os in
11975 beos*)
11976 lt_cv_dlopen="load_add_on"
11977 lt_cv_dlopen_libs=
11978 lt_cv_dlopen_self=yes
11979 ;;
db137867 11980
7083c021
AC
11981 mingw* | pw32* | cegcc*)
11982 lt_cv_dlopen="LoadLibrary"
11983 lt_cv_dlopen_libs=
11984 ;;
db137867 11985
7083c021
AC
11986 cygwin*)
11987 lt_cv_dlopen="dlopen"
11988 lt_cv_dlopen_libs=
11989 ;;
db137867 11990
7083c021
AC
11991 darwin*)
11992 # if libdl is installed we need to link against it
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11994$as_echo_n "checking for dlopen in -ldl... " >&6; }
08c2568c 11995if ${ac_cv_lib_dl_dlopen+:} false; then :
7083c021
AC
11996 $as_echo_n "(cached) " >&6
11997else
11998 ac_check_lib_save_LIBS=$LIBS
11999LIBS="-ldl $LIBS"
12000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001/* end confdefs.h. */
db137867 12002
7083c021
AC
12003/* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
12006#ifdef __cplusplus
12007extern "C"
12008#endif
12009char dlopen ();
12010int
12011main ()
12012{
12013return dlopen ();
12014 ;
12015 return 0;
12016}
12017_ACEOF
12018if ac_fn_c_try_link "$LINENO"; then :
12019 ac_cv_lib_dl_dlopen=yes
12020else
12021 ac_cv_lib_dl_dlopen=no
12022fi
12023rm -f core conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12025LIBS=$ac_check_lib_save_LIBS
12026fi
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12028$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
08c2568c 12029if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7083c021
AC
12030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12031else
db137867 12032
7083c021
AC
12033 lt_cv_dlopen="dyld"
12034 lt_cv_dlopen_libs=
12035 lt_cv_dlopen_self=yes
db137867 12036
7083c021 12037fi
db137867 12038
7083c021 12039 ;;
db137867 12040
7083c021
AC
12041 *)
12042 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
08c2568c 12043if test "x$ac_cv_func_shl_load" = xyes; then :
7083c021
AC
12044 lt_cv_dlopen="shl_load"
12045else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12047$as_echo_n "checking for shl_load in -ldld... " >&6; }
08c2568c 12048if ${ac_cv_lib_dld_shl_load+:} false; then :
7083c021
AC
12049 $as_echo_n "(cached) " >&6
12050else
12051 ac_check_lib_save_LIBS=$LIBS
12052LIBS="-ldld $LIBS"
12053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054/* end confdefs.h. */
db137867 12055
7083c021
AC
12056/* Override any GCC internal prototype to avoid an error.
12057 Use char because int might match the return type of a GCC
12058 builtin and then its argument prototype would still apply. */
12059#ifdef __cplusplus
12060extern "C"
12061#endif
12062char shl_load ();
12063int
12064main ()
12065{
12066return shl_load ();
12067 ;
12068 return 0;
12069}
12070_ACEOF
12071if ac_fn_c_try_link "$LINENO"; then :
12072 ac_cv_lib_dld_shl_load=yes
12073else
12074 ac_cv_lib_dld_shl_load=no
12075fi
12076rm -f core conftest.err conftest.$ac_objext \
12077 conftest$ac_exeext conftest.$ac_ext
12078LIBS=$ac_check_lib_save_LIBS
12079fi
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12081$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
08c2568c 12082if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7083c021
AC
12083 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12084else
12085 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
08c2568c 12086if test "x$ac_cv_func_dlopen" = xyes; then :
7083c021
AC
12087 lt_cv_dlopen="dlopen"
12088else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12090$as_echo_n "checking for dlopen in -ldl... " >&6; }
08c2568c 12091if ${ac_cv_lib_dl_dlopen+:} false; then :
7083c021
AC
12092 $as_echo_n "(cached) " >&6
12093else
12094 ac_check_lib_save_LIBS=$LIBS
12095LIBS="-ldl $LIBS"
12096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h. */
db137867 12098
7083c021
AC
12099/* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12102#ifdef __cplusplus
12103extern "C"
12104#endif
12105char dlopen ();
12106int
12107main ()
12108{
12109return dlopen ();
12110 ;
12111 return 0;
12112}
12113_ACEOF
12114if ac_fn_c_try_link "$LINENO"; then :
12115 ac_cv_lib_dl_dlopen=yes
12116else
12117 ac_cv_lib_dl_dlopen=no
12118fi
12119rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121LIBS=$ac_check_lib_save_LIBS
12122fi
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12124$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
08c2568c 12125if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7083c021
AC
12126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12127else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12129$as_echo_n "checking for dlopen in -lsvld... " >&6; }
08c2568c 12130if ${ac_cv_lib_svld_dlopen+:} false; then :
7083c021
AC
12131 $as_echo_n "(cached) " >&6
12132else
12133 ac_check_lib_save_LIBS=$LIBS
12134LIBS="-lsvld $LIBS"
12135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136/* end confdefs.h. */
db137867 12137
7083c021
AC
12138/* Override any GCC internal prototype to avoid an error.
12139 Use char because int might match the return type of a GCC
12140 builtin and then its argument prototype would still apply. */
12141#ifdef __cplusplus
12142extern "C"
12143#endif
12144char dlopen ();
12145int
12146main ()
12147{
12148return dlopen ();
12149 ;
12150 return 0;
12151}
12152_ACEOF
12153if ac_fn_c_try_link "$LINENO"; then :
12154 ac_cv_lib_svld_dlopen=yes
12155else
12156 ac_cv_lib_svld_dlopen=no
12157fi
12158rm -f core conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12160LIBS=$ac_check_lib_save_LIBS
12161fi
12162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12163$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
08c2568c 12164if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7083c021
AC
12165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12166else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12168$as_echo_n "checking for dld_link in -ldld... " >&6; }
08c2568c 12169if ${ac_cv_lib_dld_dld_link+:} false; then :
7083c021
AC
12170 $as_echo_n "(cached) " >&6
12171else
12172 ac_check_lib_save_LIBS=$LIBS
12173LIBS="-ldld $LIBS"
12174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175/* end confdefs.h. */
db137867 12176
7083c021
AC
12177/* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12180#ifdef __cplusplus
12181extern "C"
12182#endif
12183char dld_link ();
12184int
12185main ()
12186{
12187return dld_link ();
12188 ;
12189 return 0;
12190}
12191_ACEOF
12192if ac_fn_c_try_link "$LINENO"; then :
12193 ac_cv_lib_dld_dld_link=yes
12194else
12195 ac_cv_lib_dld_dld_link=no
12196fi
12197rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199LIBS=$ac_check_lib_save_LIBS
12200fi
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12202$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
08c2568c 12203if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
7083c021
AC
12204 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12205fi
db137867
AC
12206
12207
7083c021 12208fi
db137867
AC
12209
12210
7083c021 12211fi
db137867
AC
12212
12213
7083c021 12214fi
db137867 12215
db137867 12216
7083c021 12217fi
db137867 12218
db137867 12219
7083c021 12220fi
db137867 12221
7083c021
AC
12222 ;;
12223 esac
db137867 12224
7083c021
AC
12225 if test "x$lt_cv_dlopen" != xno; then
12226 enable_dlopen=yes
12227 else
12228 enable_dlopen=no
12229 fi
db137867 12230
7083c021
AC
12231 case $lt_cv_dlopen in
12232 dlopen)
12233 save_CPPFLAGS="$CPPFLAGS"
12234 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
db137867 12235
7083c021
AC
12236 save_LDFLAGS="$LDFLAGS"
12237 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
db137867 12238
7083c021
AC
12239 save_LIBS="$LIBS"
12240 LIBS="$lt_cv_dlopen_libs $LIBS"
db137867 12241
7083c021
AC
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12243$as_echo_n "checking whether a program can dlopen itself... " >&6; }
08c2568c 12244if ${lt_cv_dlopen_self+:} false; then :
030272f3 12245 $as_echo_n "(cached) " >&6
db137867 12246else
7083c021
AC
12247 if test "$cross_compiling" = yes; then :
12248 lt_cv_dlopen_self=cross
db137867 12249else
7083c021
AC
12250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12251 lt_status=$lt_dlunknown
12252 cat > conftest.$ac_ext <<_LT_EOF
b6d0720c 12253#line $LINENO "configure"
7083c021 12254#include "confdefs.h"
db137867 12255
7083c021
AC
12256#if HAVE_DLFCN_H
12257#include <dlfcn.h>
12258#endif
db137867 12259
7083c021 12260#include <stdio.h>
db137867 12261
7083c021
AC
12262#ifdef RTLD_GLOBAL
12263# define LT_DLGLOBAL RTLD_GLOBAL
12264#else
12265# ifdef DL_GLOBAL
12266# define LT_DLGLOBAL DL_GLOBAL
12267# else
12268# define LT_DLGLOBAL 0
12269# endif
12270#endif
db137867 12271
7083c021
AC
12272/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12273 find out it does not work in some platform. */
12274#ifndef LT_DLLAZY_OR_NOW
12275# ifdef RTLD_LAZY
12276# define LT_DLLAZY_OR_NOW RTLD_LAZY
12277# else
12278# ifdef DL_LAZY
12279# define LT_DLLAZY_OR_NOW DL_LAZY
12280# else
12281# ifdef RTLD_NOW
12282# define LT_DLLAZY_OR_NOW RTLD_NOW
12283# else
12284# ifdef DL_NOW
12285# define LT_DLLAZY_OR_NOW DL_NOW
12286# else
12287# define LT_DLLAZY_OR_NOW 0
12288# endif
12289# endif
12290# endif
12291# endif
12292#endif
db137867 12293
b6d0720c
AC
12294/* When -fvisbility=hidden is used, assume the code has been annotated
12295 correspondingly for the symbols needed. */
12296#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12297int fnord () __attribute__((visibility("default")));
12298#endif
12299
12300int fnord () { return 42; }
7083c021
AC
12301int main ()
12302{
12303 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12304 int status = $lt_dlunknown;
db137867 12305
7083c021
AC
12306 if (self)
12307 {
12308 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b6d0720c
AC
12309 else
12310 {
12311 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12312 else puts (dlerror ());
12313 }
7083c021
AC
12314 /* dlclose (self); */
12315 }
12316 else
12317 puts (dlerror ());
db137867 12318
7083c021
AC
12319 return status;
12320}
12321_LT_EOF
12322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12323 (eval $ac_link) 2>&5
12324 ac_status=$?
12325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12326 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12327 (./conftest; exit; ) >&5 2>/dev/null
12328 lt_status=$?
12329 case x$lt_status in
12330 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12331 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12332 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12333 esac
12334 else :
12335 # compilation failed
12336 lt_cv_dlopen_self=no
12337 fi
db137867 12338fi
7083c021 12339rm -fr conftest*
db137867 12340
db137867 12341
7083c021
AC
12342fi
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12344$as_echo "$lt_cv_dlopen_self" >&6; }
db137867 12345
7083c021
AC
12346 if test "x$lt_cv_dlopen_self" = xyes; then
12347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12349$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
08c2568c 12350if ${lt_cv_dlopen_self_static+:} false; then :
030272f3 12351 $as_echo_n "(cached) " >&6
db137867 12352else
7083c021
AC
12353 if test "$cross_compiling" = yes; then :
12354 lt_cv_dlopen_self_static=cross
db137867 12355else
7083c021
AC
12356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12357 lt_status=$lt_dlunknown
12358 cat > conftest.$ac_ext <<_LT_EOF
b6d0720c 12359#line $LINENO "configure"
7083c021 12360#include "confdefs.h"
db137867 12361
7083c021
AC
12362#if HAVE_DLFCN_H
12363#include <dlfcn.h>
12364#endif
db137867 12365
7083c021 12366#include <stdio.h>
db137867 12367
7083c021
AC
12368#ifdef RTLD_GLOBAL
12369# define LT_DLGLOBAL RTLD_GLOBAL
12370#else
12371# ifdef DL_GLOBAL
12372# define LT_DLGLOBAL DL_GLOBAL
12373# else
12374# define LT_DLGLOBAL 0
12375# endif
12376#endif
db137867 12377
7083c021
AC
12378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12379 find out it does not work in some platform. */
12380#ifndef LT_DLLAZY_OR_NOW
12381# ifdef RTLD_LAZY
12382# define LT_DLLAZY_OR_NOW RTLD_LAZY
12383# else
12384# ifdef DL_LAZY
12385# define LT_DLLAZY_OR_NOW DL_LAZY
12386# else
12387# ifdef RTLD_NOW
12388# define LT_DLLAZY_OR_NOW RTLD_NOW
12389# else
12390# ifdef DL_NOW
12391# define LT_DLLAZY_OR_NOW DL_NOW
12392# else
12393# define LT_DLLAZY_OR_NOW 0
12394# endif
12395# endif
12396# endif
12397# endif
12398#endif
db137867 12399
b6d0720c
AC
12400/* When -fvisbility=hidden is used, assume the code has been annotated
12401 correspondingly for the symbols needed. */
12402#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12403int fnord () __attribute__((visibility("default")));
12404#endif
12405
12406int fnord () { return 42; }
7083c021
AC
12407int main ()
12408{
12409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12410 int status = $lt_dlunknown;
db137867 12411
7083c021
AC
12412 if (self)
12413 {
12414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b6d0720c
AC
12415 else
12416 {
12417 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12418 else puts (dlerror ());
12419 }
7083c021
AC
12420 /* dlclose (self); */
12421 }
12422 else
12423 puts (dlerror ());
db137867 12424
7083c021
AC
12425 return status;
12426}
12427_LT_EOF
12428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12429 (eval $ac_link) 2>&5
12430 ac_status=$?
12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12432 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12433 (./conftest; exit; ) >&5 2>/dev/null
12434 lt_status=$?
12435 case x$lt_status in
12436 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12437 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12438 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12439 esac
12440 else :
12441 # compilation failed
12442 lt_cv_dlopen_self_static=no
12443 fi
db137867 12444fi
7083c021 12445rm -fr conftest*
3202e249 12446
db137867 12447
db137867 12448fi
7083c021
AC
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12450$as_echo "$lt_cv_dlopen_self_static" >&6; }
12451 fi
db137867 12452
7083c021
AC
12453 CPPFLAGS="$save_CPPFLAGS"
12454 LDFLAGS="$save_LDFLAGS"
12455 LIBS="$save_LIBS"
12456 ;;
12457 esac
db137867 12458
7083c021
AC
12459 case $lt_cv_dlopen_self in
12460 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12461 *) enable_dlopen_self=unknown ;;
12462 esac
db137867 12463
7083c021
AC
12464 case $lt_cv_dlopen_self_static in
12465 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12466 *) enable_dlopen_self_static=unknown ;;
12467 esac
db137867
AC
12468fi
12469
db137867 12470
db137867 12471
030272f3
VY
12472
12473
030272f3 12474
db137867 12475
db137867 12476
db137867 12477
030272f3 12478
030272f3 12479
db137867 12480
030272f3 12481
db137867 12482
db137867 12483
db137867 12484
db137867 12485
7083c021
AC
12486striplib=
12487old_striplib=
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12489$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12490if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12491 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12492 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12494$as_echo "yes" >&6; }
030272f3 12495else
7083c021
AC
12496# FIXME - insert some real tests, host_os isn't really good enough
12497 case $host_os in
12498 darwin*)
12499 if test -n "$STRIP" ; then
12500 striplib="$STRIP -x"
12501 old_striplib="$STRIP -S"
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12503$as_echo "yes" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506$as_echo "no" >&6; }
12507 fi
12508 ;;
12509 *)
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511$as_echo "no" >&6; }
12512 ;;
12513 esac
030272f3
VY
12514fi
12515
db137867 12516
030272f3 12517
db137867 12518
db137867 12519
db137867 12520
db137867 12521
db137867 12522
db137867 12523
db137867 12524
db137867
AC
12525
12526
7083c021
AC
12527 # Report which library types will actually be built
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12529$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12531$as_echo "$can_build_shared" >&6; }
db137867 12532
7083c021
AC
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12534$as_echo_n "checking whether to build shared libraries... " >&6; }
12535 test "$can_build_shared" = "no" && enable_shared=no
db137867 12536
7083c021
AC
12537 # On AIX, shared libraries and static libraries use the same namespace, and
12538 # are all built from PIC.
12539 case $host_os in
12540 aix3*)
12541 test "$enable_shared" = yes && enable_static=no
12542 if test -n "$RANLIB"; then
12543 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12544 postinstall_cmds='$RANLIB $lib'
12545 fi
12546 ;;
db137867 12547
7083c021
AC
12548 aix[4-9]*)
12549 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12550 test "$enable_shared" = yes && enable_static=no
12551 fi
12552 ;;
12553 esac
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12555$as_echo "$enable_shared" >&6; }
12556
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12558$as_echo_n "checking whether to build static libraries... " >&6; }
12559 # Make sure either enable_shared or enable_static is yes.
12560 test "$enable_shared" = yes || enable_static=yes
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12562$as_echo "$enable_static" >&6; }
db137867 12563
db137867 12564
db137867 12565
db137867 12566
db137867 12567fi
7083c021
AC
12568ac_ext=c
12569ac_cpp='$CPP $CPPFLAGS'
12570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12572ac_compiler_gnu=$ac_cv_c_compiler_gnu
db137867 12573
7083c021 12574CC="$lt_save_CC"
db137867 12575
db137867 12576
db137867 12577
db137867 12578
db137867 12579
db137867 12580
db137867 12581
db137867 12582
db137867 12583
db137867
AC
12584
12585
db137867 12586
db137867 12587
a949ab1a
AC
12588
12589
7083c021 12590 ac_config_commands="$ac_config_commands libtool"
db137867
AC
12591
12592
12593
12594
7083c021 12595# Only expand once:
db137867
AC
12596
12597
12598
7083c021 12599LIBTOOL="$LIBTOOL --silent"
db137867 12600
7083c021
AC
12601case "$host_os" in
12602*cygwin*)
db137867 12603
7083c021
AC
12604cat >>confdefs.h <<_ACEOF
12605#define CYGWIN 1
12606_ACEOF
db137867
AC
12607
12608
7083c021
AC
12609cat >>confdefs.h <<_ACEOF
12610#define WINDOWS 1
12611_ACEOF
db137867 12612
7083c021
AC
12613 ;;
12614*mingw*)
db137867 12615
7083c021
AC
12616cat >>confdefs.h <<_ACEOF
12617#define MINGW 1
12618_ACEOF
db137867
AC
12619
12620
7083c021
AC
12621cat >>confdefs.h <<_ACEOF
12622#define WINDOWS 1
12623_ACEOF
db137867 12624
7083c021 12625 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
08c2568c 12626if test "x$ac_cv_header_windows_h" = xyes; then :
db137867 12627
7083c021 12628else
08c2568c 12629 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
7083c021 12630fi
db137867
AC
12631
12632
7083c021 12633 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
08c2568c 12634if test "x$ac_cv_header_winsock2_h" = xyes; then :
db137867 12635
7083c021 12636else
08c2568c 12637 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
7083c021 12638fi
db137867 12639
3202e249 12640
7083c021
AC
12641
12642cat >>confdefs.h <<_ACEOF
12643#define HAVE_WINSOCK2_H 1
db137867 12644_ACEOF
7083c021
AC
12645
12646
12647cat >>confdefs.h <<_ACEOF
12648#define HAVE_WINSOCK_H 1
db137867 12649_ACEOF
7083c021
AC
12650
12651 LIBS="$LIBS -lws2_32 -liphlpapi"
12652 is_mingw="yes"
12653 ;;
12654*interix*)
12655 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
12656 ;;
12657*solaris*)
12658 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
12659 ;;
12660*)
12661 ;;
db137867 12662esac
db137867 12663
7083c021
AC
12664 if test "$is_mingw" = "yes"; then
12665 MINGW_TRUE=
12666 MINGW_FALSE='#'
12667else
12668 MINGW_TRUE='#'
12669 MINGW_FALSE=
db137867
AC
12670fi
12671
db137867 12672
db137867 12673
7083c021
AC
12674# backwards support for IRC_CFLAGS
12675CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
12676
12677if test "$libexecdir" = '${exec_prefix}/libexec' &&
12678 test "$localstatedir" = '${prefix}/var'; then
12679 libexecdir='${bindir}'
12680 localstatedir='${prefix}'
db137867
AC
12681fi
12682
7083c021 12683ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
08c2568c 12684if test "x$ac_cv_type_pid_t" = xyes; then :
db137867 12685
db137867 12686else
7083c021
AC
12687
12688cat >>confdefs.h <<_ACEOF
12689#define pid_t int
12690_ACEOF
db137867
AC
12691
12692fi
7083c021
AC
12693
12694ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
08c2568c 12695if test "x$ac_cv_type_size_t" = xyes; then :
7083c021
AC
12696
12697else
12698
12699cat >>confdefs.h <<_ACEOF
12700#define size_t unsigned int
db137867
AC
12701_ACEOF
12702
12703fi
12704
7083c021 12705ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
08c2568c 12706if test "x$ac_cv_type_ssize_t" = xyes; then :
db137867 12707
db137867 12708else
7083c021
AC
12709
12710cat >>confdefs.h <<_ACEOF
12711#define ssize_t int
db137867 12712_ACEOF
7083c021
AC
12713
12714fi
12715
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12717$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
08c2568c 12718if ${ac_cv_type_uid_t+:} false; then :
7083c021
AC
12719 $as_echo_n "(cached) " >&6
12720else
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
12722/* end confdefs.h. */
12723#include <sys/types.h>
db137867 12724
db137867 12725_ACEOF
7083c021
AC
12726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12727 $EGREP "uid_t" >/dev/null 2>&1; then :
12728 ac_cv_type_uid_t=yes
db137867 12729else
7083c021 12730 ac_cv_type_uid_t=no
db137867 12731fi
7083c021 12732rm -f conftest*
db137867 12733
db137867 12734fi
7083c021
AC
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12736$as_echo "$ac_cv_type_uid_t" >&6; }
12737if test $ac_cv_type_uid_t = no; then
db137867 12738
7083c021
AC
12739$as_echo "#define uid_t int" >>confdefs.h
12740
12741
12742$as_echo "#define gid_t int" >>confdefs.h
db137867
AC
12743
12744fi
12745
12746
12747
7083c021
AC
12748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12749$as_echo_n "checking for ANSI C header files... " >&6; }
08c2568c 12750if ${ac_cv_header_stdc+:} false; then :
030272f3 12751 $as_echo_n "(cached) " >&6
db137867 12752else
7083c021 12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12754/* end confdefs.h. */
7083c021
AC
12755#include <stdlib.h>
12756#include <stdarg.h>
12757#include <string.h>
12758#include <float.h>
db137867 12759
db137867
AC
12760int
12761main ()
12762{
7083c021 12763
db137867
AC
12764 ;
12765 return 0;
12766}
12767_ACEOF
7083c021
AC
12768if ac_fn_c_try_compile "$LINENO"; then :
12769 ac_cv_header_stdc=yes
db137867 12770else
7083c021
AC
12771 ac_cv_header_stdc=no
12772fi
12773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db137867 12774
7083c021
AC
12775if test $ac_cv_header_stdc = yes; then
12776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778/* end confdefs.h. */
12779#include <string.h>
db137867 12780
7083c021
AC
12781_ACEOF
12782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12783 $EGREP "memchr" >/dev/null 2>&1; then :
db137867 12784
db137867 12785else
7083c021 12786 ac_cv_header_stdc=no
db137867 12787fi
7083c021 12788rm -f conftest*
db137867
AC
12789
12790fi
12791
7083c021
AC
12792if test $ac_cv_header_stdc = yes; then
12793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795/* end confdefs.h. */
12796#include <stdlib.h>
db137867 12797
db137867 12798_ACEOF
7083c021
AC
12799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12800 $EGREP "free" >/dev/null 2>&1; then :
db137867 12801
7083c021
AC
12802else
12803 ac_cv_header_stdc=no
12804fi
12805rm -f conftest*
db137867 12806
7083c021 12807fi
db137867 12808
7083c021
AC
12809if test $ac_cv_header_stdc = yes; then
12810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12811 if test "$cross_compiling" = yes; then :
12812 :
db137867 12813else
7083c021 12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12815/* end confdefs.h. */
7083c021
AC
12816#include <ctype.h>
12817#include <stdlib.h>
12818#if ((' ' & 0x0FF) == 0x020)
12819# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12820# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12821#else
12822# define ISLOWER(c) \
12823 (('a' <= (c) && (c) <= 'i') \
12824 || ('j' <= (c) && (c) <= 'r') \
12825 || ('s' <= (c) && (c) <= 'z'))
12826# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
db137867
AC
12827#endif
12828
7083c021 12829#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
db137867
AC
12830int
12831main ()
12832{
7083c021
AC
12833 int i;
12834 for (i = 0; i < 256; i++)
12835 if (XOR (islower (i), ISLOWER (i))
12836 || toupper (i) != TOUPPER (i))
12837 return 2;
db137867
AC
12838 return 0;
12839}
12840_ACEOF
7083c021 12841if ac_fn_c_try_run "$LINENO"; then :
db137867 12842
7083c021
AC
12843else
12844 ac_cv_header_stdc=no
12845fi
12846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12847 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
12848fi
12849
db137867 12850fi
7083c021
AC
12851fi
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12853$as_echo "$ac_cv_header_stdc" >&6; }
12854if test $ac_cv_header_stdc = yes; then
12855
12856$as_echo "#define STDC_HEADERS 1" >>confdefs.h
db137867 12857
db137867 12858fi
db137867 12859
7083c021 12860
77cb59b3 12861for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h linux/tcp.h
7083c021
AC
12862do :
12863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12864ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
08c2568c 12865if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
12866 cat >>confdefs.h <<_ACEOF
12867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
db137867
AC
12868_ACEOF
12869
12870fi
12871
7083c021 12872done
db137867 12873
7083c021
AC
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12875$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
08c2568c 12876if ${ac_cv_header_time+:} false; then :
030272f3 12877 $as_echo_n "(cached) " >&6
db137867 12878else
7083c021 12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12880/* end confdefs.h. */
db137867 12881#include <sys/types.h>
7083c021
AC
12882#include <sys/time.h>
12883#include <time.h>
db137867 12884
db137867
AC
12885int
12886main ()
12887{
7083c021
AC
12888if ((struct tm *) 0)
12889return 0;
030272f3 12890 ;
db137867 12891 return 0;
7083c021 12892}
030272f3 12893_ACEOF
7083c021
AC
12894if ac_fn_c_try_compile "$LINENO"; then :
12895 ac_cv_header_time=yes
12896else
12897 ac_cv_header_time=no
12898fi
12899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900fi
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12902$as_echo "$ac_cv_header_time" >&6; }
12903if test $ac_cv_header_time = yes; then
12904
12905$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12906
12907fi
12908
12909
12910
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12912$as_echo_n "checking for library containing socket... " >&6; }
08c2568c 12913if ${ac_cv_search_socket+:} false; then :
7083c021
AC
12914 $as_echo_n "(cached) " >&6
12915else
12916 ac_func_search_save_LIBS=$LIBS
12917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 12918/* end confdefs.h. */
030272f3 12919
7083c021
AC
12920/* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12923#ifdef __cplusplus
12924extern "C"
12925#endif
12926char socket ();
030272f3
VY
12927int
12928main ()
12929{
7083c021 12930return socket ();
db137867
AC
12931 ;
12932 return 0;
12933}
12934_ACEOF
7083c021
AC
12935for ac_lib in '' socket; do
12936 if test -z "$ac_lib"; then
12937 ac_res="none required"
12938 else
12939 ac_res=-l$ac_lib
12940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12941 fi
12942 if ac_fn_c_try_link "$LINENO"; then :
12943 ac_cv_search_socket=$ac_res
12944fi
12945rm -f core conftest.err conftest.$ac_objext \
12946 conftest$ac_exeext
08c2568c 12947 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
12948 break
12949fi
12950done
08c2568c 12951if ${ac_cv_search_socket+:} false; then :
7083c021 12952
db137867 12953else
7083c021
AC
12954 ac_cv_search_socket=no
12955fi
12956rm conftest.$ac_ext
12957LIBS=$ac_func_search_save_LIBS
12958fi
12959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12960$as_echo "$ac_cv_search_socket" >&6; }
12961ac_res=$ac_cv_search_socket
12962if test "$ac_res" != no; then :
12963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
db137867 12964
db137867
AC
12965fi
12966
030272f3
VY
12967
12968
7083c021
AC
12969ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
12970#ifdef HAVE_SYS_TYPES_H
12971#include <sys/types.h>
12972#endif
12973#ifdef HAVE_SYS_SOCKET_H
12974#include <sys/socket.h>
12975#endif
12976#ifdef HAVE_WINSOCK2_H
12977#include <winsock2.h>
12978#endif
12979
12980"
08c2568c 12981if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7083c021
AC
12982
12983$as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
030272f3 12984
030272f3 12985fi
7083c021
AC
12986
12987
12988ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12989#include <sys/socket.h>
12990"
08c2568c 12991if test "x$ac_cv_type_socklen_t" = xyes; then :
030272f3 12992 rb_cv_socklen_t=socklen_t
db137867
AC
12993else
12994
7083c021 12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
030272f3 12996$as_echo_n "checking for socklen_t equivalent... " >&6; }
08c2568c 12997 if ${rb_cv_socklen_t+:} false; then :
030272f3 12998 $as_echo_n "(cached) " >&6
a9fb3ed0
VY
12999else
13000
13001 # Systems have either "struct sockaddr *" or
13002 # "void *" as the second argument to getpeername
030272f3 13003 rb_cv_socklen_t=
a9fb3ed0
VY
13004 for arg2 in "struct sockaddr" void; do
13005 for t in int size_t unsigned long "unsigned long"; do
7083c021 13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9fb3ed0
VY
13007/* end confdefs.h. */
13008
3202e249 13009#ifdef HAVE_SYS_TYPES_H
a9fb3ed0 13010#include <sys/types.h>
3202e249
VY
13011#endif
13012#ifdef HAVE_SYS_SOCKET_H
a9fb3ed0 13013#include <sys/socket.h>
3202e249
VY
13014#endif
13015#ifdef HAVE_WINSOCK2_H
13016#include <winsock2.h>
13017#endif
a9fb3ed0
VY
13018int getpeername (int, $arg2 *, $t *);
13019
13020int
13021main ()
13022{
13023
13024$t len;
13025getpeername(0,0,&len);
13026
13027 ;
13028 return 0;
13029}
db137867 13030_ACEOF
7083c021 13031if ac_fn_c_try_compile "$LINENO"; then :
a9fb3ed0 13032
030272f3 13033 rb_cv_socklen_t="$t"
a9fb3ed0
VY
13034 break
13035
a9fb3ed0 13036fi
a9fb3ed0
VY
13037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 done
13039 done
13040
030272f3 13041 if test "x$rb_cv_socklen_t" = x; then
7083c021 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
030272f3
VY
13043$as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13044 rb_cv_socklen_t=int
a9fb3ed0
VY
13045 fi
13046
13047fi
13048
7083c021
AC
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13050$as_echo "$rb_cv_socklen_t" >&6; }
13051fi
13052
13053
13054rb_socklen_t=$rb_cv_socklen_t
13055
13056
13057
13058
13059
13060# Check whether --enable-ipv6 was given.
13061if test "${enable_ipv6+set}" = set; then :
13062 enableval=$enable_ipv6; ipv6=$enableval
13063else
13064 ipv6=yes
13065fi
13066
13067
13068if test x$ipv6 != xyes; then
13069 have_v6="no"
13070else
13071
13072have_v6=yes
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13075$as_echo_n "checking for INET6 protocol support... " >&6; }
08c2568c 13076if ${rb_cv_proto_inet6+:} false; then :
7083c021
AC
13077 $as_echo_n "(cached) " >&6
13078else
13079
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081/* end confdefs.h. */
13082
13083#include <sys/types.h>
13084#include <sys/socket.h>
13085
13086#ifndef PF_INET6
13087#error Missing PF_INET6
13088#endif
13089#ifndef AF_INET6
13090#error Mlssing AF_INET6
13091#endif
13092
13093_ACEOF
13094if ac_fn_c_try_cpp "$LINENO"; then :
13095
13096 rb_cv_proto_inet6=yes
13097
13098else
13099
13100 rb_cv_proto_inet6=no
13101
13102fi
08c2568c 13103rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
13104
13105fi
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13107$as_echo "$rb_cv_proto_inet6" >&6; }
13108
13109 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13110
13111 else :
13112
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13114$as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13115 have_v6=no
13116
13117 fi
13118
13119
13120 if test "X$have_v6" = "Xyes"; then
13121
13122 rb_have_sockaddr_in6=
13123 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13124#include <sys/types.h>
13125#include <sys/socket.h>
13126#include <netinet/in.h>
13127
13128"
08c2568c 13129if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7083c021
AC
13130
13131cat >>confdefs.h <<_ACEOF
13132#define HAVE_STRUCT_SOCKADDR_IN6 1
13133_ACEOF
13134
13135
13136 rb_have_sockaddr_in6=yes
13137
13138else
13139
13140 rb_have_sockaddr_in6=no
13141
13142fi
13143
13144
13145 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13146
13147 else :
13148
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13150$as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13151 have_v6=no
13152
13153 fi
13154
13155 fi
13156
13157fi
13158
13159ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13160 #include <sys/types.h>
13161 #include <sys/socket.h>
13162
13163"
08c2568c 13164if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7083c021
AC
13165
13166cat >>confdefs.h <<_ACEOF
13167#define HAVE_STRUCT_SOCKADDR_STORAGE 1
13168_ACEOF
13169
13170
13171 rb_have_sockaddr_storage=yes
13172
13173fi
13174
13175
13176
7083c021 13177ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
08c2568c 13178if test "x$ac_cv_header_stdarg_h" = xyes; then :
db137867 13179
7083c021 13180else
08c2568c 13181 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
7083c021 13182fi
db137867 13183
db137867 13184
db137867 13185
7083c021
AC
13186ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13187#include <sys/socket.h>
13188"
08c2568c 13189if test "x$ac_cv_type_sa_family_t" = xyes; then :
db137867
AC
13190
13191else
db137867 13192
7083c021 13193$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
db137867
AC
13194
13195fi
db137867 13196
db137867 13197
db137867 13198
7083c021
AC
13199for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create
13200do :
13201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13202ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 13203if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
13204 cat >>confdefs.h <<_ACEOF
13205#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13206_ACEOF
db137867 13207
7083c021
AC
13208fi
13209done
db137867 13210
db137867 13211
7083c021
AC
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13213$as_echo_n "checking for library containing nanosleep... " >&6; }
08c2568c 13214if ${ac_cv_search_nanosleep+:} false; then :
030272f3 13215 $as_echo_n "(cached) " >&6
db137867 13216else
7083c021
AC
13217 ac_func_search_save_LIBS=$LIBS
13218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
13219/* end confdefs.h. */
13220
7083c021
AC
13221/* Override any GCC internal prototype to avoid an error.
13222 Use char because int might match the return type of a GCC
13223 builtin and then its argument prototype would still apply. */
13224#ifdef __cplusplus
13225extern "C"
13226#endif
13227char nanosleep ();
db137867
AC
13228int
13229main ()
13230{
7083c021 13231return nanosleep ();
030272f3 13232 ;
db137867 13233 return 0;
030272f3
VY
13234}
13235_ACEOF
7083c021
AC
13236for ac_lib in '' rt posix4; do
13237 if test -z "$ac_lib"; then
13238 ac_res="none required"
13239 else
13240 ac_res=-l$ac_lib
13241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13242 fi
13243 if ac_fn_c_try_link "$LINENO"; then :
13244 ac_cv_search_nanosleep=$ac_res
13245fi
13246rm -f core conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext
08c2568c 13248 if ${ac_cv_search_nanosleep+:} false; then :
7083c021
AC
13249 break
13250fi
13251done
08c2568c 13252if ${ac_cv_search_nanosleep+:} false; then :
030272f3 13253
7083c021
AC
13254else
13255 ac_cv_search_nanosleep=no
13256fi
13257rm conftest.$ac_ext
13258LIBS=$ac_func_search_save_LIBS
13259fi
13260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
13261$as_echo "$ac_cv_search_nanosleep" >&6; }
13262ac_res=$ac_cv_search_nanosleep
13263if test "$ac_res" != no; then :
13264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
030272f3 13265
7083c021
AC
13266$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
13267
13268fi
13269
13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
13271$as_echo_n "checking for library containing timer_create... " >&6; }
08c2568c 13272if ${ac_cv_search_timer_create+:} false; then :
7083c021
AC
13273 $as_echo_n "(cached) " >&6
13274else
13275 ac_func_search_save_LIBS=$LIBS
13276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277/* end confdefs.h. */
030272f3 13278
7083c021
AC
13279/* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13282#ifdef __cplusplus
13283extern "C"
13284#endif
13285char timer_create ();
030272f3
VY
13286int
13287main ()
13288{
7083c021 13289return timer_create ();
db137867
AC
13290 ;
13291 return 0;
13292}
13293_ACEOF
7083c021
AC
13294for ac_lib in '' rt; do
13295 if test -z "$ac_lib"; then
13296 ac_res="none required"
13297 else
13298 ac_res=-l$ac_lib
13299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13300 fi
13301 if ac_fn_c_try_link "$LINENO"; then :
13302 ac_cv_search_timer_create=$ac_res
13303fi
13304rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext
08c2568c 13306 if ${ac_cv_search_timer_create+:} false; then :
7083c021 13307 break
030272f3 13308fi
7083c021 13309done
08c2568c 13310if ${ac_cv_search_timer_create+:} false; then :
030272f3 13311
db137867 13312else
7083c021 13313 ac_cv_search_timer_create=no
db137867 13314fi
7083c021
AC
13315rm conftest.$ac_ext
13316LIBS=$ac_func_search_save_LIBS
db137867 13317fi
7083c021
AC
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
13319$as_echo "$ac_cv_search_timer_create" >&6; }
13320ac_res=$ac_cv_search_timer_create
13321if test "$ac_res" != no; then :
13322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
db137867 13323
7083c021 13324$as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
db137867 13325
7083c021 13326fi
db137867 13327
7083c021
AC
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
13329$as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
08c2568c 13330if ${rb__cv_timer_create_works+:} false; then :
7083c021
AC
13331 $as_echo_n "(cached) " >&6
13332else
13333 if test "$cross_compiling" = yes; then :
13334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
13336as_fn_error $? "cannot run test program while cross compiling
13337See \`config.log' for more details" "$LINENO" 5; }
db137867 13338else
7083c021
AC
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340/* end confdefs.h. */
db137867 13341
7083c021
AC
13342#ifdef HAVE_TIME_H
13343#include <time.h>
13344#endif
13345#ifdef HAVE_SIGNAL_H
13346#include <signal.h>
13347#endif
13348#ifdef HAVE_UNISTD_H
13349#include <unistd.h>
13350#endif
13351int main(int argc, char *argv[])
13352{
13353#if HAVE_TIMER_CREATE
13354 struct sigevent ev;
13355 timer_t timer;
13356 ev.sigev_notify = SIGEV_SIGNAL;
13357 ev.sigev_signo = SIGVTALRM;
13358 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
13359 return 1;
13360 }
13361#else
13362 return 1;
13363#endif
13364 return 0;
13365}
db137867 13366
7083c021
AC
13367_ACEOF
13368if ac_fn_c_try_run "$LINENO"; then :
13369 rb__cv_timer_create_works=yes
13370else
13371 rb__cv_timer_create_works=no
13372fi
13373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13374 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
13375fi
13376
13377
7083c021
AC
13378fi
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
13380$as_echo "$rb__cv_timer_create_works" >&6; }
13381case $rb__cv_timer_create_works in
13382 yes)
13383$as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
13384;;
13385esac
db137867 13386
7083c021
AC
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
13388$as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
08c2568c 13389if ${rb__cv_timerfd_create_works+:} false; then :
7083c021
AC
13390 $as_echo_n "(cached) " >&6
13391else
13392 if test "$cross_compiling" = yes; then :
13393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
13395as_fn_error $? "cannot run test program while cross compiling
13396See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
13397else
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399/* end confdefs.h. */
db137867 13400
7083c021
AC
13401#ifdef HAVE_TIME_H
13402#include <time.h>
13403#endif
13404#ifdef HAVE_SIGNAL_H
13405#include <signal.h>
13406#endif
13407#ifdef HAVE_UNISTD_H
13408#include <unistd.h>
13409#endif
13410#ifdef HAVE_SYS_TIMERFD_H
13411#include <sys/timerfd.h>
13412#endif
13413int main(int argc, char *argv[])
13414{
13415#if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
13416 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
13417 return 1;
13418 }
13419#else
13420 return 1;
13421#endif
13422 return 0;
13423}
db137867 13424
7083c021
AC
13425_ACEOF
13426if ac_fn_c_try_run "$LINENO"; then :
13427 rb__cv_timerfd_create_works=yes
13428else
13429 rb__cv_timerfd_create_works=no
13430fi
13431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13432 conftest.$ac_objext conftest.beam conftest.$ac_ext
13433fi
db137867 13434
db137867
AC
13435
13436fi
7083c021
AC
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
13438$as_echo "$rb__cv_timerfd_create_works" >&6; }
13439case $rb__cv_timerfd_create_works in
13440 yes)
13441$as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
13442;;
13443esac
db137867 13444
7083c021
AC
13445
13446# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13447# for constant arguments. Useless!
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13449$as_echo_n "checking for working alloca.h... " >&6; }
08c2568c 13450if ${ac_cv_working_alloca_h+:} false; then :
030272f3 13451 $as_echo_n "(cached) " >&6
db137867 13452else
7083c021 13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 13454/* end confdefs.h. */
7083c021 13455#include <alloca.h>
030272f3
VY
13456int
13457main ()
13458{
7083c021
AC
13459char *p = (char *) alloca (2 * sizeof (int));
13460 if (p) return 0;
db137867
AC
13461 ;
13462 return 0;
13463}
13464_ACEOF
7083c021
AC
13465if ac_fn_c_try_link "$LINENO"; then :
13466 ac_cv_working_alloca_h=yes
030272f3 13467else
7083c021 13468 ac_cv_working_alloca_h=no
db137867 13469fi
7083c021
AC
13470rm -f core conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
030272f3 13472fi
7083c021
AC
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13474$as_echo "$ac_cv_working_alloca_h" >&6; }
13475if test $ac_cv_working_alloca_h = yes; then
db137867 13476
7083c021 13477$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
db137867
AC
13478
13479fi
13480
7083c021
AC
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13482$as_echo_n "checking for alloca... " >&6; }
08c2568c 13483if ${ac_cv_func_alloca_works+:} false; then :
030272f3 13484 $as_echo_n "(cached) " >&6
db137867 13485else
7083c021 13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13487/* end confdefs.h. */
7083c021
AC
13488#ifdef __GNUC__
13489# define alloca __builtin_alloca
13490#else
13491# ifdef _MSC_VER
13492# include <malloc.h>
13493# define alloca _alloca
13494# else
13495# ifdef HAVE_ALLOCA_H
13496# include <alloca.h>
13497# else
13498# ifdef _AIX
13499 #pragma alloca
13500# else
13501# ifndef alloca /* predefined by HP cc +Olibcalls */
08c2568c 13502void *alloca (size_t);
7083c021
AC
13503# endif
13504# endif
13505# endif
13506# endif
db137867 13507#endif
7083c021 13508
db137867
AC
13509int
13510main ()
13511{
7083c021
AC
13512char *p = (char *) alloca (1);
13513 if (p) return 0;
db137867
AC
13514 ;
13515 return 0;
13516}
13517_ACEOF
7083c021
AC
13518if ac_fn_c_try_link "$LINENO"; then :
13519 ac_cv_func_alloca_works=yes
db137867 13520else
7083c021 13521 ac_cv_func_alloca_works=no
db137867 13522fi
7083c021
AC
13523rm -f core conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
db137867 13525fi
7083c021
AC
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13527$as_echo "$ac_cv_func_alloca_works" >&6; }
db137867 13528
7083c021 13529if test $ac_cv_func_alloca_works = yes; then
db137867 13530
7083c021 13531$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
db137867 13532
db137867 13533else
7083c021
AC
13534 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13535# that cause trouble. Some versions do not even contain alloca or
13536# contain a buggy version. If you still want to use their alloca,
13537# use ar to extract alloca.o from them instead of compiling alloca.c.
db137867 13538
7083c021 13539ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
db137867 13540
7083c021 13541$as_echo "#define C_ALLOCA 1" >>confdefs.h
db137867
AC
13542
13543
7083c021
AC
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13545$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
08c2568c 13546if ${ac_cv_os_cray+:} false; then :
030272f3 13547 $as_echo_n "(cached) " >&6
db137867 13548else
7083c021 13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13550/* end confdefs.h. */
7083c021
AC
13551#if defined CRAY && ! defined CRAY2
13552webecray
13553#else
13554wenotbecray
13555#endif
db137867 13556
db137867 13557_ACEOF
7083c021
AC
13558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13559 $EGREP "webecray" >/dev/null 2>&1; then :
13560 ac_cv_os_cray=yes
db137867 13561else
7083c021 13562 ac_cv_os_cray=no
db137867 13563fi
7083c021 13564rm -f conftest*
db137867 13565
db137867 13566fi
7083c021
AC
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13568$as_echo "$ac_cv_os_cray" >&6; }
13569if test $ac_cv_os_cray = yes; then
13570 for ac_func in _getb67 GETB67 getb67; do
13571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13572ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 13573if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
db137867 13574
7083c021
AC
13575cat >>confdefs.h <<_ACEOF
13576#define CRAY_STACKSEG_END $ac_func
13577_ACEOF
db137867 13578
7083c021
AC
13579 break
13580fi
db137867 13581
7083c021
AC
13582 done
13583fi
db137867 13584
7083c021
AC
13585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13586$as_echo_n "checking stack direction for C alloca... " >&6; }
08c2568c 13587if ${ac_cv_c_stack_direction+:} false; then :
030272f3 13588 $as_echo_n "(cached) " >&6
db137867 13589else
7083c021
AC
13590 if test "$cross_compiling" = yes; then :
13591 ac_cv_c_stack_direction=0
13592else
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13594/* end confdefs.h. */
7083c021 13595$ac_includes_default
db137867 13596int
7083c021 13597find_stack_direction ()
db137867 13598{
7083c021
AC
13599 static char *addr = 0;
13600 auto char dummy;
13601 if (addr == 0)
13602 {
13603 addr = &dummy;
13604 return find_stack_direction ();
13605 }
13606 else
13607 return (&dummy > addr) ? 1 : -1;
030272f3 13608}
030272f3
VY
13609
13610int
13611main ()
13612{
7083c021 13613 return find_stack_direction () < 0;
db137867
AC
13614}
13615_ACEOF
7083c021
AC
13616if ac_fn_c_try_run "$LINENO"; then :
13617 ac_cv_c_stack_direction=1
030272f3 13618else
7083c021 13619 ac_cv_c_stack_direction=-1
030272f3 13620fi
7083c021
AC
13621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13622 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
13623fi
13624
db137867 13625fi
7083c021
AC
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13627$as_echo "$ac_cv_c_stack_direction" >&6; }
13628cat >>confdefs.h <<_ACEOF
13629#define STACK_DIRECTION $ac_cv_c_stack_direction
db137867
AC
13630_ACEOF
13631
db137867 13632
7083c021 13633fi
db137867 13634
7083c021
AC
13635for ac_header in vfork.h
13636do :
13637 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
08c2568c 13638if test "x$ac_cv_header_vfork_h" = xyes; then :
7083c021
AC
13639 cat >>confdefs.h <<_ACEOF
13640#define HAVE_VFORK_H 1
13641_ACEOF
db137867 13642
7083c021 13643fi
db137867 13644
7083c021 13645done
a9fb3ed0 13646
7083c021
AC
13647for ac_func in fork vfork
13648do :
13649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13650ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 13651if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
13652 cat >>confdefs.h <<_ACEOF
13653#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13654_ACEOF
a9fb3ed0 13655
7083c021
AC
13656fi
13657done
3202e249 13658
7083c021
AC
13659if test "x$ac_cv_func_fork" = xyes; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13661$as_echo_n "checking for working fork... " >&6; }
08c2568c 13662if ${ac_cv_func_fork_works+:} false; then :
030272f3 13663 $as_echo_n "(cached) " >&6
db137867 13664else
7083c021
AC
13665 if test "$cross_compiling" = yes; then :
13666 ac_cv_func_fork_works=cross
13667else
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13669/* end confdefs.h. */
7083c021 13670$ac_includes_default
db137867
AC
13671int
13672main ()
13673{
7083c021
AC
13674
13675 /* By Ruediger Kuhlmann. */
13676 return fork () < 0;
13677
db137867
AC
13678 ;
13679 return 0;
13680}
13681_ACEOF
7083c021
AC
13682if ac_fn_c_try_run "$LINENO"; then :
13683 ac_cv_func_fork_works=yes
db137867 13684else
7083c021 13685 ac_cv_func_fork_works=no
db137867 13686fi
7083c021
AC
13687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13688 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867 13689fi
db137867
AC
13690
13691fi
7083c021
AC
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13693$as_echo "$ac_cv_func_fork_works" >&6; }
db137867 13694
7083c021
AC
13695else
13696 ac_cv_func_fork_works=$ac_cv_func_fork
13697fi
13698if test "x$ac_cv_func_fork_works" = xcross; then
13699 case $host in
13700 *-*-amigaos* | *-*-msdosdjgpp*)
13701 # Override, as these systems have only a dummy fork() stub
13702 ac_cv_func_fork_works=no
13703 ;;
13704 *)
13705 ac_cv_func_fork_works=yes
13706 ;;
13707 esac
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13709$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13710fi
13711ac_cv_func_vfork_works=$ac_cv_func_vfork
13712if test "x$ac_cv_func_vfork" = xyes; then
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13714$as_echo_n "checking for working vfork... " >&6; }
08c2568c 13715if ${ac_cv_func_vfork_works+:} false; then :
030272f3 13716 $as_echo_n "(cached) " >&6
db137867 13717else
7083c021
AC
13718 if test "$cross_compiling" = yes; then :
13719 ac_cv_func_vfork_works=cross
13720else
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13722/* end confdefs.h. */
7083c021
AC
13723/* Thanks to Paul Eggert for this test. */
13724$ac_includes_default
13725#include <sys/wait.h>
13726#ifdef HAVE_VFORK_H
13727# include <vfork.h>
13728#endif
13729/* On some sparc systems, changes by the child to local and incoming
13730 argument registers are propagated back to the parent. The compiler
13731 is told about this with #include <vfork.h>, but some compilers
13732 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13733 static variable whose address is put into a register that is
13734 clobbered by the vfork. */
13735static void
db137867 13736#ifdef __cplusplus
7083c021
AC
13737sparc_address_test (int arg)
13738# else
13739sparc_address_test (arg) int arg;
db137867 13740#endif
7083c021
AC
13741{
13742 static pid_t child;
13743 if (!child) {
13744 child = vfork ();
13745 if (child < 0) {
13746 perror ("vfork");
13747 _exit(2);
13748 }
13749 if (!child) {
13750 arg = getpid();
13751 write(-1, "", 0);
13752 _exit (arg);
13753 }
13754 }
13755}
13756
db137867
AC
13757int
13758main ()
13759{
7083c021
AC
13760 pid_t parent = getpid ();
13761 pid_t child;
13762
13763 sparc_address_test (0);
13764
13765 child = vfork ();
13766
13767 if (child == 0) {
13768 /* Here is another test for sparc vfork register problems. This
13769 test uses lots of local variables, at least as many local
13770 variables as main has allocated so far including compiler
13771 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13772 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13773 reuse the register of parent for one of the local variables,
13774 since it will think that parent can't possibly be used any more
13775 in this routine. Assigning to the local variable will thus
13776 munge parent in the parent process. */
13777 pid_t
13778 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13779 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13780 /* Convince the compiler that p..p7 are live; otherwise, it might
13781 use the same hardware register for all 8 local variables. */
13782 if (p != p1 || p != p2 || p != p3 || p != p4
13783 || p != p5 || p != p6 || p != p7)
13784 _exit(1);
db137867 13785
7083c021
AC
13786 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13787 from child file descriptors. If the child closes a descriptor
13788 before it execs or exits, this munges the parent's descriptor
13789 as well. Test for this by closing stdout in the child. */
13790 _exit(close(fileno(stdout)) != 0);
13791 } else {
13792 int status;
13793 struct stat st;
db137867 13794
7083c021
AC
13795 while (wait(&status) != child)
13796 ;
13797 return (
13798 /* Was there some problem with vforking? */
13799 child < 0
db137867 13800
7083c021
AC
13801 /* Did the child fail? (This shouldn't happen.) */
13802 || status
13803
13804 /* Did the vfork/compiler bug occur? */
13805 || parent != getpid()
13806
13807 /* Did the file descriptor bug occur? */
13808 || fstat(fileno(stdout), &st) != 0
13809 );
13810 }
13811}
13812_ACEOF
13813if ac_fn_c_try_run "$LINENO"; then :
13814 ac_cv_func_vfork_works=yes
db137867 13815else
7083c021 13816 ac_cv_func_vfork_works=no
db137867 13817fi
7083c021
AC
13818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13819 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867 13820fi
db137867 13821
7083c021
AC
13822fi
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13824$as_echo "$ac_cv_func_vfork_works" >&6; }
db137867 13825
7083c021
AC
13826fi;
13827if test "x$ac_cv_func_fork_works" = xcross; then
13828 ac_cv_func_vfork_works=$ac_cv_func_vfork
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13830$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
db137867
AC
13831fi
13832
7083c021
AC
13833if test "x$ac_cv_func_vfork_works" = xyes; then
13834
13835$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
db137867 13836
db137867 13837else
db137867 13838
7083c021 13839$as_echo "#define vfork fork" >>confdefs.h
db137867
AC
13840
13841fi
7083c021
AC
13842if test "x$ac_cv_func_fork_works" = xyes; then
13843
13844$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
db137867 13845
db137867 13846fi
7083c021 13847
96f4052b
AC
13848
13849
13850
13851 for ac_header in $ac_header_list
7083c021
AC
13852do :
13853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
96f4052b
AC
13854ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13855"
08c2568c 13856if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
13857 cat >>confdefs.h <<_ACEOF
13858#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13859_ACEOF
13860
db137867 13861fi
db137867 13862
7083c021
AC
13863done
13864
96f4052b
AC
13865
13866
13867
13868
13869
13870
13871
7083c021
AC
13872for ac_func in getpagesize
13873do :
13874 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
08c2568c 13875if test "x$ac_cv_func_getpagesize" = xyes; then :
7083c021
AC
13876 cat >>confdefs.h <<_ACEOF
13877#define HAVE_GETPAGESIZE 1
db137867
AC
13878_ACEOF
13879
13880fi
7083c021 13881done
db137867 13882
7083c021
AC
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13884$as_echo_n "checking for working mmap... " >&6; }
08c2568c 13885if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
030272f3 13886 $as_echo_n "(cached) " >&6
db137867 13887else
7083c021
AC
13888 if test "$cross_compiling" = yes; then :
13889 ac_cv_func_mmap_fixed_mapped=no
13890else
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13892/* end confdefs.h. */
7083c021
AC
13893$ac_includes_default
13894/* malloc might have been renamed as rpl_malloc. */
13895#undef malloc
db137867 13896
7083c021
AC
13897/* Thanks to Mike Haertel and Jim Avera for this test.
13898 Here is a matrix of mmap possibilities:
13899 mmap private not fixed
13900 mmap private fixed at somewhere currently unmapped
13901 mmap private fixed at somewhere already mapped
13902 mmap shared not fixed
13903 mmap shared fixed at somewhere currently unmapped
13904 mmap shared fixed at somewhere already mapped
13905 For private mappings, we should verify that changes cannot be read()
13906 back from the file, nor mmap's back from the file at a different
13907 address. (There have been systems where private was not correctly
13908 implemented like the infamous i386 svr4.0, and systems where the
13909 VM page cache was not coherent with the file system buffer cache
13910 like early versions of FreeBSD and possibly contemporary NetBSD.)
13911 For shared mappings, we should conversely verify that changes get
13912 propagated back to all the places they're supposed to be.
13913
13914 Grep wants private fixed already mapped.
13915 The main things grep needs to know about mmap are:
13916 * does it exist and is it safe to write into the mmap'd area
13917 * how to use it (BSD variants) */
13918
13919#include <fcntl.h>
13920#include <sys/mman.h>
13921
13922#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13923char *malloc ();
db137867 13924#endif
7083c021
AC
13925
13926/* This mess was copied from the GNU getpagesize.h. */
13927#ifndef HAVE_GETPAGESIZE
7083c021
AC
13928# ifdef _SC_PAGESIZE
13929# define getpagesize() sysconf(_SC_PAGESIZE)
13930# else /* no _SC_PAGESIZE */
13931# ifdef HAVE_SYS_PARAM_H
13932# include <sys/param.h>
13933# ifdef EXEC_PAGESIZE
13934# define getpagesize() EXEC_PAGESIZE
13935# else /* no EXEC_PAGESIZE */
13936# ifdef NBPG
13937# define getpagesize() NBPG * CLSIZE
13938# ifndef CLSIZE
13939# define CLSIZE 1
13940# endif /* no CLSIZE */
13941# else /* no NBPG */
13942# ifdef NBPC
13943# define getpagesize() NBPC
13944# else /* no NBPC */
13945# ifdef PAGESIZE
13946# define getpagesize() PAGESIZE
13947# endif /* PAGESIZE */
13948# endif /* no NBPC */
13949# endif /* no NBPG */
13950# endif /* no EXEC_PAGESIZE */
13951# else /* no HAVE_SYS_PARAM_H */
13952# define getpagesize() 8192 /* punt totally */
13953# endif /* no HAVE_SYS_PARAM_H */
13954# endif /* no _SC_PAGESIZE */
13955
13956#endif /* no HAVE_GETPAGESIZE */
13957
13958int
13959main ()
db137867 13960{
7083c021 13961 char *data, *data2, *data3;
5a241f54 13962 const char *cdata2;
7083c021 13963 int i, pagesize;
96f4052b 13964 int fd, fd2;
7083c021
AC
13965
13966 pagesize = getpagesize ();
13967
13968 /* First, make a file with some known garbage in it. */
13969 data = (char *) malloc (pagesize);
13970 if (!data)
13971 return 1;
13972 for (i = 0; i < pagesize; ++i)
13973 *(data + i) = rand ();
13974 umask (0);
13975 fd = creat ("conftest.mmap", 0600);
13976 if (fd < 0)
96f4052b 13977 return 2;
7083c021 13978 if (write (fd, data, pagesize) != pagesize)
96f4052b 13979 return 3;
7083c021
AC
13980 close (fd);
13981
96f4052b
AC
13982 /* Next, check that the tail of a page is zero-filled. File must have
13983 non-zero length, otherwise we risk SIGBUS for entire page. */
13984 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13985 if (fd2 < 0)
13986 return 4;
5a241f54
AC
13987 cdata2 = "";
13988 if (write (fd2, cdata2, 1) != 1)
96f4052b 13989 return 5;
5a241f54 13990 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
96f4052b
AC
13991 if (data2 == MAP_FAILED)
13992 return 6;
13993 for (i = 0; i < pagesize; ++i)
13994 if (*(data2 + i))
13995 return 7;
13996 close (fd2);
13997 if (munmap (data2, pagesize))
13998 return 8;
13999
7083c021
AC
14000 /* Next, try to mmap the file at a fixed address which already has
14001 something else allocated at it. If we can, also make sure that
14002 we see the same garbage. */
14003 fd = open ("conftest.mmap", O_RDWR);
14004 if (fd < 0)
96f4052b 14005 return 9;
7083c021
AC
14006 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14007 MAP_PRIVATE | MAP_FIXED, fd, 0L))
96f4052b 14008 return 10;
7083c021
AC
14009 for (i = 0; i < pagesize; ++i)
14010 if (*(data + i) != *(data2 + i))
96f4052b 14011 return 11;
7083c021
AC
14012
14013 /* Finally, make sure that changes to the mapped area do not
14014 percolate back to the file as seen by read(). (This is a bug on
14015 some variants of i386 svr4.0.) */
14016 for (i = 0; i < pagesize; ++i)
14017 *(data2 + i) = *(data2 + i) + 1;
14018 data3 = (char *) malloc (pagesize);
14019 if (!data3)
96f4052b 14020 return 12;
7083c021 14021 if (read (fd, data3, pagesize) != pagesize)
96f4052b 14022 return 13;
7083c021
AC
14023 for (i = 0; i < pagesize; ++i)
14024 if (*(data + i) != *(data3 + i))
96f4052b 14025 return 14;
7083c021
AC
14026 close (fd);
14027 return 0;
db137867 14028}
db137867 14029_ACEOF
7083c021
AC
14030if ac_fn_c_try_run "$LINENO"; then :
14031 ac_cv_func_mmap_fixed_mapped=yes
db137867 14032else
7083c021 14033 ac_cv_func_mmap_fixed_mapped=no
db137867 14034fi
7083c021
AC
14035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14036 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
14037fi
14038
7083c021
AC
14039fi
14040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14041$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14042if test $ac_cv_func_mmap_fixed_mapped = yes; then
db137867 14043
7083c021 14044$as_echo "#define HAVE_MMAP 1" >>confdefs.h
db137867
AC
14045
14046fi
96f4052b 14047rm -f conftest.mmap conftest.txt
db137867 14048
3202e249 14049
7083c021
AC
14050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14051$as_echo_n "checking for /dev/poll... " >&6; }
14052if test -c "/dev/poll"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14054$as_echo "yes" >&6; }
3202e249 14055
7083c021 14056$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
3202e249 14057
7083c021
AC
14058else
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14060$as_echo "no" >&6; }
3202e249
VY
14061fi
14062
14063
7083c021
AC
14064if test "$is_mingw" = "yes"; then
14065
14066$as_echo "#define HAVE_WIN32 1" >>confdefs.h
3202e249
VY
14067
14068fi
3202e249 14069
db137867 14070
7083c021
AC
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14072$as_echo_n "checking for OpenSSL... " >&6; }
14073# Check whether --enable-openssl was given.
14074if test "${enable_openssl+set}" = set; then :
14075 enableval=$enable_openssl; cf_enable_openssl=$enableval
db137867 14076else
7083c021 14077 cf_enable_openssl="auto"
db137867
AC
14078fi
14079
db137867 14080
7083c021
AC
14081if test "$cf_enable_openssl" != "no" ; then
14082 cf_openssl_basedir=""
14083 if test "$cf_enable_openssl" != "auto" &&
14084 test "$cf_enable_openssl" != "yes" ; then
14085 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14086 else
14087 for dirs in /usr/local/ssl /usr/pkg /usr/local \
14088 /usr/local/openssl ; do
14089 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14090 cf_openssl_basedir="${dirs}"
14091 break
14092 fi
14093 done
14094 unset dirs
14095 fi
14096 if test ! -z "$cf_openssl_basedir"; then
14097 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14098 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
14099 SSL_LIBS="-L${cf_openssl_basedir}/lib"
14100 else
14101 cf_openssl_basedir=""
14102 fi
14103 else
14104 if test -f "/usr/include/openssl/opensslv.h" ; then
14105 cf_openssl_basedir="/usr"
14106 fi
14107 fi
db137867 14108
7083c021
AC
14109 if test ! -z "$cf_openssl_basedir"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14111$as_echo "$cf_openssl_basedir" >&6; }
14112 cf_enable_openssl="yes"
14113 else
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14115$as_echo "not found. Specify a correct path?" >&6; }
14116 cf_enable_openssl="no"
14117 fi
14118 unset cf_openssl_basedir
14119else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14121$as_echo "disabled" >&6; }
db137867
AC
14122fi
14123
7083c021
AC
14124save_CPPFLAGS="$CPPFLAGS"
14125CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
14126save_LIBS="$LIBS"
14127LIBS="$LIBS $SSL_LIBS"
14128if test "$cf_enable_openssl" != no; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14130$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14131 if test "$cross_compiling" = yes; then :
14132 cf_enable_openssl=no
db137867 14133else
7083c021 14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14135/* end confdefs.h. */
7083c021
AC
14136#include <openssl/opensslv.h>
14137 #include <stdlib.h>
db137867
AC
14138int
14139main ()
14140{
7083c021
AC
14141if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14142 exit(0); else exit(1);
14143 ;
14144 return 0;
14145}
db137867 14146_ACEOF
7083c021
AC
14147if ac_fn_c_try_run "$LINENO"; then :
14148 cf_enable_openssl=yes
14149else
14150 cf_enable_openssl=no
14151fi
14152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14153 conftest.$ac_objext conftest.beam conftest.$ac_ext
14154fi
db137867
AC
14155
14156
7083c021
AC
14157 if test "$cf_enable_openssl" != no; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14159$as_echo "found" >&6; }
14160 else
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14162$as_echo "no - OpenSSL support disabled" >&6; }
14163 fi
db137867 14164
db137867 14165fi
db137867 14166
7083c021
AC
14167
14168if test "$cf_enable_openssl" != no; then
14169 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14171$as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
08c2568c 14172if ${ac_cv_lib_crypto_RAND_status+:} false; then :
030272f3 14173 $as_echo_n "(cached) " >&6
db137867 14174else
7083c021
AC
14175 ac_check_lib_save_LIBS=$LIBS
14176LIBS="-lcrypto $LIBS"
14177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14178/* end confdefs.h. */
db137867
AC
14179
14180/* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
14183#ifdef __cplusplus
14184extern "C"
14185#endif
7083c021 14186char RAND_status ();
db137867
AC
14187int
14188main ()
14189{
7083c021 14190return RAND_status ();
db137867
AC
14191 ;
14192 return 0;
14193}
14194_ACEOF
7083c021
AC
14195if ac_fn_c_try_link "$LINENO"; then :
14196 ac_cv_lib_crypto_RAND_status=yes
db137867 14197else
7083c021 14198 ac_cv_lib_crypto_RAND_status=no
db137867 14199fi
7083c021
AC
14200rm -f core conftest.err conftest.$ac_objext \
14201 conftest$ac_exeext conftest.$ac_ext
14202LIBS=$ac_check_lib_save_LIBS
db137867 14203fi
7083c021
AC
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14205$as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
08c2568c 14206if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
7083c021
AC
14207 cf_enable_openssl=yes
14208else
14209 cf_enable_openssl=no
db137867
AC
14210fi
14211
db137867
AC
14212fi
14213
7083c021
AC
14214if test "$cf_enable_openssl" != no; then
14215 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14217$as_echo_n "checking for SSL_read in -lssl... " >&6; }
08c2568c 14218if ${ac_cv_lib_ssl_SSL_read+:} false; then :
030272f3 14219 $as_echo_n "(cached) " >&6
db137867 14220else
7083c021
AC
14221 ac_check_lib_save_LIBS=$LIBS
14222LIBS="-lssl -lcrypto $LIBS"
14223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14224/* end confdefs.h. */
db137867 14225
7083c021
AC
14226/* Override any GCC internal prototype to avoid an error.
14227 Use char because int might match the return type of a GCC
14228 builtin and then its argument prototype would still apply. */
14229#ifdef __cplusplus
14230extern "C"
14231#endif
14232char SSL_read ();
db137867
AC
14233int
14234main ()
14235{
7083c021
AC
14236return SSL_read ();
14237 ;
14238 return 0;
db137867
AC
14239}
14240_ACEOF
7083c021
AC
14241if ac_fn_c_try_link "$LINENO"; then :
14242 ac_cv_lib_ssl_SSL_read=yes
db137867 14243else
7083c021 14244 ac_cv_lib_ssl_SSL_read=no
db137867 14245fi
7083c021
AC
14246rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14248LIBS=$ac_check_lib_save_LIBS
14249fi
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
14251$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
08c2568c 14252if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
7083c021
AC
14253 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
14254else
14255 cf_enable_openssl=no
db137867 14256fi
db137867
AC
14257
14258fi
db137867 14259
db137867
AC
14260
14261
7083c021 14262if test x"$cf_enable_openssl" != xno; then
db137867 14263
7083c021 14264$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
db137867 14265
7083c021 14266 SSL_TYPE="openssl"
db137867 14267fi
db137867 14268
db137867 14269
db137867 14270
db137867 14271
7083c021
AC
14272CPPFLAGS="$save_CPPFLAGS"
14273LIBS="$save_LIBS"
14274
14275
db137867
AC
14276
14277
db137867 14278
db137867 14279
7083c021
AC
14280# Check whether --enable-assert was given.
14281if test "${enable_assert+set}" = set; then :
14282 enableval=$enable_assert; assert=$enableval
14283else
14284 assert=no
14285fi
db137867 14286
db137867 14287
7083c021 14288if test "$assert" = no; then
db137867 14289
7083c021 14290$as_echo "#define NDEBUG 1" >>confdefs.h
db137867 14291
7083c021 14292elif test "$assert" = soft; then
db137867 14293
7083c021 14294$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
db137867 14295
db137867 14296
7083c021 14297$as_echo "#define NDEBUG 1" >>confdefs.h
db137867 14298
7083c021
AC
14299elif test "$assert" = yes; then
14300 assert = "hard";
14301fi
14302
14303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
14304$as_echo_n "checking if you want to do a profile build... " >&6; }
14305# Check whether --enable-profile was given.
14306if test "${enable_profile+set}" = set; then :
14307 enableval=$enable_profile; profile=$enableval
db137867 14308else
7083c021
AC
14309 profile=no
14310fi
14311
14312
14313if test "$profile" = yes; then
14314 if test "$ac_cv_c_compiler_gnu" = yes; then
14315 CFLAGS="$CFLAGS -pg -static"
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
14317$as_echo "yes, adding -pg -static" >&6; }
db137867 14318
7083c021
AC
14319$as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
14320
14321 else
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
14323$as_echo "no, profile builds only work with gcc" >&6; }
14324 fi
14325else
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327$as_echo "no" >&6; }
db137867 14328fi
7083c021
AC
14329
14330# Check whether --enable-balloc was given.
14331if test "${enable_balloc+set}" = set; then :
14332 enableval=$enable_balloc; balloc=$enableval
14333else
14334 balloc=yes
db137867
AC
14335fi
14336
14337
7083c021
AC
14338if test "$balloc" = no; then
14339
14340$as_echo "#define NOBALLOC 1" >>confdefs.h
14341
db137867 14342fi
db137867 14343
7083c021
AC
14344# Check whether --enable-warnings was given.
14345if test "${enable_warnings+set}" = set; then :
14346 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
db137867
AC
14347fi
14348
db137867 14349
db137867 14350
db137867 14351
db137867 14352
db137867 14353
db137867 14354
db137867
AC
14355
14356
7083c021
AC
14357if test "$prefix" = "NONE"; then
14358
14359cat >>confdefs.h <<_ACEOF
14360#define RB_PREFIX "$ac_default_prefix"
db137867 14361_ACEOF
7083c021
AC
14362
14363
db137867 14364else
db137867 14365
db137867 14366
7083c021 14367 prefix=`echo $prefix | sed 's/\/$//'`
db137867 14368
7083c021
AC
14369cat >>confdefs.h <<_ACEOF
14370#define RB_PREFIX "$prefix"
db137867 14371_ACEOF
db137867 14372
7083c021 14373
db137867
AC
14374fi
14375
db137867 14376
db137867 14377
7083c021 14378ac_config_commands="$ac_config_commands include/librb-config.h"
db137867 14379
db137867 14380
db137867 14381
7083c021 14382ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
db137867
AC
14383
14384
7083c021
AC
14385cat >confcache <<\_ACEOF
14386# This file is a shell script that caches the results of configure
14387# tests run on this system so they can be shared between configure
14388# scripts and configure runs, see configure's option --config-cache.
14389# It is not useful on other systems. If it contains results you don't
14390# want to keep, you may remove or edit it.
14391#
14392# config.status only pays attention to the cache file if you give it
14393# the --recheck option to rerun configure.
14394#
14395# `ac_cv_env_foo' variables (set or unset) will be overridden when
14396# loading this file, other *unset* `ac_cv_foo' will be assigned the
14397# following values.
14398
db137867 14399_ACEOF
db137867 14400
7083c021
AC
14401# The following way of writing the cache mishandles newlines in values,
14402# but we know of no workaround that is simple, portable, and efficient.
14403# So, we kill variables containing newlines.
14404# Ultrix sh set writes to stderr and can't be redirected directly,
14405# and sets the high bit in the cache file unless we assign to the vars.
14406(
14407 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14408 eval ac_val=\$$ac_var
14409 case $ac_val in #(
14410 *${as_nl}*)
14411 case $ac_var in #(
14412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14413$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14414 esac
14415 case $ac_var in #(
14416 _ | IFS | as_nl) ;; #(
14417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14418 *) { eval $ac_var=; unset $ac_var;} ;;
14419 esac ;;
14420 esac
14421 done
14422
14423 (set) 2>&1 |
14424 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14425 *${as_nl}ac_space=\ *)
14426 # `set' does not quote correctly, so add quotes: double-quote
14427 # substitution turns \\\\ into \\, and sed turns \\ into \.
14428 sed -n \
14429 "s/'/'\\\\''/g;
14430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14431 ;; #(
14432 *)
14433 # `set' quotes correctly as required by POSIX, so do not add quotes.
14434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14435 ;;
14436 esac |
14437 sort
14438) |
14439 sed '
14440 /^ac_cv_env_/b end
14441 t clear
14442 :clear
14443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14444 t end
14445 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14446 :end' >>confcache
14447if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14448 if test -w "$cache_file"; then
08c2568c 14449 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14451$as_echo "$as_me: updating cache $cache_file" >&6;}
08c2568c
EM
14452 if test ! -f "$cache_file" || test -h "$cache_file"; then
14453 cat confcache >"$cache_file"
14454 else
14455 case $cache_file in #(
14456 */* | ?:*)
14457 mv -f confcache "$cache_file"$$ &&
14458 mv -f "$cache_file"$$ "$cache_file" ;; #(
14459 *)
14460 mv -f confcache "$cache_file" ;;
14461 esac
14462 fi
14463 fi
7083c021
AC
14464 else
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14466$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14467 fi
14468fi
14469rm -f confcache
14470
14471test "x$prefix" = xNONE && prefix=$ac_default_prefix
14472# Let make expand exec_prefix.
14473test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
db137867 14474
7083c021 14475DEFS=-DHAVE_CONFIG_H
db137867 14476
7083c021
AC
14477ac_libobjs=
14478ac_ltlibobjs=
08c2568c 14479U=
7083c021
AC
14480for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14481 # 1. Remove the extension, and $U if already installed.
14482 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14483 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14484 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14485 # will be set to the directory where LIBOBJS objects are built.
14486 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14487 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14488done
14489LIBOBJS=$ac_libobjs
db137867 14490
7083c021 14491LTLIBOBJS=$ac_ltlibobjs
db137867 14492
db137867 14493
7083c021
AC
14494 if test -n "$EXEEXT"; then
14495 am__EXEEXT_TRUE=
14496 am__EXEEXT_FALSE='#'
14497else
14498 am__EXEEXT_TRUE='#'
14499 am__EXEEXT_FALSE=
db137867
AC
14500fi
14501
7083c021 14502if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
08c2568c 14503 as_fn_error $? "conditional \"AMDEP\" was never defined.
7083c021 14504Usually this means the macro was only invoked conditionally." "$LINENO" 5
db137867 14505fi
7083c021 14506if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
08c2568c 14507 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7083c021
AC
14508Usually this means the macro was only invoked conditionally." "$LINENO" 5
14509fi
14510if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
08c2568c 14511 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7083c021
AC
14512Usually this means the macro was only invoked conditionally." "$LINENO" 5
14513fi
f171dafb 14514
7083c021 14515if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
08c2568c 14516 as_fn_error $? "conditional \"MINGW\" was never defined.
7083c021 14517Usually this means the macro was only invoked conditionally." "$LINENO" 5
db137867 14518fi
db137867 14519
08c2568c 14520: "${CONFIG_STATUS=./config.status}"
7083c021
AC
14521ac_write_fail=0
14522ac_clean_files_save=$ac_clean_files
14523ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14524{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14525$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14526as_write_fail=0
14527cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14528#! $SHELL
14529# Generated by $as_me.
14530# Run this file to recreate the current configuration.
14531# Compiler output produced by configure, useful for debugging
14532# configure, is in config.log if it exists.
db137867 14533
7083c021
AC
14534debug=false
14535ac_cs_recheck=false
14536ac_cs_silent=false
db137867 14537
7083c021
AC
14538SHELL=\${CONFIG_SHELL-$SHELL}
14539export SHELL
14540_ASEOF
14541cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14542## -------------------- ##
14543## M4sh Initialization. ##
14544## -------------------- ##
db137867 14545
7083c021
AC
14546# Be more Bourne compatible
14547DUALCASE=1; export DUALCASE # for MKS sh
14548if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14549 emulate sh
14550 NULLCMD=:
14551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14552 # is contrary to our usage. Disable this feature.
14553 alias -g '${1+"$@"}'='"$@"'
14554 setopt NO_GLOB_SUBST
14555else
14556 case `(set -o) 2>/dev/null` in #(
14557 *posix*) :
14558 set -o posix ;; #(
14559 *) :
14560 ;;
14561esac
14562fi
db137867 14563
db137867 14564
7083c021
AC
14565as_nl='
14566'
14567export as_nl
14568# Printing a long string crashes Solaris 7 /usr/bin/printf.
14569as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14570as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14571as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14572# Prefer a ksh shell builtin over an external printf program on Solaris,
14573# but without wasting forks for bash or zsh.
14574if test -z "$BASH_VERSION$ZSH_VERSION" \
14575 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14576 as_echo='print -r --'
14577 as_echo_n='print -rn --'
14578elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14579 as_echo='printf %s\n'
14580 as_echo_n='printf %s'
db137867 14581else
7083c021
AC
14582 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14583 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14584 as_echo_n='/usr/ucb/echo -n'
14585 else
14586 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14587 as_echo_n_body='eval
14588 arg=$1;
14589 case $arg in #(
14590 *"$as_nl"*)
14591 expr "X$arg" : "X\\(.*\\)$as_nl";
14592 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14593 esac;
14594 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14595 '
14596 export as_echo_n_body
14597 as_echo_n='sh -c $as_echo_n_body as_echo'
14598 fi
14599 export as_echo_body
14600 as_echo='sh -c $as_echo_body as_echo'
db137867 14601fi
7083c021
AC
14602
14603# The user is always right.
14604if test "${PATH_SEPARATOR+set}" != set; then
14605 PATH_SEPARATOR=:
14606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14607 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14608 PATH_SEPARATOR=';'
14609 }
db137867
AC
14610fi
14611
14612
7083c021
AC
14613# IFS
14614# We need space, tab and new line, in precisely that order. Quoting is
14615# there to prevent editors from complaining about space-tab.
14616# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14617# splitting by setting IFS to empty value.)
14618IFS=" "" $as_nl"
db137867 14619
7083c021 14620# Find who we are. Look in the path if we contain no directory separator.
08c2568c 14621as_myself=
7083c021
AC
14622case $0 in #((
14623 *[\\/]* ) as_myself=$0 ;;
14624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625for as_dir in $PATH
14626do
14627 IFS=$as_save_IFS
14628 test -z "$as_dir" && as_dir=.
14629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14630 done
14631IFS=$as_save_IFS
db137867 14632
7083c021
AC
14633 ;;
14634esac
14635# We did not find ourselves, most probably we were run as `sh COMMAND'
14636# in which case we are not to be found in the path.
14637if test "x$as_myself" = x; then
14638 as_myself=$0
14639fi
14640if test ! -f "$as_myself"; then
14641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14642 exit 1
db137867 14643fi
db137867 14644
7083c021
AC
14645# Unset variables that we do not need and which cause bugs (e.g. in
14646# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14647# suppresses any "Segmentation fault" message there. '((' could
14648# trigger a bug in pdksh 5.2.14.
14649for as_var in BASH_ENV ENV MAIL MAILPATH
14650do eval test x\${$as_var+set} = xset \
14651 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14652done
14653PS1='$ '
14654PS2='> '
14655PS4='+ '
db137867 14656
7083c021
AC
14657# NLS nuisances.
14658LC_ALL=C
14659export LC_ALL
14660LANGUAGE=C
14661export LANGUAGE
db137867 14662
7083c021
AC
14663# CDPATH.
14664(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
db137867 14665
db137867 14666
08c2568c
EM
14667# as_fn_error STATUS ERROR [LINENO LOG_FD]
14668# ----------------------------------------
7083c021
AC
14669# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14670# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
08c2568c 14671# script with STATUS, using 1 if that was 0.
7083c021
AC
14672as_fn_error ()
14673{
08c2568c
EM
14674 as_status=$1; test $as_status -eq 0 && as_status=1
14675 if test "$4"; then
14676 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 14678 fi
08c2568c 14679 $as_echo "$as_me: error: $2" >&2
7083c021
AC
14680 as_fn_exit $as_status
14681} # as_fn_error
db137867 14682
db137867 14683
7083c021
AC
14684# as_fn_set_status STATUS
14685# -----------------------
14686# Set $? to STATUS, without forking.
14687as_fn_set_status ()
14688{
14689 return $1
14690} # as_fn_set_status
14691
14692# as_fn_exit STATUS
14693# -----------------
14694# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14695as_fn_exit ()
14696{
14697 set +e
14698 as_fn_set_status $1
14699 exit $1
14700} # as_fn_exit
14701
14702# as_fn_unset VAR
14703# ---------------
14704# Portably unset VAR.
14705as_fn_unset ()
14706{
14707 { eval $1=; unset $1;}
14708}
14709as_unset=as_fn_unset
14710# as_fn_append VAR VALUE
14711# ----------------------
14712# Append the text in VALUE to the end of the definition contained in VAR. Take
14713# advantage of any shell optimizations that allow amortized linear growth over
14714# repeated appends, instead of the typical quadratic growth present in naive
14715# implementations.
14716if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14717 eval 'as_fn_append ()
14718 {
14719 eval $1+=\$2
14720 }'
14721else
14722 as_fn_append ()
14723 {
14724 eval $1=\$$1\$2
14725 }
14726fi # as_fn_append
14727
14728# as_fn_arith ARG...
14729# ------------------
14730# Perform arithmetic evaluation on the ARGs, and store the result in the
14731# global $as_val. Take advantage of shells that can avoid forks. The arguments
14732# must be portable across $(()) and expr.
14733if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14734 eval 'as_fn_arith ()
14735 {
14736 as_val=$(( $* ))
14737 }'
14738else
14739 as_fn_arith ()
14740 {
14741 as_val=`expr "$@" || test $? -eq 1`
14742 }
14743fi # as_fn_arith
14744
db137867 14745
7083c021
AC
14746if expr a : '\(a\)' >/dev/null 2>&1 &&
14747 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14748 as_expr=expr
14749else
14750 as_expr=false
db137867
AC
14751fi
14752
7083c021
AC
14753if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14754 as_basename=basename
14755else
14756 as_basename=false
14757fi
db137867 14758
7083c021
AC
14759if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14760 as_dirname=dirname
db137867 14761else
7083c021 14762 as_dirname=false
db137867
AC
14763fi
14764
7083c021
AC
14765as_me=`$as_basename -- "$0" ||
14766$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14767 X"$0" : 'X\(//\)$' \| \
14768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14769$as_echo X/"$0" |
14770 sed '/^.*\/\([^/][^/]*\)\/*$/{
14771 s//\1/
14772 q
14773 }
14774 /^X\/\(\/\/\)$/{
14775 s//\1/
14776 q
14777 }
14778 /^X\/\(\/\).*/{
14779 s//\1/
14780 q
14781 }
14782 s/.*/./; q'`
db137867 14783
7083c021
AC
14784# Avoid depending upon Character Ranges.
14785as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14786as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14787as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14788as_cr_digits='0123456789'
14789as_cr_alnum=$as_cr_Letters$as_cr_digits
db137867 14790
7083c021
AC
14791ECHO_C= ECHO_N= ECHO_T=
14792case `echo -n x` in #(((((
14793-n*)
14794 case `echo 'xy\c'` in
14795 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14796 xy) ECHO_C='\c';;
14797 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14798 ECHO_T=' ';;
14799 esac;;
14800*)
14801 ECHO_N='-n';;
14802esac
14803
14804rm -f conf$$ conf$$.exe conf$$.file
14805if test -d conf$$.dir; then
14806 rm -f conf$$.dir/conf$$.file
db137867 14807else
7083c021
AC
14808 rm -f conf$$.dir
14809 mkdir conf$$.dir 2>/dev/null
db137867 14810fi
7083c021
AC
14811if (echo >conf$$.file) 2>/dev/null; then
14812 if ln -s conf$$.file conf$$ 2>/dev/null; then
14813 as_ln_s='ln -s'
14814 # ... but there are two gotchas:
14815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14817 # In both cases, we have to default to `cp -p'.
14818 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14819 as_ln_s='cp -p'
14820 elif ln conf$$.file conf$$ 2>/dev/null; then
14821 as_ln_s=ln
14822 else
14823 as_ln_s='cp -p'
14824 fi
db137867 14825else
7083c021
AC
14826 as_ln_s='cp -p'
14827fi
14828rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14829rmdir conf$$.dir 2>/dev/null
14830
14831
14832# as_fn_mkdir_p
14833# -------------
14834# Create "$as_dir" as a directory, including parents if necessary.
14835as_fn_mkdir_p ()
db137867 14836{
db137867 14837
7083c021
AC
14838 case $as_dir in #(
14839 -*) as_dir=./$as_dir;;
14840 esac
14841 test -d "$as_dir" || eval $as_mkdir_p || {
14842 as_dirs=
14843 while :; do
14844 case $as_dir in #(
14845 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14846 *) as_qdir=$as_dir;;
14847 esac
14848 as_dirs="'$as_qdir' $as_dirs"
14849 as_dir=`$as_dirname -- "$as_dir" ||
14850$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14851 X"$as_dir" : 'X\(//\)[^/]' \| \
14852 X"$as_dir" : 'X\(//\)$' \| \
14853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14854$as_echo X"$as_dir" |
14855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14856 s//\1/
14857 q
14858 }
14859 /^X\(\/\/\)[^/].*/{
14860 s//\1/
14861 q
14862 }
14863 /^X\(\/\/\)$/{
14864 s//\1/
14865 q
14866 }
14867 /^X\(\/\).*/{
14868 s//\1/
14869 q
14870 }
14871 s/.*/./; q'`
14872 test -d "$as_dir" && break
14873 done
14874 test -z "$as_dirs" || eval "mkdir $as_dirs"
08c2568c 14875 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
14876
14877
14878} # as_fn_mkdir_p
14879if mkdir -p . 2>/dev/null; then
14880 as_mkdir_p='mkdir -p "$as_dir"'
14881else
14882 test -d ./-p && rmdir ./-p
14883 as_mkdir_p=false
db137867 14884fi
7083c021
AC
14885
14886if test -x / >/dev/null 2>&1; then
14887 as_test_x='test -x'
14888else
14889 if ls -dL / >/dev/null 2>&1; then
14890 as_ls_L_option=L
14891 else
14892 as_ls_L_option=
14893 fi
14894 as_test_x='
14895 eval sh -c '\''
14896 if test -d "$1"; then
14897 test -d "$1/.";
14898 else
14899 case $1 in #(
14900 -*)set "./$1";;
14901 esac;
14902 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14903 ???[sx]*):;;*)false;;esac;fi
14904 '\'' sh
14905 '
db137867 14906fi
7083c021 14907as_executable_p=$as_test_x
db137867 14908
7083c021
AC
14909# Sed expression to map a string onto a valid CPP name.
14910as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
db137867 14911
7083c021
AC
14912# Sed expression to map a string onto a valid variable name.
14913as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
db137867 14914
db137867 14915
7083c021
AC
14916exec 6>&1
14917## ----------------------------------- ##
14918## Main body of $CONFIG_STATUS script. ##
14919## ----------------------------------- ##
14920_ASEOF
14921test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
db137867 14922
7083c021
AC
14923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14924# Save the log message, to keep $0 and so on meaningful, and to
14925# report actual input values of CONFIG_FILES etc. instead of their
14926# values after options handling.
14927ac_log="
14928This file was extended by libratbox $as_me devel, which was
08c2568c 14929generated by GNU Autoconf 2.68. Invocation command line was
db137867 14930
7083c021
AC
14931 CONFIG_FILES = $CONFIG_FILES
14932 CONFIG_HEADERS = $CONFIG_HEADERS
14933 CONFIG_LINKS = $CONFIG_LINKS
14934 CONFIG_COMMANDS = $CONFIG_COMMANDS
14935 $ $0 $@
14936
14937on `(hostname || uname -n) 2>/dev/null | sed 1q`
14938"
db137867 14939
db137867 14940_ACEOF
7083c021
AC
14941
14942case $ac_config_files in *"
14943"*) set x $ac_config_files; shift; ac_config_files=$*;;
db137867 14944esac
db137867 14945
7083c021
AC
14946case $ac_config_headers in *"
14947"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14948esac
db137867 14949
db137867 14950
7083c021
AC
14951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14952# Files that config.status was made for.
14953config_files="$ac_config_files"
14954config_headers="$ac_config_headers"
14955config_commands="$ac_config_commands"
db137867 14956
db137867 14957_ACEOF
db137867 14958
7083c021
AC
14959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14960ac_cs_usage="\
14961\`$as_me' instantiates files and other configuration actions
14962from templates according to the current configuration. Unless the files
14963and actions are specified as TAGs, all are instantiated by default.
14964
14965Usage: $0 [OPTION]... [TAG]...
14966
14967 -h, --help print this help, then exit
14968 -V, --version print version number and configuration settings, then exit
96f4052b 14969 --config print configuration, then exit
7083c021
AC
14970 -q, --quiet, --silent
14971 do not print progress messages
14972 -d, --debug don't remove temporary files
14973 --recheck update $as_me by reconfiguring in the same conditions
14974 --file=FILE[:TEMPLATE]
14975 instantiate the configuration file FILE
14976 --header=FILE[:TEMPLATE]
14977 instantiate the configuration header FILE
14978
14979Configuration files:
14980$config_files
14981
14982Configuration headers:
14983$config_headers
14984
14985Configuration commands:
14986$config_commands
14987
14988Report bugs to the package provider."
14989
db137867 14990_ACEOF
7083c021 14991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
96f4052b 14992ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7083c021
AC
14993ac_cs_version="\\
14994libratbox config.status devel
08c2568c 14995configured by $0, generated by GNU Autoconf 2.68,
96f4052b 14996 with options \\"\$ac_cs_config\\"
db137867 14997
08c2568c 14998Copyright (C) 2010 Free Software Foundation, Inc.
7083c021
AC
14999This config.status script is free software; the Free Software Foundation
15000gives unlimited permission to copy, distribute and modify it."
db137867 15001
7083c021
AC
15002ac_pwd='$ac_pwd'
15003srcdir='$srcdir'
15004INSTALL='$INSTALL'
15005MKDIR_P='$MKDIR_P'
15006AWK='$AWK'
15007test -n "\$AWK" || AWK=awk
15008_ACEOF
db137867 15009
7083c021
AC
15010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15011# The default lists apply if the user does not specify any file.
15012ac_need_defaults=:
15013while test $# != 0
15014do
15015 case $1 in
08c2568c 15016 --*=?*)
7083c021
AC
15017 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15018 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15019 ac_shift=:
15020 ;;
08c2568c
EM
15021 --*=)
15022 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15023 ac_optarg=
15024 ac_shift=:
15025 ;;
7083c021
AC
15026 *)
15027 ac_option=$1
15028 ac_optarg=$2
15029 ac_shift=shift
15030 ;;
15031 esac
15032
15033 case $ac_option in
15034 # Handling of the options.
15035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15036 ac_cs_recheck=: ;;
15037 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15038 $as_echo "$ac_cs_version"; exit ;;
96f4052b
AC
15039 --config | --confi | --conf | --con | --co | --c )
15040 $as_echo "$ac_cs_config"; exit ;;
7083c021
AC
15041 --debug | --debu | --deb | --de | --d | -d )
15042 debug=: ;;
15043 --file | --fil | --fi | --f )
15044 $ac_shift
15045 case $ac_optarg in
15046 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
08c2568c 15047 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
15048 esac
15049 as_fn_append CONFIG_FILES " '$ac_optarg'"
15050 ac_need_defaults=false;;
15051 --header | --heade | --head | --hea )
15052 $ac_shift
15053 case $ac_optarg in
15054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15055 esac
15056 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15057 ac_need_defaults=false;;
15058 --he | --h)
15059 # Conflict between --help and --header
08c2568c 15060 as_fn_error $? "ambiguous option: \`$1'
7083c021
AC
15061Try \`$0 --help' for more information.";;
15062 --help | --hel | -h )
15063 $as_echo "$ac_cs_usage"; exit ;;
15064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15065 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15066 ac_cs_silent=: ;;
15067
15068 # This is an error.
08c2568c 15069 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021
AC
15070Try \`$0 --help' for more information." ;;
15071
15072 *) as_fn_append ac_config_targets " $1"
15073 ac_need_defaults=false ;;
15074
15075 esac
15076 shift
15077done
db137867 15078
7083c021 15079ac_configure_extra_args=
c2ac22cc 15080
7083c021
AC
15081if $ac_cs_silent; then
15082 exec 6>/dev/null
15083 ac_configure_extra_args="$ac_configure_extra_args --silent"
15084fi
c2ac22cc 15085
7083c021
AC
15086_ACEOF
15087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15088if \$ac_cs_recheck; then
15089 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15090 shift
15091 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15092 CONFIG_SHELL='$SHELL'
15093 export CONFIG_SHELL
15094 exec "\$@"
c2ac22cc
VY
15095fi
15096
7083c021
AC
15097_ACEOF
15098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15099exec 5>>config.log
15100{
15101 echo
15102 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15103## Running $as_me. ##
15104_ASBOX
15105 $as_echo "$ac_log"
15106} >&5
c2ac22cc 15107
7083c021
AC
15108_ACEOF
15109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15110#
15111# INIT-COMMANDS
15112#
15113AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
c2ac22cc
VY
15114
15115
7083c021
AC
15116# The HP-UX ksh and POSIX shell print the target directory to stdout
15117# if CDPATH is set.
15118(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15119
15120sed_quote_subst='$sed_quote_subst'
15121double_quote_subst='$double_quote_subst'
15122delay_variable_subst='$delay_variable_subst'
b6d0720c
AC
15123enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15124enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15125macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15126macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15127pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15128enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15129SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15130ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
a949ab1a 15131PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
b6d0720c
AC
15132host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15133host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15134host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15135build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15136build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15137build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15138SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15139Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15140GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15141EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15142FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15143LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15144NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15145LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15146max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15147ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15148exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15149lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15150lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15151lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15152lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15153lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15154reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15155reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15156OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15157deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15158file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15159file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15160want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15161DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15162sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15163AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15164AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15165archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15166STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15167RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15168old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15169old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15170old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15171lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15172CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15173CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15174compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15175GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15176lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15177lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15178lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15179lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15180nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15181lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15182objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15183MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15184lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15185lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15186lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15187lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15188lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15189need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15190MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15191DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15192NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15193LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15194OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15195OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15196libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15197shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15198extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15199archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15200enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15201export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15202whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15203compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15204old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15205old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15206archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15207archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15208module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15209module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15210with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15211allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15212no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15213hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
b6d0720c
AC
15214hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15215hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15216hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15217hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15218hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15219hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15220inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15221link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15222always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15223export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15224exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15225include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15226prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15227postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15228file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15229variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15230need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15231need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15232version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15233runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15234shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15235shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15236libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15237library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15238soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15239install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15240postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15241postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15242finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15243finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15244hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15245sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15246sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15247hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15248enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15249enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15250enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15251old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15252striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
7083c021
AC
15253
15254LTCC='$LTCC'
15255LTCFLAGS='$LTCFLAGS'
15256compiler='$compiler_DEFAULT'
15257
b6d0720c
AC
15258# A function that is used when there is no print builtin or printf.
15259func_fallback_echo ()
15260{
15261 eval 'cat <<_LTECHO_EOF
15262\$1
15263_LTECHO_EOF'
15264}
15265
7083c021 15266# Quote evaled strings.
b6d0720c
AC
15267for var in SHELL \
15268ECHO \
a949ab1a 15269PATH_SEPARATOR \
b6d0720c 15270SED \
7083c021
AC
15271GREP \
15272EGREP \
15273FGREP \
15274LD \
15275NM \
15276LN_S \
15277lt_SP2NL \
15278lt_NL2SP \
15279reload_flag \
15280OBJDUMP \
15281deplibs_check_method \
15282file_magic_cmd \
b6d0720c
AC
15283file_magic_glob \
15284want_nocaseglob \
15285DLLTOOL \
15286sharedlib_from_linklib_cmd \
7083c021
AC
15287AR \
15288AR_FLAGS \
b6d0720c 15289archiver_list_spec \
7083c021
AC
15290STRIP \
15291RANLIB \
15292CC \
15293CFLAGS \
15294compiler \
15295lt_cv_sys_global_symbol_pipe \
15296lt_cv_sys_global_symbol_to_cdecl \
15297lt_cv_sys_global_symbol_to_c_name_address \
15298lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
b6d0720c 15299nm_file_list_spec \
7083c021 15300lt_prog_compiler_no_builtin_flag \
7083c021 15301lt_prog_compiler_pic \
b6d0720c 15302lt_prog_compiler_wl \
7083c021
AC
15303lt_prog_compiler_static \
15304lt_cv_prog_compiler_c_o \
15305need_locks \
b6d0720c 15306MANIFEST_TOOL \
7083c021
AC
15307DSYMUTIL \
15308NMEDIT \
15309LIPO \
15310OTOOL \
15311OTOOL64 \
15312shrext_cmds \
15313export_dynamic_flag_spec \
15314whole_archive_flag_spec \
15315compiler_needs_object \
15316with_gnu_ld \
15317allow_undefined_flag \
15318no_undefined_flag \
15319hardcode_libdir_flag_spec \
7083c021 15320hardcode_libdir_separator \
7083c021
AC
15321exclude_expsyms \
15322include_expsyms \
15323file_list_spec \
15324variables_saved_for_relink \
15325libname_spec \
15326library_names_spec \
15327soname_spec \
b6d0720c 15328install_override_mode \
7083c021
AC
15329finish_eval \
15330old_striplib \
15331striplib; do
b6d0720c 15332 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
7083c021 15333 *[\\\\\\\`\\"\\\$]*)
b6d0720c 15334 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
7083c021
AC
15335 ;;
15336 *)
15337 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15338 ;;
15339 esac
c2ac22cc 15340done
7083c021
AC
15341
15342# Double-quote double-evaled strings.
15343for var in reload_cmds \
15344old_postinstall_cmds \
15345old_postuninstall_cmds \
15346old_archive_cmds \
15347extract_expsyms_cmds \
15348old_archive_from_new_cmds \
15349old_archive_from_expsyms_cmds \
15350archive_cmds \
15351archive_expsym_cmds \
15352module_cmds \
15353module_expsym_cmds \
15354export_symbols_cmds \
15355prelink_cmds \
b6d0720c 15356postlink_cmds \
7083c021
AC
15357postinstall_cmds \
15358postuninstall_cmds \
15359finish_cmds \
15360sys_lib_search_path_spec \
15361sys_lib_dlsearch_path_spec; do
b6d0720c 15362 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
7083c021 15363 *[\\\\\\\`\\"\\\$]*)
b6d0720c 15364 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
7083c021
AC
15365 ;;
15366 *)
15367 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15368 ;;
15369 esac
c2ac22cc 15370done
c2ac22cc 15371
7083c021
AC
15372ac_aux_dir='$ac_aux_dir'
15373xsi_shell='$xsi_shell'
15374lt_shell_append='$lt_shell_append'
c2ac22cc 15375
7083c021
AC
15376# See if we are running on zsh, and set the options which allow our
15377# commands through without removal of \ escapes INIT.
15378if test -n "\${ZSH_VERSION+set}" ; then
15379 setopt NO_GLOB_SUBST
c2ac22cc 15380fi
c2ac22cc 15381
c2ac22cc 15382
7083c021
AC
15383 PACKAGE='$PACKAGE'
15384 VERSION='$VERSION'
15385 TIMESTAMP='$TIMESTAMP'
15386 RM='$RM'
15387 ofile='$ofile'
c2ac22cc 15388
c2ac22cc 15389
c2ac22cc 15390
c2ac22cc 15391
7083c021
AC
15392 if test x$ac_cv_header_stdc = xyes; then
15393 rb_header_stdc=yes
15394 fi
15395 if test x$ac_cv_header_stdlib_h = xyes; then
15396 rb_header_stdlib_h=yes
15397 fi
15398 if test x$ac_cv_header_string_h = xyes; then
15399 rb_header_string_h=yes
15400 fi
15401 if test x$ac_cv_header_memory_h = xyes; then
15402 rb_header_memory_h=yes
15403 fi
15404 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
15405 rb_alloca_h="$ac_cv_working_alloca_h"
15406 else
15407 rb_alloc_h="$ac_cv_header_alloca_h"
15408 fi
15409 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
15410 rb_sockaddr_sa_len=yes
15411 fi
15412 if test x$ac_cv_header_sys_socket_h = xyes; then
15413 rb_sys_socket_h=yes
15414 fi
15415 if test x$ac_cv_header_sys_types_h = xyes; then
15416 rb_sys_types_h=yes
15417 fi
15418 if test x$ac_cv_header_sys_stat_h = xyes; then
15419 rb_sys_stat_h=yes
15420 fi
15421 if test x$ac_cv_header_sys_time_h = xyes; then
15422 rb_sys_time_h=yes
15423 fi
15424 if test x$ac_cv_header_time = xyes; then
15425 rb_time_h=yes
15426 fi
c2ac22cc 15427
7083c021
AC
15428 if test x$ac_cv_header_stdint_h = xyes; then
15429 rb_stdint_h=yes
15430 fi
15431 if test x$ac_cv_header_inttypes_h = xyes; then
15432 rb_inttypes_h=yes
15433 fi
15434 if test x$ac_cv_header_netinet_in_h = xyes; then
15435 rb_netinet_in_h=yes
15436 fi
c2ac22cc 15437
7083c021
AC
15438 if test x$ac_cv_header_crypt_h = xyes; then
15439 rb_crypt_h=yes
15440 fi
15441 if test x$ac_cv_header_errno_h = xyes; then
15442 rb_errno_h=yes
15443 fi
15444 if test x$ac_cv_header_unistd_h = xyes; then
15445 rb_unistd_h=yes
15446 fi
15447 if test x$ac_cv_header_windows_h = xyes; then
15448 rb_windows_h=yes
15449 fi
15450 if test x$ac_cv_header_winsock2_h = xyes; then
15451 rb_winsock2_h=yes
15452 fi
c2ac22cc 15453
7083c021 15454 rb_socklen_t=$rb_socklen_t
c2ac22cc 15455
7083c021
AC
15456 if test "x$rb_have_sockaddr_storage" = "xyes"; then
15457 rb_sockaddr_storage="yes"
15458 else
15459 rb_sockaddr_storage="no"
15460 fi
c2ac22cc 15461
7083c021 15462 rb_have_ipv6="$have_v6"
c2ac22cc 15463
7083c021
AC
15464 rb_mv="$MV"
15465 rb_rm="$RM"
c2ac22cc 15466
c2ac22cc 15467
c2ac22cc 15468
db137867 15469
db137867 15470
c2ac22cc 15471
c2ac22cc
VY
15472_ACEOF
15473
7083c021 15474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
db137867 15475
7083c021
AC
15476# Handling of arguments.
15477for ac_config_target in $ac_config_targets
15478do
15479 case $ac_config_target in
15480 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
15481 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15482 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15483 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
15484 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15485 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15486 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
c2ac22cc 15487
08c2568c 15488 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7083c021
AC
15489 esac
15490done
c2ac22cc 15491
db137867 15492
7083c021
AC
15493# If the user did not use the arguments to specify the items to instantiate,
15494# then the envvar interface is used. Set only those that are not.
15495# We use the long form for the default assignment because of an extremely
15496# bizarre bug on SunOS 4.1.3.
15497if $ac_need_defaults; then
15498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15500 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15501fi
db137867 15502
7083c021
AC
15503# Have a temporary directory for convenience. Make it in the build tree
15504# simply because there is no reason against having it here, and in addition,
15505# creating and moving files from /tmp can sometimes cause problems.
15506# Hook for its removal unless debugging.
15507# Note that there is a small window in which the directory will not be cleaned:
15508# after its creation but before its name has been assigned to `$tmp'.
15509$debug ||
15510{
08c2568c 15511 tmp= ac_tmp=
7083c021 15512 trap 'exit_status=$?
08c2568c
EM
15513 : "${ac_tmp:=$tmp}"
15514 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7083c021
AC
15515' 0
15516 trap 'as_fn_exit 1' 1 2 13 15
15517}
15518# Create a (secure) tmp directory for tmp files.
db137867 15519
7083c021
AC
15520{
15521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
08c2568c 15522 test -d "$tmp"
7083c021
AC
15523} ||
15524{
15525 tmp=./conf$$-$RANDOM
15526 (umask 077 && mkdir "$tmp")
08c2568c
EM
15527} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15528ac_tmp=$tmp
db137867 15529
7083c021
AC
15530# Set up the scripts for CONFIG_FILES section.
15531# No need to generate them if there are no CONFIG_FILES.
15532# This happens for instance with `./config.status config.h'.
15533if test -n "$CONFIG_FILES"; then
db137867
AC
15534
15535
7083c021
AC
15536ac_cr=`echo X | tr X '\015'`
15537# On cygwin, bash can eat \r inside `` if the user requested igncr.
15538# But we know of no other shell where ac_cr would be empty at this
15539# point, so we can use a bashism as a fallback.
15540if test "x$ac_cr" = x; then
15541 eval ac_cr=\$\'\\r\'
15542fi
15543ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15544if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
08c2568c 15545 ac_cs_awk_cr='\\r'
db137867 15546else
7083c021 15547 ac_cs_awk_cr=$ac_cr
db137867
AC
15548fi
15549
08c2568c 15550echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
db137867
AC
15551_ACEOF
15552
db137867 15553
7083c021
AC
15554{
15555 echo "cat >conf$$subs.awk <<_ACEOF" &&
15556 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15557 echo "_ACEOF"
15558} >conf$$subs.sh ||
08c2568c
EM
15559 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15560ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7083c021
AC
15561ac_delim='%!_!# '
15562for ac_last_try in false false false false false :; do
15563 . ./conf$$subs.sh ||
08c2568c 15564 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
db137867 15565
7083c021
AC
15566 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15567 if test $ac_delim_n = $ac_delim_num; then
15568 break
15569 elif $ac_last_try; then
08c2568c 15570 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
15571 else
15572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15573 fi
15574done
15575rm -f conf$$subs.sh
db137867 15576
7083c021 15577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
08c2568c 15578cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
db137867 15579_ACEOF
7083c021
AC
15580sed -n '
15581h
15582s/^/S["/; s/!.*/"]=/
15583p
15584g
15585s/^[^!]*!//
15586:repl
15587t repl
15588s/'"$ac_delim"'$//
15589t delim
15590:nl
15591h
96f4052b 15592s/\(.\{148\}\)..*/\1/
7083c021
AC
15593t more1
15594s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15595p
15596n
15597b repl
15598:more1
15599s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15600p
15601g
15602s/.\{148\}//
15603t nl
15604:delim
15605h
96f4052b 15606s/\(.\{148\}\)..*/\1/
7083c021
AC
15607t more2
15608s/["\\]/\\&/g; s/^/"/; s/$/"/
15609p
15610b
15611:more2
15612s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15613p
15614g
15615s/.\{148\}//
15616t delim
15617' <conf$$subs.awk | sed '
15618/^[^""]/{
15619 N
15620 s/\n//
15621}
15622' >>$CONFIG_STATUS || ac_write_fail=1
15623rm -f conf$$subs.awk
15624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15625_ACAWK
08c2568c 15626cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
15627 for (key in S) S_is_set[key] = 1
15628 FS = "\a"
db137867 15629
7083c021
AC
15630}
15631{
15632 line = $ 0
15633 nfields = split(line, field, "@")
15634 substed = 0
15635 len = length(field[1])
15636 for (i = 2; i < nfields; i++) {
15637 key = field[i]
15638 keylen = length(key)
15639 if (S_is_set[key]) {
15640 value = S[key]
15641 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15642 len += length(value) + length(field[++i])
15643 substed = 1
15644 } else
15645 len += 1 + keylen
15646 }
db137867 15647
7083c021
AC
15648 print line
15649}
15650
15651_ACAWK
15652_ACEOF
15653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15654if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15655 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
db137867 15656else
7083c021 15657 cat
08c2568c
EM
15658fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15659 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7083c021 15660_ACEOF
db137867 15661
08c2568c
EM
15662# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15663# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7083c021
AC
15664# trailing colons and then remove the whole line if VPATH becomes empty
15665# (actually we leave an empty line to preserve line numbers).
15666if test "x$srcdir" = x.; then
08c2568c
EM
15667 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15668h
15669s///
15670s/^/:/
15671s/[ ]*$/:/
15672s/:\$(srcdir):/:/g
15673s/:\${srcdir}:/:/g
15674s/:@srcdir@:/:/g
15675s/^:*//
7083c021 15676s/:*$//
08c2568c
EM
15677x
15678s/\(=[ ]*\).*/\1/
15679G
15680s/\n//
7083c021
AC
15681s/^[^=]*=[ ]*$//
15682}'
15683fi
db137867 15684
7083c021
AC
15685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15686fi # test -n "$CONFIG_FILES"
db137867 15687
7083c021
AC
15688# Set up the scripts for CONFIG_HEADERS section.
15689# No need to generate them if there are no CONFIG_HEADERS.
15690# This happens for instance with `./config.status Makefile'.
15691if test -n "$CONFIG_HEADERS"; then
08c2568c 15692cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021 15693BEGIN {
db137867
AC
15694_ACEOF
15695
7083c021
AC
15696# Transform confdefs.h into an awk script `defines.awk', embedded as
15697# here-document in config.status, that substitutes the proper values into
15698# config.h.in to produce config.h.
db137867 15699
7083c021
AC
15700# Create a delimiter string that does not exist in confdefs.h, to ease
15701# handling of long lines.
15702ac_delim='%!_!# '
15703for ac_last_try in false false :; do
08c2568c
EM
15704 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15705 if test -z "$ac_tt"; then
7083c021
AC
15706 break
15707 elif $ac_last_try; then
08c2568c 15708 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
15709 else
15710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15711 fi
15712done
db137867 15713
7083c021
AC
15714# For the awk script, D is an array of macro values keyed by name,
15715# likewise P contains macro parameters if any. Preserve backslash
15716# newline sequences.
db137867 15717
7083c021
AC
15718ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15719sed -n '
15720s/.\{148\}/&'"$ac_delim"'/g
15721t rset
15722:rset
15723s/^[ ]*#[ ]*define[ ][ ]*/ /
15724t def
15725d
15726:def
15727s/\\$//
15728t bsnl
15729s/["\\]/\\&/g
15730s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15731D["\1"]=" \3"/p
15732s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15733d
15734:bsnl
15735s/["\\]/\\&/g
15736s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15737D["\1"]=" \3\\\\\\n"\\/p
15738t cont
15739s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15740t cont
15741d
15742:cont
15743n
15744s/.\{148\}/&'"$ac_delim"'/g
15745t clear
15746:clear
15747s/\\$//
15748t bsnlc
15749s/["\\]/\\&/g; s/^/"/; s/$/"/p
15750d
15751:bsnlc
15752s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15753b cont
15754' <confdefs.h | sed '
15755s/'"$ac_delim"'/"\\\
15756"/g' >>$CONFIG_STATUS || ac_write_fail=1
db137867 15757
7083c021
AC
15758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15759 for (key in D) D_is_set[key] = 1
15760 FS = "\a"
15761}
15762/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15763 line = \$ 0
15764 split(line, arg, " ")
15765 if (arg[1] == "#") {
15766 defundef = arg[2]
15767 mac1 = arg[3]
15768 } else {
15769 defundef = substr(arg[1], 2)
15770 mac1 = arg[2]
15771 }
15772 split(mac1, mac2, "(") #)
15773 macro = mac2[1]
15774 prefix = substr(line, 1, index(line, defundef) - 1)
15775 if (D_is_set[macro]) {
15776 # Preserve the white space surrounding the "#".
15777 print prefix "define", macro P[macro] D[macro]
15778 next
15779 } else {
15780 # Replace #undef with comments. This is necessary, for example,
15781 # in the case of _POSIX_SOURCE, which is predefined and required
15782 # on some systems where configure will not decide to define it.
15783 if (defundef == "undef") {
15784 print "/*", prefix defundef, macro, "*/"
15785 next
15786 }
15787 }
15788}
15789{ print }
15790_ACAWK
db137867 15791_ACEOF
7083c021 15792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
08c2568c 15793 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021 15794fi # test -n "$CONFIG_HEADERS"
db137867
AC
15795
15796
7083c021
AC
15797eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15798shift
15799for ac_tag
15800do
15801 case $ac_tag in
15802 :[FHLC]) ac_mode=$ac_tag; continue;;
15803 esac
15804 case $ac_mode$ac_tag in
15805 :[FHL]*:*);;
08c2568c 15806 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7083c021
AC
15807 :[FH]-) ac_tag=-:-;;
15808 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15809 esac
15810 ac_save_IFS=$IFS
15811 IFS=:
15812 set x $ac_tag
15813 IFS=$ac_save_IFS
15814 shift
15815 ac_file=$1
15816 shift
db137867 15817
7083c021
AC
15818 case $ac_mode in
15819 :L) ac_source=$1;;
15820 :[FH])
15821 ac_file_inputs=
15822 for ac_f
15823 do
15824 case $ac_f in
08c2568c 15825 -) ac_f="$ac_tmp/stdin";;
7083c021
AC
15826 *) # Look for the file first in the build tree, then in the source tree
15827 # (if the path is not absolute). The absolute path cannot be DOS-style,
15828 # because $ac_f cannot contain `:'.
15829 test -f "$ac_f" ||
15830 case $ac_f in
15831 [\\/$]*) false;;
15832 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15833 esac ||
08c2568c 15834 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7083c021
AC
15835 esac
15836 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15837 as_fn_append ac_file_inputs " '$ac_f'"
15838 done
db137867 15839
7083c021
AC
15840 # Let's still pretend it is `configure' which instantiates (i.e., don't
15841 # use $as_me), people would be surprised to read:
15842 # /* config.h. Generated by config.status. */
15843 configure_input='Generated from '`
15844 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15845 `' by configure.'
15846 if test x"$ac_file" != x-; then
15847 configure_input="$ac_file. $configure_input"
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15849$as_echo "$as_me: creating $ac_file" >&6;}
15850 fi
15851 # Neutralize special characters interpreted by sed in replacement strings.
15852 case $configure_input in #(
15853 *\&* | *\|* | *\\* )
15854 ac_sed_conf_input=`$as_echo "$configure_input" |
15855 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15856 *) ac_sed_conf_input=$configure_input;;
15857 esac
db137867 15858
7083c021 15859 case $ac_tag in
08c2568c
EM
15860 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7083c021
AC
15862 esac
15863 ;;
15864 esac
db137867 15865
7083c021
AC
15866 ac_dir=`$as_dirname -- "$ac_file" ||
15867$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15868 X"$ac_file" : 'X\(//\)[^/]' \| \
15869 X"$ac_file" : 'X\(//\)$' \| \
15870 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15871$as_echo X"$ac_file" |
15872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15873 s//\1/
15874 q
15875 }
15876 /^X\(\/\/\)[^/].*/{
15877 s//\1/
15878 q
15879 }
15880 /^X\(\/\/\)$/{
15881 s//\1/
15882 q
15883 }
15884 /^X\(\/\).*/{
15885 s//\1/
15886 q
15887 }
15888 s/.*/./; q'`
15889 as_dir="$ac_dir"; as_fn_mkdir_p
15890 ac_builddir=.
db137867 15891
7083c021
AC
15892case "$ac_dir" in
15893.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15894*)
15895 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15896 # A ".." for each directory in $ac_dir_suffix.
15897 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15898 case $ac_top_builddir_sub in
15899 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15900 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15901 esac ;;
15902esac
15903ac_abs_top_builddir=$ac_pwd
15904ac_abs_builddir=$ac_pwd$ac_dir_suffix
15905# for backward compatibility:
15906ac_top_builddir=$ac_top_build_prefix
db137867 15907
7083c021
AC
15908case $srcdir in
15909 .) # We are building in place.
15910 ac_srcdir=.
15911 ac_top_srcdir=$ac_top_builddir_sub
15912 ac_abs_top_srcdir=$ac_pwd ;;
15913 [\\/]* | ?:[\\/]* ) # Absolute name.
15914 ac_srcdir=$srcdir$ac_dir_suffix;
15915 ac_top_srcdir=$srcdir
15916 ac_abs_top_srcdir=$srcdir ;;
15917 *) # Relative name.
15918 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15919 ac_top_srcdir=$ac_top_build_prefix$srcdir
15920 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15921esac
15922ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
db137867 15923
c2ac22cc 15924
7083c021
AC
15925 case $ac_mode in
15926 :F)
15927 #
15928 # CONFIG_FILE
15929 #
db137867 15930
7083c021
AC
15931 case $INSTALL in
15932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15933 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15934 esac
15935 ac_MKDIR_P=$MKDIR_P
15936 case $MKDIR_P in
15937 [\\/$]* | ?:[\\/]* ) ;;
15938 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15939 esac
db137867
AC
15940_ACEOF
15941
7083c021
AC
15942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15943# If the template does not know about datarootdir, expand it.
15944# FIXME: This hack should be removed a few years after 2.60.
15945ac_datarootdir_hack=; ac_datarootdir_seen=
15946ac_sed_dataroot='
15947/datarootdir/ {
15948 p
15949 q
15950}
15951/@datadir@/p
15952/@docdir@/p
15953/@infodir@/p
15954/@localedir@/p
15955/@mandir@/p'
15956case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15957*datarootdir*) ac_datarootdir_seen=yes;;
15958*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15960$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15961_ACEOF
15962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15963 ac_datarootdir_hack='
15964 s&@datadir@&$datadir&g
15965 s&@docdir@&$docdir&g
15966 s&@infodir@&$infodir&g
15967 s&@localedir@&$localedir&g
15968 s&@mandir@&$mandir&g
15969 s&\\\${datarootdir}&$datarootdir&g' ;;
15970esac
db137867
AC
15971_ACEOF
15972
7083c021
AC
15973# Neutralize VPATH when `$srcdir' = `.'.
15974# Shell code in configure.ac might set extrasub.
15975# FIXME: do we really want to maintain this feature?
15976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15977ac_sed_extra="$ac_vpsub
15978$extrasub
15979_ACEOF
15980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15981:t
15982/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15983s|@configure_input@|$ac_sed_conf_input|;t t
15984s&@top_builddir@&$ac_top_builddir_sub&;t t
15985s&@top_build_prefix@&$ac_top_build_prefix&;t t
15986s&@srcdir@&$ac_srcdir&;t t
15987s&@abs_srcdir@&$ac_abs_srcdir&;t t
15988s&@top_srcdir@&$ac_top_srcdir&;t t
15989s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15990s&@builddir@&$ac_builddir&;t t
15991s&@abs_builddir@&$ac_abs_builddir&;t t
15992s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15993s&@INSTALL@&$ac_INSTALL&;t t
15994s&@MKDIR_P@&$ac_MKDIR_P&;t t
15995$ac_datarootdir_hack
15996"
08c2568c
EM
15997eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15998 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
db137867 15999
7083c021 16000test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
08c2568c
EM
16001 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16003 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 16004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
08c2568c 16005which seems to be undefined. Please make sure it is defined" >&5
7083c021 16006$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
08c2568c 16007which seems to be undefined. Please make sure it is defined" >&2;}
db137867 16008
08c2568c 16009 rm -f "$ac_tmp/stdin"
7083c021 16010 case $ac_file in
08c2568c
EM
16011 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16012 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 16013 esac \
08c2568c 16014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7083c021
AC
16015 ;;
16016 :H)
16017 #
16018 # CONFIG_HEADER
16019 #
16020 if test x"$ac_file" != x-; then
16021 {
16022 $as_echo "/* $configure_input */" \
08c2568c
EM
16023 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16024 } >"$ac_tmp/config.h" \
16025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16026 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16028$as_echo "$as_me: $ac_file is unchanged" >&6;}
16029 else
16030 rm -f "$ac_file"
08c2568c
EM
16031 mv "$ac_tmp/config.h" "$ac_file" \
16032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7083c021
AC
16033 fi
16034 else
16035 $as_echo "/* $configure_input */" \
08c2568c
EM
16036 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16037 || as_fn_error $? "could not create -" "$LINENO" 5
7083c021
AC
16038 fi
16039# Compute "$ac_file"'s index in $config_headers.
16040_am_arg="$ac_file"
16041_am_stamp_count=1
16042for _am_header in $config_headers :; do
16043 case $_am_header in
16044 $_am_arg | $_am_arg:* )
16045 break ;;
16046 * )
16047 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16048 esac
16049done
16050echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16051$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16052 X"$_am_arg" : 'X\(//\)[^/]' \| \
16053 X"$_am_arg" : 'X\(//\)$' \| \
16054 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16055$as_echo X"$_am_arg" |
16056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16057 s//\1/
16058 q
16059 }
16060 /^X\(\/\/\)[^/].*/{
16061 s//\1/
16062 q
16063 }
16064 /^X\(\/\/\)$/{
16065 s//\1/
16066 q
16067 }
16068 /^X\(\/\).*/{
16069 s//\1/
16070 q
16071 }
16072 s/.*/./; q'`/stamp-h$_am_stamp_count
16073 ;;
db137867 16074
7083c021
AC
16075 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16076$as_echo "$as_me: executing $ac_file commands" >&6;}
16077 ;;
16078 esac
db137867 16079
db137867 16080
7083c021
AC
16081 case $ac_file$ac_mode in
16082 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16083 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16084 # are listed without --file. Let's play safe and only enable the eval
16085 # if we detect the quoting.
16086 case $CONFIG_FILES in
16087 *\'*) eval set x "$CONFIG_FILES" ;;
16088 *) set x $CONFIG_FILES ;;
16089 esac
16090 shift
16091 for mf
16092 do
16093 # Strip MF so we end up with the name of the file.
16094 mf=`echo "$mf" | sed -e 's/:.*$//'`
16095 # Check whether this is an Automake generated Makefile or not.
16096 # We used to match only the files named `Makefile.in', but
16097 # some people rename them; so instead we look at the file content.
16098 # Grep'ing the first line is not enough: some people post-process
16099 # each Makefile.in and add a new line on top of each file to say so.
16100 # Grep'ing the whole file is not good either: AIX grep has a line
16101 # limit of 2048, but all sed's we know have understand at least 4000.
16102 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16103 dirpart=`$as_dirname -- "$mf" ||
16104$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16105 X"$mf" : 'X\(//\)[^/]' \| \
16106 X"$mf" : 'X\(//\)$' \| \
16107 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16108$as_echo X"$mf" |
16109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16110 s//\1/
16111 q
16112 }
16113 /^X\(\/\/\)[^/].*/{
16114 s//\1/
16115 q
16116 }
16117 /^X\(\/\/\)$/{
16118 s//\1/
16119 q
16120 }
16121 /^X\(\/\).*/{
16122 s//\1/
16123 q
16124 }
16125 s/.*/./; q'`
16126 else
16127 continue
16128 fi
16129 # Extract the definition of DEPDIR, am__include, and am__quote
16130 # from the Makefile without running `make'.
16131 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16132 test -z "$DEPDIR" && continue
16133 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16134 test -z "am__include" && continue
16135 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16136 # When using ansi2knr, U may be empty or an underscore; expand it
16137 U=`sed -n 's/^U = //p' < "$mf"`
16138 # Find all dependency output files, they are included files with
16139 # $(DEPDIR) in their names. We invoke sed twice because it is the
16140 # simplest approach to changing $(DEPDIR) to its actual value in the
16141 # expansion.
16142 for file in `sed -n "
16143 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16144 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16145 # Make sure the directory exists.
16146 test -f "$dirpart/$file" && continue
16147 fdir=`$as_dirname -- "$file" ||
16148$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16149 X"$file" : 'X\(//\)[^/]' \| \
16150 X"$file" : 'X\(//\)$' \| \
16151 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16152$as_echo X"$file" |
16153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16154 s//\1/
16155 q
16156 }
16157 /^X\(\/\/\)[^/].*/{
16158 s//\1/
16159 q
16160 }
16161 /^X\(\/\/\)$/{
16162 s//\1/
16163 q
16164 }
16165 /^X\(\/\).*/{
16166 s//\1/
16167 q
16168 }
16169 s/.*/./; q'`
16170 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16171 # echo "creating $dirpart/$file"
16172 echo '# dummy' > "$dirpart/$file"
16173 done
16174 done
16175}
16176 ;;
16177 "libtool":C)
db137867 16178
7083c021
AC
16179 # See if we are running on zsh, and set the options which allow our
16180 # commands through without removal of \ escapes.
16181 if test -n "${ZSH_VERSION+set}" ; then
16182 setopt NO_GLOB_SUBST
16183 fi
c2ac22cc 16184
7083c021
AC
16185 cfgfile="${ofile}T"
16186 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16187 $RM "$cfgfile"
db137867 16188
7083c021
AC
16189 cat <<_LT_EOF >> "$cfgfile"
16190#! $SHELL
db137867 16191
7083c021
AC
16192# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16193# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16194# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16195# NOTE: Changes made to this file will be lost: look at ltmain.sh.
db137867 16196#
7083c021 16197# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
a949ab1a
AC
16198# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16199# Foundation, Inc.
7083c021 16200# Written by Gordon Matzigkeit, 1996
db137867 16201#
7083c021
AC
16202# This file is part of GNU Libtool.
16203#
16204# GNU Libtool is free software; you can redistribute it and/or
16205# modify it under the terms of the GNU General Public License as
16206# published by the Free Software Foundation; either version 2 of
16207# the License, or (at your option) any later version.
16208#
16209# As a special exception to the GNU General Public License,
16210# if you distribute this file as part of a program or library that
16211# is built using GNU Libtool, you may include this file under the
16212# same distribution terms that you use for the rest of that program.
16213#
16214# GNU Libtool is distributed in the hope that it will be useful,
16215# but WITHOUT ANY WARRANTY; without even the implied warranty of
16216# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16217# GNU General Public License for more details.
16218#
16219# You should have received a copy of the GNU General Public License
16220# along with GNU Libtool; see the file COPYING. If not, a copy
16221# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16222# obtained by writing to the Free Software Foundation, Inc.,
16223# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
db137867 16224
db137867 16225
7083c021
AC
16226# The names of the tagged configurations supported by this script.
16227available_tags=""
db137867 16228
7083c021 16229# ### BEGIN LIBTOOL CONFIG
db137867 16230
7083c021
AC
16231# Whether or not to build static libraries.
16232build_old_libs=$enable_static
db137867 16233
7083c021
AC
16234# Whether or not to build shared libraries.
16235build_libtool_libs=$enable_shared
db137867 16236
7083c021
AC
16237# Which release of libtool.m4 was used?
16238macro_version=$macro_version
16239macro_revision=$macro_revision
db137867 16240
7083c021
AC
16241# What type of objects to build.
16242pic_mode=$pic_mode
db137867 16243
7083c021
AC
16244# Whether or not to optimize for fast installation.
16245fast_install=$enable_fast_install
db137867 16246
b6d0720c
AC
16247# Shell to use when invoking shell scripts.
16248SHELL=$lt_SHELL
16249
16250# An echo program that protects backslashes.
16251ECHO=$lt_ECHO
16252
a949ab1a
AC
16253# The PATH separator for the build system.
16254PATH_SEPARATOR=$lt_PATH_SEPARATOR
16255
7083c021
AC
16256# The host system.
16257host_alias=$host_alias
16258host=$host
16259host_os=$host_os
db137867 16260
7083c021
AC
16261# The build system.
16262build_alias=$build_alias
16263build=$build
16264build_os=$build_os
db137867 16265
7083c021
AC
16266# A sed program that does not truncate output.
16267SED=$lt_SED
db137867 16268
7083c021
AC
16269# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16270Xsed="\$SED -e 1s/^X//"
db137867 16271
7083c021
AC
16272# A grep program that handles long lines.
16273GREP=$lt_GREP
db137867 16274
7083c021
AC
16275# An ERE matcher.
16276EGREP=$lt_EGREP
db137867 16277
7083c021
AC
16278# A literal string matcher.
16279FGREP=$lt_FGREP
db137867 16280
7083c021
AC
16281# A BSD- or MS-compatible name lister.
16282NM=$lt_NM
030272f3 16283
7083c021
AC
16284# Whether we need soft or hard links.
16285LN_S=$lt_LN_S
db137867 16286
7083c021
AC
16287# What is the maximum length of a command?
16288max_cmd_len=$max_cmd_len
db137867 16289
7083c021
AC
16290# Object file suffix (normally "o").
16291objext=$ac_objext
db137867 16292
7083c021
AC
16293# Executable file suffix (normally "").
16294exeext=$exeext
db137867 16295
7083c021
AC
16296# whether the shell understands "unset".
16297lt_unset=$lt_unset
db137867 16298
7083c021
AC
16299# turn spaces into newlines.
16300SP2NL=$lt_lt_SP2NL
db137867 16301
7083c021
AC
16302# turn newlines into spaces.
16303NL2SP=$lt_lt_NL2SP
db137867 16304
b6d0720c
AC
16305# convert \$build file names to \$host format.
16306to_host_file_cmd=$lt_cv_to_host_file_cmd
16307
16308# convert \$build files to toolchain format.
16309to_tool_file_cmd=$lt_cv_to_tool_file_cmd
db137867 16310
7083c021
AC
16311# An object symbol dumper.
16312OBJDUMP=$lt_OBJDUMP
db137867 16313
7083c021
AC
16314# Method to check whether dependent libraries are shared objects.
16315deplibs_check_method=$lt_deplibs_check_method
db137867 16316
b6d0720c 16317# Command to use when deplibs_check_method = "file_magic".
7083c021 16318file_magic_cmd=$lt_file_magic_cmd
db137867 16319
b6d0720c
AC
16320# How to find potential files when deplibs_check_method = "file_magic".
16321file_magic_glob=$lt_file_magic_glob
16322
16323# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16324want_nocaseglob=$lt_want_nocaseglob
16325
16326# DLL creation program.
16327DLLTOOL=$lt_DLLTOOL
16328
16329# Command to associate shared and link libraries.
16330sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16331
7083c021
AC
16332# The archiver.
16333AR=$lt_AR
b6d0720c
AC
16334
16335# Flags to create an archive.
7083c021 16336AR_FLAGS=$lt_AR_FLAGS
db137867 16337
b6d0720c
AC
16338# How to feed a file listing to the archiver.
16339archiver_list_spec=$lt_archiver_list_spec
16340
7083c021
AC
16341# A symbol stripping program.
16342STRIP=$lt_STRIP
db137867 16343
7083c021
AC
16344# Commands used to install an old-style archive.
16345RANLIB=$lt_RANLIB
16346old_postinstall_cmds=$lt_old_postinstall_cmds
16347old_postuninstall_cmds=$lt_old_postuninstall_cmds
db137867 16348
b6d0720c
AC
16349# Whether to use a lock for old archive extraction.
16350lock_old_archive_extraction=$lock_old_archive_extraction
16351
7083c021
AC
16352# A C compiler.
16353LTCC=$lt_CC
db137867 16354
7083c021
AC
16355# LTCC compiler flags.
16356LTCFLAGS=$lt_CFLAGS
db137867 16357
7083c021
AC
16358# Take the output of nm and produce a listing of raw symbols and C names.
16359global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
db137867 16360
7083c021
AC
16361# Transform the output of nm in a proper C declaration.
16362global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
db137867 16363
7083c021
AC
16364# Transform the output of nm in a C name address pair.
16365global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
db137867 16366
7083c021
AC
16367# Transform the output of nm in a C name address pair when lib prefix is needed.
16368global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
db137867 16369
b6d0720c
AC
16370# Specify filename containing input files for \$NM.
16371nm_file_list_spec=$lt_nm_file_list_spec
db137867 16372
b6d0720c
AC
16373# The root where to search for dependent libraries,and in which our libraries should be installed.
16374lt_sysroot=$lt_sysroot
db137867 16375
b6d0720c
AC
16376# The name of the directory that contains temporary libtool files.
16377objdir=$objdir
db137867 16378
7083c021
AC
16379# Used to examine libraries when file_magic_cmd begins with "file".
16380MAGIC_CMD=$MAGIC_CMD
16381
16382# Must we lock files when doing compilation?
16383need_locks=$lt_need_locks
db137867 16384
b6d0720c
AC
16385# Manifest tool.
16386MANIFEST_TOOL=$lt_MANIFEST_TOOL
16387
7083c021
AC
16388# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16389DSYMUTIL=$lt_DSYMUTIL
db137867 16390
7083c021
AC
16391# Tool to change global to local symbols on Mac OS X.
16392NMEDIT=$lt_NMEDIT
db137867 16393
7083c021
AC
16394# Tool to manipulate fat objects and archives on Mac OS X.
16395LIPO=$lt_LIPO
db137867 16396
7083c021
AC
16397# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16398OTOOL=$lt_OTOOL
db137867 16399
7083c021
AC
16400# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16401OTOOL64=$lt_OTOOL64
db137867 16402
7083c021
AC
16403# Old archive suffix (normally "a").
16404libext=$libext
db137867 16405
7083c021
AC
16406# Shared library suffix (normally ".so").
16407shrext_cmds=$lt_shrext_cmds
db137867 16408
7083c021
AC
16409# The commands to extract the exported symbol list from a shared archive.
16410extract_expsyms_cmds=$lt_extract_expsyms_cmds
db137867 16411
7083c021
AC
16412# Variables whose values should be saved in libtool wrapper scripts and
16413# restored at link time.
16414variables_saved_for_relink=$lt_variables_saved_for_relink
030272f3 16415
7083c021
AC
16416# Do we need the "lib" prefix for modules?
16417need_lib_prefix=$need_lib_prefix
030272f3 16418
7083c021
AC
16419# Do we need a version for libraries?
16420need_version=$need_version
030272f3 16421
7083c021
AC
16422# Library versioning type.
16423version_type=$version_type
db137867 16424
7083c021
AC
16425# Shared library runtime path variable.
16426runpath_var=$runpath_var
db137867 16427
7083c021
AC
16428# Shared library path variable.
16429shlibpath_var=$shlibpath_var
db137867 16430
7083c021
AC
16431# Is shlibpath searched before the hard-coded library search path?
16432shlibpath_overrides_runpath=$shlibpath_overrides_runpath
db137867 16433
7083c021
AC
16434# Format of library name prefix.
16435libname_spec=$lt_libname_spec
db137867 16436
7083c021
AC
16437# List of archive names. First name is the real one, the rest are links.
16438# The last name is the one that the linker finds with -lNAME
16439library_names_spec=$lt_library_names_spec
db137867 16440
7083c021
AC
16441# The coded name of the library, if different from the real name.
16442soname_spec=$lt_soname_spec
db137867 16443
b6d0720c
AC
16444# Permission mode override for installation of shared libraries.
16445install_override_mode=$lt_install_override_mode
16446
7083c021
AC
16447# Command to use after installation of a shared archive.
16448postinstall_cmds=$lt_postinstall_cmds
db137867 16449
7083c021
AC
16450# Command to use after uninstallation of a shared archive.
16451postuninstall_cmds=$lt_postuninstall_cmds
db137867 16452
7083c021
AC
16453# Commands used to finish a libtool library installation in a directory.
16454finish_cmds=$lt_finish_cmds
db137867 16455
7083c021
AC
16456# As "finish_cmds", except a single script fragment to be evaled but
16457# not shown.
16458finish_eval=$lt_finish_eval
db137867 16459
7083c021
AC
16460# Whether we should hardcode library paths into libraries.
16461hardcode_into_libs=$hardcode_into_libs
db137867 16462
7083c021
AC
16463# Compile-time system search path for libraries.
16464sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
db137867 16465
7083c021
AC
16466# Run-time system search path for libraries.
16467sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
db137867 16468
7083c021
AC
16469# Whether dlopen is supported.
16470dlopen_support=$enable_dlopen
db137867 16471
7083c021
AC
16472# Whether dlopen of programs is supported.
16473dlopen_self=$enable_dlopen_self
db137867 16474
7083c021
AC
16475# Whether dlopen of statically linked programs is supported.
16476dlopen_self_static=$enable_dlopen_self_static
db137867 16477
7083c021
AC
16478# Commands to strip libraries.
16479old_striplib=$lt_old_striplib
16480striplib=$lt_striplib
db137867 16481
db137867 16482
7083c021
AC
16483# The linker used to build libraries.
16484LD=$lt_LD
db137867 16485
b6d0720c
AC
16486# How to create reloadable object files.
16487reload_flag=$lt_reload_flag
16488reload_cmds=$lt_reload_cmds
16489
7083c021
AC
16490# Commands used to build an old-style archive.
16491old_archive_cmds=$lt_old_archive_cmds
db137867 16492
7083c021
AC
16493# A language specific compiler.
16494CC=$lt_compiler
db137867 16495
7083c021
AC
16496# Is the compiler the GNU compiler?
16497with_gcc=$GCC
db137867 16498
7083c021
AC
16499# Compiler flag to turn off builtin functions.
16500no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
db137867 16501
7083c021
AC
16502# Additional compiler flags for building library objects.
16503pic_flag=$lt_lt_prog_compiler_pic
16504
b6d0720c
AC
16505# How to pass a linker flag through the compiler.
16506wl=$lt_lt_prog_compiler_wl
16507
7083c021
AC
16508# Compiler flag to prevent dynamic linking.
16509link_static_flag=$lt_lt_prog_compiler_static
16510
16511# Does compiler simultaneously support -c and -o options?
16512compiler_c_o=$lt_lt_cv_prog_compiler_c_o
a9fb3ed0 16513
7083c021
AC
16514# Whether or not to add -lc for building shared libraries.
16515build_libtool_need_lc=$archive_cmds_need_lc
a9fb3ed0 16516
7083c021
AC
16517# Whether or not to disallow shared libs when runtime libs are static.
16518allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
db137867 16519
7083c021
AC
16520# Compiler flag to allow reflexive dlopens.
16521export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
db137867 16522
7083c021
AC
16523# Compiler flag to generate shared objects directly from archives.
16524whole_archive_flag_spec=$lt_whole_archive_flag_spec
db137867 16525
7083c021
AC
16526# Whether the compiler copes with passing no objects directly.
16527compiler_needs_object=$lt_compiler_needs_object
db137867 16528
7083c021
AC
16529# Create an old-style archive from a shared archive.
16530old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
db137867 16531
7083c021
AC
16532# Create a temporary old-style archive to link instead of a shared archive.
16533old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
db137867 16534
7083c021
AC
16535# Commands used to build a shared archive.
16536archive_cmds=$lt_archive_cmds
16537archive_expsym_cmds=$lt_archive_expsym_cmds
db137867 16538
7083c021
AC
16539# Commands used to build a loadable module if different from building
16540# a shared archive.
16541module_cmds=$lt_module_cmds
16542module_expsym_cmds=$lt_module_expsym_cmds
db137867 16543
7083c021
AC
16544# Whether we are building with GNU ld or not.
16545with_gnu_ld=$lt_with_gnu_ld
db137867 16546
7083c021
AC
16547# Flag that allows shared libraries with undefined symbols to be built.
16548allow_undefined_flag=$lt_allow_undefined_flag
db137867 16549
7083c021
AC
16550# Flag that enforces no undefined symbols.
16551no_undefined_flag=$lt_no_undefined_flag
db137867 16552
7083c021
AC
16553# Flag to hardcode \$libdir into a binary during linking.
16554# This must work even if \$libdir does not exist
16555hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
db137867 16556
7083c021
AC
16557# Whether we need a single "-rpath" flag with a separated argument.
16558hardcode_libdir_separator=$lt_hardcode_libdir_separator
db137867 16559
7083c021
AC
16560# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16561# DIR into the resulting binary.
16562hardcode_direct=$hardcode_direct
db137867 16563
7083c021
AC
16564# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16565# DIR into the resulting binary and the resulting library dependency is
16566# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16567# library is relocated.
16568hardcode_direct_absolute=$hardcode_direct_absolute
db137867 16569
7083c021
AC
16570# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16571# into the resulting binary.
16572hardcode_minus_L=$hardcode_minus_L
db137867 16573
7083c021
AC
16574# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16575# into the resulting binary.
16576hardcode_shlibpath_var=$hardcode_shlibpath_var
db137867 16577
7083c021
AC
16578# Set to "yes" if building a shared library automatically hardcodes DIR
16579# into the library and all subsequent libraries and executables linked
16580# against it.
16581hardcode_automatic=$hardcode_automatic
db137867 16582
7083c021
AC
16583# Set to yes if linker adds runtime paths of dependent libraries
16584# to runtime path list.
16585inherit_rpath=$inherit_rpath
db137867 16586
7083c021
AC
16587# Whether libtool must link a program against all its dependency libraries.
16588link_all_deplibs=$link_all_deplibs
db137867 16589
7083c021
AC
16590# Set to "yes" if exported symbols are required.
16591always_export_symbols=$always_export_symbols
030272f3 16592
7083c021
AC
16593# The commands to list exported symbols.
16594export_symbols_cmds=$lt_export_symbols_cmds
db137867 16595
7083c021
AC
16596# Symbols that should not be listed in the preloaded symbols.
16597exclude_expsyms=$lt_exclude_expsyms
030272f3 16598
7083c021
AC
16599# Symbols that must always be exported.
16600include_expsyms=$lt_include_expsyms
db137867 16601
7083c021
AC
16602# Commands necessary for linking programs (against libraries) with templates.
16603prelink_cmds=$lt_prelink_cmds
db137867 16604
b6d0720c
AC
16605# Commands necessary for finishing linking programs.
16606postlink_cmds=$lt_postlink_cmds
16607
7083c021
AC
16608# Specify filename containing input files.
16609file_list_spec=$lt_file_list_spec
db137867 16610
7083c021
AC
16611# How to hardcode a shared library path into an executable.
16612hardcode_action=$hardcode_action
db137867 16613
7083c021 16614# ### END LIBTOOL CONFIG
030272f3 16615
7083c021
AC
16616_LT_EOF
16617
16618 case $host_os in
16619 aix3*)
16620 cat <<\_LT_EOF >> "$cfgfile"
16621# AIX sometimes has problems with the GCC collect2 program. For some
16622# reason, if we set the COLLECT_NAMES environment variable, the problems
16623# vanish in a puff of smoke.
16624if test "X${COLLECT_NAMES+set}" != Xset; then
16625 COLLECT_NAMES=
16626 export COLLECT_NAMES
16627fi
16628_LT_EOF
16629 ;;
16630 esac
030272f3 16631
030272f3 16632
7083c021 16633ltmain="$ac_aux_dir/ltmain.sh"
030272f3 16634
030272f3 16635
7083c021
AC
16636 # We use sed instead of cat because bash on DJGPP gets confused if
16637 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16638 # text mode, it properly converts lines to CR/LF. This bash problem
16639 # is reportedly fixed, but why not run on old versions too?
b6d0720c
AC
16640 sed '$q' "$ltmain" >> "$cfgfile" \
16641 || (rm -f "$cfgfile"; exit 1)
16642
16643 if test x"$xsi_shell" = xyes; then
16644 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16645func_dirname ()\
16646{\
16647\ case ${1} in\
16648\ */*) func_dirname_result="${1%/*}${2}" ;;\
16649\ * ) func_dirname_result="${3}" ;;\
16650\ esac\
16651} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16652 && mv -f "$cfgfile.tmp" "$cfgfile" \
16653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16654test 0 -eq $? || _lt_function_replace_fail=:
16655
16656
16657 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16658func_basename ()\
16659{\
16660\ func_basename_result="${1##*/}"\
16661} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16662 && mv -f "$cfgfile.tmp" "$cfgfile" \
16663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16664test 0 -eq $? || _lt_function_replace_fail=:
16665
16666
16667 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16668func_dirname_and_basename ()\
16669{\
16670\ case ${1} in\
16671\ */*) func_dirname_result="${1%/*}${2}" ;;\
16672\ * ) func_dirname_result="${3}" ;;\
16673\ esac\
16674\ func_basename_result="${1##*/}"\
16675} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16676 && mv -f "$cfgfile.tmp" "$cfgfile" \
16677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16678test 0 -eq $? || _lt_function_replace_fail=:
16679
16680
16681 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16682func_stripname ()\
16683{\
16684\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16685\ # positional parameters, so assign one to ordinary parameter first.\
16686\ func_stripname_result=${3}\
16687\ func_stripname_result=${func_stripname_result#"${1}"}\
16688\ func_stripname_result=${func_stripname_result%"${2}"}\
16689} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16690 && mv -f "$cfgfile.tmp" "$cfgfile" \
16691 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16692test 0 -eq $? || _lt_function_replace_fail=:
16693
16694
16695 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16696func_split_long_opt ()\
16697{\
16698\ func_split_long_opt_name=${1%%=*}\
16699\ func_split_long_opt_arg=${1#*=}\
16700} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16701 && mv -f "$cfgfile.tmp" "$cfgfile" \
16702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16703test 0 -eq $? || _lt_function_replace_fail=:
16704
16705
16706 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16707func_split_short_opt ()\
16708{\
16709\ func_split_short_opt_arg=${1#??}\
16710\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16711} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16712 && mv -f "$cfgfile.tmp" "$cfgfile" \
16713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16714test 0 -eq $? || _lt_function_replace_fail=:
16715
16716
16717 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16718func_lo2o ()\
16719{\
16720\ case ${1} in\
16721\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16722\ *) func_lo2o_result=${1} ;;\
16723\ esac\
16724} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16725 && mv -f "$cfgfile.tmp" "$cfgfile" \
16726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16727test 0 -eq $? || _lt_function_replace_fail=:
16728
16729
16730 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16731func_xform ()\
16732{\
16733 func_xform_result=${1%.*}.lo\
16734} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16735 && mv -f "$cfgfile.tmp" "$cfgfile" \
16736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16737test 0 -eq $? || _lt_function_replace_fail=:
16738
16739
16740 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16741func_arith ()\
16742{\
16743 func_arith_result=$(( $* ))\
16744} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16745 && mv -f "$cfgfile.tmp" "$cfgfile" \
16746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16747test 0 -eq $? || _lt_function_replace_fail=:
16748
16749
16750 sed -e '/^func_len ()$/,/^} # func_len /c\
16751func_len ()\
16752{\
16753 func_len_result=${#1}\
16754} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16755 && mv -f "$cfgfile.tmp" "$cfgfile" \
16756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16757test 0 -eq $? || _lt_function_replace_fail=:
16758
16759fi
16760
16761if test x"$lt_shell_append" = xyes; then
16762 sed -e '/^func_append ()$/,/^} # func_append /c\
16763func_append ()\
16764{\
16765 eval "${1}+=\\${2}"\
16766} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16767 && mv -f "$cfgfile.tmp" "$cfgfile" \
16768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16769test 0 -eq $? || _lt_function_replace_fail=:
16770
16771
16772 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16773func_append_quoted ()\
16774{\
16775\ func_quote_for_eval "${2}"\
16776\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16777} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16778 && mv -f "$cfgfile.tmp" "$cfgfile" \
16779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16780test 0 -eq $? || _lt_function_replace_fail=:
16781
16782
16783 # Save a `func_append' function call where possible by direct use of '+='
16784 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16785 && mv -f "$cfgfile.tmp" "$cfgfile" \
16786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16787 test 0 -eq $? || _lt_function_replace_fail=:
16788else
16789 # Save a `func_append' function call even when '+=' is not available
16790 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16791 && mv -f "$cfgfile.tmp" "$cfgfile" \
16792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16793 test 0 -eq $? || _lt_function_replace_fail=:
16794fi
16795
16796if test x"$_lt_function_replace_fail" = x":"; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16798$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16799fi
16800
16801
16802 mv -f "$cfgfile" "$ofile" ||
7083c021
AC
16803 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16804 chmod +x "$ofile"
16805
db137867
AC
16806 ;;
16807 "include/librb-config.h":C)
16808 outfile=include/librb-config.h.tmp
16809 cat > $outfile <<\_______EOF
16810/*
16811 * librb-config.h: libratbox config file. Please modify configure.ac
16812 */
16813
16814#ifndef __LIBRB_CONFIG_H
16815#define __LIBRB_CONFIG_H
16816
16817_______EOF
16818
16819if test "x$rb_have_ipv6" = "xyes"; then
16820 echo "#define RB_IPV6 1" >> $outfile
16821fi
16822
16823if test "x$rb_windows_h" = "xyes"; then
16824 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
16825 echo '#include <windows.h>' >> $outfile
16826 echo '#include <winsock2.h>' >> $outfile
16827 echo '#include <iphlpapi.h>' >> $outfile
16828fi
16829
16830if test "x$rb_alloca_h" = "xyes"; then
16831 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
16832fi
16833
16834if test "x$rb_header_stdc" = "xyes"; then
16835 echo '#include <stdlib.h>' >> $outfile
16836 echo '#include <stddef.h>' >> $outfile
16837elif test "x$rb_header_stdlib" = "xyes"; then
16838 echo '#include <stdlib.h>' >> $outfile
16839fi
16840
16841if test "x$rb_header_string_h" = "xyes"; then
16842 echo '#include <string.h>' >> $outfile
16843fi
16844
16845if test "x$rb_stdint_h" = "xyes"; then
16846 echo '#include <stdint.h>' >> $outfile
16847fi
16848
16849if test "x$rb_inttypes_h" = "xyes"; then
16850 echo '#include <inttypes.h>' >> $outfile
16851fi
16852
16853if test "x$rb_sys_types_h" = "xyes"; then
16854 echo '#include <sys/types.h>' >> $outfile
16855fi
16856if test "x$rb_sys_time_h" = "xyes"; then
16857 echo '#include <sys/time.h>' >> $outfile
16858fi
16859if test "x$rb_sys_stat_h" = "xyes"; then
16860 echo '#include <sys/stat.h>' >> $outfile
16861fi
16862if test "x$rb_time_h" = "xyes"; then
16863 echo '#include <time.h>' >> $outfile
16864fi
16865
16866if test "x$rb_sys_socket_h" = "xyes"; then
16867 echo '#include <sys/socket.h>' >> $outfile
16868fi
16869
16870if test "x$rb_netinet_in_h" = "xyes"; then
16871 echo '#include <netinet/in.h>' >> $outfile
16872fi
16873
16874if test "x$rb_arpa_inet_h" = "xyes"; then
16875 echo '#include <arpa/inet.h>' >> $outfile
16876fi
16877
16878if test "x$rb_unistd_h" = "xyes"; then
16879 echo '#include <unistd.h>' >> $outfile
16880fi
16881
16882if test "x$rb_crypt_h" = "xyes"; then
16883 echo '#include <crypt.h>' >> $outfile
16884fi
16885
16886if test "x$rb_errno_h" = "xyes"; then
16887 echo '#include <errno.h>' >> $outfile
16888fi
16889
a9fb3ed0
VY
16890echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
16891
16892
db137867
AC
16893if test "x$rb_sockaddr_sa_len" = "xyes"; then
16894 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
16895fi
16896
db137867
AC
16897if test "x$rb_sockaddr_storage" = "xyes"; then
16898 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
16899else
3202e249 16900 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
db137867
AC
16901fi
16902
16903cat >> $outfile <<\_______EOF
16904#endif /* __LIBRB_CONFIG_H */
16905_______EOF
16906
16907if cmp -s $outfile include/librb-config.h; then
7083c021 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
030272f3 16909$as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
db137867
AC
16910 ${rb_rm} -f $outfile
16911else
16912 ${rb_mv} $outfile include/librb-config.h
16913fi
16914
16915 ;;
16916
16917 esac
16918done # for ac_tag
16919
16920
7083c021 16921as_fn_exit 0
db137867 16922_ACEOF
db137867
AC
16923ac_clean_files=$ac_clean_files_save
16924
030272f3 16925test $ac_write_fail = 0 ||
08c2568c 16926 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
030272f3 16927
db137867
AC
16928
16929# configure is writing to config.log, and then calls config.status.
16930# config.status does its own redirection, appending to config.log.
16931# Unfortunately, on DOS this fails, as config.log is still kept open
16932# by configure, so config.status won't be able to write to it; its
16933# output is simply discarded. So we exec the FD to /dev/null,
16934# effectively closing config.log, so it can be properly (re)opened and
16935# appended to by config.status. When coming back to configure, we
16936# need to make the FD available again.
16937if test "$no_create" != yes; then
16938 ac_cs_success=:
16939 ac_config_status_args=
16940 test "$silent" = yes &&
16941 ac_config_status_args="$ac_config_status_args --quiet"
16942 exec 5>/dev/null
16943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16944 exec 5>>config.log
16945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16946 # would make configure fail if this is the last instruction.
08c2568c 16947 $ac_cs_success || as_fn_exit 1
db137867 16948fi
030272f3 16949if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7083c021 16950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
030272f3
VY
16951$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16952fi
db137867 16953
db137867
AC
16954
16955
16956echo
16957echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
16958echo
16959
16960echo "Installing into: $prefix"
16961
16962echo "IPv6 support ................... $have_v6"
16963echo "Assert debugging ............... $assert"
16964echo "Block allocator ................ $balloc"
c2ac22cc 16965echo "SSL Type........................ $SSL_TYPE"
db137867
AC
16966echo
16967