]> jfr.im git - solanum.git/blame - libratbox/configure
Pedantry: Make indentation consistent in example and reference confs.
[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
624GNUTLS_LIBS
625GNUTLS_CFLAGS
626PKG_CONFIG
627ALLOCA
030272f3
VY
628MINGW_FALSE
629MINGW_TRUE
7083c021
AC
630OTOOL64
631OTOOL
632LIPO
030272f3
VY
633NMEDIT
634DSYMUTIL
b6d0720c 635MANIFEST_TOOL
030272f3 636RANLIB
b6d0720c 637ac_ct_AR
030272f3 638AR
b6d0720c 639DLLTOOL
7083c021 640OBJDUMP
030272f3 641LN_S
7083c021
AC
642NM
643ac_ct_DUMPBIN
644DUMPBIN
645LD
646FGREP
030272f3
VY
647host_os
648host_vendor
649host_cpu
650host
651build_os
652build_vendor
653build_cpu
654build
7083c021 655LIBTOOL
030272f3
VY
656TOUCH
657LN
658MV
659CP
660RM
661AS
662MAINT
663MAINTAINER_MODE_FALSE
664MAINTAINER_MODE_TRUE
665SED
666EGREP
667GREP
668CPP
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672AMDEPBACKSLASH
673AMDEP_FALSE
674AMDEP_TRUE
675am__quote
676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685am__untar
686am__tar
687AMTAR
688am__leading_dot
689SET_MAKE
690AWK
691mkdir_p
692MKDIR_P
693INSTALL_STRIP_PROGRAM
694STRIP
695install_sh
696MAKEINFO
697AUTOHEADER
698AUTOMAKE
699AUTOCONF
700ACLOCAL
701VERSION
702PACKAGE
703CYGPATH_W
704am__isrc
705INSTALL_DATA
706INSTALL_SCRIPT
707INSTALL_PROGRAM
708target_alias
709host_alias
db137867 710build_alias
030272f3
VY
711LIBS
712ECHO_T
713ECHO_N
714ECHO_C
715DEFS
716mandir
717localedir
718libdir
719psdir
720pdfdir
721dvidir
722htmldir
723infodir
724docdir
725oldincludedir
726includedir
727localstatedir
728sharedstatedir
729sysconfdir
730datadir
731datarootdir
732libexecdir
733sbindir
734bindir
735program_transform_name
736prefix
737exec_prefix
7083c021 738PACKAGE_URL
030272f3
VY
739PACKAGE_BUGREPORT
740PACKAGE_STRING
741PACKAGE_VERSION
742PACKAGE_TARNAME
743PACKAGE_NAME
744PATH_SEPARATOR
745SHELL'
746ac_subst_files=''
747ac_user_opts='
748enable_option_checking
749enable_dependency_tracking
750enable_static
751enable_shared
752enable_maintainer_mode
7083c021 753with_pic
030272f3
VY
754enable_fast_install
755with_gnu_ld
b6d0720c 756with_sysroot
030272f3 757enable_libtool_lock
030272f3
VY
758enable_ipv6
759enable_openssl
760enable_gnutls
761enable_assert
762enable_profile
763enable_balloc
764enable_warnings
765'
766 ac_precious_vars='build_alias
db137867
AC
767host_alias
768target_alias
db137867
AC
769CC
770CFLAGS
771LDFLAGS
030272f3 772LIBS
db137867 773CPPFLAGS
db137867 774CPP
709c1951
AC
775PKG_CONFIG
776GNUTLS_CFLAGS
777GNUTLS_LIBS'
3202e249 778
db137867
AC
779
780# Initialize some variables set by options.
781ac_init_help=
782ac_init_version=false
030272f3
VY
783ac_unrecognized_opts=
784ac_unrecognized_sep=
db137867
AC
785# The variables have the same names as the options, with
786# dashes changed to underlines.
787cache_file=/dev/null
788exec_prefix=NONE
789no_create=
790no_recursion=
791prefix=NONE
792program_prefix=NONE
793program_suffix=NONE
794program_transform_name=s,x,x,
795silent=
796site=
797srcdir=
798verbose=
799x_includes=NONE
800x_libraries=NONE
801
802# Installation directory options.
803# These are left unexpanded so users can "make install exec_prefix=/foo"
804# and all the variables that are supposed to be based on exec_prefix
805# by default will actually change.
806# Use braces instead of parens because sh, perl, etc. also accept them.
807# (The list follows the same order as the GNU Coding Standards.)
808bindir='${exec_prefix}/bin'
809sbindir='${exec_prefix}/sbin'
810libexecdir='${exec_prefix}/libexec'
811datarootdir='${prefix}/share'
812datadir='${datarootdir}'
813sysconfdir='${prefix}/etc'
814sharedstatedir='${prefix}/com'
815localstatedir='${prefix}/var'
816includedir='${prefix}/include'
817oldincludedir='/usr/include'
818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819infodir='${datarootdir}/info'
820htmldir='${docdir}'
821dvidir='${docdir}'
822pdfdir='${docdir}'
823psdir='${docdir}'
824libdir='${exec_prefix}/lib'
825localedir='${datarootdir}/locale'
826mandir='${datarootdir}/man'
827
828ac_prev=
829ac_dashdash=
830for ac_option
831do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
08c2568c
EM
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
db137867
AC
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
030272f3 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
db137867 885 # Reject names that are not valid shell variable names.
030272f3 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 887 as_fn_error $? "invalid feature name: $ac_useropt"
030272f3
VY
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892"enable_$ac_useropt"
893"*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
db137867
AC
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
030272f3 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
db137867 911 # Reject names that are not valid shell variable names.
030272f3 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 913 as_fn_error $? "invalid feature name: $ac_useropt"
030272f3
VY
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
db137867
AC
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
030272f3 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
db137867 1115 # Reject names that are not valid shell variable names.
030272f3 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 1117 as_fn_error $? "invalid package name: $ac_useropt"
030272f3
VY
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
db137867
AC
1128
1129 -without-* | --without-*)
030272f3 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
db137867 1131 # Reject names that are not valid shell variable names.
030272f3 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 1133 as_fn_error $? "invalid package name: $ac_useropt"
030272f3
VY
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
db137867
AC
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
08c2568c
EM
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164Try \`$0 --help' for more information"
db137867
AC
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
7083c021
AC
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
08c2568c 1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1173 esac
db137867
AC
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
030272f3 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
db137867 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
030272f3 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
08c2568c 1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
db137867
AC
1183 ;;
1184
1185 esac
1186done
1187
1188if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
08c2568c 1190 as_fn_error $? "missing argument to $ac_option"
db137867
AC
1191fi
1192
030272f3
VY
1193if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
08c2568c 1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
030272f3
VY
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199fi
1200
1201# Check all directory arguments for consistency.
db137867
AC
1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206do
1207 eval ac_val=\$$ac_var
030272f3
VY
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
db137867
AC
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
08c2568c 1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
db137867
AC
1220done
1221
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
08c2568c
EM
1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used" >&2
db137867
AC
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
08c2568c 1249 as_fn_error $? "working directory cannot be determined"
db137867 1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
08c2568c 1251 as_fn_error $? "pwd does not report name of working directory"
db137867
AC
1252
1253
1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
030272f3
VY
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
db137867
AC
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
1288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
08c2568c 1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
db137867
AC
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
08c2568c 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
db137867
AC
1295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320\`configure' configures libratbox devel to adapt to many kinds of systems.
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
08c2568c 1334 -q, --quiet, --silent do not print \`checking ...' messages
db137867
AC
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
030272f3 1342 [$ac_default_prefix]
db137867 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
030272f3 1344 [PREFIX]
db137867
AC
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
030272f3
VY
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
db137867
AC
1373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of libratbox devel:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394Optional Features:
030272f3 1395 --disable-option-checking ignore unrecognized --enable/--with options
db137867
AC
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --disable-dependency-tracking speeds up one-time build
1399 --enable-dependency-tracking do not reject slow dependency extractors
1400 --enable-static[=PKGS] build static libraries [default=no]
1401 --enable-shared[=PKGS] build shared libraries [default=yes]
1402 --enable-maintainer-mode enable make rules and dependencies not useful
1403 (and sometimes confusing) to the casual installer
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1407 --disable-ipv6 Disable IPv6 support
1408 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1409 --disable-openssl Disable OpenSSL support.
c2ac22cc
VY
1410 --enable-gnutls Enable GnuTLS support.
1411 --disable-gnutls Disable GnuTLS support.
db137867
AC
1412 --enable-assert Enable assert(). Choose between soft(warnings) and
1413 hard(aborts the daemon)
1414 --enable-profile Enable profiling
1415 --disable-balloc Disable the block allocator.
1416 --enable-warnings Enable all sorts of warnings for debugging.
1417
1418Optional Packages:
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
db137867
AC
1421 --with-pic try to use only PIC/non-PIC objects [default=use
1422 both]
7083c021 1423 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b6d0720c
AC
1424 --with-sysroot=DIR Search for dependent libraries within DIR
1425 (or the compiler's sysroot if not specified).
db137867
AC
1426
1427Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
96f4052b 1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
db137867
AC
1434 you have headers in a nonstandard directory <include dir>
1435 CPP C preprocessor
709c1951
AC
1436 PKG_CONFIG path to pkg-config utility
1437 GNUTLS_CFLAGS
1438 C compiler flags for GNUTLS, overriding pkg-config
1439 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
db137867
AC
1440
1441Use these variables to override the choices made by `configure' or to help
1442it to find libraries and programs with nonstandard names/locations.
1443
7083c021 1444Report bugs to the package provider.
db137867
AC
1445_ACEOF
1446ac_status=$?
1447fi
1448
1449if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
030272f3
VY
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
db137867
AC
1455 ac_builddir=.
1456
1457case "$ac_dir" in
1458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459*)
030272f3 1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
db137867 1461 # A ".." for each directory in $ac_dir_suffix.
030272f3 1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
db137867
AC
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467esac
1468ac_abs_top_builddir=$ac_pwd
1469ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470# for backward compatibility:
1471ac_top_builddir=$ac_top_build_prefix
1472
1473case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486esac
1487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
030272f3 1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
db137867
AC
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1502fi
1503
1504test -n "$ac_init_help" && exit $ac_status
1505if $ac_init_version; then
1506 cat <<\_ACEOF
1507libratbox configure devel
08c2568c 1508generated by GNU Autoconf 2.68
db137867 1509
08c2568c 1510Copyright (C) 2010 Free Software Foundation, Inc.
db137867
AC
1511This configure script is free software; the Free Software Foundation
1512gives unlimited permission to copy, distribute and modify it.
1513
030272f3 1514$Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
db137867
AC
1515_ACEOF
1516 exit
1517fi
7083c021
AC
1518
1519## ------------------------ ##
1520## Autoconf initialization. ##
1521## ------------------------ ##
1522
1523# ac_fn_c_try_compile LINENO
1524# --------------------------
1525# Try to compile conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_c_try_compile ()
1527{
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534esac
1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536$as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550else
1551 $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555fi
08c2568c 1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1557 as_fn_set_status $ac_retval
7083c021
AC
1558
1559} # ac_fn_c_try_compile
1560
1561# ac_fn_c_try_cpp LINENO
1562# ----------------------
1563# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_cpp ()
1565{
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_cpp conftest.$ac_ext"
1568case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
08c2568c 1582 test $ac_status = 0; } > conftest.i && {
7083c021
AC
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 }; then :
1586 ac_retval=0
1587else
1588 $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592fi
08c2568c 1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1594 as_fn_set_status $ac_retval
7083c021
AC
1595
1596} # ac_fn_c_try_cpp
1597
1598# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599# -------------------------------------------------------
1600# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601# the include files in INCLUDES and setting the cache variable VAR
1602# accordingly.
1603ac_fn_c_check_header_mongrel ()
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
08c2568c 1606 if eval \${$3+:} false; then :
7083c021
AC
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608$as_echo_n "checking for $2... " >&6; }
08c2568c 1609if eval \${$3+:} false; then :
7083c021
AC
1610 $as_echo_n "(cached) " >&6
1611fi
1612eval ac_res=\$$3
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614$as_echo "$ac_res" >&6; }
1615else
1616 # Is the header compilable?
1617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618$as_echo_n "checking $2 usability... " >&6; }
1619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620/* end confdefs.h. */
1621$4
1622#include <$2>
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"; then :
1625 ac_header_compiler=yes
1626else
1627 ac_header_compiler=no
1628fi
1629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631$as_echo "$ac_header_compiler" >&6; }
1632
1633# Is the header present?
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635$as_echo_n "checking $2 presence... " >&6; }
1636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h. */
1638#include <$2>
1639_ACEOF
1640if ac_fn_c_try_cpp "$LINENO"; then :
1641 ac_header_preproc=yes
1642else
1643 ac_header_preproc=no
1644fi
08c2568c 1645rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
1646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647$as_echo "$ac_header_preproc" >&6; }
1648
1649# So? What about this header?
1650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651 yes:no: )
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 ;;
1657 no:yes:* )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1661$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1665$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 ;;
1669esac
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671$as_echo_n "checking for $2... " >&6; }
08c2568c 1672if eval \${$3+:} false; then :
7083c021
AC
1673 $as_echo_n "(cached) " >&6
1674else
1675 eval "$3=\$ac_header_compiler"
1676fi
1677eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679$as_echo "$ac_res" >&6; }
1680fi
08c2568c 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1682
1683} # ac_fn_c_check_header_mongrel
1684
1685# ac_fn_c_try_run LINENO
1686# ----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688# that executables *can* be run.
1689ac_fn_c_try_run ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status
1720fi
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
08c2568c 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1723 as_fn_set_status $ac_retval
7083c021
AC
1724
1725} # ac_fn_c_try_run
1726
1727# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728# -------------------------------------------------------
1729# Tests whether HEADER exists and can be compiled using the include files in
1730# INCLUDES, setting the cache variable VAR accordingly.
1731ac_fn_c_check_header_compile ()
1732{
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
08c2568c 1736if eval \${$3+:} false; then :
7083c021
AC
1737 $as_echo_n "(cached) " >&6
1738else
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h. */
1741$4
1742#include <$2>
1743_ACEOF
1744if ac_fn_c_try_compile "$LINENO"; then :
1745 eval "$3=yes"
1746else
1747 eval "$3=no"
1748fi
1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750fi
1751eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753$as_echo "$ac_res" >&6; }
08c2568c 1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1755
1756} # ac_fn_c_check_header_compile
1757
1758# ac_fn_c_try_link LINENO
1759# -----------------------
1760# Try to link conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_c_try_link ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext conftest$ac_exeext
1765 if { { ac_try="$ac_link"
1766case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest$ac_exeext && {
1784 test "$cross_compiling" = yes ||
1785 $as_test_x conftest$ac_exeext
1786 }; then :
1787 ac_retval=0
1788else
1789 $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=1
1793fi
1794 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796 # interfere with the next link command; also delete a directory that is
1797 # left behind by Apple's compiler. We do this before executing the actions.
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
08c2568c 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1800 as_fn_set_status $ac_retval
7083c021
AC
1801
1802} # ac_fn_c_try_link
1803
1804# ac_fn_c_check_func LINENO FUNC VAR
1805# ----------------------------------
1806# Tests whether FUNC exists, setting the cache variable VAR accordingly
1807ac_fn_c_check_func ()
1808{
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811$as_echo_n "checking for $2... " >&6; }
08c2568c 1812if eval \${$3+:} false; then :
7083c021
AC
1813 $as_echo_n "(cached) " >&6
1814else
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1819#define $2 innocuous_$2
1820
1821/* System header to define __stub macros and hopefully few prototypes,
1822 which can conflict with char $2 (); below.
1823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824 <limits.h> exists even on freestanding compilers. */
1825
1826#ifdef __STDC__
1827# include <limits.h>
1828#else
1829# include <assert.h>
1830#endif
1831
1832#undef $2
1833
1834/* Override any GCC internal prototype to avoid an error.
1835 Use char because int might match the return type of a GCC
1836 builtin and then its argument prototype would still apply. */
1837#ifdef __cplusplus
1838extern "C"
1839#endif
1840char $2 ();
1841/* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844#if defined __stub_$2 || defined __stub___$2
1845choke me
1846#endif
1847
1848int
1849main ()
1850{
1851return $2 ();
1852 ;
1853 return 0;
1854}
1855_ACEOF
1856if ac_fn_c_try_link "$LINENO"; then :
1857 eval "$3=yes"
1858else
1859 eval "$3=no"
1860fi
1861rm -f core conftest.err conftest.$ac_objext \
1862 conftest$ac_exeext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
08c2568c 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1868
1869} # ac_fn_c_check_func
1870
1871# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1872# -------------------------------------------
1873# Tests whether TYPE exists after having included INCLUDES, setting cache
1874# variable VAR accordingly.
1875ac_fn_c_check_type ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879$as_echo_n "checking for $2... " >&6; }
08c2568c 1880if eval \${$3+:} false; then :
7083c021
AC
1881 $as_echo_n "(cached) " >&6
1882else
1883 eval "$3=no"
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h. */
1899$4
1900int
1901main ()
1902{
1903if (sizeof (($2)))
1904 return 0;
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_compile "$LINENO"; then :
1910
1911else
1912 eval "$3=yes"
1913fi
1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917fi
1918eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
08c2568c 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1922
1923} # ac_fn_c_check_type
1924
1925# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1926# ----------------------------------------------------
1927# Tries to find if the field MEMBER exists in type AGGR, after including
1928# INCLUDES, setting cache variable VAR accordingly.
1929ac_fn_c_check_member ()
1930{
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1933$as_echo_n "checking for $2.$3... " >&6; }
08c2568c 1934if eval \${$4+:} false; then :
7083c021
AC
1935 $as_echo_n "(cached) " >&6
1936else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h. */
1939$5
1940int
1941main ()
1942{
1943static $2 ac_aggr;
1944if (ac_aggr.$3)
1945return 0;
1946 ;
1947 return 0;
1948}
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951 eval "$4=yes"
1952else
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h. */
1955$5
1956int
1957main ()
1958{
1959static $2 ac_aggr;
1960if (sizeof ac_aggr.$3)
1961return 0;
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966if ac_fn_c_try_compile "$LINENO"; then :
1967 eval "$4=yes"
1968else
1969 eval "$4=no"
1970fi
1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972fi
1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974fi
1975eval ac_res=\$$4
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977$as_echo "$ac_res" >&6; }
08c2568c 1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1979
1980} # ac_fn_c_check_member
db137867
AC
1981cat >config.log <<_ACEOF
1982This file contains any messages produced by compilers while
1983running configure, to aid debugging if configure makes a mistake.
1984
1985It was created by libratbox $as_me devel, which was
08c2568c 1986generated by GNU Autoconf 2.68. Invocation command line was
db137867
AC
1987
1988 $ $0 $@
1989
1990_ACEOF
1991exec 5>>config.log
1992{
1993cat <<_ASUNAME
1994## --------- ##
1995## Platform. ##
1996## --------- ##
1997
1998hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1999uname -m = `(uname -m) 2>/dev/null || echo unknown`
2000uname -r = `(uname -r) 2>/dev/null || echo unknown`
2001uname -s = `(uname -s) 2>/dev/null || echo unknown`
2002uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003
2004/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2005/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2006
2007/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2008/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2009/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2010/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2011/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2012/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2013/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2014
2015_ASUNAME
2016
2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018for as_dir in $PATH
2019do
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
7083c021
AC
2022 $as_echo "PATH: $as_dir"
2023 done
db137867
AC
2024IFS=$as_save_IFS
2025
2026} >&5
2027
2028cat >&5 <<_ACEOF
2029
2030
2031## ----------- ##
2032## Core tests. ##
2033## ----------- ##
2034
2035_ACEOF
2036
2037
2038# Keep a trace of the command line.
2039# Strip out --no-create and --no-recursion so they do not pile up.
2040# Strip out --silent because we don't want to record it for future runs.
2041# Also quote any args containing shell meta-characters.
2042# Make two passes to allow for proper duplicate-argument suppression.
2043ac_configure_args=
2044ac_configure_args0=
2045ac_configure_args1=
2046ac_must_keep_next=false
2047for ac_pass in 1 2
2048do
2049 for ac_arg
2050 do
2051 case $ac_arg in
2052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2054 | -silent | --silent | --silen | --sile | --sil)
2055 continue ;;
2056 *\'*)
030272f3 2057 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
db137867
AC
2058 esac
2059 case $ac_pass in
7083c021 2060 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
db137867 2061 2)
7083c021 2062 as_fn_append ac_configure_args1 " '$ac_arg'"
db137867
AC
2063 if test $ac_must_keep_next = true; then
2064 ac_must_keep_next=false # Got value, back to normal.
2065 else
2066 case $ac_arg in
2067 *=* | --config-cache | -C | -disable-* | --disable-* \
2068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2070 | -with-* | --with-* | -without-* | --without-* | --x)
2071 case "$ac_configure_args0 " in
2072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2073 esac
2074 ;;
2075 -* ) ac_must_keep_next=true ;;
2076 esac
2077 fi
7083c021 2078 as_fn_append ac_configure_args " '$ac_arg'"
db137867
AC
2079 ;;
2080 esac
2081 done
2082done
7083c021
AC
2083{ ac_configure_args0=; unset ac_configure_args0;}
2084{ ac_configure_args1=; unset ac_configure_args1;}
db137867
AC
2085
2086# When interrupted or exit'd, cleanup temporary files, and complete
2087# config.log. We remove comments because anyway the quotes in there
2088# would cause problems or look ugly.
2089# WARNING: Use '\'' to represent an apostrophe within the trap.
2090# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2091trap 'exit_status=$?
2092 # Save into config.log some information that might help in debugging.
2093 {
2094 echo
2095
08c2568c 2096 $as_echo "## ---------------- ##
db137867 2097## Cache variables. ##
08c2568c 2098## ---------------- ##"
db137867
AC
2099 echo
2100 # The following way of writing the cache mishandles newlines in values,
2101(
2102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2103 eval ac_val=\$$ac_var
2104 case $ac_val in #(
2105 *${as_nl}*)
2106 case $ac_var in #(
7083c021 2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
030272f3 2108$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
db137867
AC
2109 esac
2110 case $ac_var in #(
2111 _ | IFS | as_nl) ;; #(
030272f3 2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7083c021 2113 *) { eval $ac_var=; unset $ac_var;} ;;
db137867
AC
2114 esac ;;
2115 esac
2116 done
2117 (set) 2>&1 |
2118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2119 *${as_nl}ac_space=\ *)
2120 sed -n \
2121 "s/'\''/'\''\\\\'\'''\''/g;
2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2123 ;; #(
2124 *)
2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126 ;;
2127 esac |
2128 sort
2129)
2130 echo
2131
08c2568c 2132 $as_echo "## ----------------- ##
db137867 2133## Output variables. ##
08c2568c 2134## ----------------- ##"
db137867
AC
2135 echo
2136 for ac_var in $ac_subst_vars
2137 do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in
030272f3 2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
db137867 2141 esac
030272f3 2142 $as_echo "$ac_var='\''$ac_val'\''"
db137867
AC
2143 done | sort
2144 echo
2145
2146 if test -n "$ac_subst_files"; then
08c2568c 2147 $as_echo "## ------------------- ##
db137867 2148## File substitutions. ##
08c2568c 2149## ------------------- ##"
db137867
AC
2150 echo
2151 for ac_var in $ac_subst_files
2152 do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in
030272f3 2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
db137867 2156 esac
030272f3 2157 $as_echo "$ac_var='\''$ac_val'\''"
db137867
AC
2158 done | sort
2159 echo
2160 fi
2161
2162 if test -s confdefs.h; then
08c2568c 2163 $as_echo "## ----------- ##
db137867 2164## confdefs.h. ##
08c2568c 2165## ----------- ##"
db137867
AC
2166 echo
2167 cat confdefs.h
2168 echo
2169 fi
2170 test "$ac_signal" != 0 &&
030272f3
VY
2171 $as_echo "$as_me: caught signal $ac_signal"
2172 $as_echo "$as_me: exit $exit_status"
db137867
AC
2173 } >&5
2174 rm -f core *.core core.conftest.* &&
2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2176 exit $exit_status
2177' 0
2178for ac_signal in 1 2 13 15; do
7083c021 2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
db137867
AC
2180done
2181ac_signal=0
2182
2183# confdefs.h avoids OS command line length limits that DEFS can exceed.
2184rm -f -r conftest* confdefs.h
2185
7083c021
AC
2186$as_echo "/* confdefs.h */" > confdefs.h
2187
db137867
AC
2188# Predefined preprocessor variables.
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_NAME "$PACKAGE_NAME"
2192_ACEOF
2193
db137867
AC
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2196_ACEOF
2197
db137867
AC
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_VERSION "$PACKAGE_VERSION"
2200_ACEOF
2201
db137867
AC
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_STRING "$PACKAGE_STRING"
2204_ACEOF
2205
db137867
AC
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2208_ACEOF
2209
7083c021
AC
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_URL "$PACKAGE_URL"
2212_ACEOF
2213
db137867
AC
2214
2215# Let the site file select an alternate cache file if it wants to.
030272f3
VY
2216# Prefer an explicitly selected file to automatically selected ones.
2217ac_site_file1=NONE
2218ac_site_file2=NONE
db137867 2219if test -n "$CONFIG_SITE"; then
08c2568c
EM
2220 # We do not want a PATH search for config.site.
2221 case $CONFIG_SITE in #((
2222 -*) ac_site_file1=./$CONFIG_SITE;;
2223 */*) ac_site_file1=$CONFIG_SITE;;
2224 *) ac_site_file1=./$CONFIG_SITE;;
2225 esac
db137867 2226elif test "x$prefix" != xNONE; then
030272f3
VY
2227 ac_site_file1=$prefix/share/config.site
2228 ac_site_file2=$prefix/etc/config.site
db137867 2229else
030272f3
VY
2230 ac_site_file1=$ac_default_prefix/share/config.site
2231 ac_site_file2=$ac_default_prefix/etc/config.site
db137867 2232fi
030272f3 2233for ac_site_file in "$ac_site_file1" "$ac_site_file2"
db137867 2234do
030272f3 2235 test "x$ac_site_file" = xNONE && continue
96f4052b 2236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
030272f3 2238$as_echo "$as_me: loading site script $ac_site_file" >&6;}
db137867 2239 sed 's/^/| /' "$ac_site_file" >&5
08c2568c
EM
2240 . "$ac_site_file" \
2241 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243as_fn_error $? "failed to load site script $ac_site_file
2244See \`config.log' for more details" "$LINENO" 5; }
db137867
AC
2245 fi
2246done
2247
2248if test -r "$cache_file"; then
96f4052b
AC
2249 # Some versions of bash will fail to source /dev/null (special files
2250 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2251 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
030272f3 2253$as_echo "$as_me: loading cache $cache_file" >&6;}
db137867
AC
2254 case $cache_file in
2255 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2256 *) . "./$cache_file";;
2257 esac
2258 fi
2259else
7083c021 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
030272f3 2261$as_echo "$as_me: creating cache $cache_file" >&6;}
db137867
AC
2262 >$cache_file
2263fi
2264
96f4052b
AC
2265as_fn_append ac_header_list " stdlib.h"
2266as_fn_append ac_header_list " unistd.h"
2267as_fn_append ac_header_list " sys/param.h"
db137867
AC
2268# Check that the precious variables saved in the cache have kept the same
2269# value.
2270ac_cache_corrupted=false
2271for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2277 set,)
7083c021 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
030272f3 2279$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
db137867
AC
2280 ac_cache_corrupted=: ;;
2281 ,set)
7083c021 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
030272f3 2283$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
db137867
AC
2284 ac_cache_corrupted=: ;;
2285 ,);;
2286 *)
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
030272f3
VY
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x $ac_old_val`
2290 ac_new_val_w=`echo x $ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
7083c021 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
030272f3
VY
2293$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294 ac_cache_corrupted=:
2295 else
7083c021 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
030272f3
VY
2297$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2299 fi
7083c021 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
030272f3 2301$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
7083c021 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
030272f3 2303$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
db137867
AC
2304 fi;;
2305 esac
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2308 case $ac_new_val in
030272f3 2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
db137867
AC
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2311 esac
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
7083c021 2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
db137867
AC
2315 esac
2316 fi
2317done
2318if $ac_cache_corrupted; then
7083c021 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 2320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083c021 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
030272f3 2322$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
08c2568c 2323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
db137867 2324fi
7083c021
AC
2325## -------------------- ##
2326## Main body of script. ##
2327## -------------------- ##
db137867 2328
7083c021
AC
2329ac_ext=c
2330ac_cpp='$CPP $CPPFLAGS'
2331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_c_compiler_gnu
db137867
AC
2334
2335
7083c021 2336am__api_version='1.11'
db137867 2337
7083c021
AC
2338ac_aux_dir=
2339for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
08c2568c
EM
2340 if test -f "$ac_dir/install-sh"; then
2341 ac_aux_dir=$ac_dir
2342 ac_install_sh="$ac_aux_dir/install-sh -c"
2343 break
2344 elif test -f "$ac_dir/install.sh"; then
2345 ac_aux_dir=$ac_dir
2346 ac_install_sh="$ac_aux_dir/install.sh -c"
2347 break
2348 elif test -f "$ac_dir/shtool"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/shtool install -c"
2351 break
2352 fi
7083c021
AC
2353done
2354if test -z "$ac_aux_dir"; then
08c2568c 2355 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7083c021 2356fi
db137867 2357
7083c021
AC
2358# These three variables are undocumented and unsupported,
2359# and are intended to be withdrawn in a future Autoconf release.
2360# They can cause serious problems if a builder's source tree is in a directory
2361# whose full name contains unusual characters.
2362ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2363ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2364ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
db137867
AC
2365
2366
2367# Find a good install program. We prefer a C program (faster),
2368# so one script is as good as another. But avoid the broken or
2369# incompatible versions:
2370# SysV /etc/install, /usr/sbin/install
2371# SunOS /usr/etc/install
2372# IRIX /sbin/install
2373# AIX /bin/install
2374# AmigaOS /C/install, which installs bootblocks on floppy discs
2375# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2376# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2377# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2378# OS/2's system install, which has a completely different semantic
2379# ./install, which can be erroneously created by make from ./install.sh.
030272f3 2380# Reject install programs that cannot install multiple files.
7083c021 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
030272f3 2382$as_echo_n "checking for a BSD-compatible install... " >&6; }
db137867 2383if test -z "$INSTALL"; then
08c2568c 2384if ${ac_cv_path_install+:} false; then :
030272f3 2385 $as_echo_n "(cached) " >&6
db137867
AC
2386else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
7083c021
AC
2392 # Account for people who put trailing slashes in PATH elements.
2393case $as_dir/ in #((
2394 ./ | .// | /[cC]/* | \
db137867 2395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7083c021 2396 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
db137867
AC
2397 /usr/ucb/* ) ;;
2398 *)
2399 # OSF1 and SCO ODT 3.0 have their own names for install.
2400 # Don't use installbsd from OSF since it installs stuff as root
2401 # by default.
2402 for ac_prog in ginstall scoinst install; do
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2405 if test $ac_prog = install &&
2406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2407 # AIX install. It has an incompatible calling convention.
2408 :
2409 elif test $ac_prog = install &&
2410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411 # program-specific install script used by HP pwplus--don't use.
2412 :
2413 else
030272f3
VY
2414 rm -rf conftest.one conftest.two conftest.dir
2415 echo one > conftest.one
2416 echo two > conftest.two
2417 mkdir conftest.dir
2418 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2419 test -s conftest.one && test -s conftest.two &&
2420 test -s conftest.dir/conftest.one &&
2421 test -s conftest.dir/conftest.two
2422 then
2423 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2424 break 3
2425 fi
db137867
AC
2426 fi
2427 fi
2428 done
2429 done
2430 ;;
2431esac
030272f3 2432
7083c021 2433 done
db137867
AC
2434IFS=$as_save_IFS
2435
030272f3 2436rm -rf conftest.one conftest.two conftest.dir
db137867
AC
2437
2438fi
2439 if test "${ac_cv_path_install+set}" = set; then
2440 INSTALL=$ac_cv_path_install
2441 else
2442 # As a last resort, use the slow shell script. Don't cache a
2443 # value for INSTALL within a source directory, because that will
2444 # break other packages using the cache if that directory is
2445 # removed, or if the value is a relative name.
2446 INSTALL=$ac_install_sh
2447 fi
2448fi
7083c021 2449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
030272f3 2450$as_echo "$INSTALL" >&6; }
db137867
AC
2451
2452# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2453# It thinks the first close brace ends the variable substitution.
2454test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2455
2456test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2457
2458test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2459
7083c021 2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
030272f3 2461$as_echo_n "checking whether build environment is sane... " >&6; }
db137867
AC
2462# Just in case
2463sleep 1
2464echo timestamp > conftest.file
7083c021
AC
2465# Reject unsafe characters in $srcdir or the absolute working directory
2466# name. Accept space and tab only in the latter.
2467am_lf='
2468'
2469case `pwd` in
2470 *[\\\"\#\$\&\'\`$am_lf]*)
08c2568c 2471 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
7083c021
AC
2472esac
2473case $srcdir in
2474 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
08c2568c 2475 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7083c021
AC
2476esac
2477
db137867
AC
2478# Do `set' in a subshell so we don't clobber the current shell's
2479# arguments. Must try -L first in case configure is actually a
2480# symlink; some systems play weird games with the mod time of symlinks
2481# (eg FreeBSD returns the mod time of the symlink's containing
2482# directory).
2483if (
7083c021 2484 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
db137867
AC
2485 if test "$*" = "X"; then
2486 # -L didn't work.
7083c021 2487 set X `ls -t "$srcdir/configure" conftest.file`
db137867
AC
2488 fi
2489 rm -f conftest.file
2490 if test "$*" != "X $srcdir/configure conftest.file" \
2491 && test "$*" != "X conftest.file $srcdir/configure"; then
2492
2493 # If neither matched, then we have a broken ls. This can happen
2494 # if, for instance, CONFIG_SHELL is bash and it inherits a
2495 # broken ls alias from the environment. This has actually
2496 # happened. Such a system could not be considered "sane".
08c2568c 2497 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
7083c021 2498alias in your environment" "$LINENO" 5
db137867
AC
2499 fi
2500
2501 test "$2" = conftest.file
2502 )
2503then
2504 # Ok.
2505 :
2506else
08c2568c 2507 as_fn_error $? "newly created file is older than distributed files!
7083c021 2508Check your system clock" "$LINENO" 5
db137867 2509fi
7083c021 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3 2511$as_echo "yes" >&6; }
db137867
AC
2512test "$program_prefix" != NONE &&
2513 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514# Use a double $ so make ignores it.
2515test "$program_suffix" != NONE &&
2516 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
030272f3 2517# Double any \ or $.
db137867 2518# By default was `s,x,x', remove it if useless.
030272f3
VY
2519ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
db137867
AC
2521
2522# expand $ac_aux_dir to an absolute path
2523am_aux_dir=`cd $ac_aux_dir && pwd`
2524
7083c021
AC
2525if test x"${MISSING+set}" != xset; then
2526 case $am_aux_dir in
2527 *\ * | *\ *)
2528 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2529 *)
2530 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2531 esac
2532fi
db137867
AC
2533# Use eval to expand $SHELL
2534if eval "$MISSING --run true"; then
2535 am_missing_run="$MISSING --run "
2536else
2537 am_missing_run=
7083c021 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
030272f3 2539$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
db137867
AC
2540fi
2541
7083c021
AC
2542if test x"${install_sh}" != xset; then
2543 case $am_aux_dir in
2544 *\ * | *\ *)
2545 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2546 *)
2547 install_sh="\${SHELL} $am_aux_dir/install-sh"
2548 esac
2549fi
2550
2551# Installed binaries are usually stripped using `strip' when the user
2552# run `make install-strip'. However `strip' might not be the right
2553# tool to use in cross-compilation environments, therefore Automake
2554# will honor the `STRIP' environment variable to overrule this program.
2555if test "$cross_compiling" != no; then
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2558set dummy ${ac_tool_prefix}strip; ac_word=$2
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2561if ${ac_cv_prog_STRIP+:} false; then :
7083c021
AC
2562 $as_echo_n "(cached) " >&6
2563else
2564 if test -n "$STRIP"; then
2565 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578done
2579 done
2580IFS=$as_save_IFS
2581
2582fi
2583fi
2584STRIP=$ac_cv_prog_STRIP
2585if test -n "$STRIP"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2587$as_echo "$STRIP" >&6; }
2588else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590$as_echo "no" >&6; }
2591fi
2592
2593
2594fi
2595if test -z "$ac_cv_prog_STRIP"; then
2596 ac_ct_STRIP=$STRIP
2597 # Extract the first word of "strip", so it can be a program name with args.
2598set dummy strip; ac_word=$2
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2601if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7083c021
AC
2602 $as_echo_n "(cached) " >&6
2603else
2604 if test -n "$ac_ct_STRIP"; then
2605 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_ac_ct_STRIP="strip"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618done
2619 done
2620IFS=$as_save_IFS
2621
2622fi
2623fi
2624ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2625if test -n "$ac_ct_STRIP"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2627$as_echo "$ac_ct_STRIP" >&6; }
2628else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630$as_echo "no" >&6; }
2631fi
2632
2633 if test "x$ac_ct_STRIP" = x; then
2634 STRIP=":"
2635 else
2636 case $cross_compiling:$ac_tool_warned in
2637yes:)
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2640ac_tool_warned=yes ;;
2641esac
2642 STRIP=$ac_ct_STRIP
2643 fi
2644else
2645 STRIP="$ac_cv_prog_STRIP"
2646fi
2647
2648fi
2649INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2650
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
030272f3 2652$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
db137867 2653if test -z "$MKDIR_P"; then
08c2568c 2654 if ${ac_cv_path_mkdir+:} false; then :
030272f3 2655 $as_echo_n "(cached) " >&6
db137867
AC
2656else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
7083c021 2662 for ac_prog in mkdir gmkdir; do
db137867
AC
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2665 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2666 'mkdir (GNU coreutils) '* | \
2667 'mkdir (coreutils) '* | \
2668 'mkdir (fileutils) '4.1*)
2669 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2670 break 3;;
2671 esac
2672 done
2673 done
7083c021 2674 done
db137867
AC
2675IFS=$as_save_IFS
2676
2677fi
2678
96f4052b 2679 test -d ./--version && rmdir ./--version
db137867
AC
2680 if test "${ac_cv_path_mkdir+set}" = set; then
2681 MKDIR_P="$ac_cv_path_mkdir -p"
2682 else
2683 # As a last resort, use the slow shell script. Don't cache a
2684 # value for MKDIR_P within a source directory, because that will
2685 # break other packages using the cache if that directory is
2686 # removed, or if the value is a relative name.
db137867
AC
2687 MKDIR_P="$ac_install_sh -d"
2688 fi
2689fi
7083c021 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
030272f3 2691$as_echo "$MKDIR_P" >&6; }
db137867
AC
2692
2693mkdir_p="$MKDIR_P"
2694case $mkdir_p in
2695 [\\/$]* | ?:[\\/]*) ;;
2696 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2697esac
2698
2699for ac_prog in gawk mawk nawk awk
2700do
2701 # Extract the first word of "$ac_prog", so it can be a program name with args.
2702set dummy $ac_prog; ac_word=$2
7083c021 2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 2704$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2705if ${ac_cv_prog_AWK+:} false; then :
030272f3 2706 $as_echo_n "(cached) " >&6
db137867
AC
2707else
2708 if test -n "$AWK"; then
2709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2710else
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
7083c021 2716 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_AWK="$ac_prog"
7083c021 2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
2720 break 2
2721 fi
2722done
7083c021 2723 done
db137867
AC
2724IFS=$as_save_IFS
2725
2726fi
2727fi
2728AWK=$ac_cv_prog_AWK
2729if test -n "$AWK"; then
7083c021 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
030272f3 2731$as_echo "$AWK" >&6; }
db137867 2732else
7083c021 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2734$as_echo "no" >&6; }
db137867
AC
2735fi
2736
2737
2738 test -n "$AWK" && break
2739done
2740
7083c021 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
030272f3
VY
2742$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2743set x ${MAKE-make}
2744ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
08c2568c 2745if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
030272f3 2746 $as_echo_n "(cached) " >&6
db137867
AC
2747else
2748 cat >conftest.make <<\_ACEOF
2749SHELL = /bin/sh
2750all:
2751 @echo '@@@%%%=$(MAKE)=@@@%%%'
2752_ACEOF
08c2568c 2753# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
db137867
AC
2754case `${MAKE-make} -f conftest.make 2>/dev/null` in
2755 *@@@%%%=?*=@@@%%%*)
2756 eval ac_cv_prog_make_${ac_make}_set=yes;;
2757 *)
2758 eval ac_cv_prog_make_${ac_make}_set=no;;
2759esac
2760rm -f conftest.make
2761fi
2762if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7083c021 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3 2764$as_echo "yes" >&6; }
db137867
AC
2765 SET_MAKE=
2766else
7083c021 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2768$as_echo "no" >&6; }
db137867
AC
2769 SET_MAKE="MAKE=${MAKE-make}"
2770fi
2771
2772rm -rf .tst 2>/dev/null
2773mkdir .tst 2>/dev/null
2774if test -d .tst; then
2775 am__leading_dot=.
2776else
2777 am__leading_dot=_
2778fi
2779rmdir .tst 2>/dev/null
2780
2781if test "`cd $srcdir && pwd`" != "`pwd`"; then
2782 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2783 # is not polluted with repeated "-I."
2784 am__isrc=' -I$(srcdir)'
2785 # test to see if srcdir already configured
2786 if test -f $srcdir/config.status; then
08c2568c 2787 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
db137867
AC
2788 fi
2789fi
2790
2791# test whether we have cygpath
2792if test -z "$CYGPATH_W"; then
2793 if (cygpath --version) >/dev/null 2>/dev/null; then
2794 CYGPATH_W='cygpath -w'
2795 else
2796 CYGPATH_W=echo
2797 fi
2798fi
2799
2800
2801# Define the identity of the package.
2802 PACKAGE=libratbox
2803 VERSION=devel
2804
2805
2806# Some tools Automake needs.
2807
2808ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2809
2810
2811AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2812
2813
2814AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2815
2816
2817AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2818
2819
2820MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2821
db137867
AC
2822# We need awk for the "check" target. The system "awk" is bad on
2823# some platforms.
2824# Always define AMTAR for backward compatibility.
2825
2826AMTAR=${AMTAR-"${am_missing_run}tar"}
2827
2828am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2829
2830
2831
2832
2833
2834
2835ac_config_headers="$ac_config_headers include/libratbox_config.h"
2836
2837
2838
db137867
AC
2839DEPDIR="${am__leading_dot}deps"
2840
2841ac_config_commands="$ac_config_commands depfiles"
2842
2843
2844am_make=${MAKE-make}
2845cat > confinc << 'END'
2846am__doit:
7083c021 2847 @echo this is the am__doit target
db137867
AC
2848.PHONY: am__doit
2849END
2850# If we don't find an include directive, just comment out the code.
7083c021 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
030272f3 2852$as_echo_n "checking for style of include used by $am_make... " >&6; }
db137867
AC
2853am__include="#"
2854am__quote=
2855_am_result=none
2856# First try GNU make style include.
2857echo "include confinc" > confmf
7083c021
AC
2858# Ignore all kinds of additional output from `make'.
2859case `$am_make -s -f confmf 2> /dev/null` in #(
2860*the\ am__doit\ target*)
2861 am__include=include
2862 am__quote=
2863 _am_result=GNU
2864 ;;
2865esac
db137867
AC
2866# Now try BSD make style include.
2867if test "$am__include" = "#"; then
2868 echo '.include "confinc"' > confmf
7083c021
AC
2869 case `$am_make -s -f confmf 2> /dev/null` in #(
2870 *the\ am__doit\ target*)
2871 am__include=.include
2872 am__quote="\""
2873 _am_result=BSD
2874 ;;
2875 esac
db137867
AC
2876fi
2877
2878
7083c021 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
030272f3 2880$as_echo "$_am_result" >&6; }
db137867
AC
2881rm -f confinc confmf
2882
2883# Check whether --enable-dependency-tracking was given.
7083c021 2884if test "${enable_dependency_tracking+set}" = set; then :
db137867
AC
2885 enableval=$enable_dependency_tracking;
2886fi
2887
2888if test "x$enable_dependency_tracking" != xno; then
2889 am_depcomp="$ac_aux_dir/depcomp"
2890 AMDEPBACKSLASH='\'
2891fi
2892 if test "x$enable_dependency_tracking" != xno; then
2893 AMDEP_TRUE=
2894 AMDEP_FALSE='#'
2895else
2896 AMDEP_TRUE='#'
2897 AMDEP_FALSE=
2898fi
2899
2900
2901ac_ext=c
2902ac_cpp='$CPP $CPPFLAGS'
2903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906if test -n "$ac_tool_prefix"; then
2907 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2908set dummy ${ac_tool_prefix}gcc; ac_word=$2
7083c021 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 2910$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2911if ${ac_cv_prog_CC+:} false; then :
030272f3 2912 $as_echo_n "(cached) " >&6
db137867
AC
2913else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
7083c021 2922 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7083c021 2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
2926 break 2
2927 fi
2928done
7083c021 2929 done
db137867
AC
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934CC=$ac_cv_prog_CC
2935if test -n "$CC"; then
7083c021 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 2937$as_echo "$CC" >&6; }
db137867 2938else
7083c021 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2940$as_echo "no" >&6; }
db137867
AC
2941fi
2942
2943
2944fi
2945if test -z "$ac_cv_prog_CC"; then
2946 ac_ct_CC=$CC
2947 # Extract the first word of "gcc", so it can be a program name with args.
2948set dummy gcc; ac_word=$2
7083c021 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 2950$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2951if ${ac_cv_prog_ac_ct_CC+:} false; then :
030272f3 2952 $as_echo_n "(cached) " >&6
db137867
AC
2953else
2954 if test -n "$ac_ct_CC"; then
2955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956else
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
7083c021 2962 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_ac_ct_CC="gcc"
7083c021 2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
2966 break 2
2967 fi
2968done
7083c021 2969 done
db137867
AC
2970IFS=$as_save_IFS
2971
2972fi
2973fi
2974ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975if test -n "$ac_ct_CC"; then
7083c021 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
030272f3 2977$as_echo "$ac_ct_CC" >&6; }
db137867 2978else
7083c021 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2980$as_echo "no" >&6; }
db137867
AC
2981fi
2982
2983 if test "x$ac_ct_CC" = x; then
2984 CC=""
2985 else
2986 case $cross_compiling:$ac_tool_warned in
2987yes:)
7083c021 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 2989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
2990ac_tool_warned=yes ;;
2991esac
2992 CC=$ac_ct_CC
2993 fi
2994else
2995 CC="$ac_cv_prog_CC"
2996fi
2997
2998if test -z "$CC"; then
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3001set dummy ${ac_tool_prefix}cc; ac_word=$2
7083c021 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3003$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3004if ${ac_cv_prog_CC+:} false; then :
030272f3 3005 $as_echo_n "(cached) " >&6
db137867
AC
3006else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
7083c021 3015 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_CC="${ac_tool_prefix}cc"
7083c021 3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3019 break 2
3020 fi
3021done
7083c021 3022 done
db137867
AC
3023IFS=$as_save_IFS
3024
3025fi
3026fi
3027CC=$ac_cv_prog_CC
3028if test -n "$CC"; then
7083c021 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3030$as_echo "$CC" >&6; }
db137867 3031else
7083c021 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3033$as_echo "no" >&6; }
db137867
AC
3034fi
3035
3036
3037 fi
3038fi
3039if test -z "$CC"; then
3040 # Extract the first word of "cc", so it can be a program name with args.
3041set dummy cc; ac_word=$2
7083c021 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3043$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3044if ${ac_cv_prog_CC+:} false; then :
030272f3 3045 $as_echo_n "(cached) " >&6
db137867
AC
3046else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049else
3050 ac_prog_rejected=no
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
7083c021 3056 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3059 ac_prog_rejected=yes
3060 continue
3061 fi
3062 ac_cv_prog_CC="cc"
7083c021 3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3064 break 2
3065 fi
3066done
7083c021 3067 done
db137867
AC
3068IFS=$as_save_IFS
3069
3070if test $ac_prog_rejected = yes; then
3071 # We found a bogon in the path, so make sure we never use it.
3072 set dummy $ac_cv_prog_CC
3073 shift
3074 if test $# != 0; then
3075 # We chose a different compiler from the bogus one.
3076 # However, it has the same basename, so the bogon will be chosen
3077 # first if we set CC to just the basename; use the full file name.
3078 shift
3079 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3080 fi
3081fi
3082fi
3083fi
3084CC=$ac_cv_prog_CC
3085if test -n "$CC"; then
7083c021 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3087$as_echo "$CC" >&6; }
db137867 3088else
7083c021 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3090$as_echo "no" >&6; }
db137867
AC
3091fi
3092
3093
3094fi
3095if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 for ac_prog in cl.exe
3098 do
3099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7083c021 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3102$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3103if ${ac_cv_prog_CC+:} false; then :
030272f3 3104 $as_echo_n "(cached) " >&6
db137867
AC
3105else
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
7083c021 3114 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7083c021 3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3118 break 2
3119 fi
3120done
7083c021 3121 done
db137867
AC
3122IFS=$as_save_IFS
3123
3124fi
3125fi
3126CC=$ac_cv_prog_CC
3127if test -n "$CC"; then
7083c021 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3129$as_echo "$CC" >&6; }
db137867 3130else
7083c021 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3132$as_echo "no" >&6; }
db137867
AC
3133fi
3134
3135
3136 test -n "$CC" && break
3137 done
3138fi
3139if test -z "$CC"; then
3140 ac_ct_CC=$CC
3141 for ac_prog in cl.exe
3142do
3143 # Extract the first word of "$ac_prog", so it can be a program name with args.
3144set dummy $ac_prog; ac_word=$2
7083c021 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3146$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3147if ${ac_cv_prog_ac_ct_CC+:} false; then :
030272f3 3148 $as_echo_n "(cached) " >&6
db137867
AC
3149else
3150 if test -n "$ac_ct_CC"; then
3151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
7083c021 3158 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_ac_ct_CC="$ac_prog"
7083c021 3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3162 break 2
3163 fi
3164done
7083c021 3165 done
db137867
AC
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171if test -n "$ac_ct_CC"; then
7083c021 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
030272f3 3173$as_echo "$ac_ct_CC" >&6; }
db137867 3174else
7083c021 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3176$as_echo "no" >&6; }
db137867
AC
3177fi
3178
3179
3180 test -n "$ac_ct_CC" && break
3181done
3182
3183 if test "x$ac_ct_CC" = x; then
3184 CC=""
3185 else
3186 case $cross_compiling:$ac_tool_warned in
3187yes:)
7083c021 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 3189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
3190ac_tool_warned=yes ;;
3191esac
3192 CC=$ac_ct_CC
3193 fi
3194fi
3195
3196fi
3197
3198
7083c021 3199test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3201as_fn_error $? "no acceptable C compiler found in \$PATH
3202See \`config.log' for more details" "$LINENO" 5; }
db137867
AC
3203
3204# Provide some information about the compiler.
7083c021 3205$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
030272f3
VY
3206set X $ac_compile
3207ac_compiler=$2
7083c021
AC
3208for ac_option in --version -v -V -qversion; do
3209 { { ac_try="$ac_compiler $ac_option >&5"
db137867
AC
3210case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
7083c021
AC
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
db137867 3217 ac_status=$?
7083c021
AC
3218 if test -s conftest.err; then
3219 sed '10a\
3220... rest of stderr output deleted ...
3221 10q' conftest.err >conftest.er1
3222 cat conftest.er1 >&5
7083c021 3223 fi
96f4052b 3224 rm -f conftest.er1 conftest.err
7083c021
AC
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }
3227done
db137867 3228
7083c021 3229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 3230/* end confdefs.h. */
96f4052b 3231
db137867
AC
3232int
3233main ()
3234{
3235
3236 ;
3237 return 0;
3238}
3239_ACEOF
3240ac_clean_files_save=$ac_clean_files
96f4052b 3241ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
db137867
AC
3242# Try to create an executable without -o first, disregard a.out.
3243# It will help us diagnose broken compilers, and finding out an intuition
3244# of exeext.
96f4052b
AC
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3246$as_echo_n "checking whether the C compiler works... " >&6; }
030272f3
VY
3247ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3248
3249# The possible output files:
3250ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3251
db137867
AC
3252ac_rmfiles=
3253for ac_file in $ac_files
3254do
3255 case $ac_file in
030272f3 3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
db137867
AC
3257 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3258 esac
3259done
3260rm -f $ac_rmfiles
3261
7083c021 3262if { { ac_try="$ac_link_default"
db137867
AC
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
7083c021
AC
3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268$as_echo "$ac_try_echo"; } >&5
db137867
AC
3269 (eval "$ac_link_default") 2>&5
3270 ac_status=$?
7083c021
AC
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
db137867
AC
3273 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3274# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3275# in a Makefile. We should not override ac_cv_exeext if it was cached,
3276# so that the user can short-circuit this test for compilers unknown to
3277# Autoconf.
3278for ac_file in $ac_files ''
3279do
3280 test -f "$ac_file" || continue
3281 case $ac_file in
030272f3 3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
db137867
AC
3283 ;;
3284 [ab].out )
3285 # We found the default executable, but exeext='' is most
3286 # certainly right.
3287 break;;
3288 *.* )
7083c021 3289 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
db137867
AC
3290 then :; else
3291 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 fi
3293 # We set ac_cv_exeext here because the later test for it is not
3294 # safe: cross compilers may not add the suffix if given an `-o'
3295 # argument, so we may need to know it at that point already.
3296 # Even if this section looks crufty: it has the advantage of
3297 # actually working.
3298 break;;
3299 * )
3300 break;;
3301 esac
3302done
3303test "$ac_cv_exeext" = no && ac_cv_exeext=
3304
3305else
3306 ac_file=''
3307fi
7083c021 3308if test -z "$ac_file"; then :
96f4052b
AC
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311$as_echo "$as_me: failed program was:" >&5
db137867
AC
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
7083c021 3314{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3316as_fn_error 77 "C compiler cannot create executables
3317See \`config.log' for more details" "$LINENO" 5; }
96f4052b
AC
3318else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320$as_echo "yes" >&6; }
db137867 3321fi
96f4052b
AC
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3323$as_echo_n "checking for C compiler default output file name... " >&6; }
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3325$as_echo "$ac_file" >&6; }
db137867
AC
3326ac_exeext=$ac_cv_exeext
3327
96f4052b 3328rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
db137867 3329ac_clean_files=$ac_clean_files_save
7083c021 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
030272f3 3331$as_echo_n "checking for suffix of executables... " >&6; }
7083c021 3332if { { ac_try="$ac_link"
db137867
AC
3333case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
7083c021
AC
3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338$as_echo "$ac_try_echo"; } >&5
db137867
AC
3339 (eval "$ac_link") 2>&5
3340 ac_status=$?
7083c021
AC
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; then :
db137867
AC
3343 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3344# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3345# work properly (i.e., refer to `conftest.exe'), while it won't with
3346# `rm'.
3347for ac_file in conftest.exe conftest conftest.*; do
3348 test -f "$ac_file" || continue
3349 case $ac_file in
030272f3 3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
db137867
AC
3351 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352 break;;
3353 * ) break;;
3354 esac
3355done
3356else
7083c021 3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3359as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3360See \`config.log' for more details" "$LINENO" 5; }
db137867 3361fi
96f4052b 3362rm -f conftest conftest$ac_cv_exeext
7083c021 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
030272f3 3364$as_echo "$ac_cv_exeext" >&6; }
db137867
AC
3365
3366rm -f conftest.$ac_ext
3367EXEEXT=$ac_cv_exeext
3368ac_exeext=$EXEEXT
96f4052b
AC
3369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h. */
3371#include <stdio.h>
3372int
3373main ()
3374{
3375FILE *f = fopen ("conftest.out", "w");
3376 return ferror (f) || fclose (f) != 0;
3377
3378 ;
3379 return 0;
3380}
3381_ACEOF
3382ac_clean_files="$ac_clean_files conftest.out"
3383# Check that the compiler produces executables we can run. If not, either
3384# the compiler is broken, or we cross compile.
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3386$as_echo_n "checking whether we are cross compiling... " >&6; }
3387if test "$cross_compiling" != yes; then
3388 { { ac_try="$ac_link"
3389case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }
3399 if { ac_try='./conftest$ac_cv_exeext'
3400 { { case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403esac
3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405$as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_try") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; }; then
3410 cross_compiling=no
3411 else
3412 if test "$cross_compiling" = maybe; then
3413 cross_compiling=yes
3414 else
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c 3417as_fn_error $? "cannot run C compiled programs.
96f4052b 3418If you meant to cross compile, use \`--host'.
08c2568c 3419See \`config.log' for more details" "$LINENO" 5; }
96f4052b
AC
3420 fi
3421 fi
3422fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3424$as_echo "$cross_compiling" >&6; }
3425
3426rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3427ac_clean_files=$ac_clean_files_save
7083c021 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
030272f3 3429$as_echo_n "checking for suffix of object files... " >&6; }
08c2568c 3430if ${ac_cv_objext+:} false; then :
030272f3 3431 $as_echo_n "(cached) " >&6
db137867 3432else
7083c021 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3434/* end confdefs.h. */
3435
3436int
3437main ()
3438{
3439
3440 ;
3441 return 0;
3442}
3443_ACEOF
3444rm -f conftest.o conftest.obj
7083c021 3445if { { ac_try="$ac_compile"
db137867
AC
3446case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449esac
7083c021
AC
3450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451$as_echo "$ac_try_echo"; } >&5
db137867
AC
3452 (eval "$ac_compile") 2>&5
3453 ac_status=$?
7083c021
AC
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }; then :
db137867
AC
3456 for ac_file in conftest.o conftest.obj conftest.*; do
3457 test -f "$ac_file" || continue;
3458 case $ac_file in
030272f3 3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
db137867
AC
3460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3461 break;;
3462 esac
3463done
3464else
030272f3 3465 $as_echo "$as_me: failed program was:" >&5
db137867
AC
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
7083c021 3468{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3470as_fn_error $? "cannot compute suffix of object files: cannot compile
3471See \`config.log' for more details" "$LINENO" 5; }
db137867 3472fi
db137867
AC
3473rm -f conftest.$ac_cv_objext conftest.$ac_ext
3474fi
7083c021 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
030272f3 3476$as_echo "$ac_cv_objext" >&6; }
db137867
AC
3477OBJEXT=$ac_cv_objext
3478ac_objext=$OBJEXT
7083c021 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
030272f3 3480$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
08c2568c 3481if ${ac_cv_c_compiler_gnu+:} false; then :
030272f3 3482 $as_echo_n "(cached) " >&6
db137867 3483else
7083c021 3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3485/* end confdefs.h. */
3486
3487int
3488main ()
3489{
3490#ifndef __GNUC__
3491 choke me
3492#endif
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
7083c021 3498if ac_fn_c_try_compile "$LINENO"; then :
db137867
AC
3499 ac_compiler_gnu=yes
3500else
7083c021 3501 ac_compiler_gnu=no
db137867 3502fi
db137867
AC
3503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504ac_cv_c_compiler_gnu=$ac_compiler_gnu
3505
3506fi
7083c021 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
030272f3
VY
3508$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3509if test $ac_compiler_gnu = yes; then
3510 GCC=yes
3511else
3512 GCC=
3513fi
db137867
AC
3514ac_test_CFLAGS=${CFLAGS+set}
3515ac_save_CFLAGS=$CFLAGS
7083c021 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
030272f3 3517$as_echo_n "checking whether $CC accepts -g... " >&6; }
08c2568c 3518if ${ac_cv_prog_cc_g+:} false; then :
030272f3 3519 $as_echo_n "(cached) " >&6
db137867
AC
3520else
3521 ac_save_c_werror_flag=$ac_c_werror_flag
3522 ac_c_werror_flag=yes
3523 ac_cv_prog_cc_g=no
3524 CFLAGS="-g"
7083c021 3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3526/* end confdefs.h. */
3527
3528int
3529main ()
3530{
3531
3532 ;
3533 return 0;
3534}
3535_ACEOF
7083c021 3536if ac_fn_c_try_compile "$LINENO"; then :
db137867
AC
3537 ac_cv_prog_cc_g=yes
3538else
7083c021
AC
3539 CFLAGS=""
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3541/* end confdefs.h. */
3542
3543int
3544main ()
3545{
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
7083c021 3551if ac_fn_c_try_compile "$LINENO"; then :
db137867 3552
7083c021
AC
3553else
3554 ac_c_werror_flag=$ac_save_c_werror_flag
db137867 3555 CFLAGS="-g"
7083c021 3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3557/* end confdefs.h. */
3558
3559int
3560main ()
3561{
3562
3563 ;
3564 return 0;
3565}
3566_ACEOF
7083c021 3567if ac_fn_c_try_compile "$LINENO"; then :
db137867 3568 ac_cv_prog_cc_g=yes
db137867 3569fi
db137867
AC
3570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571fi
db137867
AC
3572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573fi
db137867
AC
3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_c_werror_flag=$ac_save_c_werror_flag
3576fi
7083c021 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
030272f3 3578$as_echo "$ac_cv_prog_cc_g" >&6; }
db137867
AC
3579if test "$ac_test_CFLAGS" = set; then
3580 CFLAGS=$ac_save_CFLAGS
3581elif test $ac_cv_prog_cc_g = yes; then
3582 if test "$GCC" = yes; then
3583 CFLAGS="-g -O2"
3584 else
3585 CFLAGS="-g"
3586 fi
3587else
3588 if test "$GCC" = yes; then
3589 CFLAGS="-O2"
3590 else
3591 CFLAGS=
3592 fi
3593fi
7083c021 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
030272f3 3595$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
08c2568c 3596if ${ac_cv_prog_cc_c89+:} false; then :
030272f3 3597 $as_echo_n "(cached) " >&6
db137867
AC
3598else
3599 ac_cv_prog_cc_c89=no
3600ac_save_CC=$CC
7083c021 3601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3602/* end confdefs.h. */
3603#include <stdarg.h>
3604#include <stdio.h>
3605#include <sys/types.h>
3606#include <sys/stat.h>
3607/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3608struct buf { int x; };
3609FILE * (*rcsopen) (struct buf *, struct stat *, int);
3610static char *e (p, i)
3611 char **p;
3612 int i;
3613{
3614 return p[i];
3615}
3616static char *f (char * (*g) (char **, int), char **p, ...)
3617{
3618 char *s;
3619 va_list v;
3620 va_start (v,p);
3621 s = g (p, va_arg (v,int));
3622 va_end (v);
3623 return s;
3624}
3625
3626/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3627 function prototypes and stuff, but not '\xHH' hex character constants.
3628 These don't provoke an error unfortunately, instead are silently treated
3629 as 'x'. The following induces an error, until -std is added to get
3630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3631 array size at least. It's necessary to write '\x00'==0 to get something
3632 that's true only with -std. */
3633int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3634
3635/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3636 inside strings and character constants. */
3637#define FOO(x) 'x'
3638int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3639
3640int test (int i, double x);
3641struct s1 {int (*f) (int a);};
3642struct s2 {int (*f) (double a);};
3643int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3644int argc;
3645char **argv;
3646int
3647main ()
3648{
3649return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3655 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3656do
3657 CC="$ac_save_CC $ac_arg"
7083c021 3658 if ac_fn_c_try_compile "$LINENO"; then :
db137867 3659 ac_cv_prog_cc_c89=$ac_arg
db137867 3660fi
db137867
AC
3661rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3663done
3664rm -f conftest.$ac_ext
3665CC=$ac_save_CC
3666
3667fi
3668# AC_CACHE_VAL
3669case "x$ac_cv_prog_cc_c89" in
3670 x)
7083c021 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
030272f3 3672$as_echo "none needed" >&6; } ;;
db137867 3673 xno)
7083c021 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
030272f3 3675$as_echo "unsupported" >&6; } ;;
db137867
AC
3676 *)
3677 CC="$CC $ac_cv_prog_cc_c89"
7083c021 3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
030272f3 3679$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
db137867 3680esac
7083c021 3681if test "x$ac_cv_prog_cc_c89" != xno; then :
db137867 3682
7083c021 3683fi
db137867
AC
3684
3685ac_ext=c
3686ac_cpp='$CPP $CPPFLAGS'
3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
3691depcc="$CC" am_compiler_list=
3692
7083c021 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
030272f3 3694$as_echo_n "checking dependency style of $depcc... " >&6; }
08c2568c 3695if ${am_cv_CC_dependencies_compiler_type+:} false; then :
030272f3 3696 $as_echo_n "(cached) " >&6
db137867
AC
3697else
3698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699 # We make a subdir and do the tests there. Otherwise we can end up
3700 # making bogus files that we don't know about and never remove. For
3701 # instance it was reported that on HP-UX the gcc test will end up
3702 # making a dummy file named `D' -- because `-MD' means `put the output
3703 # in D'.
3704 mkdir conftest.dir
3705 # Copy depcomp to subdir because otherwise we won't find it if we're
3706 # using a relative directory.
3707 cp "$am_depcomp" conftest.dir
3708 cd conftest.dir
3709 # We will build objects and dependencies in a subdirectory because
3710 # it helps to detect inapplicable dependency modes. For instance
3711 # both Tru64's cc and ICC support -MD to output dependencies as a
3712 # side effect of compilation, but ICC will put the dependencies in
3713 # the current directory while Tru64 will put them in the object
3714 # directory.
3715 mkdir sub
3716
3717 am_cv_CC_dependencies_compiler_type=none
3718 if test "$am_compiler_list" = ""; then
3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3720 fi
7083c021
AC
3721 am__universal=false
3722 case " $depcc " in #(
3723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3724 esac
3725
db137867
AC
3726 for depmode in $am_compiler_list; do
3727 # Setup a source with many dependencies, because some compilers
3728 # like to wrap large dependency lists on column 80 (with \), and
3729 # we should not choose a depcomp mode which is confused by this.
3730 #
3731 # We need to recreate these files for each test, as the compiler may
3732 # overwrite some of them when testing with obscure command lines.
3733 # This happens at least with the AIX C compiler.
3734 : > sub/conftest.c
3735 for i in 1 2 3 4 5 6; do
3736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3737 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3738 # Solaris 8's {/usr,}/bin/sh.
3739 touch sub/conftst$i.h
3740 done
3741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3742
7083c021
AC
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this. Also, some Intel
3746 # versions had trouble with output in subdirs
3747 am__obj=sub/conftest.${OBJEXT-o}
3748 am__minus_obj="-o $am__obj"
db137867 3749 case $depmode in
7083c021
AC
3750 gcc)
3751 # This depmode causes a compiler race in universal mode.
3752 test "$am__universal" = false || continue
3753 ;;
db137867
AC
3754 nosideeffect)
3755 # after this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested
3757 if test "x$enable_dependency_tracking" = xyes; then
3758 continue
3759 else
3760 break
3761 fi
3762 ;;
7083c021
AC
3763 msvisualcpp | msvcmsys)
3764 # This compiler won't grok `-c -o', but also, the minuso test has
3765 # not run yet. These depmodes are late enough in the game, and
3766 # so weak that their functioning should not be impacted.
3767 am__obj=conftest.${OBJEXT-o}
3768 am__minus_obj=
3769 ;;
db137867
AC
3770 none) break ;;
3771 esac
db137867 3772 if depmode=$depmode \
7083c021 3773 source=sub/conftest.c object=$am__obj \
db137867 3774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7083c021 3775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
db137867
AC
3776 >/dev/null 2>conftest.err &&
3777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7083c021 3779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
db137867
AC
3780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3781 # icc doesn't choke on unknown options, it will just issue warnings
3782 # or remarks (even with -Werror). So we grep stderr for any message
3783 # that says an option was ignored or not supported.
3784 # When given -MP, icc 7.0 and 7.1 complain thusly:
3785 # icc: Command line warning: ignoring option '-M'; no argument required
3786 # The diagnosis changed in icc 8.0:
3787 # icc: Command line remark: option '-MP' not supported
3788 if (grep 'ignoring option' conftest.err ||
3789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3790 am_cv_CC_dependencies_compiler_type=$depmode
3791 break
3792 fi
3793 fi
3794 done
3795
3796 cd ..
3797 rm -rf conftest.dir
3798else
3799 am_cv_CC_dependencies_compiler_type=none
3800fi
3801
3802fi
7083c021 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
030272f3 3804$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
db137867
AC
3805CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3806
3807 if
3808 test "x$enable_dependency_tracking" != xno \
3809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCC_TRUE=
3811 am__fastdepCC_FALSE='#'
3812else
3813 am__fastdepCC_TRUE='#'
3814 am__fastdepCC_FALSE=
3815fi
3816
3817
030272f3
VY
3818
3819ac_ext=c
3820ac_cpp='$CPP $CPPFLAGS'
3821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083c021 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
030272f3
VY
3825$as_echo_n "checking how to run the C preprocessor... " >&6; }
3826# On Suns, sometimes $CPP names a directory.
3827if test -n "$CPP" && test -d "$CPP"; then
3828 CPP=
3829fi
3830if test -z "$CPP"; then
08c2568c 3831 if ${ac_cv_prog_CPP+:} false; then :
030272f3 3832 $as_echo_n "(cached) " >&6
db137867 3833else
030272f3
VY
3834 # Double quotes because CPP needs to be expanded
3835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3836 do
3837 ac_preproc_ok=false
3838for ac_c_preproc_warn_flag in '' yes
3839do
3840 # Use a header file that comes with gcc, so configuring glibc
3841 # with a fresh cross-compiler works.
3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3843 # <limits.h> exists even on freestanding compilers.
3844 # On the NeXT, cc -E runs the code through the compiler's parser,
3845 # not just through cpp. "Syntax error" is here to catch this case.
7083c021 3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 3847/* end confdefs.h. */
030272f3
VY
3848#ifdef __STDC__
3849# include <limits.h>
db137867 3850#else
030272f3 3851# include <assert.h>
db137867 3852#endif
030272f3 3853 Syntax error
db137867 3854_ACEOF
7083c021 3855if ac_fn_c_try_cpp "$LINENO"; then :
db137867 3856
7083c021 3857else
030272f3
VY
3858 # Broken: fails on valid input.
3859continue
db137867 3860fi
08c2568c 3861rm -f conftest.err conftest.i conftest.$ac_ext
db137867 3862
030272f3
VY
3863 # OK, works on sane cases. Now check whether nonexistent headers
3864 # can be detected and how.
7083c021 3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
3866/* end confdefs.h. */
3867#include <ac_nonexistent.h>
3868_ACEOF
7083c021 3869if ac_fn_c_try_cpp "$LINENO"; then :
030272f3
VY
3870 # Broken: success on invalid input.
3871continue
3872else
030272f3
VY
3873 # Passes both tests.
3874ac_preproc_ok=:
3875break
3876fi
08c2568c 3877rm -f conftest.err conftest.i conftest.$ac_ext
db137867 3878
030272f3
VY
3879done
3880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
08c2568c 3881rm -f conftest.i conftest.err conftest.$ac_ext
7083c021 3882if $ac_preproc_ok; then :
030272f3 3883 break
db137867
AC
3884fi
3885
030272f3
VY
3886 done
3887 ac_cv_prog_CPP=$CPP
db137867 3888
030272f3
VY
3889fi
3890 CPP=$ac_cv_prog_CPP
db137867 3891else
030272f3
VY
3892 ac_cv_prog_CPP=$CPP
3893fi
7083c021 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
030272f3
VY
3895$as_echo "$CPP" >&6; }
3896ac_preproc_ok=false
3897for ac_c_preproc_warn_flag in '' yes
db137867 3898do
030272f3
VY
3899 # Use a header file that comes with gcc, so configuring glibc
3900 # with a fresh cross-compiler works.
3901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902 # <limits.h> exists even on freestanding compilers.
3903 # On the NeXT, cc -E runs the code through the compiler's parser,
3904 # not just through cpp. "Syntax error" is here to catch this case.
7083c021 3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
3906/* end confdefs.h. */
3907#ifdef __STDC__
3908# include <limits.h>
3909#else
3910# include <assert.h>
3911#endif
3912 Syntax error
3913_ACEOF
7083c021 3914if ac_fn_c_try_cpp "$LINENO"; then :
db137867 3915
7083c021 3916else
030272f3
VY
3917 # Broken: fails on valid input.
3918continue
db137867 3919fi
08c2568c 3920rm -f conftest.err conftest.i conftest.$ac_ext
db137867 3921
030272f3
VY
3922 # OK, works on sane cases. Now check whether nonexistent headers
3923 # can be detected and how.
7083c021 3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
3925/* end confdefs.h. */
3926#include <ac_nonexistent.h>
3927_ACEOF
7083c021 3928if ac_fn_c_try_cpp "$LINENO"; then :
030272f3
VY
3929 # Broken: success on invalid input.
3930continue
3931else
030272f3
VY
3932 # Passes both tests.
3933ac_preproc_ok=:
3934break
3935fi
08c2568c 3936rm -f conftest.err conftest.i conftest.$ac_ext
030272f3
VY
3937
3938done
3939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
08c2568c 3940rm -f conftest.i conftest.err conftest.$ac_ext
7083c021
AC
3941if $ac_preproc_ok; then :
3942
db137867 3943else
7083c021 3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3946as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3947See \`config.log' for more details" "$LINENO" 5; }
030272f3
VY
3948fi
3949
3950ac_ext=c
3951ac_cpp='$CPP $CPPFLAGS'
3952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
3956
7083c021 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
030272f3 3958$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
08c2568c 3959if ${ac_cv_path_GREP+:} false; then :
030272f3 3960 $as_echo_n "(cached) " >&6
db137867 3961else
030272f3 3962 if test -z "$GREP"; then
db137867 3963 ac_path_GREP_found=false
030272f3
VY
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
db137867
AC
3966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
7083c021 3970 for ac_prog in grep ggrep; do
030272f3
VY
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3974# Check for GNU ac_path_GREP and select it if it is found.
db137867
AC
3975 # Check for GNU $ac_path_GREP
3976case `"$ac_path_GREP" --version 2>&1` in
3977*GNU*)
3978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3979*)
3980 ac_count=0
030272f3 3981 $as_echo_n 0123456789 >"conftest.in"
db137867
AC
3982 while :
3983 do
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
030272f3 3987 $as_echo 'GREP' >> "conftest.nl"
db137867
AC
3988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 3990 as_fn_arith $ac_count + 1 && ac_count=$as_val
db137867
AC
3991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_GREP="$ac_path_GREP"
3994 ac_path_GREP_max=$ac_count
3995 fi
3996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3998 done
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000esac
4001
030272f3
VY
4002 $ac_path_GREP_found && break 3
4003 done
db137867 4004 done
7083c021 4005 done
db137867 4006IFS=$as_save_IFS
030272f3 4007 if test -z "$ac_cv_path_GREP"; then
08c2568c 4008 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4009 fi
db137867
AC
4010else
4011 ac_cv_path_GREP=$GREP
4012fi
4013
db137867 4014fi
7083c021 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
030272f3 4016$as_echo "$ac_cv_path_GREP" >&6; }
db137867
AC
4017 GREP="$ac_cv_path_GREP"
4018
4019
7083c021 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
030272f3 4021$as_echo_n "checking for egrep... " >&6; }
08c2568c 4022if ${ac_cv_path_EGREP+:} false; then :
030272f3 4023 $as_echo_n "(cached) " >&6
db137867
AC
4024else
4025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4026 then ac_cv_path_EGREP="$GREP -E"
4027 else
030272f3 4028 if test -z "$EGREP"; then
db137867 4029 ac_path_EGREP_found=false
030272f3
VY
4030 # Loop through the user's path and test for each of PROGNAME-LIST
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
db137867
AC
4032for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
7083c021 4036 for ac_prog in egrep; do
030272f3
VY
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4039 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4040# Check for GNU ac_path_EGREP and select it if it is found.
db137867
AC
4041 # Check for GNU $ac_path_EGREP
4042case `"$ac_path_EGREP" --version 2>&1` in
4043*GNU*)
4044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4045*)
4046 ac_count=0
030272f3 4047 $as_echo_n 0123456789 >"conftest.in"
db137867
AC
4048 while :
4049 do
4050 cat "conftest.in" "conftest.in" >"conftest.tmp"
4051 mv "conftest.tmp" "conftest.in"
4052 cp "conftest.in" "conftest.nl"
030272f3 4053 $as_echo 'EGREP' >> "conftest.nl"
db137867
AC
4054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4056 as_fn_arith $ac_count + 1 && ac_count=$as_val
db137867
AC
4057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4058 # Best one so far, save it but keep looking for a better one
4059 ac_cv_path_EGREP="$ac_path_EGREP"
4060 ac_path_EGREP_max=$ac_count
4061 fi
4062 # 10*(2^10) chars as input seems more than enough
4063 test $ac_count -gt 10 && break
4064 done
4065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4066esac
4067
030272f3
VY
4068 $ac_path_EGREP_found && break 3
4069 done
db137867 4070 done
7083c021 4071 done
db137867 4072IFS=$as_save_IFS
030272f3 4073 if test -z "$ac_cv_path_EGREP"; then
08c2568c 4074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4075 fi
db137867
AC
4076else
4077 ac_cv_path_EGREP=$EGREP
4078fi
4079
db137867
AC
4080 fi
4081fi
7083c021 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
030272f3 4083$as_echo "$ac_cv_path_EGREP" >&6; }
db137867
AC
4084 EGREP="$ac_cv_path_EGREP"
4085
4086
7083c021 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
030272f3 4088$as_echo_n "checking for ANSI C header files... " >&6; }
08c2568c 4089if ${ac_cv_header_stdc+:} false; then :
030272f3 4090 $as_echo_n "(cached) " >&6
db137867 4091else
7083c021 4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4093/* end confdefs.h. */
030272f3
VY
4094#include <stdlib.h>
4095#include <stdarg.h>
4096#include <string.h>
4097#include <float.h>
db137867 4098
db137867
AC
4099int
4100main ()
4101{
030272f3 4102
db137867
AC
4103 ;
4104 return 0;
4105}
4106_ACEOF
7083c021 4107if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4108 ac_cv_header_stdc=yes
db137867 4109else
7083c021 4110 ac_cv_header_stdc=no
db137867 4111fi
030272f3
VY
4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113
4114if test $ac_cv_header_stdc = yes; then
4115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7083c021 4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4117/* end confdefs.h. */
4118#include <string.h>
4119
4120_ACEOF
4121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021
AC
4122 $EGREP "memchr" >/dev/null 2>&1; then :
4123
db137867 4124else
030272f3 4125 ac_cv_header_stdc=no
db137867 4126fi
030272f3 4127rm -f conftest*
db137867
AC
4128
4129fi
4130
030272f3
VY
4131if test $ac_cv_header_stdc = yes; then
4132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7083c021 4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4134/* end confdefs.h. */
030272f3 4135#include <stdlib.h>
db137867
AC
4136
4137_ACEOF
030272f3 4138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021
AC
4139 $EGREP "free" >/dev/null 2>&1; then :
4140
db137867 4141else
030272f3 4142 ac_cv_header_stdc=no
db137867 4143fi
030272f3 4144rm -f conftest*
db137867
AC
4145
4146fi
db137867 4147
030272f3
VY
4148if test $ac_cv_header_stdc = yes; then
4149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7083c021 4150 if test "$cross_compiling" = yes; then :
030272f3 4151 :
db137867 4152else
7083c021 4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4154/* end confdefs.h. */
030272f3
VY
4155#include <ctype.h>
4156#include <stdlib.h>
4157#if ((' ' & 0x0FF) == 0x020)
4158# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4160#else
4161# define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
db137867
AC
4166#endif
4167
030272f3
VY
4168#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169int
4170main ()
4171{
4172 int i;
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4176 return 2;
db137867
AC
4177 return 0;
4178}
4179_ACEOF
7083c021 4180if ac_fn_c_try_run "$LINENO"; then :
030272f3 4181
7083c021
AC
4182else
4183 ac_cv_header_stdc=no
030272f3 4184fi
7083c021
AC
4185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4186 conftest.$ac_objext conftest.beam conftest.$ac_ext
030272f3
VY
4187fi
4188
030272f3
VY
4189fi
4190fi
7083c021 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
030272f3
VY
4192$as_echo "$ac_cv_header_stdc" >&6; }
4193if test $ac_cv_header_stdc = yes; then
4194
7083c021 4195$as_echo "#define STDC_HEADERS 1" >>confdefs.h
030272f3
VY
4196
4197fi
4198
4199# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7083c021
AC
4200for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4201 inttypes.h stdint.h unistd.h
4202do :
4203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4204ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4205"
08c2568c 4206if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
4207 cat >>confdefs.h <<_ACEOF
4208#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209_ACEOF
030272f3 4210
7083c021 4211fi
030272f3 4212
7083c021 4213done
030272f3
VY
4214
4215
4216
7083c021 4217 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
08c2568c 4218if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021
AC
4219 MINIX=yes
4220else
4221 MINIX=
4222fi
030272f3
VY
4223
4224
7083c021 4225 if test "$MINIX" = yes; then
030272f3 4226
7083c021 4227$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
030272f3 4228
db137867 4229
7083c021 4230$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
db137867 4231
db137867 4232
7083c021 4233$as_echo "#define _MINIX 1" >>confdefs.h
030272f3 4234
7083c021 4235 fi
030272f3
VY
4236
4237
7083c021 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
030272f3 4239$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
08c2568c 4240if ${ac_cv_safe_to_define___extensions__+:} false; then :
030272f3 4241 $as_echo_n "(cached) " >&6
db137867 4242else
7083c021 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 4244/* end confdefs.h. */
db137867 4245
030272f3
VY
4246# define __EXTENSIONS__ 1
4247 $ac_includes_default
4248int
4249main ()
4250{
4251
4252 ;
4253 return 0;
4254}
4255_ACEOF
7083c021 4256if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4257 ac_cv_safe_to_define___extensions__=yes
db137867 4258else
7083c021 4259 ac_cv_safe_to_define___extensions__=no
db137867 4260fi
030272f3
VY
4261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262fi
7083c021 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
030272f3
VY
4264$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4265 test $ac_cv_safe_to_define___extensions__ = yes &&
7083c021 4266 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
db137867 4267
7083c021 4268 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
030272f3 4269
7083c021 4270 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
030272f3 4271
7083c021
AC
4272 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4273
4274 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
030272f3 4275
030272f3
VY
4276
4277
4278
7083c021 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
030272f3 4280$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
08c2568c 4281if ${ac_cv_prog_cc_c99+:} false; then :
030272f3 4282 $as_echo_n "(cached) " >&6
db137867 4283else
030272f3
VY
4284 ac_cv_prog_cc_c99=no
4285ac_save_CC=$CC
7083c021 4286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4287/* end confdefs.h. */
4288#include <stdarg.h>
4289#include <stdbool.h>
4290#include <stdlib.h>
4291#include <wchar.h>
4292#include <stdio.h>
db137867 4293
030272f3
VY
4294// Check varargs macros. These examples are taken from C99 6.10.3.5.
4295#define debug(...) fprintf (stderr, __VA_ARGS__)
4296#define showlist(...) puts (#__VA_ARGS__)
4297#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4298static void
4299test_varargs_macros (void)
4300{
4301 int x = 1234;
4302 int y = 5678;
4303 debug ("Flag");
4304 debug ("X = %d\n", x);
4305 showlist (The first, second, and third items.);
4306 report (x>y, "x is %d but y is %d", x, y);
4307}
db137867 4308
030272f3
VY
4309// Check long long types.
4310#define BIG64 18446744073709551615ull
4311#define BIG32 4294967295ul
4312#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4313#if !BIG_OK
4314 your preprocessor is broken;
4315#endif
4316#if BIG_OK
4317#else
4318 your preprocessor is broken;
4319#endif
4320static long long int bignum = -9223372036854775807LL;
4321static unsigned long long int ubignum = BIG64;
db137867 4322
030272f3
VY
4323struct incomplete_array
4324{
4325 int datasize;
4326 double data[];
4327};
db137867 4328
030272f3
VY
4329struct named_init {
4330 int number;
4331 const wchar_t *name;
4332 double average;
4333};
db137867 4334
030272f3 4335typedef const char *ccp;
db137867 4336
030272f3
VY
4337static inline int
4338test_restrict (ccp restrict text)
4339{
4340 // See if C++-style comments work.
4341 // Iterate through items via the restricted pointer.
4342 // Also check for declarations in for loops.
4343 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4344 continue;
4345 return 0;
4346}
db137867 4347
030272f3
VY
4348// Check varargs and va_copy.
4349static void
4350test_varargs (const char *format, ...)
4351{
4352 va_list args;
4353 va_start (args, format);
4354 va_list args_copy;
4355 va_copy (args_copy, args);
db137867 4356
030272f3
VY
4357 const char *str;
4358 int number;
4359 float fnumber;
db137867 4360
030272f3
VY
4361 while (*format)
4362 {
4363 switch (*format++)
4364 {
4365 case 's': // string
4366 str = va_arg (args_copy, const char *);
4367 break;
4368 case 'd': // int
4369 number = va_arg (args_copy, int);
4370 break;
4371 case 'f': // float
4372 fnumber = va_arg (args_copy, double);
4373 break;
4374 default:
4375 break;
4376 }
4377 }
4378 va_end (args_copy);
4379 va_end (args);
4380}
db137867 4381
030272f3
VY
4382int
4383main ()
4384{
db137867 4385
030272f3
VY
4386 // Check bool.
4387 _Bool success = false;
db137867 4388
030272f3
VY
4389 // Check restrict.
4390 if (test_restrict ("String literal") == 0)
4391 success = true;
4392 char *restrict newvar = "Another string";
db137867 4393
030272f3
VY
4394 // Check varargs.
4395 test_varargs ("s, d' f .", "string", 65, 34.234);
4396 test_varargs_macros ();
db137867 4397
030272f3
VY
4398 // Check flexible array members.
4399 struct incomplete_array *ia =
4400 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4401 ia->datasize = 10;
4402 for (int i = 0; i < ia->datasize; ++i)
4403 ia->data[i] = i * 1.234;
db137867 4404
030272f3
VY
4405 // Check named initializers.
4406 struct named_init ni = {
4407 .number = 34,
4408 .name = L"Test wide string",
4409 .average = 543.34343,
4410 };
db137867 4411
030272f3 4412 ni.number = 58;
db137867 4413
030272f3
VY
4414 int dynamic_array[ni.number];
4415 dynamic_array[ni.number - 1] = 543;
4416
4417 // work around unused variable warnings
4418 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4419 || dynamic_array[ni.number - 1] != 543);
4420
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4426do
4427 CC="$ac_save_CC $ac_arg"
7083c021 4428 if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4429 ac_cv_prog_cc_c99=$ac_arg
db137867 4430fi
030272f3
VY
4431rm -f core conftest.err conftest.$ac_objext
4432 test "x$ac_cv_prog_cc_c99" != "xno" && break
4433done
4434rm -f conftest.$ac_ext
4435CC=$ac_save_CC
4436
db137867 4437fi
030272f3
VY
4438# AC_CACHE_VAL
4439case "x$ac_cv_prog_cc_c99" in
4440 x)
7083c021 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
030272f3
VY
4442$as_echo "none needed" >&6; } ;;
4443 xno)
7083c021 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
030272f3
VY
4445$as_echo "unsupported" >&6; } ;;
4446 *)
4447 CC="$CC $ac_cv_prog_cc_c99"
7083c021 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
030272f3 4449$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
db137867 4450esac
7083c021 4451if test "x$ac_cv_prog_cc_c99" != xno; then :
db137867 4452
030272f3
VY
4453fi
4454
4455
030272f3 4456
7083c021 4457if test x"$ac_cv_prog_cc_c99" = "xno"; then
08c2568c 4458 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
030272f3 4459fi
db137867 4460
db137867
AC
4461
4462
7083c021 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
030272f3 4464$as_echo_n "checking for egrep... " >&6; }
08c2568c 4465if ${ac_cv_path_EGREP+:} false; then :
030272f3 4466 $as_echo_n "(cached) " >&6
db137867 4467else
030272f3
VY
4468 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4469 then ac_cv_path_EGREP="$GREP -E"
4470 else
4471 if test -z "$EGREP"; then
4472 ac_path_EGREP_found=false
4473 # Loop through the user's path and test for each of PROGNAME-LIST
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4476do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
7083c021 4479 for ac_prog in egrep; do
030272f3
VY
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4482 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4483# Check for GNU ac_path_EGREP and select it if it is found.
4484 # Check for GNU $ac_path_EGREP
4485case `"$ac_path_EGREP" --version 2>&1` in
4486*GNU*)
4487 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4488*)
4489 ac_count=0
4490 $as_echo_n 0123456789 >"conftest.in"
4491 while :
4492 do
4493 cat "conftest.in" "conftest.in" >"conftest.tmp"
4494 mv "conftest.tmp" "conftest.in"
4495 cp "conftest.in" "conftest.nl"
4496 $as_echo 'EGREP' >> "conftest.nl"
4497 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4499 as_fn_arith $ac_count + 1 && ac_count=$as_val
030272f3
VY
4500 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4501 # Best one so far, save it but keep looking for a better one
4502 ac_cv_path_EGREP="$ac_path_EGREP"
4503 ac_path_EGREP_max=$ac_count
4504 fi
4505 # 10*(2^10) chars as input seems more than enough
4506 test $ac_count -gt 10 && break
4507 done
4508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4509esac
db137867 4510
030272f3
VY
4511 $ac_path_EGREP_found && break 3
4512 done
4513 done
7083c021 4514 done
030272f3
VY
4515IFS=$as_save_IFS
4516 if test -z "$ac_cv_path_EGREP"; then
08c2568c 4517 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4518 fi
db137867 4519else
030272f3 4520 ac_cv_path_EGREP=$EGREP
db137867 4521fi
030272f3
VY
4522
4523 fi
4524fi
7083c021 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
030272f3
VY
4526$as_echo "$ac_cv_path_EGREP" >&6; }
4527 EGREP="$ac_cv_path_EGREP"
4528
4529
7083c021 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
030272f3 4531$as_echo_n "checking for a sed that does not truncate output... " >&6; }
08c2568c 4532if ${ac_cv_path_SED+:} false; then :
030272f3
VY
4533 $as_echo_n "(cached) " >&6
4534else
4535 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4536 for ac_i in 1 2 3 4 5 6 7; do
4537 ac_script="$ac_script$as_nl$ac_script"
4538 done
4539 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7083c021 4540 { ac_script=; unset ac_script;}
030272f3
VY
4541 if test -z "$SED"; then
4542 ac_path_SED_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
7083c021 4549 for ac_prog in sed gsed; do
030272f3
VY
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4553# Check for GNU ac_path_SED and select it if it is found.
4554 # Check for GNU $ac_path_SED
4555case `"$ac_path_SED" --version 2>&1` in
4556*GNU*)
4557 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4558*)
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4562 do
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo '' >> "conftest.nl"
4567 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
030272f3
VY
4570 if test $ac_count -gt ${ac_path_SED_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_SED="$ac_path_SED"
4573 ac_path_SED_max=$ac_count
db137867 4574 fi
030272f3
VY
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
db137867 4577 done
030272f3
VY
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579esac
4580
4581 $ac_path_SED_found && break 3
4582 done
4583 done
7083c021 4584 done
030272f3
VY
4585IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_SED"; then
08c2568c 4587 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
030272f3 4588 fi
db137867 4589else
030272f3 4590 ac_cv_path_SED=$SED
db137867 4591fi
030272f3 4592
db137867 4593fi
7083c021 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
030272f3
VY
4595$as_echo "$ac_cv_path_SED" >&6; }
4596 SED="$ac_cv_path_SED"
4597 rm -f conftest.sed
db137867 4598
030272f3
VY
4599
4600F77=no
4601CXX=no
4602GCJ=no
4603
4604# Check whether --enable-static was given.
7083c021 4605if test "${enable_static+set}" = set; then :
030272f3
VY
4606 enableval=$enable_static; p=${PACKAGE-default}
4607 case $enableval in
4608 yes) enable_static=yes ;;
4609 no) enable_static=no ;;
4610 *)
4611 enable_static=no
4612 # Look at the argument we got. We use all the common list separators.
4613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4614 for pkg in $enableval; do
4615 IFS="$lt_save_ifs"
4616 if test "X$pkg" = "X$p"; then
4617 enable_static=yes
4618 fi
4619 done
4620 IFS="$lt_save_ifs"
4621 ;;
4622 esac
db137867 4623else
030272f3 4624 enable_static=no
db137867 4625fi
030272f3
VY
4626
4627
4628
7083c021
AC
4629
4630
4631
4632
4633
4634
030272f3 4635# Check whether --enable-shared was given.
7083c021 4636if test "${enable_shared+set}" = set; then :
030272f3
VY
4637 enableval=$enable_shared; p=${PACKAGE-default}
4638 case $enableval in
4639 yes) enable_shared=yes ;;
4640 no) enable_shared=no ;;
4641 *)
4642 enable_shared=no
4643 # Look at the argument we got. We use all the common list separators.
4644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4645 for pkg in $enableval; do
4646 IFS="$lt_save_ifs"
4647 if test "X$pkg" = "X$p"; then
4648 enable_shared=yes
4649 fi
4650 done
4651 IFS="$lt_save_ifs"
4652 ;;
4653 esac
db137867 4654else
030272f3 4655 enable_shared=yes
db137867 4656fi
db137867
AC
4657
4658
7083c021
AC
4659
4660
4661
4662
4663
4664
4665
4666
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
030272f3
VY
4668$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4669 # Check whether --enable-maintainer-mode was given.
7083c021 4670if test "${enable_maintainer_mode+set}" = set; then :
030272f3 4671 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
db137867 4672else
030272f3 4673 USE_MAINTAINER_MODE=no
db137867 4674fi
030272f3 4675
7083c021 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
030272f3
VY
4677$as_echo "$USE_MAINTAINER_MODE" >&6; }
4678 if test $USE_MAINTAINER_MODE = yes; then
4679 MAINTAINER_MODE_TRUE=
4680 MAINTAINER_MODE_FALSE='#'
4681else
4682 MAINTAINER_MODE_TRUE='#'
4683 MAINTAINER_MODE_FALSE=
4684fi
4685
4686 MAINT=$MAINTAINER_MODE_TRUE
4687
4688
4689
7083c021 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
030272f3 4691$as_echo_n "checking for library containing strerror... " >&6; }
08c2568c 4692if ${ac_cv_search_strerror+:} false; then :
030272f3
VY
4693 $as_echo_n "(cached) " >&6
4694else
4695 ac_func_search_save_LIBS=$LIBS
7083c021 4696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4697/* end confdefs.h. */
4698
4699/* Override any GCC internal prototype to avoid an error.
4700 Use char because int might match the return type of a GCC
4701 builtin and then its argument prototype would still apply. */
4702#ifdef __cplusplus
4703extern "C"
4704#endif
4705char strerror ();
4706int
4707main ()
4708{
4709return strerror ();
4710 ;
4711 return 0;
4712}
4713_ACEOF
4714for ac_lib in '' cposix; do
4715 if test -z "$ac_lib"; then
4716 ac_res="none required"
4717 else
4718 ac_res=-l$ac_lib
4719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4720 fi
7083c021 4721 if ac_fn_c_try_link "$LINENO"; then :
030272f3 4722 ac_cv_search_strerror=$ac_res
030272f3 4723fi
7083c021
AC
4724rm -f core conftest.err conftest.$ac_objext \
4725 conftest$ac_exeext
08c2568c 4726 if ${ac_cv_search_strerror+:} false; then :
030272f3
VY
4727 break
4728fi
4729done
08c2568c 4730if ${ac_cv_search_strerror+:} false; then :
7083c021 4731
030272f3
VY
4732else
4733 ac_cv_search_strerror=no
4734fi
4735rm conftest.$ac_ext
4736LIBS=$ac_func_search_save_LIBS
4737fi
7083c021 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
030272f3
VY
4739$as_echo "$ac_cv_search_strerror" >&6; }
4740ac_res=$ac_cv_search_strerror
7083c021 4741if test "$ac_res" != no; then :
030272f3
VY
4742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4743
4744fi
4745
7083c021 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
030272f3 4747$as_echo_n "checking for inline... " >&6; }
08c2568c 4748if ${ac_cv_c_inline+:} false; then :
030272f3
VY
4749 $as_echo_n "(cached) " >&6
4750else
4751 ac_cv_c_inline=no
4752for ac_kw in inline __inline__ __inline; do
7083c021 4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4754/* end confdefs.h. */
4755#ifndef __cplusplus
4756typedef int foo_t;
4757static $ac_kw foo_t static_foo () {return 0; }
4758$ac_kw foo_t foo () {return 0; }
4759#endif
4760
4761_ACEOF
7083c021 4762if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4763 ac_cv_c_inline=$ac_kw
030272f3 4764fi
030272f3
VY
4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 test "$ac_cv_c_inline" != no && break
4767done
4768
4769fi
7083c021 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
030272f3
VY
4771$as_echo "$ac_cv_c_inline" >&6; }
4772
030272f3
VY
4773case $ac_cv_c_inline in
4774 inline | yes) ;;
4775 *)
4776 case $ac_cv_c_inline in
4777 no) ac_val=;;
4778 *) ac_val=$ac_cv_c_inline;;
4779 esac
4780 cat >>confdefs.h <<_ACEOF
4781#ifndef __cplusplus
4782#define inline $ac_val
4783#endif
4784_ACEOF
db137867
AC
4785 ;;
4786esac
4787
7083c021 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
030272f3 4789$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
08c2568c 4790if ${ac_cv_c_const+:} false; then :
030272f3 4791 $as_echo_n "(cached) " >&6
db137867 4792else
7083c021 4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4794/* end confdefs.h. */
4795
4796int
4797main ()
4798{
4799/* FIXME: Include the comments suggested by Paul. */
4800#ifndef __cplusplus
4801 /* Ultrix mips cc rejects this. */
4802 typedef int charset[2];
4803 const charset cs;
4804 /* SunOS 4.1.1 cc rejects this. */
4805 char const *const *pcpcc;
4806 char **ppc;
4807 /* NEC SVR4.0.2 mips cc rejects this. */
4808 struct point {int x, y;};
4809 static struct point const zero = {0,0};
4810 /* AIX XL C 1.02.0.0 rejects this.
4811 It does not let you subtract one const X* pointer from another in
4812 an arm of an if-expression whose if-part is not a constant
4813 expression */
4814 const char *g = "string";
4815 pcpcc = &g + (g ? g-g : 0);
4816 /* HPUX 7.0 cc rejects these. */
4817 ++pcpcc;
4818 ppc = (char**) pcpcc;
4819 pcpcc = (char const *const *) ppc;
4820 { /* SCO 3.2v4 cc rejects this. */
4821 char *t;
4822 char const *s = 0 ? (char *) 0 : (char const *) 0;
4823
4824 *t++ = 0;
4825 if (s) return 0;
4826 }
4827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4828 int x[] = {25, 17};
4829 const int *foo = &x[0];
4830 ++foo;
4831 }
4832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4833 typedef const int *iptr;
4834 iptr p = 0;
4835 ++p;
4836 }
4837 { /* AIX XL C 1.02.0.0 rejects this saying
4838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4839 struct s { int j; const int *ap[3]; };
4840 struct s *b; b->j = 5;
4841 }
4842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4843 const int foo = 10;
4844 if (!foo) return 0;
4845 }
4846 return !cs[0] && !zero.x;
4847#endif
4848
4849 ;
4850 return 0;
4851}
4852_ACEOF
7083c021 4853if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4854 ac_cv_c_const=yes
db137867 4855else
7083c021 4856 ac_cv_c_const=no
030272f3 4857fi
030272f3
VY
4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859fi
7083c021 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
030272f3
VY
4861$as_echo "$ac_cv_c_const" >&6; }
4862if test $ac_cv_c_const = no; then
4863
7083c021 4864$as_echo "#define const /**/" >>confdefs.h
030272f3
VY
4865
4866fi
4867
f171dafb
EM
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4869$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4870if ${ac_cv_c_bigendian+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872else
4873 ac_cv_c_bigendian=unknown
4874 # See if we're dealing with a universal compiler.
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876/* end confdefs.h. */
4877#ifndef __APPLE_CC__
4878 not a universal capable compiler
4879 #endif
4880 typedef int dummy;
4881
4882_ACEOF
4883if ac_fn_c_try_compile "$LINENO"; then :
4884
4885 # Check for potential -arch flags. It is not universal unless
4886 # there are at least two -arch flags with different values.
4887 ac_arch=
4888 ac_prev=
4889 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4890 if test -n "$ac_prev"; then
4891 case $ac_word in
4892 i?86 | x86_64 | ppc | ppc64)
4893 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4894 ac_arch=$ac_word
4895 else
4896 ac_cv_c_bigendian=universal
4897 break
4898 fi
4899 ;;
4900 esac
4901 ac_prev=
4902 elif test "x$ac_word" = "x-arch"; then
4903 ac_prev=arch
4904 fi
4905 done
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 if test $ac_cv_c_bigendian = unknown; then
4909 # See if sys/param.h defines the BYTE_ORDER macro.
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h. */
4912#include <sys/types.h>
4913 #include <sys/param.h>
4914
4915int
4916main ()
4917{
4918#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4919 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4920 && LITTLE_ENDIAN)
4921 bogus endian macros
4922 #endif
4923
4924 ;
4925 return 0;
4926}
4927_ACEOF
4928if ac_fn_c_try_compile "$LINENO"; then :
4929 # It does; now see whether it defined to BIG_ENDIAN or not.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931/* end confdefs.h. */
4932#include <sys/types.h>
4933 #include <sys/param.h>
4934
4935int
4936main ()
4937{
4938#if BYTE_ORDER != BIG_ENDIAN
4939 not big endian
4940 #endif
4941
4942 ;
4943 return 0;
4944}
4945_ACEOF
4946if ac_fn_c_try_compile "$LINENO"; then :
4947 ac_cv_c_bigendian=yes
4948else
4949 ac_cv_c_bigendian=no
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 fi
4955 if test $ac_cv_c_bigendian = unknown; then
4956 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h. */
4959#include <limits.h>
4960
4961int
4962main ()
4963{
4964#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4965 bogus endian macros
4966 #endif
4967
4968 ;
4969 return 0;
4970}
4971_ACEOF
4972if ac_fn_c_try_compile "$LINENO"; then :
4973 # It does; now see whether it defined to _BIG_ENDIAN or not.
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h. */
4976#include <limits.h>
4977
4978int
4979main ()
4980{
4981#ifndef _BIG_ENDIAN
4982 not big endian
4983 #endif
4984
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989if ac_fn_c_try_compile "$LINENO"; then :
4990 ac_cv_c_bigendian=yes
4991else
4992 ac_cv_c_bigendian=no
4993fi
4994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995fi
4996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 fi
4998 if test $ac_cv_c_bigendian = unknown; then
4999 # Compile a test program.
5000 if test "$cross_compiling" = yes; then :
5001 # Try to guess by grepping values from an object file.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h. */
5004short int ascii_mm[] =
5005 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5006 short int ascii_ii[] =
5007 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5008 int use_ascii (int i) {
5009 return ascii_mm[i] + ascii_ii[i];
5010 }
5011 short int ebcdic_ii[] =
5012 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5013 short int ebcdic_mm[] =
5014 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5015 int use_ebcdic (int i) {
5016 return ebcdic_mm[i] + ebcdic_ii[i];
5017 }
5018 extern int foo;
5019
5020int
5021main ()
5022{
5023return use_ascii (foo) == use_ebcdic (foo);
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028if ac_fn_c_try_compile "$LINENO"; then :
5029 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5030 ac_cv_c_bigendian=yes
5031 fi
5032 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5033 if test "$ac_cv_c_bigendian" = unknown; then
5034 ac_cv_c_bigendian=no
5035 else
5036 # finding both strings is unlikely to happen, but who knows?
5037 ac_cv_c_bigendian=unknown
5038 fi
5039 fi
5040fi
5041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042else
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h. */
5045$ac_includes_default
5046int
5047main ()
5048{
5049
5050 /* Are we little or big endian? From Harbison&Steele. */
5051 union
5052 {
5053 long int l;
5054 char c[sizeof (long int)];
5055 } u;
5056 u.l = 1;
5057 return u.c[sizeof (long int) - 1] == 1;
5058
5059 ;
5060 return 0;
5061}
5062_ACEOF
5063if ac_fn_c_try_run "$LINENO"; then :
5064 ac_cv_c_bigendian=no
5065else
5066 ac_cv_c_bigendian=yes
5067fi
5068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5069 conftest.$ac_objext conftest.beam conftest.$ac_ext
5070fi
5071
5072 fi
5073fi
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5075$as_echo "$ac_cv_c_bigendian" >&6; }
5076 case $ac_cv_c_bigendian in #(
5077 yes)
5078 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5079;; #(
5080 no)
5081 ;; #(
5082 universal)
5083
5084$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5085
5086 ;; #(
5087 *)
5088 as_fn_error $? "unknown endianness
5089 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5090 esac
5091
7083c021 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
030272f3
VY
5093$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5094set x ${MAKE-make}
5095ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
08c2568c 5096if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
030272f3
VY
5097 $as_echo_n "(cached) " >&6
5098else
5099 cat >conftest.make <<\_ACEOF
5100SHELL = /bin/sh
5101all:
5102 @echo '@@@%%%=$(MAKE)=@@@%%%'
5103_ACEOF
08c2568c 5104# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
030272f3
VY
5105case `${MAKE-make} -f conftest.make 2>/dev/null` in
5106 *@@@%%%=?*=@@@%%%*)
5107 eval ac_cv_prog_make_${ac_make}_set=yes;;
5108 *)
5109 eval ac_cv_prog_make_${ac_make}_set=no;;
5110esac
5111rm -f conftest.make
5112fi
5113if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7083c021 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3
VY
5115$as_echo "yes" >&6; }
5116 SET_MAKE=
5117else
7083c021 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5119$as_echo "no" >&6; }
5120 SET_MAKE="MAKE=${MAKE-make}"
5121fi
5122
db137867 5123
030272f3
VY
5124# Extract the first word of "automake", so it can be a program name with args.
5125set dummy automake; ac_word=$2
7083c021 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5127$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5128if ${ac_cv_path_AUTOMAKE+:} false; then :
030272f3
VY
5129 $as_echo_n "(cached) " >&6
5130else
5131 case $AUTOMAKE in
5132 [\\/]* | ?:[\\/]*)
5133 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
db137867 5134 ;;
030272f3
VY
5135 *)
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
7083c021 5141 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
7083c021 5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5145 break 2
5146 fi
5147done
7083c021 5148 done
030272f3 5149IFS=$as_save_IFS
db137867 5150
db137867 5151 ;;
030272f3
VY
5152esac
5153fi
5154AUTOMAKE=$ac_cv_path_AUTOMAKE
5155if test -n "$AUTOMAKE"; then
7083c021 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
030272f3
VY
5157$as_echo "$AUTOMAKE" >&6; }
5158else
7083c021 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5160$as_echo "no" >&6; }
5161fi
db137867 5162
db137867 5163
030272f3
VY
5164# Extract the first word of "aclocal", so it can be a program name with args.
5165set dummy aclocal; ac_word=$2
7083c021 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5167$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5168if ${ac_cv_path_ACLOCAL+:} false; then :
030272f3
VY
5169 $as_echo_n "(cached) " >&6
5170else
5171 case $ACLOCAL in
5172 [\\/]* | ?:[\\/]*)
5173 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
db137867 5174 ;;
db137867 5175 *)
030272f3
VY
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177for as_dir in $PATH
5178do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
7083c021 5181 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
7083c021 5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5185 break 2
5186 fi
5187done
7083c021 5188 done
030272f3 5189IFS=$as_save_IFS
db137867 5190
db137867 5191 ;;
030272f3
VY
5192esac
5193fi
5194ACLOCAL=$ac_cv_path_ACLOCAL
5195if test -n "$ACLOCAL"; then
7083c021 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
030272f3
VY
5197$as_echo "$ACLOCAL" >&6; }
5198else
7083c021 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5200$as_echo "no" >&6; }
5201fi
db137867 5202
db137867 5203
030272f3
VY
5204# Extract the first word of "autoheader", so it can be a program name with args.
5205set dummy autoheader; ac_word=$2
7083c021 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5207$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5208if ${ac_cv_path_AUTOHEADER+:} false; then :
030272f3
VY
5209 $as_echo_n "(cached) " >&6
5210else
5211 case $AUTOHEADER in
5212 [\\/]* | ?:[\\/]*)
5213 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
db137867 5214 ;;
030272f3
VY
5215 *)
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
7083c021 5221 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
7083c021 5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3 5225 break 2
db137867 5226 fi
030272f3 5227done
7083c021 5228 done
030272f3
VY
5229IFS=$as_save_IFS
5230
db137867 5231 ;;
030272f3
VY
5232esac
5233fi
5234AUTOHEADER=$ac_cv_path_AUTOHEADER
5235if test -n "$AUTOHEADER"; then
7083c021 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
030272f3
VY
5237$as_echo "$AUTOHEADER" >&6; }
5238else
7083c021 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5240$as_echo "no" >&6; }
5241fi
db137867 5242
030272f3
VY
5243
5244# Extract the first word of "as", so it can be a program name with args.
5245set dummy as; ac_word=$2
7083c021 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5247$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5248if ${ac_cv_path_AS+:} false; then :
030272f3
VY
5249 $as_echo_n "(cached) " >&6
5250else
5251 case $AS in
5252 [\\/]* | ?:[\\/]*)
5253 ac_cv_path_AS="$AS" # Let the user override the test with a path.
db137867 5254 ;;
030272f3
VY
5255 *)
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
7083c021 5261 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
7083c021 5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5265 break 2
5266 fi
5267done
7083c021 5268 done
030272f3 5269IFS=$as_save_IFS
db137867 5270
db137867 5271 ;;
030272f3
VY
5272esac
5273fi
5274AS=$ac_cv_path_AS
5275if test -n "$AS"; then
7083c021 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
030272f3
VY
5277$as_echo "$AS" >&6; }
5278else
7083c021 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5280$as_echo "no" >&6; }
5281fi
db137867 5282
db137867 5283
030272f3
VY
5284# Extract the first word of "rm", so it can be a program name with args.
5285set dummy rm; ac_word=$2
7083c021 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5287$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5288if ${ac_cv_path_RM+:} false; then :
030272f3
VY
5289 $as_echo_n "(cached) " >&6
5290else
5291 case $RM in
5292 [\\/]* | ?:[\\/]*)
5293 ac_cv_path_RM="$RM" # Let the user override the test with a path.
db137867 5294 ;;
030272f3
VY
5295 *)
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
7083c021 5301 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7083c021 5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5305 break 2
5306 fi
5307done
7083c021 5308 done
030272f3 5309IFS=$as_save_IFS
db137867 5310
db137867 5311 ;;
030272f3
VY
5312esac
5313fi
5314RM=$ac_cv_path_RM
5315if test -n "$RM"; then
7083c021 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
030272f3
VY
5317$as_echo "$RM" >&6; }
5318else
7083c021 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5320$as_echo "no" >&6; }
5321fi
db137867 5322
db137867 5323
030272f3
VY
5324# Extract the first word of "cp", so it can be a program name with args.
5325set dummy cp; ac_word=$2
7083c021 5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5327$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5328if ${ac_cv_path_CP+:} false; then :
030272f3
VY
5329 $as_echo_n "(cached) " >&6
5330else
5331 case $CP in
5332 [\\/]* | ?:[\\/]*)
5333 ac_cv_path_CP="$CP" # Let the user override the test with a path.
db137867 5334 ;;
030272f3
VY
5335 *)
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
7083c021 5341 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
7083c021 5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5345 break 2
5346 fi
5347done
7083c021 5348 done
030272f3 5349IFS=$as_save_IFS
db137867 5350
db137867
AC
5351 ;;
5352esac
db137867 5353fi
030272f3
VY
5354CP=$ac_cv_path_CP
5355if test -n "$CP"; then
7083c021 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
030272f3
VY
5357$as_echo "$CP" >&6; }
5358else
7083c021 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5360$as_echo "no" >&6; }
db137867
AC
5361fi
5362
db137867 5363
030272f3
VY
5364# Extract the first word of "mv", so it can be a program name with args.
5365set dummy mv; ac_word=$2
7083c021 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5367$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5368if ${ac_cv_path_MV+:} false; then :
030272f3
VY
5369 $as_echo_n "(cached) " >&6
5370else
5371 case $MV in
5372 [\\/]* | ?:[\\/]*)
5373 ac_cv_path_MV="$MV" # Let the user override the test with a path.
db137867 5374 ;;
030272f3
VY
5375 *)
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377for as_dir in $PATH
5378do
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
7083c021 5381 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7083c021 5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3 5385 break 2
db137867 5386 fi
030272f3 5387done
7083c021 5388 done
030272f3 5389IFS=$as_save_IFS
db137867 5390
db137867 5391 ;;
030272f3
VY
5392esac
5393fi
5394MV=$ac_cv_path_MV
5395if test -n "$MV"; then
7083c021 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
030272f3
VY
5397$as_echo "$MV" >&6; }
5398else
7083c021 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5400$as_echo "no" >&6; }
5401fi
5402
5403
5404# Extract the first word of "ln", so it can be a program name with args.
5405set dummy ln; ac_word=$2
7083c021 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5407$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5408if ${ac_cv_path_LN+:} false; then :
030272f3
VY
5409 $as_echo_n "(cached) " >&6
5410else
5411 case $LN in
5412 [\\/]* | ?:[\\/]*)
5413 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5414 ;;
5415 *)
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417for as_dir in $PATH
5418do
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
7083c021 5421 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7083c021 5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5425 break 2
5426 fi
5427done
7083c021 5428 done
030272f3 5429IFS=$as_save_IFS
db137867 5430
030272f3
VY
5431 ;;
5432esac
5433fi
5434LN=$ac_cv_path_LN
5435if test -n "$LN"; then
7083c021 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
030272f3 5437$as_echo "$LN" >&6; }
db137867 5438else
7083c021 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5440$as_echo "no" >&6; }
5441fi
db137867 5442
db137867 5443
030272f3
VY
5444# Extract the first word of "touch", so it can be a program name with args.
5445set dummy touch; ac_word=$2
7083c021 5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5447$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5448if ${ac_cv_path_TOUCH+:} false; then :
030272f3
VY
5449 $as_echo_n "(cached) " >&6
5450else
5451 case $TOUCH in
5452 [\\/]* | ?:[\\/]*)
5453 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5454 ;;
5455 *)
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
7083c021 5461 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
7083c021 5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5465 break 2
5466 fi
5467done
7083c021 5468 done
030272f3 5469IFS=$as_save_IFS
db137867 5470
030272f3 5471 ;;
db137867 5472esac
030272f3
VY
5473fi
5474TOUCH=$ac_cv_path_TOUCH
5475if test -n "$TOUCH"; then
7083c021 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
030272f3 5477$as_echo "$TOUCH" >&6; }
db137867 5478else
7083c021 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5480$as_echo "no" >&6; }
db137867
AC
5481fi
5482
030272f3
VY
5483
5484ac_ext=c
db137867
AC
5485ac_cpp='$CPP $CPPFLAGS'
5486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5488ac_compiler_gnu=$ac_cv_c_compiler_gnu
5489
030272f3 5490
7083c021
AC
5491case `pwd` in
5492 *\ * | *\ *)
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5494$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5495esac
5496
5497
5498
b6d0720c
AC
5499macro_version='2.4'
5500macro_revision='1.3293'
7083c021
AC
5501
5502
5503
5504
5505
5506
5507
5508
5509
030272f3
VY
5510
5511
7083c021
AC
5512
5513
5514ltmain="$ac_aux_dir/ltmain.sh"
5515
030272f3
VY
5516# Make sure we can run config.sub.
5517$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
08c2568c 5518 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
030272f3 5519
7083c021 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
030272f3 5521$as_echo_n "checking build system type... " >&6; }
08c2568c 5522if ${ac_cv_build+:} false; then :
030272f3
VY
5523 $as_echo_n "(cached) " >&6
5524else
5525 ac_build_alias=$build_alias
5526test "x$ac_build_alias" = x &&
5527 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5528test "x$ac_build_alias" = x &&
08c2568c 5529 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
030272f3 5530ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
08c2568c 5531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
030272f3
VY
5532
5533fi
7083c021 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
030272f3
VY
5535$as_echo "$ac_cv_build" >&6; }
5536case $ac_cv_build in
5537*-*-*) ;;
08c2568c 5538*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
030272f3
VY
5539esac
5540build=$ac_cv_build
5541ac_save_IFS=$IFS; IFS='-'
5542set x $ac_cv_build
5543shift
5544build_cpu=$1
5545build_vendor=$2
5546shift; shift
5547# Remember, the first character of IFS is used to create $*,
5548# except with old shells:
5549build_os=$*
5550IFS=$ac_save_IFS
5551case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5552
5553
7083c021 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
030272f3 5555$as_echo_n "checking host system type... " >&6; }
08c2568c 5556if ${ac_cv_host+:} false; then :
030272f3
VY
5557 $as_echo_n "(cached) " >&6
5558else
5559 if test "x$host_alias" = x; then
5560 ac_cv_host=$ac_cv_build
5561else
5562 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
08c2568c 5563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
030272f3
VY
5564fi
5565
5566fi
7083c021 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
030272f3
VY
5568$as_echo "$ac_cv_host" >&6; }
5569case $ac_cv_host in
5570*-*-*) ;;
08c2568c 5571*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
030272f3
VY
5572esac
5573host=$ac_cv_host
5574ac_save_IFS=$IFS; IFS='-'
5575set x $ac_cv_host
5576shift
5577host_cpu=$1
5578host_vendor=$2
5579shift; shift
5580# Remember, the first character of IFS is used to create $*,
5581# except with old shells:
5582host_os=$*
5583IFS=$ac_save_IFS
5584case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5585
5586
b6d0720c
AC
5587# Backslashify metacharacters that are still active within
5588# double-quoted strings.
5589sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5590
5591# Same as above, but do not quote variable references.
5592double_quote_subst='s/\(["`\\]\)/\\\1/g'
5593
5594# Sed substitution to delay expansion of an escaped shell variable in a
5595# double_quote_subst'ed string.
5596delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5597
5598# Sed substitution to delay expansion of an escaped single quote.
5599delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5600
5601# Sed substitution to avoid accidental globbing in evaled expressions
5602no_glob_subst='s/\*/\\\*/g'
5603
5604ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5605ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5606ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5607
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5609$as_echo_n "checking how to print strings... " >&6; }
5610# Test print first, because it will be a builtin if present.
5611if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5612 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5613 ECHO='print -r --'
5614elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5615 ECHO='printf %s\n'
5616else
5617 # Use this function as a fallback that always works.
5618 func_fallback_echo ()
5619 {
5620 eval 'cat <<_LTECHO_EOF
5621$1
5622_LTECHO_EOF'
5623 }
5624 ECHO='func_fallback_echo'
5625fi
5626
5627# func_echo_all arg...
5628# Invoke $ECHO with all args, space-separated.
5629func_echo_all ()
5630{
5631 $ECHO ""
5632}
5633
5634case "$ECHO" in
5635 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5636$as_echo "printf" >&6; } ;;
5637 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5638$as_echo "print -r" >&6; } ;;
5639 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5640$as_echo "cat" >&6; } ;;
5641esac
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
7083c021 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
030272f3 5657$as_echo_n "checking for a sed that does not truncate output... " >&6; }
08c2568c 5658if ${ac_cv_path_SED+:} false; then :
030272f3
VY
5659 $as_echo_n "(cached) " >&6
5660else
7083c021
AC
5661 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5662 for ac_i in 1 2 3 4 5 6 7; do
5663 ac_script="$ac_script$as_nl$ac_script"
5664 done
5665 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5666 { ac_script=; unset ac_script;}
5667 if test -z "$SED"; then
5668 ac_path_SED_found=false
5669 # Loop through the user's path and test for each of PROGNAME-LIST
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
030272f3
VY
5671for as_dir in $PATH
5672do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
7083c021 5675 for ac_prog in sed gsed; do
030272f3 5676 for ac_exec_ext in '' $ac_executable_extensions; do
7083c021
AC
5677 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5678 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5679# Check for GNU ac_path_SED and select it if it is found.
5680 # Check for GNU $ac_path_SED
5681case `"$ac_path_SED" --version 2>&1` in
5682*GNU*)
5683 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5684*)
5685 ac_count=0
5686 $as_echo_n 0123456789 >"conftest.in"
5687 while :
5688 do
5689 cat "conftest.in" "conftest.in" >"conftest.tmp"
5690 mv "conftest.tmp" "conftest.in"
5691 cp "conftest.in" "conftest.nl"
5692 $as_echo '' >> "conftest.nl"
5693 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5695 as_fn_arith $ac_count + 1 && ac_count=$as_val
5696 if test $ac_count -gt ${ac_path_SED_max-0}; then
5697 # Best one so far, save it but keep looking for a better one
5698 ac_cv_path_SED="$ac_path_SED"
5699 ac_path_SED_max=$ac_count
5700 fi
5701 # 10*(2^10) chars as input seems more than enough
5702 test $ac_count -gt 10 && break
5703 done
5704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5705esac
5706
5707 $ac_path_SED_found && break 3
030272f3
VY
5708 done
5709 done
7083c021 5710 done
030272f3 5711IFS=$as_save_IFS
7083c021 5712 if test -z "$ac_cv_path_SED"; then
08c2568c 5713 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
db137867 5714 fi
7083c021
AC
5715else
5716 ac_cv_path_SED=$SED
5717fi
db137867 5718
030272f3 5719fi
7083c021
AC
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5721$as_echo "$ac_cv_path_SED" >&6; }
5722 SED="$ac_cv_path_SED"
5723 rm -f conftest.sed
db137867 5724
7083c021
AC
5725test -z "$SED" && SED=sed
5726Xsed="$SED -e 1s/^X//"
db137867 5727
db137867
AC
5728
5729
db137867 5730
7083c021
AC
5731
5732
5733
5734
5735
5736
5737
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5739$as_echo_n "checking for fgrep... " >&6; }
08c2568c 5740if ${ac_cv_path_FGREP+:} false; then :
7083c021
AC
5741 $as_echo_n "(cached) " >&6
5742else
5743 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5744 then ac_cv_path_FGREP="$GREP -F"
5745 else
5746 if test -z "$FGREP"; then
5747 ac_path_FGREP_found=false
5748 # Loop through the user's path and test for each of PROGNAME-LIST
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_prog in fgrep; do
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5757 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5758# Check for GNU ac_path_FGREP and select it if it is found.
5759 # Check for GNU $ac_path_FGREP
5760case `"$ac_path_FGREP" --version 2>&1` in
5761*GNU*)
5762 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5763*)
5764 ac_count=0
5765 $as_echo_n 0123456789 >"conftest.in"
5766 while :
5767 do
5768 cat "conftest.in" "conftest.in" >"conftest.tmp"
5769 mv "conftest.tmp" "conftest.in"
5770 cp "conftest.in" "conftest.nl"
5771 $as_echo 'FGREP' >> "conftest.nl"
5772 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5774 as_fn_arith $ac_count + 1 && ac_count=$as_val
5775 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5776 # Best one so far, save it but keep looking for a better one
5777 ac_cv_path_FGREP="$ac_path_FGREP"
5778 ac_path_FGREP_max=$ac_count
5779 fi
5780 # 10*(2^10) chars as input seems more than enough
5781 test $ac_count -gt 10 && break
5782 done
5783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5784esac
5785
5786 $ac_path_FGREP_found && break 3
5787 done
5788 done
5789 done
5790IFS=$as_save_IFS
5791 if test -z "$ac_cv_path_FGREP"; then
08c2568c 5792 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021
AC
5793 fi
5794else
5795 ac_cv_path_FGREP=$FGREP
5796fi
5797
5798 fi
5799fi
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5801$as_echo "$ac_cv_path_FGREP" >&6; }
5802 FGREP="$ac_cv_path_FGREP"
5803
5804
5805test -z "$GREP" && GREP=grep
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825# Check whether --with-gnu-ld was given.
5826if test "${with_gnu_ld+set}" = set; then :
5827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5828else
5829 with_gnu_ld=no
5830fi
5831
5832ac_prog=ld
5833if test "$GCC" = yes; then
5834 # Check if gcc -print-prog-name=ld gives a path.
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5836$as_echo_n "checking for ld used by $CC... " >&6; }
5837 case $host in
5838 *-*-mingw*)
5839 # gcc leaves a trailing carriage return which upsets mingw
5840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5841 *)
5842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5843 esac
5844 case $ac_prog in
5845 # Accept absolute paths.
5846 [\\/]* | ?:[\\/]*)
5847 re_direlt='/[^/][^/]*/\.\./'
5848 # Canonicalize the pathname of ld
5849 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5850 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5851 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5852 done
5853 test -z "$LD" && LD="$ac_prog"
5854 ;;
5855 "")
5856 # If it fails, then pretend we aren't using GCC.
5857 ac_prog=ld
5858 ;;
5859 *)
5860 # If it is relative, then search for the first ld in PATH.
5861 with_gnu_ld=unknown
5862 ;;
5863 esac
5864elif test "$with_gnu_ld" = yes; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5866$as_echo_n "checking for GNU ld... " >&6; }
5867else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
030272f3 5869$as_echo_n "checking for non-GNU ld... " >&6; }
db137867 5870fi
08c2568c 5871if ${lt_cv_path_LD+:} false; then :
030272f3
VY
5872 $as_echo_n "(cached) " >&6
5873else
5874 if test -z "$LD"; then
5875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5876 for ac_dir in $PATH; do
5877 IFS="$lt_save_ifs"
5878 test -z "$ac_dir" && ac_dir=.
5879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5880 lt_cv_path_LD="$ac_dir/$ac_prog"
5881 # Check to see if the program is GNU ld. I'd rather use --version,
5882 # but apparently some variants of GNU ld only accept -v.
5883 # Break only if it was the GNU/non-GNU ld that we prefer.
5884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5885 *GNU* | *'with BFD'*)
5886 test "$with_gnu_ld" != no && break
5887 ;;
5888 *)
5889 test "$with_gnu_ld" != yes && break
5890 ;;
5891 esac
5892 fi
5893 done
5894 IFS="$lt_save_ifs"
5895else
5896 lt_cv_path_LD="$LD" # Let the user override the test with a path.
db137867 5897fi
db137867 5898fi
030272f3
VY
5899
5900LD="$lt_cv_path_LD"
5901if test -n "$LD"; then
7083c021 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
030272f3 5903$as_echo "$LD" >&6; }
db137867 5904else
7083c021 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5906$as_echo "no" >&6; }
db137867 5907fi
08c2568c 5908test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7083c021 5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
030272f3 5910$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
08c2568c 5911if ${lt_cv_prog_gnu_ld+:} false; then :
030272f3 5912 $as_echo_n "(cached) " >&6
db137867 5913else
030272f3
VY
5914 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5915case `$LD -v 2>&1 </dev/null` in
5916*GNU* | *'with BFD'*)
5917 lt_cv_prog_gnu_ld=yes
5918 ;;
5919*)
5920 lt_cv_prog_gnu_ld=no
5921 ;;
5922esac
db137867 5923fi
7083c021 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
030272f3
VY
5925$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5926with_gnu_ld=$lt_cv_prog_gnu_ld
db137867 5927
db137867 5928
db137867 5929
7083c021
AC
5930
5931
5932
5933
5934
5935
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5937$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
08c2568c 5938if ${lt_cv_path_NM+:} false; then :
030272f3
VY
5939 $as_echo_n "(cached) " >&6
5940else
5941 if test -n "$NM"; then
5942 # Let the user override the test.
5943 lt_cv_path_NM="$NM"
5944else
5945 lt_nm_to_check="${ac_tool_prefix}nm"
5946 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5947 lt_nm_to_check="$lt_nm_to_check nm"
5948 fi
5949 for lt_tmp_nm in $lt_nm_to_check; do
5950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5951 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5952 IFS="$lt_save_ifs"
5953 test -z "$ac_dir" && ac_dir=.
5954 tmp_nm="$ac_dir/$lt_tmp_nm"
5955 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5956 # Check to see if the nm accepts a BSD-compat flag.
5957 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5958 # nm: unknown option "B" ignored
5959 # Tru64's nm complains that /dev/null is an invalid object file
5960 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5961 */dev/null* | *'Invalid file or object type'*)
5962 lt_cv_path_NM="$tmp_nm -B"
5963 break
5964 ;;
5965 *)
5966 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5967 */dev/null*)
5968 lt_cv_path_NM="$tmp_nm -p"
5969 break
5970 ;;
5971 *)
5972 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5973 continue # so that we can try to find one that supports BSD flags
5974 ;;
5975 esac
5976 ;;
5977 esac
5978 fi
5979 done
5980 IFS="$lt_save_ifs"
5981 done
7083c021 5982 : ${lt_cv_path_NM=no}
db137867 5983fi
030272f3 5984fi
7083c021 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
030272f3 5986$as_echo "$lt_cv_path_NM" >&6; }
7083c021
AC
5987if test "$lt_cv_path_NM" != "no"; then
5988 NM="$lt_cv_path_NM"
5989else
5990 # Didn't find any BSD compatible name lister, look for dumpbin.
b6d0720c
AC
5991 if test -n "$DUMPBIN"; then :
5992 # Let the user override the test.
5993 else
5994 if test -n "$ac_tool_prefix"; then
5995 for ac_prog in dumpbin "link -dump"
7083c021
AC
5996 do
5997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6001if ${ac_cv_prog_DUMPBIN+:} false; then :
7083c021
AC
6002 $as_echo_n "(cached) " >&6
6003else
6004 if test -n "$DUMPBIN"; then
6005 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6006else
6007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008for as_dir in $PATH
6009do
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 break 2
6017 fi
6018done
6019 done
6020IFS=$as_save_IFS
db137867 6021
7083c021
AC
6022fi
6023fi
6024DUMPBIN=$ac_cv_prog_DUMPBIN
6025if test -n "$DUMPBIN"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6027$as_echo "$DUMPBIN" >&6; }
db137867 6028else
7083c021
AC
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030$as_echo "no" >&6; }
db137867
AC
6031fi
6032
7083c021
AC
6033
6034 test -n "$DUMPBIN" && break
6035 done
6036fi
6037if test -z "$DUMPBIN"; then
6038 ac_ct_DUMPBIN=$DUMPBIN
b6d0720c 6039 for ac_prog in dumpbin "link -dump"
7083c021
AC
6040do
6041 # Extract the first word of "$ac_prog", so it can be a program name with args.
6042set dummy $ac_prog; ac_word=$2
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6045if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
030272f3
VY
6046 $as_echo_n "(cached) " >&6
6047else
7083c021
AC
6048 if test -n "$ac_ct_DUMPBIN"; then
6049 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062done
6063 done
6064IFS=$as_save_IFS
db137867 6065
7083c021
AC
6066fi
6067fi
6068ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6069if test -n "$ac_ct_DUMPBIN"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6071$as_echo "$ac_ct_DUMPBIN" >&6; }
6072else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074$as_echo "no" >&6; }
6075fi
db137867 6076
db137867 6077
7083c021
AC
6078 test -n "$ac_ct_DUMPBIN" && break
6079done
db137867 6080
7083c021
AC
6081 if test "x$ac_ct_DUMPBIN" = x; then
6082 DUMPBIN=":"
030272f3 6083 else
7083c021
AC
6084 case $cross_compiling:$ac_tool_warned in
6085yes:)
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088ac_tool_warned=yes ;;
6089esac
6090 DUMPBIN=$ac_ct_DUMPBIN
030272f3 6091 fi
7083c021 6092fi
db137867 6093
b6d0720c
AC
6094 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6095 *COFF*)
6096 DUMPBIN="$DUMPBIN -symbols"
6097 ;;
6098 *)
6099 DUMPBIN=:
6100 ;;
6101 esac
6102 fi
db137867 6103
7083c021
AC
6104 if test "$DUMPBIN" != ":"; then
6105 NM="$DUMPBIN"
030272f3 6106 fi
7083c021
AC
6107fi
6108test -z "$NM" && NM=nm
db137867 6109
db137867 6110
db137867 6111
db137867 6112
030272f3 6113
030272f3 6114
7083c021
AC
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6116$as_echo_n "checking the name lister ($NM) interface... " >&6; }
08c2568c 6117if ${lt_cv_nm_interface+:} false; then :
7083c021
AC
6118 $as_echo_n "(cached) " >&6
6119else
6120 lt_cv_nm_interface="BSD nm"
6121 echo "int some_variable = 0;" > conftest.$ac_ext
b6d0720c 6122 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7083c021
AC
6123 (eval "$ac_compile" 2>conftest.err)
6124 cat conftest.err >&5
b6d0720c 6125 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7083c021
AC
6126 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6127 cat conftest.err >&5
b6d0720c 6128 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7083c021
AC
6129 cat conftest.out >&5
6130 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6131 lt_cv_nm_interface="MS dumpbin"
030272f3 6132 fi
7083c021
AC
6133 rm -f conftest*
6134fi
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6136$as_echo "$lt_cv_nm_interface" >&6; }
db137867 6137
7083c021
AC
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6139$as_echo_n "checking whether ln -s works... " >&6; }
6140LN_S=$as_ln_s
6141if test "$LN_S" = "ln -s"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6143$as_echo "yes" >&6; }
6144else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6146$as_echo "no, using $LN_S" >&6; }
6147fi
db137867 6148
7083c021
AC
6149# find the maximum length of command line arguments
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6151$as_echo_n "checking the maximum length of command line arguments... " >&6; }
08c2568c 6152if ${lt_cv_sys_max_cmd_len+:} false; then :
7083c021
AC
6153 $as_echo_n "(cached) " >&6
6154else
6155 i=0
6156 teststring="ABCD"
db137867 6157
7083c021
AC
6158 case $build_os in
6159 msdosdjgpp*)
6160 # On DJGPP, this test can blow up pretty badly due to problems in libc
6161 # (any single argument exceeding 2000 bytes causes a buffer overrun
6162 # during glob expansion). Even if it were fixed, the result of this
6163 # check would be larger than it should be.
6164 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6165 ;;
db137867 6166
7083c021
AC
6167 gnu*)
6168 # Under GNU Hurd, this test is not required because there is
6169 # no limit to the length of command line arguments.
6170 # Libtool will interpret -1 as no limit whatsoever
6171 lt_cv_sys_max_cmd_len=-1;
6172 ;;
db137867 6173
7083c021
AC
6174 cygwin* | mingw* | cegcc*)
6175 # On Win9x/ME, this test blows up -- it succeeds, but takes
6176 # about 5 minutes as the teststring grows exponentially.
6177 # Worse, since 9x/ME are not pre-emptively multitasking,
6178 # you end up with a "frozen" computer, even though with patience
6179 # the test eventually succeeds (with a max line length of 256k).
6180 # Instead, let's just punt: use the minimum linelength reported by
6181 # all of the supported platforms: 8192 (on NT/2K/XP).
6182 lt_cv_sys_max_cmd_len=8192;
6183 ;;
db137867 6184
b6d0720c
AC
6185 mint*)
6186 # On MiNT this can take a long time and run out of memory.
6187 lt_cv_sys_max_cmd_len=8192;
6188 ;;
6189
7083c021
AC
6190 amigaos*)
6191 # On AmigaOS with pdksh, this test takes hours, literally.
6192 # So we just punt and use a minimum line length of 8192.
6193 lt_cv_sys_max_cmd_len=8192;
6194 ;;
db137867 6195
7083c021
AC
6196 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6197 # This has been around since 386BSD, at least. Likely further.
6198 if test -x /sbin/sysctl; then
6199 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6200 elif test -x /usr/sbin/sysctl; then
6201 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6202 else
6203 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6204 fi
6205 # And add a safety zone
6206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
030272f3 6208 ;;
7083c021
AC
6209
6210 interix*)
6211 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6212 lt_cv_sys_max_cmd_len=196608
030272f3 6213 ;;
7083c021
AC
6214
6215 osf*)
6216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6218 # nice to cause kernel panics so lets avoid the loop below.
6219 # First set a reasonable default.
6220 lt_cv_sys_max_cmd_len=16384
6221 #
6222 if test -x /sbin/sysconfig; then
6223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6224 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6225 esac
6226 fi
030272f3 6227 ;;
7083c021
AC
6228 sco3.2v5*)
6229 lt_cv_sys_max_cmd_len=102400
030272f3 6230 ;;
7083c021
AC
6231 sysv5* | sco5v6* | sysv4.2uw2*)
6232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6233 if test -n "$kargmax"; then
6234 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6235 else
6236 lt_cv_sys_max_cmd_len=32768
6237 fi
030272f3 6238 ;;
7083c021
AC
6239 *)
6240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6241 if test -n "$lt_cv_sys_max_cmd_len"; then
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6244 else
6245 # Make teststring a little bigger before we do anything with it.
6246 # a 1K string should be a reasonable start.
6247 for i in 1 2 3 4 5 6 7 8 ; do
6248 teststring=$teststring$teststring
6249 done
6250 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6251 # If test is not a shell built-in, we'll probably end up computing a
6252 # maximum length that is only half of the actual maximum length, but
6253 # we can't tell.
b6d0720c
AC
6254 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6255 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7083c021
AC
6256 test $i != 17 # 1/2 MB should be enough
6257 do
6258 i=`expr $i + 1`
6259 teststring=$teststring$teststring
6260 done
6261 # Only check the string length outside the loop.
6262 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6263 teststring=
6264 # Add a significant safety factor because C++ compilers can tack on
6265 # massive amounts of additional arguments before passing them to the
6266 # linker. It appears as though 1/2 is a usable value.
6267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6268 fi
030272f3
VY
6269 ;;
6270 esac
030272f3 6271
7083c021 6272fi
db137867 6273
7083c021
AC
6274if test -n $lt_cv_sys_max_cmd_len ; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6276$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6277else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6279$as_echo "none" >&6; }
db137867 6280fi
7083c021 6281max_cmd_len=$lt_cv_sys_max_cmd_len
030272f3 6282
db137867 6283
db137867
AC
6284
6285
6286
6287
7083c021
AC
6288: ${CP="cp -f"}
6289: ${MV="mv -f"}
6290: ${RM="rm -f"}
db137867 6291
7083c021
AC
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6293$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6294# Try some XSI features
6295xsi_shell=no
6296( _lt_dummy="a/b/c"
b6d0720c
AC
6297 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6298 = c,a/b,b/c, \
7083c021
AC
6299 && eval 'test $(( 1 + 1 )) -eq 2 \
6300 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6301 && xsi_shell=yes
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6303$as_echo "$xsi_shell" >&6; }
6304
6305
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6307$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6308lt_shell_append=no
6309( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6310 >/dev/null 2>&1 \
6311 && lt_shell_append=yes
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6313$as_echo "$lt_shell_append" >&6; }
6314
6315
6316if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6317 lt_unset=unset
6318else
6319 lt_unset=false
030272f3 6320fi
db137867
AC
6321
6322
7083c021
AC
6323
6324
6325
6326# test EBCDIC or ASCII
6327case `echo X|tr X '\101'` in
6328 A) # ASCII based system
6329 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6330 lt_SP2NL='tr \040 \012'
6331 lt_NL2SP='tr \015\012 \040\040'
030272f3 6332 ;;
7083c021
AC
6333 *) # EBCDIC based system
6334 lt_SP2NL='tr \100 \n'
6335 lt_NL2SP='tr \r\n \100\100'
030272f3 6336 ;;
7083c021 6337esac
db137867 6338
db137867 6339
db137867 6340
db137867 6341
030272f3 6342
030272f3 6343
db137867
AC
6344
6345
6346
b6d0720c
AC
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6348$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6349if ${lt_cv_to_host_file_cmd+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351else
6352 case $host in
6353 *-*-mingw* )
6354 case $build in
6355 *-*-mingw* ) # actually msys
6356 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6357 ;;
6358 *-*-cygwin* )
6359 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6360 ;;
6361 * ) # otherwise, assume *nix
6362 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6363 ;;
6364 esac
6365 ;;
6366 *-*-cygwin* )
6367 case $build in
6368 *-*-mingw* ) # actually msys
6369 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6370 ;;
6371 *-*-cygwin* )
6372 lt_cv_to_host_file_cmd=func_convert_file_noop
6373 ;;
6374 * ) # otherwise, assume *nix
6375 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6376 ;;
6377 esac
6378 ;;
6379 * ) # unhandled hosts (and "normal" native builds)
6380 lt_cv_to_host_file_cmd=func_convert_file_noop
6381 ;;
6382esac
6383
6384fi
6385
6386to_host_file_cmd=$lt_cv_to_host_file_cmd
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6388$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6389
6390
6391
6392
6393
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6395$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6396if ${lt_cv_to_tool_file_cmd+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398else
6399 #assume ordinary cross tools, or native build.
6400lt_cv_to_tool_file_cmd=func_convert_file_noop
6401case $host in
6402 *-*-mingw* )
6403 case $build in
6404 *-*-mingw* ) # actually msys
6405 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6406 ;;
6407 esac
6408 ;;
6409esac
6410
6411fi
6412
6413to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6415$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6416
6417
6418
6419
6420
7083c021
AC
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6422$as_echo_n "checking for $LD option to reload object files... " >&6; }
08c2568c 6423if ${lt_cv_ld_reload_flag+:} false; then :
030272f3 6424 $as_echo_n "(cached) " >&6
db137867 6425else
7083c021 6426 lt_cv_ld_reload_flag='-r'
db137867 6427fi
7083c021
AC
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6429$as_echo "$lt_cv_ld_reload_flag" >&6; }
6430reload_flag=$lt_cv_ld_reload_flag
6431case $reload_flag in
6432"" | " "*) ;;
6433*) reload_flag=" $reload_flag" ;;
6434esac
6435reload_cmds='$LD$reload_flag -o $output$reload_objs'
6436case $host_os in
b6d0720c
AC
6437 cygwin* | mingw* | pw32* | cegcc*)
6438 if test "$GCC" != yes; then
6439 reload_cmds=false
6440 fi
6441 ;;
7083c021
AC
6442 darwin*)
6443 if test "$GCC" = yes; then
6444 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6445 else
6446 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6447 fi
6448 ;;
db137867 6449esac
db137867 6450
db137867 6451
db137867 6452
db137867 6453
db137867 6454
db137867 6455
db137867 6456
db137867 6457
7083c021
AC
6458
6459if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6461set dummy ${ac_tool_prefix}objdump; ac_word=$2
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6463$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6464if ${ac_cv_prog_OBJDUMP+:} false; then :
030272f3 6465 $as_echo_n "(cached) " >&6
db137867 6466else
7083c021
AC
6467 if test -n "$OBJDUMP"; then
6468 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
db137867
AC
6469else
6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
7083c021 6475 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6477 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6479 break 2
6480 fi
6481done
7083c021 6482 done
db137867
AC
6483IFS=$as_save_IFS
6484
6485fi
6486fi
7083c021
AC
6487OBJDUMP=$ac_cv_prog_OBJDUMP
6488if test -n "$OBJDUMP"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6490$as_echo "$OBJDUMP" >&6; }
db137867 6491else
7083c021 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6493$as_echo "no" >&6; }
db137867
AC
6494fi
6495
6496
db137867 6497fi
7083c021
AC
6498if test -z "$ac_cv_prog_OBJDUMP"; then
6499 ac_ct_OBJDUMP=$OBJDUMP
6500 # Extract the first word of "objdump", so it can be a program name with args.
6501set dummy objdump; ac_word=$2
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6503$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6504if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
030272f3 6505 $as_echo_n "(cached) " >&6
db137867 6506else
7083c021
AC
6507 if test -n "$ac_ct_OBJDUMP"; then
6508 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
db137867
AC
6509else
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
7083c021 6515 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6517 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6519 break 2
6520 fi
6521done
7083c021 6522 done
db137867
AC
6523IFS=$as_save_IFS
6524
6525fi
6526fi
7083c021
AC
6527ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6528if test -n "$ac_ct_OBJDUMP"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6530$as_echo "$ac_ct_OBJDUMP" >&6; }
db137867 6531else
7083c021 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6533$as_echo "no" >&6; }
db137867
AC
6534fi
6535
7083c021
AC
6536 if test "x$ac_ct_OBJDUMP" = x; then
6537 OBJDUMP="false"
db137867
AC
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540yes:)
7083c021 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 6542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
6543ac_tool_warned=yes ;;
6544esac
7083c021 6545 OBJDUMP=$ac_ct_OBJDUMP
db137867 6546 fi
7083c021
AC
6547else
6548 OBJDUMP="$ac_cv_prog_OBJDUMP"
db137867 6549fi
db137867 6550
7083c021 6551test -z "$OBJDUMP" && OBJDUMP=objdump
db137867 6552
db137867 6553
db137867 6554
db137867 6555
db137867 6556
db137867 6557
db137867 6558
db137867 6559
db137867 6560
7083c021
AC
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6562$as_echo_n "checking how to recognize dependent libraries... " >&6; }
08c2568c 6563if ${lt_cv_deplibs_check_method+:} false; then :
7083c021 6564 $as_echo_n "(cached) " >&6
db137867 6565else
7083c021
AC
6566 lt_cv_file_magic_cmd='$MAGIC_CMD'
6567lt_cv_file_magic_test_file=
6568lt_cv_deplibs_check_method='unknown'
6569# Need to set the preceding variable on all platforms that support
6570# interlibrary dependencies.
6571# 'none' -- dependencies not supported.
6572# `unknown' -- same as none, but documents that we really don't know.
6573# 'pass_all' -- all dependencies passed with no checks.
6574# 'test_compile' -- check by making test program.
6575# 'file_magic [[regex]]' -- check by looking for files in library path
6576# which responds to the $file_magic_cmd with a given extended regex.
6577# If you have `file' or equivalent on your system and you're not sure
6578# whether `pass_all' will *always* work, you probably want this one.
db137867 6579
7083c021
AC
6580case $host_os in
6581aix[4-9]*)
6582 lt_cv_deplibs_check_method=pass_all
6583 ;;
db137867 6584
7083c021
AC
6585beos*)
6586 lt_cv_deplibs_check_method=pass_all
6587 ;;
db137867 6588
7083c021
AC
6589bsdi[45]*)
6590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6591 lt_cv_file_magic_cmd='/usr/bin/file -L'
6592 lt_cv_file_magic_test_file=/shlib/libc.so
6593 ;;
db137867 6594
7083c021
AC
6595cygwin*)
6596 # func_win32_libid is a shell function defined in ltmain.sh
6597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6598 lt_cv_file_magic_cmd='func_win32_libid'
6599 ;;
db137867 6600
7083c021
AC
6601mingw* | pw32*)
6602 # Base MSYS/MinGW do not provide the 'file' command needed by
6603 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6604 # unless we find 'file', for example because we are cross-compiling.
b6d0720c
AC
6605 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6606 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7083c021
AC
6607 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6608 lt_cv_file_magic_cmd='func_win32_libid'
6609 else
b6d0720c
AC
6610 # Keep this pattern in sync with the one in func_win32_libid.
6611 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7083c021
AC
6612 lt_cv_file_magic_cmd='$OBJDUMP -f'
6613 fi
6614 ;;
db137867 6615
b6d0720c 6616cegcc*)
7083c021
AC
6617 # use the weaker test based on 'objdump'. See mingw*.
6618 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6619 lt_cv_file_magic_cmd='$OBJDUMP -f'
6620 ;;
db137867 6621
7083c021
AC
6622darwin* | rhapsody*)
6623 lt_cv_deplibs_check_method=pass_all
6624 ;;
db137867 6625
7083c021
AC
6626freebsd* | dragonfly*)
6627 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6628 case $host_cpu in
6629 i*86 )
6630 # Not sure whether the presence of OpenBSD here was a mistake.
6631 # Let's accept both of them until this is cleared up.
6632 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6633 lt_cv_file_magic_cmd=/usr/bin/file
6634 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6635 ;;
6636 esac
db137867 6637 else
7083c021 6638 lt_cv_deplibs_check_method=pass_all
db137867 6639 fi
7083c021 6640 ;;
db137867 6641
7083c021
AC
6642gnu*)
6643 lt_cv_deplibs_check_method=pass_all
6644 ;;
db137867 6645
b6d0720c
AC
6646haiku*)
6647 lt_cv_deplibs_check_method=pass_all
6648 ;;
6649
7083c021
AC
6650hpux10.20* | hpux11*)
6651 lt_cv_file_magic_cmd=/usr/bin/file
6652 case $host_cpu in
6653 ia64*)
6654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6655 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6656 ;;
6657 hppa*64*)
b6d0720c 6658 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
6659 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6660 ;;
6661 *)
b6d0720c 6662 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7083c021
AC
6663 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6664 ;;
6665 esac
6666 ;;
db137867 6667
7083c021
AC
6668interix[3-9]*)
6669 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6671 ;;
db137867 6672
7083c021
AC
6673irix5* | irix6* | nonstopux*)
6674 case $LD in
6675 *-32|*"-32 ") libmagic=32-bit;;
6676 *-n32|*"-n32 ") libmagic=N32;;
6677 *-64|*"-64 ") libmagic=64-bit;;
6678 *) libmagic=never-match;;
6679 esac
6680 lt_cv_deplibs_check_method=pass_all
6681 ;;
db137867 6682
7083c021 6683# This must be Linux ELF.
b6d0720c 6684linux* | k*bsd*-gnu | kopensolaris*-gnu)
7083c021
AC
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
db137867 6687
96f4052b 6688netbsd*)
7083c021
AC
6689 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6691 else
6692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6693 fi
6694 ;;
db137867 6695
7083c021
AC
6696newos6*)
6697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6698 lt_cv_file_magic_cmd=/usr/bin/file
6699 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6700 ;;
db137867 6701
7083c021
AC
6702*nto* | *qnx*)
6703 lt_cv_deplibs_check_method=pass_all
6704 ;;
db137867 6705
7083c021
AC
6706openbsd*)
6707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6709 else
6710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6711 fi
6712 ;;
db137867 6713
7083c021
AC
6714osf3* | osf4* | osf5*)
6715 lt_cv_deplibs_check_method=pass_all
6716 ;;
db137867 6717
7083c021
AC
6718rdos*)
6719 lt_cv_deplibs_check_method=pass_all
6720 ;;
db137867 6721
7083c021
AC
6722solaris*)
6723 lt_cv_deplibs_check_method=pass_all
6724 ;;
db137867 6725
7083c021
AC
6726sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6727 lt_cv_deplibs_check_method=pass_all
6728 ;;
db137867 6729
7083c021
AC
6730sysv4 | sysv4.3*)
6731 case $host_vendor in
6732 motorola)
6733 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]'
6734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6735 ;;
6736 ncr)
6737 lt_cv_deplibs_check_method=pass_all
6738 ;;
6739 sequent)
6740 lt_cv_file_magic_cmd='/bin/file'
6741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6742 ;;
6743 sni)
6744 lt_cv_file_magic_cmd='/bin/file'
6745 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6746 lt_cv_file_magic_test_file=/lib/libc.so
6747 ;;
6748 siemens)
6749 lt_cv_deplibs_check_method=pass_all
6750 ;;
6751 pc)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754 esac
6755 ;;
db137867 6756
7083c021
AC
6757tpf*)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760esac
db137867 6761
db137867 6762fi
7083c021
AC
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6764$as_echo "$lt_cv_deplibs_check_method" >&6; }
b6d0720c
AC
6765
6766file_magic_glob=
6767want_nocaseglob=no
6768if test "$build" = "$host"; then
6769 case $host_os in
6770 mingw* | pw32*)
6771 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6772 want_nocaseglob=yes
6773 else
6774 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6775 fi
6776 ;;
6777 esac
6778fi
6779
7083c021
AC
6780file_magic_cmd=$lt_cv_file_magic_cmd
6781deplibs_check_method=$lt_cv_deplibs_check_method
6782test -z "$deplibs_check_method" && deplibs_check_method=unknown
db137867 6783
db137867 6784
db137867 6785
db137867 6786
db137867 6787
db137867 6788
db137867 6789
db137867 6790
db137867 6791
db137867 6792
b6d0720c
AC
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
db137867
AC
6803
6804
db137867 6805if test -n "$ac_tool_prefix"; then
b6d0720c
AC
6806 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6807set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7083c021 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6809$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 6810if ${ac_cv_prog_DLLTOOL+:} false; then :
030272f3 6811 $as_echo_n "(cached) " >&6
db137867 6812else
b6d0720c
AC
6813 if test -n "$DLLTOOL"; then
6814 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
db137867
AC
6815else
6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
7083c021 6821 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b6d0720c 6823 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7083c021 6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6825 break 2
6826 fi
6827done
7083c021 6828 done
db137867
AC
6829IFS=$as_save_IFS
6830
6831fi
6832fi
b6d0720c
AC
6833DLLTOOL=$ac_cv_prog_DLLTOOL
6834if test -n "$DLLTOOL"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6836$as_echo "$DLLTOOL" >&6; }
db137867 6837else
7083c021 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6839$as_echo "no" >&6; }
db137867
AC
6840fi
6841
6842
db137867 6843fi
b6d0720c
AC
6844if test -z "$ac_cv_prog_DLLTOOL"; then
6845 ac_ct_DLLTOOL=$DLLTOOL
6846 # Extract the first word of "dlltool", so it can be a program name with args.
6847set dummy dlltool; ac_word=$2
7083c021 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6849$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 6850if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
030272f3 6851 $as_echo_n "(cached) " >&6
db137867 6852else
b6d0720c
AC
6853 if test -n "$ac_ct_DLLTOOL"; then
6854 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
db137867
AC
6855else
6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
7083c021 6861 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b6d0720c 6863 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7083c021 6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6865 break 2
6866 fi
6867done
7083c021 6868 done
db137867
AC
6869IFS=$as_save_IFS
6870
6871fi
6872fi
b6d0720c
AC
6873ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6874if test -n "$ac_ct_DLLTOOL"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6876$as_echo "$ac_ct_DLLTOOL" >&6; }
db137867 6877else
7083c021 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6879$as_echo "no" >&6; }
db137867
AC
6880fi
6881
b6d0720c
AC
6882 if test "x$ac_ct_DLLTOOL" = x; then
6883 DLLTOOL="false"
db137867
AC
6884 else
6885 case $cross_compiling:$ac_tool_warned in
6886yes:)
7083c021 6887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 6888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
6889ac_tool_warned=yes ;;
6890esac
b6d0720c 6891 DLLTOOL=$ac_ct_DLLTOOL
db137867 6892 fi
7083c021 6893else
b6d0720c 6894 DLLTOOL="$ac_cv_prog_DLLTOOL"
db137867
AC
6895fi
6896
b6d0720c
AC
6897test -z "$DLLTOOL" && DLLTOOL=dlltool
6898
6899
6900
6901
6902
6903
6904
db137867 6905
db137867 6906
db137867 6907
b6d0720c
AC
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6909$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6910if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912else
6913 lt_cv_sharedlib_from_linklib_cmd='unknown'
6914
6915case $host_os in
6916cygwin* | mingw* | pw32* | cegcc*)
6917 # two different shell functions defined in ltmain.sh
6918 # decide which to use based on capabilities of $DLLTOOL
6919 case `$DLLTOOL --help 2>&1` in
6920 *--identify-strict*)
6921 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6922 ;;
6923 *)
6924 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6925 ;;
6926 esac
6927 ;;
6928*)
6929 # fallback: assume linklib IS sharedlib
6930 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6931 ;;
6932esac
db137867 6933
b6d0720c
AC
6934fi
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6936$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6937sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6938test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
db137867 6939
db137867 6940
db137867 6941
db137867 6942
7083c021
AC
6943
6944
6945
6946if test -n "$ac_tool_prefix"; then
b6d0720c
AC
6947 for ac_prog in ar
6948 do
6949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7083c021
AC
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 6953if ${ac_cv_prog_AR+:} false; then :
7083c021
AC
6954 $as_echo_n "(cached) " >&6
6955else
b6d0720c
AC
6956 if test -n "$AR"; then
6957 ac_cv_prog_AR="$AR" # Let the user override the test.
7083c021
AC
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b6d0720c 6966 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7083c021
AC
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
db137867 6969 fi
7083c021
AC
6970done
6971 done
6972IFS=$as_save_IFS
6973
6974fi
6975fi
b6d0720c
AC
6976AR=$ac_cv_prog_AR
6977if test -n "$AR"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6979$as_echo "$AR" >&6; }
db137867 6980else
7083c021
AC
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982$as_echo "no" >&6; }
6983fi
6984
6985
b6d0720c
AC
6986 test -n "$AR" && break
6987 done
7083c021 6988fi
b6d0720c
AC
6989if test -z "$AR"; then
6990 ac_ct_AR=$AR
6991 for ac_prog in ar
6992do
6993 # Extract the first word of "$ac_prog", so it can be a program name with args.
6994set dummy $ac_prog; ac_word=$2
7083c021
AC
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 6997if ${ac_cv_prog_ac_ct_AR+:} false; then :
7083c021
AC
6998 $as_echo_n "(cached) " >&6
6999else
b6d0720c
AC
7000 if test -n "$ac_ct_AR"; then
7001 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7083c021
AC
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b6d0720c 7010 ac_cv_prog_ac_ct_AR="$ac_prog"
7083c021
AC
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
db137867 7013 fi
7083c021
AC
7014done
7015 done
7016IFS=$as_save_IFS
7017
7018fi
7019fi
b6d0720c
AC
7020ac_ct_AR=$ac_cv_prog_ac_ct_AR
7021if test -n "$ac_ct_AR"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7023$as_echo "$ac_ct_AR" >&6; }
7083c021
AC
7024else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026$as_echo "no" >&6; }
db137867
AC
7027fi
7028
b6d0720c
AC
7029
7030 test -n "$ac_ct_AR" && break
7031done
7032
7033 if test "x$ac_ct_AR" = x; then
7034 AR="false"
7035 else
7036 case $cross_compiling:$ac_tool_warned in
7037yes:)
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040ac_tool_warned=yes ;;
7041esac
7042 AR=$ac_ct_AR
7043 fi
7044fi
7045
7046: ${AR=ar}
7047: ${AR_FLAGS=cru}
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7060$as_echo_n "checking for archiver @FILE support... " >&6; }
7061if ${lt_cv_ar_at_file+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063else
7064 lt_cv_ar_at_file=no
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066/* end confdefs.h. */
7067
7068int
7069main ()
7070{
7071
7072 ;
7073 return 0;
7074}
7075_ACEOF
7076if ac_fn_c_try_compile "$LINENO"; then :
7077 echo conftest.$ac_objext > conftest.lst
7078 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
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" -eq 0; then
7085 # Ensure the archiver fails upon bogus file names.
7086 rm -f conftest.$ac_objext libconftest.a
7087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7088 (eval $lt_ar_try) 2>&5
7089 ac_status=$?
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }
7092 if test "$ac_status" -ne 0; then
7093 lt_cv_ar_at_file=@
7094 fi
7095 fi
7096 rm -f conftest.* libconftest.a
7097
7098fi
7099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7100
7101fi
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7103$as_echo "$lt_cv_ar_at_file" >&6; }
7104
7105if test "x$lt_cv_ar_at_file" = xno; then
7106 archiver_list_spec=
7107else
7108 archiver_list_spec=$lt_cv_ar_at_file
7109fi
7110
7111
7112
7113
7114
7115
7116
7117if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7119set dummy ${ac_tool_prefix}strip; ac_word=$2
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
7122if ${ac_cv_prog_STRIP+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124else
7125 if test -n "$STRIP"; then
7126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139done
7140 done
7141IFS=$as_save_IFS
7142
7143fi
7144fi
7145STRIP=$ac_cv_prog_STRIP
7146if test -n "$STRIP"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7148$as_echo "$STRIP" >&6; }
7149else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
7152fi
7153
7154
7155fi
7156if test -z "$ac_cv_prog_STRIP"; then
7157 ac_ct_STRIP=$STRIP
7158 # Extract the first word of "strip", so it can be a program name with args.
7159set dummy strip; ac_word=$2
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161$as_echo_n "checking for $ac_word... " >&6; }
7162if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164else
7165 if test -n "$ac_ct_STRIP"; then
7166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_prog_ac_ct_STRIP="strip"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179done
7180 done
7181IFS=$as_save_IFS
7182
7183fi
7184fi
7185ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7186if test -n "$ac_ct_STRIP"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7188$as_echo "$ac_ct_STRIP" >&6; }
7189else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191$as_echo "no" >&6; }
7192fi
7193
7194 if test "x$ac_ct_STRIP" = x; then
7195 STRIP=":"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198yes:)
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083c021
AC
7200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201ac_tool_warned=yes ;;
7202esac
7203 STRIP=$ac_ct_STRIP
7204 fi
030272f3 7205else
7083c021 7206 STRIP="$ac_cv_prog_STRIP"
030272f3 7207fi
db137867 7208
7083c021 7209test -z "$STRIP" && STRIP=:
db137867
AC
7210
7211
db137867 7212
db137867 7213
db137867 7214
db137867 7215
7083c021
AC
7216if test -n "$ac_tool_prefix"; then
7217 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7218set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7221if ${ac_cv_prog_RANLIB+:} false; then :
7083c021
AC
7222 $as_echo_n "(cached) " >&6
7223else
7224 if test -n "$RANLIB"; then
7225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7226else
7227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7237 fi
7238done
7239 done
7240IFS=$as_save_IFS
db137867 7241
7083c021
AC
7242fi
7243fi
7244RANLIB=$ac_cv_prog_RANLIB
7245if test -n "$RANLIB"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7247$as_echo "$RANLIB" >&6; }
7248else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250$as_echo "no" >&6; }
7251fi
db137867 7252
db137867 7253
7083c021
AC
7254fi
7255if test -z "$ac_cv_prog_RANLIB"; then
7256 ac_ct_RANLIB=$RANLIB
7257 # Extract the first word of "ranlib", so it can be a program name with args.
7258set dummy ranlib; ac_word=$2
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7261if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7083c021
AC
7262 $as_echo_n "(cached) " >&6
7263else
7264 if test -n "$ac_ct_RANLIB"; then
7265 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_prog_ac_ct_RANLIB="ranlib"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278done
7279 done
7280IFS=$as_save_IFS
db137867 7281
7083c021
AC
7282fi
7283fi
7284ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7285if test -n "$ac_ct_RANLIB"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7287$as_echo "$ac_ct_RANLIB" >&6; }
7288else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
db137867
AC
7291fi
7292
7083c021
AC
7293 if test "x$ac_ct_RANLIB" = x; then
7294 RANLIB=":"
7295 else
7296 case $cross_compiling:$ac_tool_warned in
7297yes:)
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300ac_tool_warned=yes ;;
7301esac
7302 RANLIB=$ac_ct_RANLIB
7303 fi
db137867 7304else
7083c021 7305 RANLIB="$ac_cv_prog_RANLIB"
db137867
AC
7306fi
7307
7083c021 7308test -z "$RANLIB" && RANLIB=:
db137867
AC
7309
7310
7311
7312
7083c021
AC
7313
7314
7315# Determine commands to create old-style static archives.
7316old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7317old_postinstall_cmds='chmod 644 $oldlib'
7318old_postuninstall_cmds=
7319
7320if test -n "$RANLIB"; then
7321 case $host_os in
7322 openbsd*)
7323 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7324 ;;
7325 *)
7326 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7327 ;;
7328 esac
7329 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7330fi
7331
b6d0720c
AC
7332case $host_os in
7333 darwin*)
7334 lock_old_archive_extraction=yes ;;
7335 *)
7336 lock_old_archive_extraction=no ;;
7337esac
7338
7339
7340
7341
7342
7343
7083c021
AC
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
7370
7371
7372
7373
7374
7375
7376
7377# If no C compiler was specified, use CC.
7378LTCC=${LTCC-"$CC"}
7379
7380# If no C compiler flags were specified, use CFLAGS.
7381LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7382
7383# Allow CC to be a program name with arguments.
7384compiler=$CC
7385
7386
7387# Check for command to grab the raw symbol name followed by C symbol from nm.
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7389$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
08c2568c 7390if ${lt_cv_sys_global_symbol_pipe+:} false; then :
030272f3 7391 $as_echo_n "(cached) " >&6
db137867
AC
7392else
7393
7394# These are sane defaults that work on at least a few old systems.
7395# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7396
7397# Character class describing NM global symbol codes.
7398symcode='[BCDEGRST]'
7399
7400# Regexp to match symbols that can be accessed directly from C.
7401sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7402
db137867
AC
7403# Define system-specific variables.
7404case $host_os in
7405aix*)
7406 symcode='[BCDT]'
7407 ;;
7083c021 7408cygwin* | mingw* | pw32* | cegcc*)
db137867
AC
7409 symcode='[ABCDGISTW]'
7410 ;;
7083c021 7411hpux*)
db137867
AC
7412 if test "$host_cpu" = ia64; then
7413 symcode='[ABCDEGRST]'
7414 fi
db137867
AC
7415 ;;
7416irix* | nonstopux*)
7417 symcode='[BCDEGRST]'
7418 ;;
7419osf*)
7420 symcode='[BCDEGQRST]'
7421 ;;
7422solaris*)
7423 symcode='[BDRT]'
7424 ;;
7425sco3.2v5*)
7426 symcode='[DT]'
7427 ;;
7428sysv4.2uw2*)
7429 symcode='[DT]'
7430 ;;
7431sysv5* | sco5v6* | unixware* | OpenUNIX*)
7432 symcode='[ABDT]'
7433 ;;
7434sysv4)
7435 symcode='[DFNSTU]'
7436 ;;
7437esac
7438
7083c021
AC
7439# If we're using GNU nm, then use its standard symbol codes.
7440case `$NM -V 2>&1` in
7441*GNU* | *'with BFD'*)
7442 symcode='[ABCDGIRSTW]' ;;
7443esac
7444
7445# Transform an extracted symbol line into a proper C declaration.
7446# Some systems (esp. on ia64) link data and code symbols differently,
7447# so use this general approach.
7448lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7449
7450# Transform an extracted symbol line into symbol name and symbol address
b6d0720c
AC
7451lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7452lt_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 7453
db137867
AC
7454# Handle CRLF in mingw tool chain
7455opt_cr=
7456case $build_os in
7457mingw*)
7083c021 7458 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
db137867
AC
7459 ;;
7460esac
7461
7083c021 7462# Try without a prefix underscore, then with it.
db137867
AC
7463for ac_symprfx in "" "_"; do
7464
7465 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7466 symxfrm="\\1 $ac_symprfx\\2 \\2"
7467
7468 # Write the raw and C identifiers.
7083c021
AC
7469 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7470 # Fake it for dumpbin and say T for any non-static function
7471 # and D for any global variable.
7472 # Also find C++ and __fastcall symbols from MSVC++,
7473 # which start with @ or ?.
7474 lt_cv_sys_global_symbol_pipe="$AWK '"\
7475" {last_section=section; section=\$ 3};"\
7476" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7477" \$ 0!~/External *\|/{next};"\
7478" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7479" {if(hide[section]) next};"\
7480" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7481" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7482" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7483" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7484" ' prfx=^$ac_symprfx"
7485 else
7486 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7487 fi
b6d0720c 7488 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
db137867
AC
7489
7490 # Check to see that the pipe works correctly.
7491 pipe_works=no
7492
7493 rm -f conftest*
7083c021 7494 cat > conftest.$ac_ext <<_LT_EOF
db137867
AC
7495#ifdef __cplusplus
7496extern "C" {
7497#endif
7498char nm_test_var;
7083c021
AC
7499void nm_test_func(void);
7500void nm_test_func(void){}
db137867
AC
7501#ifdef __cplusplus
7502}
7503#endif
7504int main(){nm_test_var='a';nm_test_func();return(0);}
7083c021 7505_LT_EOF
db137867 7506
7083c021 7507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
db137867
AC
7508 (eval $ac_compile) 2>&5
7509 ac_status=$?
7083c021
AC
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; then
db137867
AC
7512 # Now try to grab the symbols.
7513 nlist=conftest.nm
b6d0720c
AC
7514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7515 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
db137867 7516 ac_status=$?
7083c021
AC
7517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518 test $ac_status = 0; } && test -s "$nlist"; then
db137867
AC
7519 # Try sorting and uniquifying the output.
7520 if sort "$nlist" | uniq > "$nlist"T; then
7521 mv -f "$nlist"T "$nlist"
7522 else
7523 rm -f "$nlist"T
7524 fi
7525
7526 # Make sure that we snagged all the symbols we need.
7083c021
AC
7527 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7528 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7529 cat <<_LT_EOF > conftest.$ac_ext
b6d0720c
AC
7530/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7531#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7532/* DATA imports from DLLs on WIN32 con't be const, because runtime
7533 relocations are performed -- see ld's documentation on pseudo-relocs. */
7534# define LT_DLSYM_CONST
7535#elif defined(__osf__)
7536/* This system does not cope well with relocations in const data. */
7537# define LT_DLSYM_CONST
7538#else
7539# define LT_DLSYM_CONST const
7540#endif
7541
db137867
AC
7542#ifdef __cplusplus
7543extern "C" {
7544#endif
7545
7083c021 7546_LT_EOF
db137867 7547 # Now generate the symbol file.
7083c021 7548 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
db137867 7549
7083c021 7550 cat <<_LT_EOF >> conftest.$ac_ext
db137867 7551
7083c021 7552/* The mapping between symbol names and symbols. */
b6d0720c 7553LT_DLSYM_CONST struct {
db137867 7554 const char *name;
7083c021 7555 void *address;
db137867 7556}
7083c021 7557lt__PROGRAM__LTX_preloaded_symbols[] =
db137867 7558{
7083c021
AC
7559 { "@PROGRAM@", (void *) 0 },
7560_LT_EOF
7561 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7562 cat <<\_LT_EOF >> conftest.$ac_ext
7563 {0, (void *) 0}
db137867
AC
7564};
7565
7083c021
AC
7566/* This works around a problem in FreeBSD linker */
7567#ifdef FREEBSD_WORKAROUND
7568static const void *lt_preloaded_setup() {
7569 return lt__PROGRAM__LTX_preloaded_symbols;
7570}
7571#endif
7572
db137867
AC
7573#ifdef __cplusplus
7574}
7575#endif
7083c021 7576_LT_EOF
db137867
AC
7577 # Now try linking the two files.
7578 mv conftest.$ac_objext conftstm.$ac_objext
b6d0720c
AC
7579 lt_globsym_save_LIBS=$LIBS
7580 lt_globsym_save_CFLAGS=$CFLAGS
db137867
AC
7581 LIBS="conftstm.$ac_objext"
7582 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7083c021 7583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
db137867
AC
7584 (eval $ac_link) 2>&5
7585 ac_status=$?
7083c021
AC
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
db137867
AC
7588 pipe_works=yes
7589 fi
b6d0720c
AC
7590 LIBS=$lt_globsym_save_LIBS
7591 CFLAGS=$lt_globsym_save_CFLAGS
db137867
AC
7592 else
7593 echo "cannot find nm_test_func in $nlist" >&5
7594 fi
7595 else
7596 echo "cannot find nm_test_var in $nlist" >&5
7597 fi
7598 else
7599 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7600 fi
7601 else
7602 echo "$progname: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 fi
b676ea3b 7605 rm -rf conftest* conftst*
db137867
AC
7606
7607 # Do not use the global_symbol_pipe unless it works.
7608 if test "$pipe_works" = yes; then
7609 break
7610 else
7611 lt_cv_sys_global_symbol_pipe=
7612 fi
7613done
7614
7615fi
7616
7617if test -z "$lt_cv_sys_global_symbol_pipe"; then
7618 lt_cv_sys_global_symbol_to_cdecl=
7619fi
7620if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7083c021 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
030272f3 7622$as_echo "failed" >&6; }
db137867 7623else
7083c021 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
030272f3 7625$as_echo "ok" >&6; }
db137867
AC
7626fi
7627
b6d0720c
AC
7628# Response file support.
7629if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7630 nm_file_list_spec='@'
7631elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7632 nm_file_list_spec='@'
7633fi
7634
7635
7636
7637
7638
7639
7640
db137867
AC
7641
7642
7643
7644
7645
db137867 7646
db137867 7647
db137867 7648
db137867 7649
db137867 7650
db137867 7651
db137867 7652
db137867 7653
db137867 7654
db137867
AC
7655
7656
b6d0720c
AC
7657
7658
7659
7660
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7662$as_echo_n "checking for sysroot... " >&6; }
7663
7664# Check whether --with-sysroot was given.
7665if test "${with_sysroot+set}" = set; then :
7666 withval=$with_sysroot;
7667else
7668 with_sysroot=no
7669fi
7670
7671
7672lt_sysroot=
7673case ${with_sysroot} in #(
7674 yes)
7675 if test "$GCC" = yes; then
7676 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7677 fi
7678 ;; #(
7679 /*)
7680 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7681 ;; #(
7682 no|'')
7683 ;; #(
7684 *)
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7686$as_echo "${with_sysroot}" >&6; }
7687 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7688 ;;
7689esac
7690
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7692$as_echo "${lt_sysroot:-no}" >&6; }
db137867 7693
db137867 7694
db137867 7695
db137867 7696
7083c021
AC
7697
7698# Check whether --enable-libtool-lock was given.
7699if test "${enable_libtool_lock+set}" = set; then :
7700 enableval=$enable_libtool_lock;
db137867
AC
7701fi
7702
7083c021 7703test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
db137867 7704
7083c021
AC
7705# Some flags need to be propagated to the compiler or linker for good
7706# libtool support.
7707case $host in
7708ia64-*-hpux*)
7709 # Find out which ABI we are using.
7710 echo 'int i;' > conftest.$ac_ext
7711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7712 (eval $ac_compile) 2>&5
7713 ac_status=$?
7714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7715 test $ac_status = 0; }; then
7716 case `/usr/bin/file conftest.$ac_objext` in
7717 *ELF-32*)
7718 HPUX_IA64_MODE="32"
7719 ;;
7720 *ELF-64*)
7721 HPUX_IA64_MODE="64"
7722 ;;
7723 esac
7724 fi
7725 rm -rf conftest*
7726 ;;
7727*-*-irix6*)
7728 # Find out which ABI we are using.
b6d0720c 7729 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7083c021
AC
7730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7731 (eval $ac_compile) 2>&5
7732 ac_status=$?
7733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734 test $ac_status = 0; }; then
7735 if test "$lt_cv_prog_gnu_ld" = yes; then
7736 case `/usr/bin/file conftest.$ac_objext` in
7737 *32-bit*)
7738 LD="${LD-ld} -melf32bsmip"
7739 ;;
7740 *N32*)
7741 LD="${LD-ld} -melf32bmipn32"
7742 ;;
7743 *64-bit*)
7744 LD="${LD-ld} -melf64bmip"
7745 ;;
7746 esac
7747 else
7748 case `/usr/bin/file conftest.$ac_objext` in
7749 *32-bit*)
7750 LD="${LD-ld} -32"
7751 ;;
7752 *N32*)
7753 LD="${LD-ld} -n32"
7754 ;;
7755 *64-bit*)
7756 LD="${LD-ld} -64"
7757 ;;
7758 esac
7759 fi
7760 fi
7761 rm -rf conftest*
7762 ;;
7763
7764x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7765s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7766 # Find out which ABI we are using.
7767 echo 'int i;' > conftest.$ac_ext
7768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7769 (eval $ac_compile) 2>&5
7770 ac_status=$?
7771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772 test $ac_status = 0; }; then
7773 case `/usr/bin/file conftest.o` in
7774 *32-bit*)
7775 case $host in
7776 x86_64-*kfreebsd*-gnu)
7777 LD="${LD-ld} -m elf_i386_fbsd"
7778 ;;
7779 x86_64-*linux*)
7780 LD="${LD-ld} -m elf_i386"
7781 ;;
7782 ppc64-*linux*|powerpc64-*linux*)
7783 LD="${LD-ld} -m elf32ppclinux"
7784 ;;
7785 s390x-*linux*)
7786 LD="${LD-ld} -m elf_s390"
7787 ;;
7788 sparc64-*linux*)
7789 LD="${LD-ld} -m elf32_sparc"
7790 ;;
7791 esac
7792 ;;
7793 *64-bit*)
7794 case $host in
7795 x86_64-*kfreebsd*-gnu)
7796 LD="${LD-ld} -m elf_x86_64_fbsd"
7797 ;;
7798 x86_64-*linux*)
7799 LD="${LD-ld} -m elf_x86_64"
7800 ;;
7801 ppc*-*linux*|powerpc*-*linux*)
7802 LD="${LD-ld} -m elf64ppc"
7803 ;;
7804 s390*-*linux*|s390*-*tpf*)
7805 LD="${LD-ld} -m elf64_s390"
7806 ;;
7807 sparc*-*linux*)
7808 LD="${LD-ld} -m elf64_sparc"
7809 ;;
7810 esac
7811 ;;
7812 esac
7813 fi
7814 rm -rf conftest*
7815 ;;
7816
7817*-*-sco3.2v5*)
7818 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7819 SAVE_CFLAGS="$CFLAGS"
7820 CFLAGS="$CFLAGS -belf"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7822$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
08c2568c 7823if ${lt_cv_cc_needs_belf+:} false; then :
7083c021
AC
7824 $as_echo_n "(cached) " >&6
7825else
7826 ac_ext=c
7827ac_cpp='$CPP $CPPFLAGS'
7828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h. */
7834
7835int
7836main ()
7837{
7838
7839 ;
7840 return 0;
7841}
7842_ACEOF
7843if ac_fn_c_try_link "$LINENO"; then :
7844 lt_cv_cc_needs_belf=yes
7845else
7846 lt_cv_cc_needs_belf=no
7847fi
7848rm -f core conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7850 ac_ext=c
7851ac_cpp='$CPP $CPPFLAGS'
7852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855
7856fi
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7858$as_echo "$lt_cv_cc_needs_belf" >&6; }
7859 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7860 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7861 CFLAGS="$SAVE_CFLAGS"
7862 fi
7863 ;;
7864sparc*-*solaris*)
7865 # Find out which ABI we are using.
7866 echo 'int i;' > conftest.$ac_ext
7867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7868 (eval $ac_compile) 2>&5
7869 ac_status=$?
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; }; then
7872 case `/usr/bin/file conftest.o` in
7873 *64-bit*)
7874 case $lt_cv_prog_gnu_ld in
7875 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7876 *)
7877 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7878 LD="${LD-ld} -64"
7879 fi
7880 ;;
7881 esac
7882 ;;
7883 esac
7884 fi
7885 rm -rf conftest*
7886 ;;
7887esac
7888
7889need_locks="$enable_libtool_lock"
7890
b6d0720c
AC
7891if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7893set dummy ${ac_tool_prefix}mt; ac_word=$2
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895$as_echo_n "checking for $ac_word... " >&6; }
7896if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7897 $as_echo_n "(cached) " >&6
7898else
7899 if test -n "$MANIFEST_TOOL"; then
7900 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7901else
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913done
7914 done
7915IFS=$as_save_IFS
7916
7917fi
7918fi
7919MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7920if test -n "$MANIFEST_TOOL"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7922$as_echo "$MANIFEST_TOOL" >&6; }
7923else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
7926fi
7927
7928
7929fi
7930if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7931 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7932 # Extract the first word of "mt", so it can be a program name with args.
7933set dummy mt; ac_word=$2
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935$as_echo_n "checking for $ac_word... " >&6; }
7936if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938else
7939 if test -n "$ac_ct_MANIFEST_TOOL"; then
7940 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7941else
7942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943for as_dir in $PATH
7944do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953done
7954 done
7955IFS=$as_save_IFS
7956
7957fi
7958fi
7959ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7960if test -n "$ac_ct_MANIFEST_TOOL"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7962$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7963else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965$as_echo "no" >&6; }
7966fi
7967
7968 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7969 MANIFEST_TOOL=":"
7970 else
7971 case $cross_compiling:$ac_tool_warned in
7972yes:)
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975ac_tool_warned=yes ;;
7976esac
7977 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7978 fi
7979else
7980 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7981fi
7982
7983test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7985$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7986if ${lt_cv_path_mainfest_tool+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988else
7989 lt_cv_path_mainfest_tool=no
7990 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7991 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7992 cat conftest.err >&5
7993 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7994 lt_cv_path_mainfest_tool=yes
7995 fi
7996 rm -f conftest*
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7999$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8000if test "x$lt_cv_path_mainfest_tool" != xyes; then
8001 MANIFEST_TOOL=:
8002fi
8003
8004
8005
8006
8007
7083c021
AC
8008
8009 case $host_os in
8010 rhapsody* | darwin*)
8011 if test -n "$ac_tool_prefix"; then
8012 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8013set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8016if ${ac_cv_prog_DSYMUTIL+:} false; then :
7083c021
AC
8017 $as_echo_n "(cached) " >&6
8018else
8019 if test -n "$DSYMUTIL"; then
8020 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
db137867
AC
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
7083c021 8027 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8029 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
8031 break 2
8032 fi
8033done
7083c021
AC
8034 done
8035IFS=$as_save_IFS
8036
8037fi
8038fi
8039DSYMUTIL=$ac_cv_prog_DSYMUTIL
8040if test -n "$DSYMUTIL"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8042$as_echo "$DSYMUTIL" >&6; }
8043else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
8046fi
8047
8048
8049fi
8050if test -z "$ac_cv_prog_DSYMUTIL"; then
8051 ac_ct_DSYMUTIL=$DSYMUTIL
8052 # Extract the first word of "dsymutil", so it can be a program name with args.
8053set dummy dsymutil; ac_word=$2
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8056if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7083c021
AC
8057 $as_echo_n "(cached) " >&6
8058else
8059 if test -n "$ac_ct_DSYMUTIL"; then
8060 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8061else
8062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063for as_dir in $PATH
8064do
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8072 fi
db137867 8073done
7083c021 8074 done
db137867
AC
8075IFS=$as_save_IFS
8076
8077fi
8078fi
7083c021
AC
8079ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8080if test -n "$ac_ct_DSYMUTIL"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8082$as_echo "$ac_ct_DSYMUTIL" >&6; }
db137867 8083else
7083c021 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8085$as_echo "no" >&6; }
db137867
AC
8086fi
8087
7083c021
AC
8088 if test "x$ac_ct_DSYMUTIL" = x; then
8089 DSYMUTIL=":"
db137867
AC
8090 else
8091 case $cross_compiling:$ac_tool_warned in
8092yes:)
7083c021 8093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
8095ac_tool_warned=yes ;;
8096esac
7083c021 8097 DSYMUTIL=$ac_ct_DSYMUTIL
db137867
AC
8098 fi
8099else
7083c021 8100 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
db137867
AC
8101fi
8102
7083c021
AC
8103 if test -n "$ac_tool_prefix"; then
8104 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8105set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8107$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8108if ${ac_cv_prog_NMEDIT+:} false; then :
030272f3 8109 $as_echo_n "(cached) " >&6
db137867 8110else
7083c021
AC
8111 if test -n "$NMEDIT"; then
8112 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
db137867
AC
8113else
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
7083c021 8119 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8121 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
8123 break 2
8124 fi
8125done
7083c021 8126 done
db137867
AC
8127IFS=$as_save_IFS
8128
8129fi
8130fi
7083c021
AC
8131NMEDIT=$ac_cv_prog_NMEDIT
8132if test -n "$NMEDIT"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8134$as_echo "$NMEDIT" >&6; }
db137867 8135else
7083c021 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8137$as_echo "no" >&6; }
db137867
AC
8138fi
8139
8140
8141fi
7083c021
AC
8142if test -z "$ac_cv_prog_NMEDIT"; then
8143 ac_ct_NMEDIT=$NMEDIT
8144 # Extract the first word of "nmedit", so it can be a program name with args.
8145set dummy nmedit; ac_word=$2
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8147$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8148if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
030272f3 8149 $as_echo_n "(cached) " >&6
db137867 8150else
7083c021
AC
8151 if test -n "$ac_ct_NMEDIT"; then
8152 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
db137867
AC
8153else
8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
7083c021 8159 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8161 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
8163 break 2
8164 fi
8165done
7083c021 8166 done
db137867
AC
8167IFS=$as_save_IFS
8168
8169fi
8170fi
7083c021
AC
8171ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8172if test -n "$ac_ct_NMEDIT"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8174$as_echo "$ac_ct_NMEDIT" >&6; }
db137867 8175else
7083c021 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8177$as_echo "no" >&6; }
db137867
AC
8178fi
8179
7083c021
AC
8180 if test "x$ac_ct_NMEDIT" = x; then
8181 NMEDIT=":"
db137867
AC
8182 else
8183 case $cross_compiling:$ac_tool_warned in
8184yes:)
7083c021 8185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
8187ac_tool_warned=yes ;;
8188esac
7083c021 8189 NMEDIT=$ac_ct_NMEDIT
db137867
AC
8190 fi
8191else
7083c021 8192 NMEDIT="$ac_cv_prog_NMEDIT"
db137867
AC
8193fi
8194
7083c021
AC
8195 if test -n "$ac_tool_prefix"; then
8196 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8197set dummy ${ac_tool_prefix}lipo; ac_word=$2
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8200if ${ac_cv_prog_LIPO+:} false; then :
7083c021
AC
8201 $as_echo_n "(cached) " >&6
8202else
8203 if test -n "$LIPO"; then
8204 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8205else
8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217done
8218 done
8219IFS=$as_save_IFS
db137867 8220
db137867 8221fi
db137867 8222fi
7083c021
AC
8223LIPO=$ac_cv_prog_LIPO
8224if test -n "$LIPO"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8226$as_echo "$LIPO" >&6; }
db137867 8227else
7083c021 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8229$as_echo "no" >&6; }
db137867
AC
8230fi
8231
7083c021
AC
8232
8233fi
8234if test -z "$ac_cv_prog_LIPO"; then
8235 ac_ct_LIPO=$LIPO
8236 # Extract the first word of "lipo", so it can be a program name with args.
8237set dummy lipo; ac_word=$2
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8240if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
030272f3 8241 $as_echo_n "(cached) " >&6
db137867 8242else
7083c021
AC
8243 if test -n "$ac_ct_LIPO"; then
8244 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8245else
8246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8253 ac_cv_prog_ac_ct_LIPO="lipo"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257done
db137867 8258 done
7083c021 8259IFS=$as_save_IFS
db137867 8260
7083c021
AC
8261fi
8262fi
8263ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8264if test -n "$ac_ct_LIPO"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8266$as_echo "$ac_ct_LIPO" >&6; }
db137867 8267else
7083c021 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8269$as_echo "no" >&6; }
db137867
AC
8270fi
8271
7083c021
AC
8272 if test "x$ac_ct_LIPO" = x; then
8273 LIPO=":"
db137867 8274 else
7083c021
AC
8275 case $cross_compiling:$ac_tool_warned in
8276yes:)
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8279ac_tool_warned=yes ;;
8280esac
8281 LIPO=$ac_ct_LIPO
db137867 8282 fi
7083c021
AC
8283else
8284 LIPO="$ac_cv_prog_LIPO"
db137867
AC
8285fi
8286
b676ea3b 8287 if test -n "$ac_tool_prefix"; then
7083c021
AC
8288 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8289set dummy ${ac_tool_prefix}otool; ac_word=$2
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8291$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8292if ${ac_cv_prog_OTOOL+:} false; then :
030272f3 8293 $as_echo_n "(cached) " >&6
b676ea3b 8294else
7083c021
AC
8295 if test -n "$OTOOL"; then
8296 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
b676ea3b
AC
8297else
8298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299for as_dir in $PATH
8300do
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
7083c021 8303 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 8304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8305 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8307 break 2
8308 fi
8309done
7083c021 8310 done
b676ea3b
AC
8311IFS=$as_save_IFS
8312
8313fi
8314fi
7083c021
AC
8315OTOOL=$ac_cv_prog_OTOOL
8316if test -n "$OTOOL"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8318$as_echo "$OTOOL" >&6; }
b676ea3b 8319else
7083c021 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8321$as_echo "no" >&6; }
b676ea3b
AC
8322fi
8323
8324
8325fi
7083c021
AC
8326if test -z "$ac_cv_prog_OTOOL"; then
8327 ac_ct_OTOOL=$OTOOL
8328 # Extract the first word of "otool", so it can be a program name with args.
8329set dummy otool; ac_word=$2
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8331$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8332if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
030272f3 8333 $as_echo_n "(cached) " >&6
b676ea3b 8334else
7083c021
AC
8335 if test -n "$ac_ct_OTOOL"; then
8336 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
b676ea3b
AC
8337else
8338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
7083c021 8343 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8345 ac_cv_prog_ac_ct_OTOOL="otool"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8347 break 2
8348 fi
8349done
7083c021 8350 done
b676ea3b
AC
8351IFS=$as_save_IFS
8352
8353fi
8354fi
7083c021
AC
8355ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8356if test -n "$ac_ct_OTOOL"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8358$as_echo "$ac_ct_OTOOL" >&6; }
b676ea3b 8359else
7083c021 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8361$as_echo "no" >&6; }
b676ea3b
AC
8362fi
8363
7083c021
AC
8364 if test "x$ac_ct_OTOOL" = x; then
8365 OTOOL=":"
b676ea3b
AC
8366 else
8367 case $cross_compiling:$ac_tool_warned in
8368yes:)
7083c021 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b676ea3b
AC
8371ac_tool_warned=yes ;;
8372esac
7083c021 8373 OTOOL=$ac_ct_OTOOL
b676ea3b
AC
8374 fi
8375else
7083c021 8376 OTOOL="$ac_cv_prog_OTOOL"
b676ea3b
AC
8377fi
8378
8379 if test -n "$ac_tool_prefix"; then
7083c021
AC
8380 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8381set dummy ${ac_tool_prefix}otool64; ac_word=$2
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8383$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8384if ${ac_cv_prog_OTOOL64+:} false; then :
030272f3 8385 $as_echo_n "(cached) " >&6
b676ea3b 8386else
7083c021
AC
8387 if test -n "$OTOOL64"; then
8388 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
b676ea3b
AC
8389else
8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391for as_dir in $PATH
8392do
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
7083c021 8395 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8397 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8399 break 2
8400 fi
8401done
7083c021 8402 done
b676ea3b
AC
8403IFS=$as_save_IFS
8404
8405fi
8406fi
7083c021
AC
8407OTOOL64=$ac_cv_prog_OTOOL64
8408if test -n "$OTOOL64"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8410$as_echo "$OTOOL64" >&6; }
b676ea3b 8411else
7083c021 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8413$as_echo "no" >&6; }
b676ea3b
AC
8414fi
8415
8416
8417fi
7083c021
AC
8418if test -z "$ac_cv_prog_OTOOL64"; then
8419 ac_ct_OTOOL64=$OTOOL64
8420 # Extract the first word of "otool64", so it can be a program name with args.
8421set dummy otool64; ac_word=$2
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 8423$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 8424if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
030272f3 8425 $as_echo_n "(cached) " >&6
b676ea3b 8426else
7083c021
AC
8427 if test -n "$ac_ct_OTOOL64"; then
8428 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
b676ea3b
AC
8429else
8430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431for as_dir in $PATH
8432do
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
7083c021 8435 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
8437 ac_cv_prog_ac_ct_OTOOL64="otool64"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
8439 break 2
8440 fi
8441done
7083c021 8442 done
b676ea3b
AC
8443IFS=$as_save_IFS
8444
8445fi
8446fi
7083c021
AC
8447ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8448if test -n "$ac_ct_OTOOL64"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8450$as_echo "$ac_ct_OTOOL64" >&6; }
b676ea3b 8451else
7083c021 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 8453$as_echo "no" >&6; }
b676ea3b
AC
8454fi
8455
7083c021
AC
8456 if test "x$ac_ct_OTOOL64" = x; then
8457 OTOOL64=":"
b676ea3b
AC
8458 else
8459 case $cross_compiling:$ac_tool_warned in
8460yes:)
7083c021 8461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 8462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b676ea3b
AC
8463ac_tool_warned=yes ;;
8464esac
7083c021 8465 OTOOL64=$ac_ct_OTOOL64
b676ea3b
AC
8466 fi
8467else
7083c021 8468 OTOOL64="$ac_cv_prog_OTOOL64"
b676ea3b
AC
8469fi
8470
8471
b676ea3b 8472
b676ea3b 8473
7083c021
AC
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8498$as_echo_n "checking for -single_module linker flag... " >&6; }
08c2568c 8499if ${lt_cv_apple_cc_single_mod+:} false; then :
7083c021
AC
8500 $as_echo_n "(cached) " >&6
8501else
8502 lt_cv_apple_cc_single_mod=no
8503 if test -z "${LT_MULTI_MODULE}"; then
8504 # By default we will add the -single_module flag. You can override
8505 # by either setting the environment variable LT_MULTI_MODULE
8506 # non-empty at configure time, or by adding -multi_module to the
8507 # link flags.
8508 rm -rf libconftest.dylib*
8509 echo "int foo(void){return 1;}" > conftest.c
8510 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8511-dynamiclib -Wl,-single_module conftest.c" >&5
8512 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8513 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8514 _lt_result=$?
8515 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8516 lt_cv_apple_cc_single_mod=yes
8517 else
8518 cat conftest.err >&5
8519 fi
8520 rm -rf libconftest.dylib*
8521 rm -f conftest.*
8522 fi
8523fi
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8525$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8527$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
08c2568c 8528if ${lt_cv_ld_exported_symbols_list+:} false; then :
7083c021
AC
8529 $as_echo_n "(cached) " >&6
8530else
8531 lt_cv_ld_exported_symbols_list=no
8532 save_LDFLAGS=$LDFLAGS
8533 echo "_main" > conftest.sym
8534 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536/* end confdefs.h. */
8537
8538int
8539main ()
8540{
8541
8542 ;
8543 return 0;
b676ea3b
AC
8544}
8545_ACEOF
7083c021 8546if ac_fn_c_try_link "$LINENO"; then :
b676ea3b
AC
8547 lt_cv_ld_exported_symbols_list=yes
8548else
7083c021 8549 lt_cv_ld_exported_symbols_list=no
b676ea3b 8550fi
7083c021
AC
8551rm -f core conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext conftest.$ac_ext
8553 LDFLAGS="$save_LDFLAGS"
b676ea3b
AC
8554
8555fi
7083c021 8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
030272f3 8557$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b6d0720c
AC
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8559$as_echo_n "checking for -force_load linker flag... " >&6; }
8560if ${lt_cv_ld_force_load+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562else
8563 lt_cv_ld_force_load=no
8564 cat > conftest.c << _LT_EOF
8565int forced_loaded() { return 2;}
8566_LT_EOF
8567 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8568 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8569 echo "$AR cru libconftest.a conftest.o" >&5
8570 $AR cru libconftest.a conftest.o 2>&5
8571 echo "$RANLIB libconftest.a" >&5
8572 $RANLIB libconftest.a 2>&5
8573 cat > conftest.c << _LT_EOF
8574int main() { return 0;}
8575_LT_EOF
8576 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8577 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8578 _lt_result=$?
8579 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8580 lt_cv_ld_force_load=yes
8581 else
8582 cat conftest.err >&5
8583 fi
8584 rm -f conftest.err libconftest.a conftest conftest.c
8585 rm -rf conftest.dSYM
8586
8587fi
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8589$as_echo "$lt_cv_ld_force_load" >&6; }
b676ea3b 8590 case $host_os in
7083c021 8591 rhapsody* | darwin1.[012])
b676ea3b
AC
8592 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8593 darwin1.*)
7083c021
AC
8594 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8595 darwin*) # darwin 5.x on
b676ea3b
AC
8596 # if running on 10.5 or later, the deployment target defaults
8597 # to the OS version, if on x86, and 10.4, the deployment
8598 # target defaults to 10.4. Don't you love it?
8599 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7083c021
AC
8600 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8602 10.[012]*)
8603 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8604 10.*)
8605 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
b676ea3b
AC
8606 esac
8607 ;;
8608 esac
8609 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8610 _lt_dar_single_mod='$single_module'
8611 fi
8612 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8613 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8614 else
7083c021 8615 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
b676ea3b 8616 fi
b6d0720c 8617 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7083c021 8618 _lt_dsymutil='~$DSYMUTIL $lib || :'
b676ea3b
AC
8619 else
8620 _lt_dsymutil=
8621 fi
8622 ;;
8623 esac
8624
7083c021
AC
8625for ac_header in dlfcn.h
8626do :
8627 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8628"
08c2568c 8629if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7083c021
AC
8630 cat >>confdefs.h <<_ACEOF
8631#define HAVE_DLFCN_H 1
8632_ACEOF
b676ea3b 8633
db137867
AC
8634fi
8635
7083c021
AC
8636done
8637
8638
8639
b6d0720c
AC
8640
8641
7083c021
AC
8642# Set options
8643
8644
8645
8646 enable_dlopen=no
8647
8648
8649 enable_win32_dll=no
8650
8651
8652
db137867
AC
8653
8654
8655# Check whether --with-pic was given.
7083c021 8656if test "${with_pic+set}" = set; then :
db137867
AC
8657 withval=$with_pic; pic_mode="$withval"
8658else
8659 pic_mode=default
8660fi
8661
7083c021 8662
db137867
AC
8663test -z "$pic_mode" && pic_mode=default
8664
db137867
AC
8665
8666
db137867 8667
db137867 8668
db137867 8669
db137867 8670
7083c021
AC
8671 # Check whether --enable-fast-install was given.
8672if test "${enable_fast_install+set}" = set; then :
8673 enableval=$enable_fast_install; p=${PACKAGE-default}
8674 case $enableval in
8675 yes) enable_fast_install=yes ;;
8676 no) enable_fast_install=no ;;
8677 *)
8678 enable_fast_install=no
8679 # Look at the argument we got. We use all the common list separators.
8680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8681 for pkg in $enableval; do
8682 IFS="$lt_save_ifs"
8683 if test "X$pkg" = "X$p"; then
8684 enable_fast_install=yes
8685 fi
8686 done
8687 IFS="$lt_save_ifs"
8688 ;;
8689 esac
8690else
8691 enable_fast_install=yes
8692fi
db137867 8693
db137867 8694
db137867 8695
db137867
AC
8696
8697
db137867 8698
db137867
AC
8699
8700
8701
db137867 8702
db137867 8703
7083c021
AC
8704# This can be used to rebuild libtool when needed
8705LIBTOOL_DEPS="$ltmain"
db137867 8706
7083c021
AC
8707# Always use our own libtool.
8708LIBTOOL='$(SHELL) $(top_builddir)/libtool'
db137867 8709
db137867 8710
db137867 8711
db137867 8712
db137867 8713
db137867 8714
db137867 8715
db137867 8716
db137867 8717
db137867 8718
db137867 8719
db137867 8720
db137867 8721
db137867 8722
db137867 8723
db137867 8724
db137867 8725
db137867 8726
db137867 8727
db137867 8728
db137867 8729
db137867 8730
db137867 8731
b6d0720c 8732
db137867 8733
db137867 8734
7083c021 8735test -z "$LN_S" && LN_S="ln -s"
db137867 8736
db137867 8737
db137867 8738
db137867 8739
db137867 8740
db137867 8741
db137867 8742
db137867 8743
db137867 8744
db137867 8745
db137867 8746
db137867 8747
db137867 8748
db137867 8749
7083c021
AC
8750if test -n "${ZSH_VERSION+set}" ; then
8751 setopt NO_GLOB_SUBST
db137867 8752fi
db137867 8753
7083c021
AC
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8755$as_echo_n "checking for objdir... " >&6; }
08c2568c 8756if ${lt_cv_objdir+:} false; then :
7083c021 8757 $as_echo_n "(cached) " >&6
db137867 8758else
7083c021
AC
8759 rm -f .libs 2>/dev/null
8760mkdir .libs 2>/dev/null
8761if test -d .libs; then
8762 lt_cv_objdir=.libs
8763else
8764 # MS-DOS does not allow filenames that begin with a dot.
8765 lt_cv_objdir=_libs
8766fi
8767rmdir .libs 2>/dev/null
db137867 8768fi
7083c021
AC
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8770$as_echo "$lt_cv_objdir" >&6; }
8771objdir=$lt_cv_objdir
db137867
AC
8772
8773
db137867 8774
db137867 8775
db137867 8776
7083c021
AC
8777cat >>confdefs.h <<_ACEOF
8778#define LT_OBJDIR "$lt_cv_objdir/"
8779_ACEOF
db137867 8780
db137867 8781
db137867 8782
db137867 8783
7083c021
AC
8784case $host_os in
8785aix3*)
8786 # AIX sometimes has problems with the GCC collect2 program. For some
8787 # reason, if we set the COLLECT_NAMES environment variable, the problems
8788 # vanish in a puff of smoke.
8789 if test "X${COLLECT_NAMES+set}" != Xset; then
8790 COLLECT_NAMES=
8791 export COLLECT_NAMES
8792 fi
8793 ;;
8794esac
db137867 8795
7083c021
AC
8796# Global variables:
8797ofile=libtool
8798can_build_shared=yes
db137867 8799
7083c021
AC
8800# All known linkers require a `.a' archive for static linking (except MSVC,
8801# which needs '.lib').
8802libext=a
db137867 8803
7083c021 8804with_gnu_ld="$lt_cv_prog_gnu_ld"
db137867 8805
7083c021
AC
8806old_CC="$CC"
8807old_CFLAGS="$CFLAGS"
db137867 8808
7083c021
AC
8809# Set sane defaults for various variables
8810test -z "$CC" && CC=cc
8811test -z "$LTCC" && LTCC=$CC
8812test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8813test -z "$LD" && LD=ld
8814test -z "$ac_objext" && ac_objext=o
db137867 8815
7083c021
AC
8816for cc_temp in $compiler""; do
8817 case $cc_temp in
8818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8820 \-*) ;;
8821 *) break;;
8822 esac
8823done
b6d0720c 8824cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
db137867 8825
db137867 8826
7083c021
AC
8827# Only perform the check for file, if the check method requires it
8828test -z "$MAGIC_CMD" && MAGIC_CMD=file
8829case $deplibs_check_method in
8830file_magic*)
8831 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8833$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
08c2568c 8834if ${lt_cv_path_MAGIC_CMD+:} false; then :
7083c021
AC
8835 $as_echo_n "(cached) " >&6
8836else
8837 case $MAGIC_CMD in
8838[\\/*] | ?:[\\/]*)
8839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8840 ;;
8841*)
8842 lt_save_MAGIC_CMD="$MAGIC_CMD"
8843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8845 for ac_dir in $ac_dummy; do
8846 IFS="$lt_save_ifs"
8847 test -z "$ac_dir" && ac_dir=.
8848 if test -f $ac_dir/${ac_tool_prefix}file; then
8849 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8850 if test -n "$file_magic_test_file"; then
8851 case $deplibs_check_method in
8852 "file_magic "*)
8853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8856 $EGREP "$file_magic_regex" > /dev/null; then
8857 :
8858 else
8859 cat <<_LT_EOF 1>&2
db137867 8860
7083c021
AC
8861*** Warning: the command libtool uses to detect shared libraries,
8862*** $file_magic_cmd, produces output that libtool cannot recognize.
8863*** The result is that libtool may fail to recognize shared libraries
8864*** as such. This will affect the creation of libtool libraries that
8865*** depend on shared libraries, but programs linked with such libtool
8866*** libraries will work regardless of this problem. Nevertheless, you
8867*** may want to report the problem to your system manager and/or to
8868*** bug-libtool@gnu.org
db137867 8869
7083c021
AC
8870_LT_EOF
8871 fi ;;
db137867 8872 esac
db137867 8873 fi
7083c021
AC
8874 break
8875 fi
8876 done
8877 IFS="$lt_save_ifs"
8878 MAGIC_CMD="$lt_save_MAGIC_CMD"
8879 ;;
8880esac
8881fi
db137867 8882
7083c021
AC
8883MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8884if test -n "$MAGIC_CMD"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8886$as_echo "$MAGIC_CMD" >&6; }
8887else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889$as_echo "no" >&6; }
8890fi
db137867 8891
db137867 8892
db137867 8893
7083c021
AC
8894
8895
8896if test -z "$lt_cv_path_MAGIC_CMD"; then
8897 if test -n "$ac_tool_prefix"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8899$as_echo_n "checking for file... " >&6; }
08c2568c 8900if ${lt_cv_path_MAGIC_CMD+:} false; then :
7083c021 8901 $as_echo_n "(cached) " >&6
db137867 8902else
7083c021
AC
8903 case $MAGIC_CMD in
8904[\\/*] | ?:[\\/]*)
8905 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8906 ;;
8907*)
8908 lt_save_MAGIC_CMD="$MAGIC_CMD"
8909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8910 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8911 for ac_dir in $ac_dummy; do
8912 IFS="$lt_save_ifs"
8913 test -z "$ac_dir" && ac_dir=.
8914 if test -f $ac_dir/file; then
8915 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8916 if test -n "$file_magic_test_file"; then
8917 case $deplibs_check_method in
8918 "file_magic "*)
8919 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8922 $EGREP "$file_magic_regex" > /dev/null; then
8923 :
8924 else
8925 cat <<_LT_EOF 1>&2
db137867 8926
7083c021
AC
8927*** Warning: the command libtool uses to detect shared libraries,
8928*** $file_magic_cmd, produces output that libtool cannot recognize.
8929*** The result is that libtool may fail to recognize shared libraries
8930*** as such. This will affect the creation of libtool libraries that
8931*** depend on shared libraries, but programs linked with such libtool
8932*** libraries will work regardless of this problem. Nevertheless, you
8933*** may want to report the problem to your system manager and/or to
8934*** bug-libtool@gnu.org
db137867 8935
7083c021
AC
8936_LT_EOF
8937 fi ;;
8938 esac
8939 fi
8940 break
8941 fi
8942 done
8943 IFS="$lt_save_ifs"
8944 MAGIC_CMD="$lt_save_MAGIC_CMD"
8945 ;;
8946esac
db137867
AC
8947fi
8948
7083c021
AC
8949MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8950if test -n "$MAGIC_CMD"; then
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8952$as_echo "$MAGIC_CMD" >&6; }
8953else
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955$as_echo "no" >&6; }
8956fi
db137867 8957
db137867 8958
7083c021
AC
8959 else
8960 MAGIC_CMD=:
8961 fi
8962fi
db137867 8963
7083c021
AC
8964 fi
8965 ;;
db137867 8966esac
db137867 8967
7083c021
AC
8968# Use C for the default configuration in the libtool script
8969
8970lt_save_CC="$CC"
8971ac_ext=c
8972ac_cpp='$CPP $CPPFLAGS'
8973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975ac_compiler_gnu=$ac_cv_c_compiler_gnu
8976
8977
8978# Source file extension for C test sources.
8979ac_ext=c
8980
8981# Object file extension for compiled C test sources.
8982objext=o
8983objext=$objext
8984
8985# Code to be used in simple compile tests
8986lt_simple_compile_test_code="int some_variable = 0;"
8987
8988# Code to be used in simple link tests
8989lt_simple_link_test_code='int main(){return(0);}'
8990
8991
8992
8993
8994
8995
8996
8997# If no C compiler was specified, use CC.
8998LTCC=${LTCC-"$CC"}
8999
9000# If no C compiler flags were specified, use CFLAGS.
9001LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9002
9003# Allow CC to be a program name with arguments.
9004compiler=$CC
9005
9006# Save the default compiler, since it gets overwritten when the other
9007# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9008compiler_DEFAULT=$CC
9009
9010# save warnings/boilerplate of simple test code
9011ac_outfile=conftest.$ac_objext
9012echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9013eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9014_lt_compiler_boilerplate=`cat conftest.err`
9015$RM conftest*
9016
9017ac_outfile=conftest.$ac_objext
9018echo "$lt_simple_link_test_code" >conftest.$ac_ext
9019eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9020_lt_linker_boilerplate=`cat conftest.err`
9021$RM -r conftest*
9022
9023
9024if test -n "$compiler"; then
9025
9026lt_prog_compiler_no_builtin_flag=
9027
9028if test "$GCC" = yes; then
b6d0720c
AC
9029 case $cc_basename in
9030 nvcc*)
9031 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9032 *)
9033 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9034 esac
7083c021
AC
9035
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9037$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
08c2568c 9038if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7083c021 9039 $as_echo_n "(cached) " >&6
db137867 9040else
7083c021
AC
9041 lt_cv_prog_compiler_rtti_exceptions=no
9042 ac_outfile=conftest.$ac_objext
9043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9044 lt_compiler_flag="-fno-rtti -fno-exceptions"
9045 # Insert the option either (1) after the last *FLAGS variable, or
9046 # (2) before a word containing "conftest.", or (3) at the end.
9047 # Note that $ac_compile itself does not contain backslashes and begins
9048 # with a dollar sign (not a hyphen), so the echo should work correctly.
9049 # The option is referenced via a variable to avoid confusing sed.
9050 lt_compile=`echo "$ac_compile" | $SED \
9051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053 -e 's:$: $lt_compiler_flag:'`
b6d0720c 9054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
9055 (eval "$lt_compile" 2>conftest.err)
9056 ac_status=$?
9057 cat conftest.err >&5
b6d0720c 9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
9059 if (exit $ac_status) && test -s "$ac_outfile"; then
9060 # The compiler can only warn and ignore the option if not recognized
9061 # So say no if there are warnings other than the usual output.
b6d0720c 9062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7083c021
AC
9063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9064 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9065 lt_cv_prog_compiler_rtti_exceptions=yes
9066 fi
9067 fi
9068 $RM conftest*
db137867 9069
7083c021
AC
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9072$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
db137867 9073
7083c021
AC
9074if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9075 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9076else
9077 :
db137867
AC
9078fi
9079
7083c021 9080fi
db137867 9081
7083c021
AC
9082
9083
9084
9085
9086
9087 lt_prog_compiler_wl=
9088lt_prog_compiler_pic=
9089lt_prog_compiler_static=
9090
7083c021
AC
9091
9092 if test "$GCC" = yes; then
9093 lt_prog_compiler_wl='-Wl,'
9094 lt_prog_compiler_static='-static'
9095
9096 case $host_os in
9097 aix*)
9098 # All AIX code is PIC.
9099 if test "$host_cpu" = ia64; then
9100 # AIX 5 now supports IA64 processor
9101 lt_prog_compiler_static='-Bstatic'
db137867
AC
9102 fi
9103 ;;
9104
9105 amigaos*)
7083c021
AC
9106 case $host_cpu in
9107 powerpc)
9108 # see comment about AmigaOS4 .so support
9109 lt_prog_compiler_pic='-fPIC'
9110 ;;
9111 m68k)
9112 # FIXME: we need at least 68020 code to build shared libraries, but
9113 # adding the `-m68020' flag to GCC prevents building anything better,
9114 # like `-m68040'.
9115 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9116 ;;
9117 esac
db137867
AC
9118 ;;
9119
7083c021
AC
9120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9121 # PIC is the default for these OSes.
db137867
AC
9122 ;;
9123
7083c021
AC
9124 mingw* | cygwin* | pw32* | os2* | cegcc*)
9125 # This hack is so that the source file can tell whether it is being
9126 # built for inclusion in a dll (and should export symbols for example).
9127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9128 # (--disable-auto-import) libraries
9129 lt_prog_compiler_pic='-DDLL_EXPORT'
db137867
AC
9130 ;;
9131
9132 darwin* | rhapsody*)
7083c021
AC
9133 # PIC is the default on this platform
9134 # Common symbols not allowed in MH_DYLIB files
9135 lt_prog_compiler_pic='-fno-common'
db137867
AC
9136 ;;
9137
b6d0720c
AC
9138 haiku*)
9139 # PIC is the default for Haiku.
9140 # The "-static" flag exists, but is broken.
9141 lt_prog_compiler_static=
9142 ;;
9143
7083c021
AC
9144 hpux*)
9145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9147 # sets the default TLS model and affects inlining.
9148 case $host_cpu in
9149 hppa*64*)
9150 # +Z the default
9151 ;;
9152 *)
9153 lt_prog_compiler_pic='-fPIC'
9154 ;;
9155 esac
db137867
AC
9156 ;;
9157
7083c021
AC
9158 interix[3-9]*)
9159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9160 # Instead, we relocate shared libraries at runtime.
db137867
AC
9161 ;;
9162
7083c021
AC
9163 msdosdjgpp*)
9164 # Just because we use GCC doesn't mean we suddenly get shared libraries
9165 # on systems that don't support them.
9166 lt_prog_compiler_can_build_shared=no
9167 enable_shared=no
db137867
AC
9168 ;;
9169
7083c021
AC
9170 *nto* | *qnx*)
9171 # QNX uses GNU C++, but need to define -shared option too, otherwise
9172 # it will coredump.
9173 lt_prog_compiler_pic='-fPIC -shared'
db137867
AC
9174 ;;
9175
7083c021
AC
9176 sysv4*MP*)
9177 if test -d /usr/nec; then
9178 lt_prog_compiler_pic=-Kconform_pic
9179 fi
db137867
AC
9180 ;;
9181
7083c021
AC
9182 *)
9183 lt_prog_compiler_pic='-fPIC'
9184 ;;
9185 esac
b6d0720c
AC
9186
9187 case $cc_basename in
9188 nvcc*) # Cuda Compiler Driver 2.2
9189 lt_prog_compiler_wl='-Xlinker '
9190 lt_prog_compiler_pic='-Xcompiler -fPIC'
9191 ;;
9192 esac
7083c021
AC
9193 else
9194 # PORTME Check for flag to pass linker flags through the system compiler.
9195 case $host_os in
9196 aix*)
9197 lt_prog_compiler_wl='-Wl,'
9198 if test "$host_cpu" = ia64; then
9199 # AIX 5 now supports IA64 processor
9200 lt_prog_compiler_static='-Bstatic'
db137867 9201 else
7083c021 9202 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
db137867 9203 fi
db137867
AC
9204 ;;
9205
7083c021
AC
9206 mingw* | cygwin* | pw32* | os2* | cegcc*)
9207 # This hack is so that the source file can tell whether it is being
9208 # built for inclusion in a dll (and should export symbols for example).
9209 lt_prog_compiler_pic='-DDLL_EXPORT'
9210 ;;
db137867 9211
7083c021
AC
9212 hpux9* | hpux10* | hpux11*)
9213 lt_prog_compiler_wl='-Wl,'
9214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9215 # not for PA HP-UX.
9216 case $host_cpu in
9217 hppa*64*|ia64*)
9218 # +Z the default
9219 ;;
9220 *)
9221 lt_prog_compiler_pic='+Z'
9222 ;;
9223 esac
9224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9225 lt_prog_compiler_static='${wl}-a ${wl}archive'
9226 ;;
db137867 9227
7083c021
AC
9228 irix5* | irix6* | nonstopux*)
9229 lt_prog_compiler_wl='-Wl,'
9230 # PIC (with -KPIC) is the default.
9231 lt_prog_compiler_static='-non_shared'
db137867
AC
9232 ;;
9233
b6d0720c 9234 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7083c021
AC
9235 case $cc_basename in
9236 # old Intel for x86_64 which still supported -KPIC.
9237 ecc*)
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_pic='-KPIC'
9240 lt_prog_compiler_static='-static'
9241 ;;
9242 # icc used to be incompatible with GCC.
9243 # ICC 10 doesn't accept -KPIC any more.
9244 icc* | ifort*)
9245 lt_prog_compiler_wl='-Wl,'
9246 lt_prog_compiler_pic='-fPIC'
9247 lt_prog_compiler_static='-static'
9248 ;;
9249 # Lahey Fortran 8.1.
9250 lf95*)
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='--shared'
9253 lt_prog_compiler_static='--static'
9254 ;;
b6d0720c
AC
9255 nagfor*)
9256 # NAG Fortran compiler
9257 lt_prog_compiler_wl='-Wl,-Wl,,'
9258 lt_prog_compiler_pic='-PIC'
9259 lt_prog_compiler_static='-Bstatic'
9260 ;;
9261 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7083c021
AC
9262 # Portland Group compilers (*not* the Pentium gcc compiler,
9263 # which looks to be a dead project)
9264 lt_prog_compiler_wl='-Wl,'
9265 lt_prog_compiler_pic='-fpic'
9266 lt_prog_compiler_static='-Bstatic'
9267 ;;
9268 ccc*)
9269 lt_prog_compiler_wl='-Wl,'
9270 # All Alpha code is PIC.
9271 lt_prog_compiler_static='-non_shared'
9272 ;;
b6d0720c
AC
9273 xl* | bgxl* | bgf* | mpixl*)
9274 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7083c021
AC
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='-qpic'
9277 lt_prog_compiler_static='-qstaticlink'
9278 ;;
9279 *)
9280 case `$CC -V 2>&1 | sed 5q` in
b6d0720c
AC
9281 *Sun\ F* | *Sun*Fortran*)
9282 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7083c021
AC
9283 lt_prog_compiler_pic='-KPIC'
9284 lt_prog_compiler_static='-Bstatic'
b6d0720c 9285 lt_prog_compiler_wl=''
db137867 9286 ;;
b6d0720c
AC
9287 *Sun\ C*)
9288 # Sun C 5.9
7083c021
AC
9289 lt_prog_compiler_pic='-KPIC'
9290 lt_prog_compiler_static='-Bstatic'
b6d0720c 9291 lt_prog_compiler_wl='-Wl,'
db137867
AC
9292 ;;
9293 esac
7083c021
AC
9294 ;;
9295 esac
9296 ;;
db137867 9297
7083c021
AC
9298 newsos6)
9299 lt_prog_compiler_pic='-KPIC'
9300 lt_prog_compiler_static='-Bstatic'
9301 ;;
db137867 9302
7083c021
AC
9303 *nto* | *qnx*)
9304 # QNX uses GNU C++, but need to define -shared option too, otherwise
9305 # it will coredump.
9306 lt_prog_compiler_pic='-fPIC -shared'
db137867
AC
9307 ;;
9308
7083c021
AC
9309 osf3* | osf4* | osf5*)
9310 lt_prog_compiler_wl='-Wl,'
9311 # All OSF/1 code is PIC.
9312 lt_prog_compiler_static='-non_shared'
db137867
AC
9313 ;;
9314
7083c021
AC
9315 rdos*)
9316 lt_prog_compiler_static='-non_shared'
db137867
AC
9317 ;;
9318
7083c021
AC
9319 solaris*)
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-Bstatic'
9322 case $cc_basename in
b6d0720c 9323 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7083c021
AC
9324 lt_prog_compiler_wl='-Qoption ld ';;
9325 *)
9326 lt_prog_compiler_wl='-Wl,';;
9327 esac
db137867
AC
9328 ;;
9329
7083c021
AC
9330 sunos4*)
9331 lt_prog_compiler_wl='-Qoption ld '
9332 lt_prog_compiler_pic='-PIC'
9333 lt_prog_compiler_static='-Bstatic'
db137867
AC
9334 ;;
9335
7083c021
AC
9336 sysv4 | sysv4.2uw2* | sysv4.3*)
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-Bstatic'
db137867
AC
9340 ;;
9341
7083c021
AC
9342 sysv4*MP*)
9343 if test -d /usr/nec ;then
9344 lt_prog_compiler_pic='-Kconform_pic'
9345 lt_prog_compiler_static='-Bstatic'
db137867 9346 fi
db137867
AC
9347 ;;
9348
7083c021
AC
9349 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-KPIC'
9352 lt_prog_compiler_static='-Bstatic'
9353 ;;
db137867 9354
7083c021
AC
9355 unicos*)
9356 lt_prog_compiler_wl='-Wl,'
9357 lt_prog_compiler_can_build_shared=no
db137867
AC
9358 ;;
9359
7083c021
AC
9360 uts4*)
9361 lt_prog_compiler_pic='-pic'
9362 lt_prog_compiler_static='-Bstatic'
db137867
AC
9363 ;;
9364
7083c021
AC
9365 *)
9366 lt_prog_compiler_can_build_shared=no
db137867 9367 ;;
7083c021
AC
9368 esac
9369 fi
db137867 9370
7083c021
AC
9371case $host_os in
9372 # For platforms which do not support PIC, -DPIC is meaningless:
9373 *djgpp*)
9374 lt_prog_compiler_pic=
9375 ;;
9376 *)
9377 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9378 ;;
9379esac
db137867 9380
b6d0720c
AC
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9382$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9383if ${lt_cv_prog_compiler_pic+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385else
9386 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9387fi
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9389$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9390lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
db137867 9391
7083c021
AC
9392#
9393# Check to make sure the PIC flag actually works.
9394#
9395if test -n "$lt_prog_compiler_pic"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9397$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
08c2568c 9398if ${lt_cv_prog_compiler_pic_works+:} false; then :
7083c021
AC
9399 $as_echo_n "(cached) " >&6
9400else
9401 lt_cv_prog_compiler_pic_works=no
9402 ac_outfile=conftest.$ac_objext
9403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9404 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9405 # Insert the option either (1) after the last *FLAGS variable, or
9406 # (2) before a word containing "conftest.", or (3) at the end.
9407 # Note that $ac_compile itself does not contain backslashes and begins
9408 # with a dollar sign (not a hyphen), so the echo should work correctly.
9409 # The option is referenced via a variable to avoid confusing sed.
9410 lt_compile=`echo "$ac_compile" | $SED \
9411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9413 -e 's:$: $lt_compiler_flag:'`
b6d0720c 9414 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
9415 (eval "$lt_compile" 2>conftest.err)
9416 ac_status=$?
9417 cat conftest.err >&5
b6d0720c 9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
9419 if (exit $ac_status) && test -s "$ac_outfile"; then
9420 # The compiler can only warn and ignore the option if not recognized
9421 # So say no if there are warnings other than the usual output.
b6d0720c 9422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7083c021
AC
9423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9425 lt_cv_prog_compiler_pic_works=yes
9426 fi
9427 fi
9428 $RM conftest*
9429
9430fi
9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9432$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9433
9434if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9435 case $lt_prog_compiler_pic in
9436 "" | " "*) ;;
9437 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9438 esac
9439else
9440 lt_prog_compiler_pic=
9441 lt_prog_compiler_can_build_shared=no
9442fi
9443
9444fi
9445
9446
db137867 9447
db137867 9448
db137867 9449
db137867 9450
b6d0720c
AC
9451
9452
9453
9454
9455
db137867 9456#
7083c021 9457# Check to make sure the static flag actually works.
db137867 9458#
7083c021
AC
9459wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9461$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
08c2568c 9462if ${lt_cv_prog_compiler_static_works+:} false; then :
7083c021
AC
9463 $as_echo_n "(cached) " >&6
9464else
9465 lt_cv_prog_compiler_static_works=no
9466 save_LDFLAGS="$LDFLAGS"
9467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9470 # The linker can only warn and ignore the option if not recognized
9471 # So say no if there are warnings
9472 if test -s conftest.err; then
9473 # Append any errors to the config.log.
9474 cat conftest.err 1>&5
b6d0720c 9475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7083c021
AC
9476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9477 if diff conftest.exp conftest.er2 >/dev/null; then
9478 lt_cv_prog_compiler_static_works=yes
9479 fi
9480 else
9481 lt_cv_prog_compiler_static_works=yes
9482 fi
9483 fi
9484 $RM -r conftest*
9485 LDFLAGS="$save_LDFLAGS"
db137867 9486
7083c021
AC
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9489$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
db137867 9490
7083c021
AC
9491if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9492 :
9493else
9494 lt_prog_compiler_static=
9495fi
db137867 9496
db137867 9497
db137867 9498
db137867 9499
db137867 9500
db137867 9501
db137867 9502
7083c021
AC
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9504$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
08c2568c 9505if ${lt_cv_prog_compiler_c_o+:} false; then :
7083c021
AC
9506 $as_echo_n "(cached) " >&6
9507else
9508 lt_cv_prog_compiler_c_o=no
9509 $RM -r conftest 2>/dev/null
9510 mkdir conftest
9511 cd conftest
9512 mkdir out
9513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 9514
7083c021
AC
9515 lt_compiler_flag="-o out/conftest2.$ac_objext"
9516 # Insert the option either (1) after the last *FLAGS variable, or
9517 # (2) before a word containing "conftest.", or (3) at the end.
9518 # Note that $ac_compile itself does not contain backslashes and begins
9519 # with a dollar sign (not a hyphen), so the echo should work correctly.
9520 lt_compile=`echo "$ac_compile" | $SED \
9521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9523 -e 's:$: $lt_compiler_flag:'`
b6d0720c 9524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
9525 (eval "$lt_compile" 2>out/conftest.err)
9526 ac_status=$?
9527 cat out/conftest.err >&5
b6d0720c 9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
9529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9530 then
9531 # The compiler can only warn and ignore the option if not recognized
9532 # So say no if there are warnings
b6d0720c 9533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7083c021
AC
9534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9536 lt_cv_prog_compiler_c_o=yes
9537 fi
9538 fi
9539 chmod u+w . 2>&5
9540 $RM conftest*
9541 # SGI C++ compiler will create directory out/ii_files/ for
9542 # template instantiation
9543 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9544 $RM out/* && rmdir out
9545 cd ..
9546 $RM -r conftest
9547 $RM conftest*
db137867 9548
7083c021
AC
9549fi
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9551$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
db137867 9552
db137867 9553
db137867 9554
db137867 9555
db137867 9556
db137867 9557
7083c021
AC
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9559$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
08c2568c 9560if ${lt_cv_prog_compiler_c_o+:} false; then :
7083c021
AC
9561 $as_echo_n "(cached) " >&6
9562else
9563 lt_cv_prog_compiler_c_o=no
9564 $RM -r conftest 2>/dev/null
9565 mkdir conftest
9566 cd conftest
9567 mkdir out
9568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 9569
7083c021
AC
9570 lt_compiler_flag="-o out/conftest2.$ac_objext"
9571 # Insert the option either (1) after the last *FLAGS variable, or
9572 # (2) before a word containing "conftest.", or (3) at the end.
9573 # Note that $ac_compile itself does not contain backslashes and begins
9574 # with a dollar sign (not a hyphen), so the echo should work correctly.
9575 lt_compile=`echo "$ac_compile" | $SED \
9576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9578 -e 's:$: $lt_compiler_flag:'`
b6d0720c 9579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7083c021
AC
9580 (eval "$lt_compile" 2>out/conftest.err)
9581 ac_status=$?
9582 cat out/conftest.err >&5
b6d0720c 9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083c021
AC
9584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9585 then
9586 # The compiler can only warn and ignore the option if not recognized
9587 # So say no if there are warnings
b6d0720c 9588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7083c021
AC
9589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9591 lt_cv_prog_compiler_c_o=yes
9592 fi
9593 fi
9594 chmod u+w . 2>&5
9595 $RM conftest*
9596 # SGI C++ compiler will create directory out/ii_files/ for
9597 # template instantiation
9598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9599 $RM out/* && rmdir out
9600 cd ..
9601 $RM -r conftest
9602 $RM conftest*
db137867 9603
7083c021
AC
9604fi
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9606$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9607
9608
9609
9610
9611hard_links="nottested"
9612if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9613 # do not overwrite the value of need_locks provided by the user
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9615$as_echo_n "checking if we can lock with hard links... " >&6; }
9616 hard_links=yes
9617 $RM conftest*
9618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9619 touch conftest.a
9620 ln conftest.a conftest.b 2>&5 || hard_links=no
9621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9623$as_echo "$hard_links" >&6; }
9624 if test "$hard_links" = no; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9626$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9627 need_locks=warn
9628 fi
9629else
9630 need_locks=no
9631fi
9632
9633
9634
9635
9636
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9639$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9640
9641 runpath_var=
9642 allow_undefined_flag=
9643 always_export_symbols=no
9644 archive_cmds=
9645 archive_expsym_cmds=
9646 compiler_needs_object=no
9647 enable_shared_with_static_runtimes=no
9648 export_dynamic_flag_spec=
9649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9650 hardcode_automatic=no
9651 hardcode_direct=no
9652 hardcode_direct_absolute=no
9653 hardcode_libdir_flag_spec=
9654 hardcode_libdir_flag_spec_ld=
9655 hardcode_libdir_separator=
9656 hardcode_minus_L=no
9657 hardcode_shlibpath_var=unsupported
9658 inherit_rpath=no
9659 link_all_deplibs=unknown
9660 module_cmds=
9661 module_expsym_cmds=
9662 old_archive_from_new_cmds=
9663 old_archive_from_expsyms_cmds=
9664 thread_safe_flag_spec=
9665 whole_archive_flag_spec=
9666 # include_expsyms should be a list of space-separated symbols to be *always*
9667 # included in the symbol list
9668 include_expsyms=
9669 # exclude_expsyms can be an extended regexp of symbols to exclude
9670 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9671 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9672 # as well as any symbol that contains `d'.
9673 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9674 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9675 # platforms (ab)use it in PIC code, but their linkers get confused if
9676 # the symbol is explicitly referenced. Since portable code cannot
9677 # rely on this symbol name, it's probably fine to never include it in
9678 # preloaded symbol tables.
9679 # Exclude shared library initialization/finalization symbols.
9680 extract_expsyms_cmds=
db137867 9681
db137867 9682 case $host_os in
7083c021
AC
9683 cygwin* | mingw* | pw32* | cegcc*)
9684 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9685 # When not using gcc, we currently assume that we are using
9686 # Microsoft Visual C++.
9687 if test "$GCC" != yes; then
9688 with_gnu_ld=no
9689 fi
db137867 9690 ;;
7083c021
AC
9691 interix*)
9692 # we just hope/assume this is gcc and not c89 (= MSVC++)
9693 with_gnu_ld=yes
db137867 9694 ;;
7083c021
AC
9695 openbsd*)
9696 with_gnu_ld=no
db137867 9697 ;;
db137867 9698 esac
db137867 9699
7083c021 9700 ld_shlibs=yes
b6d0720c
AC
9701
9702 # On some targets, GNU ld is compatible enough with the native linker
9703 # that we're better off using the native interface for both.
9704 lt_use_gnu_ld_interface=no
7083c021 9705 if test "$with_gnu_ld" = yes; then
b6d0720c
AC
9706 case $host_os in
9707 aix*)
9708 # The AIX port of GNU ld has always aspired to compatibility
9709 # with the native linker. However, as the warning in the GNU ld
9710 # block says, versions before 2.19.5* couldn't really create working
9711 # shared libraries, regardless of the interface used.
9712 case `$LD -v 2>&1` in
9713 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9714 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9715 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9716 *)
9717 lt_use_gnu_ld_interface=yes
9718 ;;
9719 esac
9720 ;;
9721 *)
9722 lt_use_gnu_ld_interface=yes
9723 ;;
9724 esac
9725 fi
9726
9727 if test "$lt_use_gnu_ld_interface" = yes; then
7083c021
AC
9728 # If archive_cmds runs LD, not CC, wlarc should be empty
9729 wlarc='${wl}'
db137867 9730
7083c021
AC
9731 # Set some defaults for GNU ld with shared library support. These
9732 # are reset later if shared libraries are not supported. Putting them
9733 # here allows them to be overridden if necessary.
9734 runpath_var=LD_RUN_PATH
9735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9736 export_dynamic_flag_spec='${wl}--export-dynamic'
9737 # ancient GNU ld didn't support --whole-archive et. al.
9738 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9739 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
db137867 9740 else
7083c021 9741 whole_archive_flag_spec=
db137867 9742 fi
7083c021
AC
9743 supports_anon_versioning=no
9744 case `$LD -v 2>&1` in
b6d0720c 9745 *GNU\ gold*) supports_anon_versioning=yes ;;
7083c021
AC
9746 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9747 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9748 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9749 *\ 2.11.*) ;; # other 2.11 versions
9750 *) supports_anon_versioning=yes ;;
db137867 9751 esac
db137867 9752
7083c021
AC
9753 # See if GNU ld supports shared libraries.
9754 case $host_os in
9755 aix[3-9]*)
9756 # On AIX/PPC, the GNU linker is very broken
9757 if test "$host_cpu" != ia64; then
9758 ld_shlibs=no
9759 cat <<_LT_EOF 1>&2
db137867 9760
b6d0720c 9761*** Warning: the GNU linker, at least up to release 2.19, is reported
7083c021
AC
9762*** to be unable to reliably create shared libraries on AIX.
9763*** Therefore, libtool is disabling shared libraries support. If you
b6d0720c
AC
9764*** really care for shared libraries, you may want to install binutils
9765*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9766*** You will then need to restart the configuration process.
db137867 9767
7083c021
AC
9768_LT_EOF
9769 fi
9770 ;;
db137867
AC
9771
9772 amigaos*)
7083c021
AC
9773 case $host_cpu in
9774 powerpc)
9775 # see comment about AmigaOS4 .so support
9776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777 archive_expsym_cmds=''
9778 ;;
9779 m68k)
9780 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)'
9781 hardcode_libdir_flag_spec='-L$libdir'
9782 hardcode_minus_L=yes
9783 ;;
9784 esac
db137867
AC
9785 ;;
9786
9787 beos*)
7083c021
AC
9788 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9789 allow_undefined_flag=unsupported
db137867
AC
9790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9791 # support --undefined. This deserves some investigation. FIXME
7083c021 9792 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
db137867 9793 else
7083c021 9794 ld_shlibs=no
db137867
AC
9795 fi
9796 ;;
9797
7083c021
AC
9798 cygwin* | mingw* | pw32* | cegcc*)
9799 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
db137867 9800 # as there is no search path for DLLs.
7083c021 9801 hardcode_libdir_flag_spec='-L$libdir'
b6d0720c 9802 export_dynamic_flag_spec='${wl}--export-all-symbols'
7083c021
AC
9803 allow_undefined_flag=unsupported
9804 always_export_symbols=no
9805 enable_shared_with_static_runtimes=yes
b6d0720c
AC
9806 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'
9807 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7083c021
AC
9808
9809 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
db137867
AC
9811 # If the export-symbols file already is a .def file (1st line
9812 # is EXPORTS), use it as is; otherwise, prepend...
7083c021 9813 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
db137867
AC
9814 cp $export_symbols $output_objdir/$soname.def;
9815 else
9816 echo EXPORTS > $output_objdir/$soname.def;
9817 cat $export_symbols >> $output_objdir/$soname.def;
9818 fi~
9819 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9820 else
7083c021 9821 ld_shlibs=no
db137867
AC
9822 fi
9823 ;;
9824
b6d0720c
AC
9825 haiku*)
9826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827 link_all_deplibs=yes
9828 ;;
9829
db137867 9830 interix[3-9]*)
7083c021
AC
9831 hardcode_direct=no
9832 hardcode_shlibpath_var=no
9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9834 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9836 # Instead, shared libraries are loaded at an image base (0x10000000 by
9837 # default) and relocated if they conflict, which is a slow very memory
9838 # consuming and fragmenting process. To avoid this, we pick a random,
9839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9840 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7083c021
AC
9841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9842 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
9843 ;;
9844
b6d0720c 9845 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7083c021
AC
9846 tmp_diet=no
9847 if test "$host_os" = linux-dietlibc; then
9848 case $cc_basename in
9849 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9850 esac
9851 fi
9852 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9853 && test "$tmp_diet" = no
9854 then
b6d0720c 9855 tmp_addflag=' $pic_flag'
7083c021 9856 tmp_sharedflag='-shared'
db137867 9857 case $cc_basename,$host_cpu in
7083c021 9858 pgcc*) # Portland Group C compiler
b6d0720c 9859 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
9860 tmp_addflag=' $pic_flag'
9861 ;;
b6d0720c
AC
9862 pgf77* | pgf90* | pgf95* | pgfortran*)
9863 # Portland Group f77 and f90 compilers
9864 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 9865 tmp_addflag=' $pic_flag -Mnomain' ;;
7083c021 9866 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
db137867
AC
9867 tmp_addflag=' -i_dynamic' ;;
9868 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9869 tmp_addflag=' -i_dynamic -nofor_main' ;;
9870 ifc* | ifort*) # Intel Fortran compiler
9871 tmp_addflag=' -nofor_main' ;;
7083c021
AC
9872 lf95*) # Lahey Fortran 8.1
9873 whole_archive_flag_spec=
9874 tmp_sharedflag='--shared' ;;
b6d0720c 9875 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7083c021
AC
9876 tmp_sharedflag='-qmkshrobj'
9877 tmp_addflag= ;;
b6d0720c
AC
9878 nvcc*) # Cuda Compiler Driver 2.2
9879 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'
9880 compiler_needs_object=yes
9881 ;;
db137867
AC
9882 esac
9883 case `$CC -V 2>&1 | sed 5q` in
9884 *Sun\ C*) # Sun C 5.9
b6d0720c 9885 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 9886 compiler_needs_object=yes
db137867
AC
9887 tmp_sharedflag='-G' ;;
9888 *Sun\ F*) # Sun Fortran 8.3
9889 tmp_sharedflag='-G' ;;
db137867 9890 esac
7083c021 9891 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
db137867 9892
7083c021
AC
9893 if test "x$supports_anon_versioning" = xyes; then
9894 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9896 echo "local: *; };" >> $output_objdir/$libname.ver~
9897 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9898 fi
9899
9900 case $cc_basename in
b6d0720c 9901 xlf* | bgf* | bgxlf* | mpixlf*)
7083c021
AC
9902 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9903 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9904 hardcode_libdir_flag_spec=
9905 hardcode_libdir_flag_spec_ld='-rpath $libdir'
b6d0720c 9906 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
7083c021
AC
9907 if test "x$supports_anon_versioning" = xyes; then
9908 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9910 echo "local: *; };" >> $output_objdir/$libname.ver~
b6d0720c 9911 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7083c021
AC
9912 fi
9913 ;;
9914 esac
db137867 9915 else
7083c021 9916 ld_shlibs=no
db137867
AC
9917 fi
9918 ;;
9919
96f4052b 9920 netbsd*)
7083c021
AC
9921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9922 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
db137867
AC
9923 wlarc=
9924 else
b6d0720c
AC
9925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9926 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
9927 fi
9928 ;;
9929
9930 solaris*)
7083c021
AC
9931 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9932 ld_shlibs=no
9933 cat <<_LT_EOF 1>&2
db137867
AC
9934
9935*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9936*** create shared libraries on Solaris systems. Therefore, libtool
9937*** is disabling shared libraries support. We urge you to upgrade GNU
9938*** binutils to release 2.9.1 or newer. Another option is to modify
9939*** your PATH or compiler configuration so that the native linker is
9940*** used, and then restart.
9941
7083c021
AC
9942_LT_EOF
9943 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b6d0720c
AC
9944 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9945 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 9946 else
7083c021 9947 ld_shlibs=no
db137867
AC
9948 fi
9949 ;;
9950
9951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9952 case `$LD -v 2>&1` in
9953 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7083c021 9954 ld_shlibs=no
db137867
AC
9955 cat <<_LT_EOF 1>&2
9956
9957*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9958*** reliably create shared libraries on SCO systems. Therefore, libtool
9959*** is disabling shared libraries support. We urge you to upgrade GNU
9960*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9961*** your PATH or compiler configuration so that the native linker is
9962*** used, and then restart.
9963
9964_LT_EOF
9965 ;;
9966 *)
7083c021
AC
9967 # For security reasons, it is highly recommended that you always
9968 # use absolute paths for naming shared libraries, and exclude the
9969 # DT_RUNPATH tag from executables and libraries. But doing so
9970 # requires that you compile everything twice, which is a pain.
9971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867 9975 else
7083c021 9976 ld_shlibs=no
db137867
AC
9977 fi
9978 ;;
9979 esac
9980 ;;
9981
9982 sunos4*)
7083c021 9983 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
db137867 9984 wlarc=
7083c021
AC
9985 hardcode_direct=yes
9986 hardcode_shlibpath_var=no
db137867
AC
9987 ;;
9988
9989 *)
7083c021 9990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b6d0720c
AC
9991 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9992 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 9993 else
7083c021 9994 ld_shlibs=no
db137867
AC
9995 fi
9996 ;;
9997 esac
9998
7083c021 9999 if test "$ld_shlibs" = no; then
db137867 10000 runpath_var=
7083c021
AC
10001 hardcode_libdir_flag_spec=
10002 export_dynamic_flag_spec=
10003 whole_archive_flag_spec=
db137867
AC
10004 fi
10005 else
10006 # PORTME fill in a description of your system's linker (not GNU ld)
10007 case $host_os in
10008 aix3*)
7083c021
AC
10009 allow_undefined_flag=unsupported
10010 always_export_symbols=yes
10011 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
10012 # Note: this linker hardcodes the directories in LIBPATH if there
10013 # are no directories specified by -L.
7083c021 10014 hardcode_minus_L=yes
db137867
AC
10015 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10016 # Neither direct hardcoding nor static linking is supported with a
10017 # broken collect2.
7083c021 10018 hardcode_direct=unsupported
db137867
AC
10019 fi
10020 ;;
10021
b676ea3b 10022 aix[4-9]*)
db137867
AC
10023 if test "$host_cpu" = ia64; then
10024 # On IA64, the linker does run time linking by default, so we don't
10025 # have to do anything special.
10026 aix_use_runtimelinking=no
10027 exp_sym_flag='-Bexport'
10028 no_entry_flag=""
10029 else
10030 # If we're using GNU nm, then we don't want the "-C" option.
10031 # -C means demangle to AIX nm, but means don't demangle with GNU nm
b6d0720c
AC
10032 # Also, AIX nm treats weak defined symbols like other global
10033 # defined symbols, whereas GNU nm marks them as "W".
7083c021 10034 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b6d0720c 10035 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 10036 else
7083c021 10037 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
10038 fi
10039 aix_use_runtimelinking=no
10040
10041 # Test if we are trying to use run time linking or normal
10042 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10043 # need to do runtime linking.
b676ea3b 10044 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
db137867 10045 for ld_flag in $LDFLAGS; do
7083c021
AC
10046 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10047 aix_use_runtimelinking=yes
10048 break
10049 fi
db137867
AC
10050 done
10051 ;;
10052 esac
10053
10054 exp_sym_flag='-bexport'
10055 no_entry_flag='-bnoentry'
10056 fi
10057
10058 # When large executables or shared objects are built, AIX ld can
10059 # have problems creating the table of contents. If linking a library
10060 # or program results in "error TOC overflow" add -mminimal-toc to
10061 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10062 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10063
7083c021
AC
10064 archive_cmds=''
10065 hardcode_direct=yes
10066 hardcode_direct_absolute=yes
10067 hardcode_libdir_separator=':'
10068 link_all_deplibs=yes
10069 file_list_spec='${wl}-f,'
db137867
AC
10070
10071 if test "$GCC" = yes; then
10072 case $host_os in aix4.[012]|aix4.[012].*)
10073 # We only want to do this on AIX 4.2 and lower, the check
10074 # below for broken collect2 doesn't work under 4.3+
10075 collect2name=`${CC} -print-prog-name=collect2`
7083c021
AC
10076 if test -f "$collect2name" &&
10077 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
db137867 10078 then
7083c021
AC
10079 # We have reworked collect2
10080 :
db137867 10081 else
7083c021
AC
10082 # We have old collect2
10083 hardcode_direct=unsupported
10084 # It fails to find uninstalled libraries when the uninstalled
10085 # path is not listed in the libpath. Setting hardcode_minus_L
10086 # to unsupported forces relinking
10087 hardcode_minus_L=yes
10088 hardcode_libdir_flag_spec='-L$libdir'
10089 hardcode_libdir_separator=
db137867
AC
10090 fi
10091 ;;
10092 esac
10093 shared_flag='-shared'
10094 if test "$aix_use_runtimelinking" = yes; then
10095 shared_flag="$shared_flag "'${wl}-G'
10096 fi
10097 else
10098 # not using gcc
10099 if test "$host_cpu" = ia64; then
7083c021
AC
10100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10101 # chokes on -Wl,-G. The following line is correct:
db137867
AC
10102 shared_flag='-G'
10103 else
10104 if test "$aix_use_runtimelinking" = yes; then
10105 shared_flag='${wl}-G'
10106 else
10107 shared_flag='${wl}-bM:SRE'
10108 fi
10109 fi
10110 fi
10111
7083c021 10112 export_dynamic_flag_spec='${wl}-bexpall'
db137867
AC
10113 # It seems that -bexpall does not export symbols beginning with
10114 # underscore (_), so it is better to generate a list of symbols to export.
7083c021 10115 always_export_symbols=yes
db137867
AC
10116 if test "$aix_use_runtimelinking" = yes; then
10117 # Warning - without using the other runtime loading flags (-brtl),
10118 # -berok will link without error, but may produce a broken library.
7083c021
AC
10119 allow_undefined_flag='-berok'
10120 # Determine the default libpath from the value encoded in an
10121 # empty executable.
b6d0720c
AC
10122 if test "${lt_cv_aix_libpath+set}" = set; then
10123 aix_libpath=$lt_cv_aix_libpath
10124else
10125 if ${lt_cv_aix_libpath_+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127else
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
10129/* end confdefs.h. */
10130
10131int
10132main ()
10133{
10134
10135 ;
10136 return 0;
10137}
10138_ACEOF
7083c021 10139if ac_fn_c_try_link "$LINENO"; then :
db137867 10140
b6d0720c
AC
10141 lt_aix_libpath_sed='
10142 /Import File Strings/,/^$/ {
10143 /^0/ {
10144 s/^0 *\([^ ]*\) *$/\1/
10145 p
10146 }
10147 }'
10148 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149 # Check for a 64-bit object if we didn't find anything.
10150 if test -z "$lt_cv_aix_libpath_"; then
10151 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152 fi
db137867 10153fi
7083c021
AC
10154rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
b6d0720c
AC
10156 if test -z "$lt_cv_aix_libpath_"; then
10157 lt_cv_aix_libpath_="/usr/lib:/lib"
10158 fi
10159
10160fi
10161
10162 aix_libpath=$lt_cv_aix_libpath_
10163fi
db137867 10164
7083c021 10165 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b6d0720c 10166 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 10167 else
db137867 10168 if test "$host_cpu" = ia64; then
7083c021
AC
10169 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10170 allow_undefined_flag="-z nodefs"
10171 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 10172 else
7083c021
AC
10173 # Determine the default libpath from the value encoded in an
10174 # empty executable.
b6d0720c
AC
10175 if test "${lt_cv_aix_libpath+set}" = set; then
10176 aix_libpath=$lt_cv_aix_libpath
10177else
10178 if ${lt_cv_aix_libpath_+:} false; then :
10179 $as_echo_n "(cached) " >&6
10180else
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
10182/* end confdefs.h. */
10183
10184int
10185main ()
10186{
10187
10188 ;
10189 return 0;
10190}
10191_ACEOF
7083c021 10192if ac_fn_c_try_link "$LINENO"; then :
db137867 10193
b6d0720c
AC
10194 lt_aix_libpath_sed='
10195 /Import File Strings/,/^$/ {
10196 /^0/ {
10197 s/^0 *\([^ ]*\) *$/\1/
10198 p
10199 }
10200 }'
10201 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10202 # Check for a 64-bit object if we didn't find anything.
10203 if test -z "$lt_cv_aix_libpath_"; then
10204 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10205 fi
db137867 10206fi
7083c021
AC
10207rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
b6d0720c
AC
10209 if test -z "$lt_cv_aix_libpath_"; then
10210 lt_cv_aix_libpath_="/usr/lib:/lib"
10211 fi
10212
10213fi
10214
10215 aix_libpath=$lt_cv_aix_libpath_
10216fi
db137867 10217
7083c021 10218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
db137867
AC
10219 # Warning - without using the other run time loading flags,
10220 # -berok will link without error, but may produce a broken library.
7083c021
AC
10221 no_undefined_flag=' ${wl}-bernotok'
10222 allow_undefined_flag=' ${wl}-berok'
b6d0720c
AC
10223 if test "$with_gnu_ld" = yes; then
10224 # We only use this code for GNU lds that support --whole-archive.
10225 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10226 else
10227 # Exported symbols can be pulled into shared objects from archives
10228 whole_archive_flag_spec='$convenience'
10229 fi
7083c021 10230 archive_cmds_need_lc=yes
db137867 10231 # This is similar to how AIX traditionally builds its shared libraries.
7083c021 10232 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
10233 fi
10234 fi
10235 ;;
10236
10237 amigaos*)
7083c021
AC
10238 case $host_cpu in
10239 powerpc)
10240 # see comment about AmigaOS4 .so support
10241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10242 archive_expsym_cmds=''
10243 ;;
10244 m68k)
10245 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)'
10246 hardcode_libdir_flag_spec='-L$libdir'
10247 hardcode_minus_L=yes
10248 ;;
10249 esac
db137867
AC
10250 ;;
10251
10252 bsdi[45]*)
7083c021 10253 export_dynamic_flag_spec=-rdynamic
db137867
AC
10254 ;;
10255
7083c021 10256 cygwin* | mingw* | pw32* | cegcc*)
db137867
AC
10257 # When not using gcc, we currently assume that we are using
10258 # Microsoft Visual C++.
10259 # hardcode_libdir_flag_spec is actually meaningless, as there is
10260 # no search path for DLLs.
b6d0720c
AC
10261 case $cc_basename in
10262 cl*)
10263 # Native MSVC
10264 hardcode_libdir_flag_spec=' '
10265 allow_undefined_flag=unsupported
10266 always_export_symbols=yes
10267 file_list_spec='@'
10268 # Tell ltmain to make .lib files, not .a files.
10269 libext=lib
10270 # Tell ltmain to make .dll files, not .so files.
10271 shrext_cmds=".dll"
10272 # FIXME: Setting linknames here is a bad hack.
10273 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10274 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10275 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10276 else
10277 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10278 fi~
10279 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10280 linknames='
10281 # The linker will not automatically build a static lib if we build a DLL.
10282 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10283 enable_shared_with_static_runtimes=yes
10284 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10285 # Don't use ranlib
10286 old_postinstall_cmds='chmod 644 $oldlib'
10287 postlink_cmds='lt_outputfile="@OUTPUT@"~
10288 lt_tool_outputfile="@TOOL_OUTPUT@"~
10289 case $lt_outputfile in
10290 *.exe|*.EXE) ;;
10291 *)
10292 lt_outputfile="$lt_outputfile.exe"
10293 lt_tool_outputfile="$lt_tool_outputfile.exe"
10294 ;;
10295 esac~
10296 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10297 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10298 $RM "$lt_outputfile.manifest";
10299 fi'
10300 ;;
10301 *)
10302 # Assume MSVC wrapper
10303 hardcode_libdir_flag_spec=' '
10304 allow_undefined_flag=unsupported
10305 # Tell ltmain to make .lib files, not .a files.
10306 libext=lib
10307 # Tell ltmain to make .dll files, not .so files.
10308 shrext_cmds=".dll"
10309 # FIXME: Setting linknames here is a bad hack.
10310 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10311 # The linker will automatically build a .lib file if we build a DLL.
10312 old_archive_from_new_cmds='true'
10313 # FIXME: Should let the user specify the lib program.
10314 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10315 enable_shared_with_static_runtimes=yes
10316 ;;
10317 esac
db137867
AC
10318 ;;
10319
7083c021
AC
10320 darwin* | rhapsody*)
10321
10322
10323 archive_cmds_need_lc=no
10324 hardcode_direct=no
10325 hardcode_automatic=yes
10326 hardcode_shlibpath_var=unsupported
b6d0720c
AC
10327 if test "$lt_cv_ld_force_load" = "yes"; then
10328 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\"`'
10329 else
10330 whole_archive_flag_spec=''
10331 fi
7083c021
AC
10332 link_all_deplibs=yes
10333 allow_undefined_flag="$_lt_dar_allow_undefined"
10334 case $cc_basename in
10335 ifort*) _lt_dar_can_shared=yes ;;
10336 *) _lt_dar_can_shared=$GCC ;;
10337 esac
10338 if test "$_lt_dar_can_shared" = "yes"; then
b6d0720c 10339 output_verbose_link_cmd=func_echo_all
7083c021
AC
10340 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10341 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10342 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}"
10343 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}"
10344
10345 else
10346 ld_shlibs=no
10347 fi
10348
db137867
AC
10349 ;;
10350
10351 dgux*)
7083c021
AC
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_libdir_flag_spec='-L$libdir'
10354 hardcode_shlibpath_var=no
db137867
AC
10355 ;;
10356
10357 freebsd1*)
7083c021 10358 ld_shlibs=no
db137867
AC
10359 ;;
10360
10361 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10362 # support. Future versions do this automatically, but an explicit c++rt0.o
10363 # does not break anything, and helps significantly (at the cost of a little
10364 # extra space).
10365 freebsd2.2*)
7083c021
AC
10366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10367 hardcode_libdir_flag_spec='-R$libdir'
10368 hardcode_direct=yes
10369 hardcode_shlibpath_var=no
db137867
AC
10370 ;;
10371
10372 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10373 freebsd2*)
7083c021
AC
10374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10375 hardcode_direct=yes
10376 hardcode_minus_L=yes
10377 hardcode_shlibpath_var=no
db137867
AC
10378 ;;
10379
10380 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10381 freebsd* | dragonfly*)
b6d0720c 10382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7083c021
AC
10383 hardcode_libdir_flag_spec='-R$libdir'
10384 hardcode_direct=yes
10385 hardcode_shlibpath_var=no
db137867
AC
10386 ;;
10387
10388 hpux9*)
10389 if test "$GCC" = yes; then
b6d0720c 10390 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 10391 else
7083c021 10392 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 10393 fi
7083c021
AC
10394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10395 hardcode_libdir_separator=:
10396 hardcode_direct=yes
db137867
AC
10397
10398 # hardcode_minus_L: Not really in the search PATH,
10399 # but as the default location of the library.
7083c021
AC
10400 hardcode_minus_L=yes
10401 export_dynamic_flag_spec='${wl}-E'
db137867
AC
10402 ;;
10403
10404 hpux10*)
b6d0720c
AC
10405 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10406 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867 10407 else
7083c021 10408 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
db137867
AC
10409 fi
10410 if test "$with_gnu_ld" = no; then
7083c021
AC
10411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10412 hardcode_libdir_flag_spec_ld='+b $libdir'
10413 hardcode_libdir_separator=:
10414 hardcode_direct=yes
10415 hardcode_direct_absolute=yes
10416 export_dynamic_flag_spec='${wl}-E'
db137867
AC
10417 # hardcode_minus_L: Not really in the search PATH,
10418 # but as the default location of the library.
7083c021 10419 hardcode_minus_L=yes
db137867
AC
10420 fi
10421 ;;
10422
10423 hpux11*)
b6d0720c 10424 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
db137867
AC
10425 case $host_cpu in
10426 hppa*64*)
7083c021 10427 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10428 ;;
10429 ia64*)
b6d0720c 10430 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10431 ;;
10432 *)
b6d0720c 10433 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10434 ;;
10435 esac
10436 else
10437 case $host_cpu in
10438 hppa*64*)
7083c021 10439 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10440 ;;
10441 ia64*)
7083c021 10442 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10443 ;;
10444 *)
b6d0720c
AC
10445
10446 # Older versions of the 11.00 compiler do not understand -b yet
10447 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10449$as_echo_n "checking if $CC understands -b... " >&6; }
10450if ${lt_cv_prog_compiler__b+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452else
10453 lt_cv_prog_compiler__b=no
10454 save_LDFLAGS="$LDFLAGS"
10455 LDFLAGS="$LDFLAGS -b"
10456 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10458 # The linker can only warn and ignore the option if not recognized
10459 # So say no if there are warnings
10460 if test -s conftest.err; then
10461 # Append any errors to the config.log.
10462 cat conftest.err 1>&5
10463 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10465 if diff conftest.exp conftest.er2 >/dev/null; then
10466 lt_cv_prog_compiler__b=yes
10467 fi
10468 else
10469 lt_cv_prog_compiler__b=yes
10470 fi
10471 fi
10472 $RM -r conftest*
10473 LDFLAGS="$save_LDFLAGS"
10474
10475fi
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10477$as_echo "$lt_cv_prog_compiler__b" >&6; }
10478
10479if test x"$lt_cv_prog_compiler__b" = xyes; then
10480 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10481else
10482 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10483fi
10484
db137867
AC
10485 ;;
10486 esac
10487 fi
10488 if test "$with_gnu_ld" = no; then
7083c021
AC
10489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10490 hardcode_libdir_separator=:
db137867
AC
10491
10492 case $host_cpu in
10493 hppa*64*|ia64*)
7083c021
AC
10494 hardcode_direct=no
10495 hardcode_shlibpath_var=no
db137867
AC
10496 ;;
10497 *)
7083c021
AC
10498 hardcode_direct=yes
10499 hardcode_direct_absolute=yes
10500 export_dynamic_flag_spec='${wl}-E'
db137867
AC
10501
10502 # hardcode_minus_L: Not really in the search PATH,
10503 # but as the default location of the library.
7083c021 10504 hardcode_minus_L=yes
db137867
AC
10505 ;;
10506 esac
10507 fi
10508 ;;
10509
10510 irix5* | irix6* | nonstopux*)
10511 if test "$GCC" = yes; then
b6d0720c 10512 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
10513 # Try to use the -exported_symbol ld option, if it does not
10514 # work, assume that -exports_file does not work either and
10515 # implicitly export all symbols.
b6d0720c
AC
10516 # This should be the same for all languages, so no per-tag cache variable.
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10518$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10519if ${lt_cv_irix_exported_symbol+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521else
10522 save_LDFLAGS="$LDFLAGS"
10523 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021 10525/* end confdefs.h. */
b6d0720c 10526int foo (void) { return 0; }
7083c021
AC
10527_ACEOF
10528if ac_fn_c_try_link "$LINENO"; then :
b6d0720c
AC
10529 lt_cv_irix_exported_symbol=yes
10530else
10531 lt_cv_irix_exported_symbol=no
7083c021
AC
10532fi
10533rm -f core conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
b6d0720c
AC
10535 LDFLAGS="$save_LDFLAGS"
10536fi
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10538$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10539 if test "$lt_cv_irix_exported_symbol" = yes; then
10540 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'
10541 fi
db137867 10542 else
b6d0720c
AC
10543 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'
10544 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 10545 fi
7083c021
AC
10546 archive_cmds_need_lc='no'
10547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10548 hardcode_libdir_separator=:
10549 inherit_rpath=yes
10550 link_all_deplibs=yes
db137867
AC
10551 ;;
10552
96f4052b 10553 netbsd*)
7083c021
AC
10554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
db137867 10556 else
7083c021 10557 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
db137867 10558 fi
7083c021
AC
10559 hardcode_libdir_flag_spec='-R$libdir'
10560 hardcode_direct=yes
10561 hardcode_shlibpath_var=no
db137867
AC
10562 ;;
10563
10564 newsos6)
7083c021
AC
10565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566 hardcode_direct=yes
10567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10568 hardcode_libdir_separator=:
10569 hardcode_shlibpath_var=no
10570 ;;
10571
10572 *nto* | *qnx*)
db137867
AC
10573 ;;
10574
10575 openbsd*)
10576 if test -f /usr/libexec/ld.so; then
7083c021
AC
10577 hardcode_direct=yes
10578 hardcode_shlibpath_var=no
10579 hardcode_direct_absolute=yes
10580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10584 export_dynamic_flag_spec='${wl}-E'
db137867
AC
10585 else
10586 case $host_os in
10587 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7083c021
AC
10588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10589 hardcode_libdir_flag_spec='-R$libdir'
db137867
AC
10590 ;;
10591 *)
7083c021
AC
10592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
db137867
AC
10594 ;;
10595 esac
7083c021 10596 fi
db137867 10597 else
7083c021 10598 ld_shlibs=no
db137867
AC
10599 fi
10600 ;;
10601
10602 os2*)
7083c021
AC
10603 hardcode_libdir_flag_spec='-L$libdir'
10604 hardcode_minus_L=yes
10605 allow_undefined_flag=unsupported
b6d0720c 10606 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 10607 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
db137867
AC
10608 ;;
10609
10610 osf3*)
10611 if test "$GCC" = yes; then
7083c021 10612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b6d0720c 10613 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 10614 else
7083c021 10615 allow_undefined_flag=' -expect_unresolved \*'
b6d0720c 10616 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 10617 fi
7083c021
AC
10618 archive_cmds_need_lc='no'
10619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10620 hardcode_libdir_separator=:
db137867
AC
10621 ;;
10622
10623 osf4* | osf5*) # as osf3* with the addition of -msym flag
10624 if test "$GCC" = yes; then
7083c021 10625 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b6d0720c 10626 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 10627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
db137867 10628 else
7083c021 10629 allow_undefined_flag=' -expect_unresolved \*'
b6d0720c 10630 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 10631 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 10632 $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
10633
10634 # Both c and cxx compiler support -rpath directly
7083c021 10635 hardcode_libdir_flag_spec='-rpath $libdir'
db137867 10636 fi
7083c021
AC
10637 archive_cmds_need_lc='no'
10638 hardcode_libdir_separator=:
db137867
AC
10639 ;;
10640
10641 solaris*)
7083c021 10642 no_undefined_flag=' -z defs'
db137867
AC
10643 if test "$GCC" = yes; then
10644 wlarc='${wl}'
b6d0720c 10645 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7083c021 10646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
b6d0720c 10647 $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 10648 else
7083c021
AC
10649 case `$CC -V 2>&1` in
10650 *"Compilers 5.0"*)
10651 wlarc=''
10652 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10653 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10655 ;;
10656 *)
10657 wlarc='${wl}'
10658 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10660 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10661 ;;
10662 esac
db137867 10663 fi
7083c021
AC
10664 hardcode_libdir_flag_spec='-R$libdir'
10665 hardcode_shlibpath_var=no
db137867
AC
10666 case $host_os in
10667 solaris2.[0-5] | solaris2.[0-5].*) ;;
10668 *)
10669 # The compiler driver will combine and reorder linker options,
10670 # but understands `-z linker_flag'. GCC discards it without `$wl',
10671 # but is careful enough not to reorder.
7083c021 10672 # Supported since Solaris 2.6 (maybe 2.5.1?)
db137867 10673 if test "$GCC" = yes; then
7083c021 10674 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
db137867 10675 else
7083c021 10676 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
db137867
AC
10677 fi
10678 ;;
10679 esac
7083c021 10680 link_all_deplibs=yes
db137867
AC
10681 ;;
10682
10683 sunos4*)
10684 if test "x$host_vendor" = xsequent; then
10685 # Use $CC to link under sequent, because it throws in some extra .o
10686 # files that make .init and .fini sections work.
7083c021 10687 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 10688 else
7083c021 10689 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
db137867 10690 fi
7083c021
AC
10691 hardcode_libdir_flag_spec='-L$libdir'
10692 hardcode_direct=yes
10693 hardcode_minus_L=yes
10694 hardcode_shlibpath_var=no
db137867
AC
10695 ;;
10696
10697 sysv4)
10698 case $host_vendor in
10699 sni)
7083c021
AC
10700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701 hardcode_direct=yes # is this really true???
db137867
AC
10702 ;;
10703 siemens)
10704 ## LD is ld it makes a PLAMLIB
10705 ## CC just makes a GrossModule.
7083c021
AC
10706 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10707 reload_cmds='$CC -r -o $output$reload_objs'
10708 hardcode_direct=no
db137867
AC
10709 ;;
10710 motorola)
7083c021
AC
10711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10712 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
db137867
AC
10713 ;;
10714 esac
10715 runpath_var='LD_RUN_PATH'
7083c021 10716 hardcode_shlibpath_var=no
db137867
AC
10717 ;;
10718
10719 sysv4.3*)
7083c021
AC
10720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10721 hardcode_shlibpath_var=no
10722 export_dynamic_flag_spec='-Bexport'
db137867
AC
10723 ;;
10724
10725 sysv4*MP*)
10726 if test -d /usr/nec; then
7083c021
AC
10727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10728 hardcode_shlibpath_var=no
db137867
AC
10729 runpath_var=LD_RUN_PATH
10730 hardcode_runpath_var=yes
7083c021 10731 ld_shlibs=yes
db137867
AC
10732 fi
10733 ;;
10734
10735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7083c021
AC
10736 no_undefined_flag='${wl}-z,text'
10737 archive_cmds_need_lc=no
10738 hardcode_shlibpath_var=no
db137867
AC
10739 runpath_var='LD_RUN_PATH'
10740
10741 if test "$GCC" = yes; then
7083c021
AC
10742 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10743 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 10744 else
7083c021
AC
10745 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10746 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10747 fi
10748 ;;
10749
10750 sysv5* | sco3.2v5* | sco5v6*)
10751 # Note: We can NOT use -z defs as we might desire, because we do not
10752 # link with -lc, and that would cause any symbols used from libc to
10753 # always be unresolved, which means just about no library would
10754 # ever link correctly. If we're not using GNU ld we use -z text
10755 # though, which does catch some bad symbols but isn't as heavy-handed
10756 # as -z defs.
7083c021
AC
10757 no_undefined_flag='${wl}-z,text'
10758 allow_undefined_flag='${wl}-z,nodefs'
10759 archive_cmds_need_lc=no
10760 hardcode_shlibpath_var=no
10761 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10762 hardcode_libdir_separator=':'
10763 link_all_deplibs=yes
10764 export_dynamic_flag_spec='${wl}-Bexport'
db137867
AC
10765 runpath_var='LD_RUN_PATH'
10766
10767 if test "$GCC" = yes; then
7083c021
AC
10768 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 10770 else
7083c021
AC
10771 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
10773 fi
10774 ;;
10775
10776 uts4*)
7083c021
AC
10777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778 hardcode_libdir_flag_spec='-L$libdir'
10779 hardcode_shlibpath_var=no
db137867
AC
10780 ;;
10781
10782 *)
7083c021 10783 ld_shlibs=no
db137867
AC
10784 ;;
10785 esac
7083c021
AC
10786
10787 if test x$host_vendor = xsni; then
10788 case $host in
10789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10790 export_dynamic_flag_spec='${wl}-Blargedynsym'
10791 ;;
10792 esac
10793 fi
db137867
AC
10794 fi
10795
7083c021
AC
10796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10797$as_echo "$ld_shlibs" >&6; }
10798test "$ld_shlibs" = no && can_build_shared=no
10799
10800with_gnu_ld=$with_gnu_ld
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
db137867
AC
10815
10816#
10817# Do we need to explicitly link libc?
10818#
7083c021 10819case "x$archive_cmds_need_lc" in
db137867
AC
10820x|xyes)
10821 # Assume -lc should be added
7083c021 10822 archive_cmds_need_lc=yes
db137867
AC
10823
10824 if test "$enable_shared" = yes && test "$GCC" = yes; then
7083c021 10825 case $archive_cmds in
db137867
AC
10826 *'~'*)
10827 # FIXME: we may have to deal with multi-command sequences.
10828 ;;
10829 '$CC '*)
10830 # Test whether the compiler implicitly links with -lc since on some
10831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10832 # to ld, don't add -lc before -lgcc.
7083c021 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
030272f3 10834$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b6d0720c
AC
10835if ${lt_cv_archive_cmds_need_lc+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837else
10838 $RM conftest*
10839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 10840
b6d0720c 10841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
db137867
AC
10842 (eval $ac_compile) 2>&5
10843 ac_status=$?
7083c021
AC
10844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10845 test $ac_status = 0; } 2>conftest.err; then
b6d0720c
AC
10846 soname=conftest
10847 lib=conftest
10848 libobjs=conftest.$ac_objext
10849 deplibs=
10850 wl=$lt_prog_compiler_wl
10851 pic_flag=$lt_prog_compiler_pic
10852 compiler_flags=-v
10853 linker_flags=-v
10854 verstring=
10855 output_objdir=.
10856 libname=conftest
10857 lt_save_allow_undefined_flag=$allow_undefined_flag
10858 allow_undefined_flag=
10859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7083c021 10860 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
db137867 10861 ac_status=$?
7083c021
AC
10862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863 test $ac_status = 0; }
b6d0720c
AC
10864 then
10865 lt_cv_archive_cmds_need_lc=no
10866 else
10867 lt_cv_archive_cmds_need_lc=yes
10868 fi
10869 allow_undefined_flag=$lt_save_allow_undefined_flag
10870 else
10871 cat conftest.err 1>&5
10872 fi
10873 $RM conftest*
10874
10875fi
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10877$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10878 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
db137867
AC
10879 ;;
10880 esac
10881 fi
10882 ;;
10883esac
10884
db137867 10885
db137867 10886
db137867 10887
db137867 10888
db137867 10889
db137867 10890
db137867 10891
db137867 10892
db137867 10893
db137867 10894
db137867 10895
db137867 10896
db137867 10897
db137867 10898
db137867 10899
db137867 10900
db137867 10901
db137867 10902
db137867 10903
db137867 10904
db137867 10905
db137867 10906
db137867 10907
db137867 10908
db137867 10909
db137867 10910
db137867 10911
db137867 10912
db137867 10913
db137867 10914
db137867 10915
db137867 10916
db137867 10917
db137867 10918
db137867 10919
db137867 10920
db137867 10921
db137867 10922
db137867 10923
db137867 10924
db137867 10925
b676ea3b 10926
b676ea3b 10927
b676ea3b 10928
db137867 10929
db137867 10930
db137867 10931
db137867
AC
10932
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
db137867 10973
db137867 10974
db137867 10975
db137867 10976
db137867 10977
db137867 10978
db137867 10979
db137867 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
b676ea3b 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
AC
11031
11032
7083c021
AC
11033
11034
11035
11036
11037
11038
11039
11040
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11042$as_echo_n "checking dynamic linker characteristics... " >&6; }
11043
11044if test "$GCC" = yes; then
11045 case $host_os in
11046 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11047 *) lt_awk_arg="/^libraries:/" ;;
11048 esac
b6d0720c
AC
11049 case $host_os in
11050 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11051 *) lt_sed_strip_eq="s,=/,/,g" ;;
11052 esac
11053 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11054 case $lt_search_path_spec in
11055 *\;*)
7083c021
AC
11056 # if the path contains ";" then we assume it to be the separator
11057 # otherwise default to the standard path separator (i.e. ":") - it is
11058 # assumed that no part of a normal pathname contains ";" but that should
11059 # okay in the real world where ";" in dirpaths is itself problematic.
b6d0720c
AC
11060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11061 ;;
11062 *)
11063 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11064 ;;
11065 esac
7083c021
AC
11066 # Ok, now we have the path, separated by spaces, we can step through it
11067 # and add multilib dir if necessary.
11068 lt_tmp_lt_search_path_spec=
11069 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11070 for lt_sys_path in $lt_search_path_spec; do
11071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11073 else
11074 test -d "$lt_sys_path" && \
11075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11076 fi
11077 done
b6d0720c 11078 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
7083c021
AC
11079BEGIN {RS=" "; FS="/|\n";} {
11080 lt_foo="";
11081 lt_count=0;
11082 for (lt_i = NF; lt_i > 0; lt_i--) {
11083 if ($lt_i != "" && $lt_i != ".") {
11084 if ($lt_i == "..") {
11085 lt_count++;
11086 } else {
11087 if (lt_count == 0) {
11088 lt_foo="/" $lt_i lt_foo;
11089 } else {
11090 lt_count--;
11091 }
11092 }
11093 }
11094 }
11095 if (lt_foo != "") { lt_freq[lt_foo]++; }
11096 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11097}'`
b6d0720c
AC
11098 # AWK program above erroneously prepends '/' to C:/dos/paths
11099 # for these hosts.
11100 case $host_os in
11101 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11102 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11103 esac
11104 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
7083c021
AC
11105else
11106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11107fi
11108library_names_spec=
11109libname_spec='lib$name'
11110soname_spec=
11111shrext_cmds=".so"
11112postinstall_cmds=
11113postuninstall_cmds=
11114finish_cmds=
11115finish_eval=
11116shlibpath_var=
11117shlibpath_overrides_runpath=unknown
11118version_type=none
11119dynamic_linker="$host_os ld.so"
11120sys_lib_dlsearch_path_spec="/lib /usr/lib"
11121need_lib_prefix=unknown
11122hardcode_into_libs=no
11123
11124# when you set need_version to no, make sure it does not cause -set_version
11125# flags to be left without arguments
11126need_version=unknown
11127
11128case $host_os in
11129aix3*)
11130 version_type=linux
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11132 shlibpath_var=LIBPATH
11133
11134 # AIX 3 has no versioning support, so we append a major version to the name.
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 ;;
11137
11138aix[4-9]*)
11139 version_type=linux
11140 need_lib_prefix=no
11141 need_version=no
11142 hardcode_into_libs=yes
11143 if test "$host_cpu" = ia64; then
11144 # AIX 5 supports IA64
11145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 else
11148 # With GCC up to 2.95.x, collect2 would create an import file
11149 # for dependence libraries. The import file would start with
11150 # the line `#! .'. This would cause the generated library to
11151 # depend on `.', always an invalid library. This was fixed in
11152 # development snapshots of GCC prior to 3.0.
11153 case $host_os in
11154 aix4 | aix4.[01] | aix4.[01].*)
11155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11156 echo ' yes '
11157 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11158 :
11159 else
11160 can_build_shared=no
11161 fi
11162 ;;
11163 esac
11164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11165 # soname into executable. Probably we can add versioning support to
11166 # collect2, so additional links can be useful in future.
11167 if test "$aix_use_runtimelinking" = yes; then
11168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11169 # instead of lib<name>.a to let people know that these are not
11170 # typical AIX shared libraries.
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 else
11173 # We preserve .a as extension for shared libraries through AIX4.2
11174 # and later when we are not doing run time linking.
11175 library_names_spec='${libname}${release}.a $libname.a'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 fi
11178 shlibpath_var=LIBPATH
11179 fi
11180 ;;
11181
11182amigaos*)
11183 case $host_cpu in
11184 powerpc)
11185 # Since July 2007 AmigaOS4 officially supports .so libraries.
11186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 ;;
11189 m68k)
11190 library_names_spec='$libname.ixlibrary $libname.a'
11191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b6d0720c 11192 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
11193 ;;
11194 esac
11195 ;;
11196
11197beos*)
11198 library_names_spec='${libname}${shared_ext}'
11199 dynamic_linker="$host_os ld.so"
11200 shlibpath_var=LIBRARY_PATH
11201 ;;
11202
11203bsdi[45]*)
11204 version_type=linux
11205 need_version=no
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 soname_spec='${libname}${release}${shared_ext}$major'
11208 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11211 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11212 # the default ld.so.conf also contains /usr/contrib/lib and
11213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11214 # libtool to hard-code these into programs
11215 ;;
11216
11217cygwin* | mingw* | pw32* | cegcc*)
11218 version_type=windows
11219 shrext_cmds=".dll"
11220 need_version=no
11221 need_lib_prefix=no
11222
b6d0720c
AC
11223 case $GCC,$cc_basename in
11224 yes,*)
11225 # gcc
7083c021
AC
11226 library_names_spec='$libname.dll.a'
11227 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11228 postinstall_cmds='base_file=`basename \${file}`~
11229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11230 dldir=$destdir/`dirname \$dlpath`~
11231 test -d \$dldir || mkdir -p \$dldir~
11232 $install_prog $dir/$dlname \$dldir/$dlname~
11233 chmod a+x \$dldir/$dlname~
11234 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11235 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11236 fi'
11237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11238 dlpath=$dir/\$dldll~
11239 $RM \$dlpath'
11240 shlibpath_overrides_runpath=yes
11241
11242 case $host_os in
11243 cygwin*)
11244 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11245 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
b6d0720c
AC
11246
11247 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
7083c021
AC
11248 ;;
11249 mingw* | cegcc*)
11250 # MinGW DLLs use traditional 'lib' prefix
11251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7083c021
AC
11252 ;;
11253 pw32*)
11254 # pw32 DLLs use 'pw' prefix rather than 'lib'
11255 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11256 ;;
11257 esac
b6d0720c
AC
11258 dynamic_linker='Win32 ld.exe'
11259 ;;
11260
11261 *,cl*)
11262 # Native MSVC
11263 libname_spec='$name'
11264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11265 library_names_spec='${libname}.dll.lib'
11266
11267 case $build_os in
11268 mingw*)
11269 sys_lib_search_path_spec=
11270 lt_save_ifs=$IFS
11271 IFS=';'
11272 for lt_path in $LIB
11273 do
11274 IFS=$lt_save_ifs
11275 # Let DOS variable expansion print the short 8.3 style file name.
11276 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11277 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11278 done
11279 IFS=$lt_save_ifs
11280 # Convert to MSYS style.
11281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11282 ;;
11283 cygwin*)
11284 # Convert to unix form, then to dos form, then back to unix form
11285 # but this time dos style (no spaces!) so that the unix form looks
11286 # like /cygdrive/c/PROGRA~1:/cygdr...
11287 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11288 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11289 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11290 ;;
11291 *)
11292 sys_lib_search_path_spec="$LIB"
11293 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11294 # It is most probably a Windows format PATH.
11295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11296 else
11297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11298 fi
11299 # FIXME: find the short name or the path components, as spaces are
11300 # common. (e.g. "Program Files" -> "PROGRA~1")
11301 ;;
11302 esac
11303
11304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11305 postinstall_cmds='base_file=`basename \${file}`~
11306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11307 dldir=$destdir/`dirname \$dlpath`~
11308 test -d \$dldir || mkdir -p \$dldir~
11309 $install_prog $dir/$dlname \$dldir/$dlname'
11310 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11311 dlpath=$dir/\$dldll~
11312 $RM \$dlpath'
11313 shlibpath_overrides_runpath=yes
11314 dynamic_linker='Win32 link.exe'
7083c021
AC
11315 ;;
11316
11317 *)
b6d0720c 11318 # Assume MSVC wrapper
7083c021 11319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b6d0720c 11320 dynamic_linker='Win32 ld.exe'
7083c021
AC
11321 ;;
11322 esac
7083c021
AC
11323 # FIXME: first we should search . and the directory the executable is in
11324 shlibpath_var=PATH
11325 ;;
11326
11327darwin* | rhapsody*)
11328 dynamic_linker="$host_os dyld"
11329 version_type=darwin
11330 need_lib_prefix=no
11331 need_version=no
11332 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11333 soname_spec='${libname}${release}${major}$shared_ext'
11334 shlibpath_overrides_runpath=yes
11335 shlibpath_var=DYLD_LIBRARY_PATH
11336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11337
11338 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11339 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11340 ;;
11341
11342dgux*)
11343 version_type=linux
11344 need_lib_prefix=no
11345 need_version=no
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 ;;
11350
11351freebsd1*)
11352 dynamic_linker=no
11353 ;;
11354
11355freebsd* | dragonfly*)
11356 # DragonFly does not have aout. When/if they implement a new
11357 # versioning mechanism, adjust this.
11358 if test -x /usr/bin/objformat; then
11359 objformat=`/usr/bin/objformat`
11360 else
11361 case $host_os in
11362 freebsd[123]*) objformat=aout ;;
11363 *) objformat=elf ;;
11364 esac
db137867 11365 fi
5a241f54 11366 version_type=freebsd-$objformat
7083c021
AC
11367 case $version_type in
11368 freebsd-elf*)
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11370 need_version=no
11371 need_lib_prefix=no
11372 ;;
11373 freebsd-*)
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11375 need_version=yes
11376 ;;
11377 esac
11378 shlibpath_var=LD_LIBRARY_PATH
11379 case $host_os in
11380 freebsd2*)
11381 shlibpath_overrides_runpath=yes
11382 ;;
11383 freebsd3.[01]* | freebsdelf3.[01]*)
11384 shlibpath_overrides_runpath=yes
11385 hardcode_into_libs=yes
11386 ;;
11387 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11388 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11389 shlibpath_overrides_runpath=no
11390 hardcode_into_libs=yes
11391 ;;
11392 *) # from 4.6 on, and DragonFly
11393 shlibpath_overrides_runpath=yes
11394 hardcode_into_libs=yes
11395 ;;
11396 esac
11397 ;;
db137867 11398
7083c021
AC
11399gnu*)
11400 version_type=linux
11401 need_lib_prefix=no
11402 need_version=no
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 shlibpath_var=LD_LIBRARY_PATH
11406 hardcode_into_libs=yes
11407 ;;
db137867 11408
b6d0720c
AC
11409haiku*)
11410 version_type=linux
11411 need_lib_prefix=no
11412 need_version=no
11413 dynamic_linker="$host_os runtime_loader"
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 shlibpath_var=LIBRARY_PATH
11417 shlibpath_overrides_runpath=yes
11418 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11419 hardcode_into_libs=yes
11420 ;;
11421
7083c021
AC
11422hpux9* | hpux10* | hpux11*)
11423 # Give a soname corresponding to the major version so that dld.sl refuses to
11424 # link against other versions.
11425 version_type=sunos
11426 need_lib_prefix=no
11427 need_version=no
11428 case $host_cpu in
11429 ia64*)
11430 shrext_cmds='.so'
11431 hardcode_into_libs=yes
11432 dynamic_linker="$host_os dld.so"
11433 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 if test "X$HPUX_IA64_MODE" = X32; then
11438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11439 else
11440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11441 fi
11442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11443 ;;
11444 hppa*64*)
11445 shrext_cmds='.sl'
11446 hardcode_into_libs=yes
11447 dynamic_linker="$host_os dld.sl"
11448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11454 ;;
11455 *)
11456 shrext_cmds='.sl'
11457 dynamic_linker="$host_os dld.sl"
11458 shlibpath_var=SHLIB_PATH
11459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 ;;
11463 esac
b6d0720c 11464 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
7083c021 11465 postinstall_cmds='chmod 555 $lib'
b6d0720c
AC
11466 # or fails outright, so override atomically:
11467 install_override_mode=555
7083c021 11468 ;;
db137867 11469
7083c021
AC
11470interix[3-9]*)
11471 version_type=linux
11472 need_lib_prefix=no
11473 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=no
11479 hardcode_into_libs=yes
11480 ;;
db137867 11481
7083c021
AC
11482irix5* | irix6* | nonstopux*)
11483 case $host_os in
11484 nonstopux*) version_type=nonstopux ;;
11485 *)
11486 if test "$lt_cv_prog_gnu_ld" = yes; then
11487 version_type=linux
db137867 11488 else
7083c021
AC
11489 version_type=irix
11490 fi ;;
11491 esac
11492 need_lib_prefix=no
11493 need_version=no
11494 soname_spec='${libname}${release}${shared_ext}$major'
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11496 case $host_os in
11497 irix5* | nonstopux*)
11498 libsuff= shlibsuff=
11499 ;;
11500 *)
11501 case $LD in # libtool.m4 will add one of these switches to LD
11502 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11503 libsuff= shlibsuff= libmagic=32-bit;;
11504 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11505 libsuff=32 shlibsuff=N32 libmagic=N32;;
11506 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11507 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11508 *) libsuff= shlibsuff= libmagic=never-match;;
11509 esac
11510 ;;
11511 esac
11512 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11513 shlibpath_overrides_runpath=no
11514 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11515 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11516 hardcode_into_libs=yes
11517 ;;
db137867 11518
7083c021
AC
11519# No shared lib support for Linux oldld, aout, or coff.
11520linux*oldld* | linux*aout* | linux*coff*)
11521 dynamic_linker=no
11522 ;;
db137867 11523
7083c021 11524# This must be Linux ELF.
b6d0720c 11525linux* | k*bsd*-gnu | kopensolaris*-gnu)
7083c021
AC
11526 version_type=linux
11527 need_lib_prefix=no
11528 need_version=no
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 shlibpath_overrides_runpath=no
b6d0720c 11534
7083c021 11535 # Some binutils ld are patched to set DT_RUNPATH
b6d0720c
AC
11536 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538else
11539 lt_cv_shlibpath_overrides_runpath=no
11540 save_LDFLAGS=$LDFLAGS
11541 save_libdir=$libdir
11542 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11543 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021 11545/* end confdefs.h. */
db137867 11546
7083c021
AC
11547int
11548main ()
11549{
db137867 11550
7083c021
AC
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555if ac_fn_c_try_link "$LINENO"; then :
11556 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
b6d0720c 11557 lt_cv_shlibpath_overrides_runpath=yes
7083c021
AC
11558fi
11559fi
11560rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
b6d0720c
AC
11562 LDFLAGS=$save_LDFLAGS
11563 libdir=$save_libdir
11564
11565fi
11566
11567 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
db137867 11568
7083c021
AC
11569 # This implies no fast_install, which is unacceptable.
11570 # Some rework will be needed to allow for fast_install
11571 # before this can be enabled.
11572 hardcode_into_libs=yes
db137867 11573
7083c021
AC
11574 # Append ld.so.conf contents to the search path
11575 if test -f /etc/ld.so.conf; then
b6d0720c
AC
11576 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' ' '`
11577 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
db137867 11578 fi
db137867 11579
7083c021
AC
11580 # We used to test for /lib/ld.so.1 and disable shared libraries on
11581 # powerpc, because MkLinux only supported shared libraries with the
11582 # GNU dynamic linker. Since this was broken with cross compilers,
11583 # most powerpc-linux boxes support dynamic linking these days and
11584 # people can always --disable-shared, the test was removed, and we
11585 # assume the GNU/Linux dynamic linker is in use.
11586 dynamic_linker='GNU/Linux ld.so'
11587 ;;
11588
7083c021
AC
11589netbsd*)
11590 version_type=sunos
11591 need_lib_prefix=no
11592 need_version=no
11593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11596 dynamic_linker='NetBSD (a.out) ld.so'
11597 else
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 dynamic_linker='NetBSD ld.elf_so'
11601 fi
11602 shlibpath_var=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath=yes
11604 hardcode_into_libs=yes
11605 ;;
db137867 11606
7083c021
AC
11607newsos6)
11608 version_type=linux
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610 shlibpath_var=LD_LIBRARY_PATH
11611 shlibpath_overrides_runpath=yes
11612 ;;
db137867 11613
7083c021
AC
11614*nto* | *qnx*)
11615 version_type=qnx
11616 need_lib_prefix=no
11617 need_version=no
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='${libname}${release}${shared_ext}$major'
11620 shlibpath_var=LD_LIBRARY_PATH
11621 shlibpath_overrides_runpath=no
11622 hardcode_into_libs=yes
11623 dynamic_linker='ldqnx.so'
11624 ;;
db137867 11625
7083c021
AC
11626openbsd*)
11627 version_type=sunos
11628 sys_lib_dlsearch_path_spec="/usr/lib"
11629 need_lib_prefix=no
11630 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11631 case $host_os in
11632 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11633 *) need_version=no ;;
11634 esac
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11639 case $host_os in
11640 openbsd2.[89] | openbsd2.[89].*)
11641 shlibpath_overrides_runpath=no
11642 ;;
11643 *)
11644 shlibpath_overrides_runpath=yes
11645 ;;
11646 esac
11647 else
11648 shlibpath_overrides_runpath=yes
11649 fi
11650 ;;
db137867 11651
7083c021
AC
11652os2*)
11653 libname_spec='$name'
11654 shrext_cmds=".dll"
11655 need_lib_prefix=no
11656 library_names_spec='$libname${shared_ext} $libname.a'
11657 dynamic_linker='OS/2 ld.exe'
11658 shlibpath_var=LIBPATH
11659 ;;
db137867 11660
7083c021
AC
11661osf3* | osf4* | osf5*)
11662 version_type=osf
11663 need_lib_prefix=no
11664 need_version=no
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11669 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11670 ;;
db137867 11671
7083c021
AC
11672rdos*)
11673 dynamic_linker=no
11674 ;;
db137867 11675
7083c021
AC
11676solaris*)
11677 version_type=linux
11678 need_lib_prefix=no
11679 need_version=no
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681 soname_spec='${libname}${release}${shared_ext}$major'
11682 shlibpath_var=LD_LIBRARY_PATH
11683 shlibpath_overrides_runpath=yes
11684 hardcode_into_libs=yes
11685 # ldd complains unless libraries are executable
11686 postinstall_cmds='chmod +x $lib'
11687 ;;
db137867 11688
7083c021
AC
11689sunos4*)
11690 version_type=sunos
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=yes
11695 if test "$with_gnu_ld" = yes; then
11696 need_lib_prefix=no
11697 fi
11698 need_version=yes
11699 ;;
db137867 11700
7083c021
AC
11701sysv4 | sysv4.3*)
11702 version_type=linux
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 case $host_vendor in
11707 sni)
11708 shlibpath_overrides_runpath=no
11709 need_lib_prefix=no
11710 runpath_var=LD_RUN_PATH
11711 ;;
11712 siemens)
11713 need_lib_prefix=no
11714 ;;
11715 motorola)
11716 need_lib_prefix=no
11717 need_version=no
11718 shlibpath_overrides_runpath=no
11719 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11720 ;;
11721 esac
11722 ;;
db137867 11723
7083c021
AC
11724sysv4*MP*)
11725 if test -d /usr/nec ;then
11726 version_type=linux
11727 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11728 soname_spec='$libname${shared_ext}.$major'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 fi
11731 ;;
db137867 11732
7083c021
AC
11733sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11734 version_type=freebsd-elf
11735 need_lib_prefix=no
11736 need_version=no
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 hardcode_into_libs=yes
11742 if test "$with_gnu_ld" = yes; then
11743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11744 else
11745 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11746 case $host_os in
11747 sco3.2v5*)
11748 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11749 ;;
11750 esac
11751 fi
11752 sys_lib_dlsearch_path_spec='/usr/lib'
11753 ;;
db137867 11754
7083c021
AC
11755tpf*)
11756 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11757 version_type=linux
11758 need_lib_prefix=no
11759 need_version=no
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=no
11763 hardcode_into_libs=yes
11764 ;;
db137867 11765
7083c021
AC
11766uts4*)
11767 version_type=linux
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 ;;
db137867 11772
7083c021
AC
11773*)
11774 dynamic_linker=no
11775 ;;
11776esac
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11778$as_echo "$dynamic_linker" >&6; }
11779test "$dynamic_linker" = no && can_build_shared=no
db137867 11780
7083c021
AC
11781variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11782if test "$GCC" = yes; then
11783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11784fi
db137867 11785
7083c021
AC
11786if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11787 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11788fi
11789if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11790 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11791fi
db137867 11792
db137867 11793
db137867 11794
db137867 11795
db137867 11796
db137867 11797
db137867 11798
db137867 11799
db137867 11800
db137867 11801
db137867 11802
db137867 11803
db137867 11804
db137867 11805
db137867 11806
db137867 11807
db137867 11808
db137867 11809
db137867 11810
db137867 11811
db137867 11812
db137867 11813
db137867 11814
db137867 11815
db137867 11816
db137867 11817
db137867 11818
db137867 11819
db137867 11820
db137867 11821
db137867 11822
db137867 11823
db137867 11824
db137867 11825
db137867 11826
db137867 11827
db137867 11828
db137867 11829
db137867 11830
db137867 11831
db137867 11832
db137867 11833
db137867 11834
db137867 11835
db137867 11836
b676ea3b 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
AC
11871
11872
b6d0720c
AC
11873
11874
11875
11876
11877
db137867
AC
11878
11879
db137867 11880
db137867 11881
db137867 11882
db137867 11883
7083c021
AC
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11885$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11886hardcode_action=
11887if test -n "$hardcode_libdir_flag_spec" ||
11888 test -n "$runpath_var" ||
11889 test "X$hardcode_automatic" = "Xyes" ; then
db137867 11890
7083c021
AC
11891 # We can hardcode non-existent directories.
11892 if test "$hardcode_direct" != no &&
11893 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11894 # have to relink, otherwise we might link with an installed library
11895 # when we should be linking with a yet-to-be-installed one
11896 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11897 test "$hardcode_minus_L" != no; then
11898 # Linking always hardcodes the temporary library directory.
11899 hardcode_action=relink
db137867 11900 else
7083c021
AC
11901 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11902 hardcode_action=immediate
db137867 11903 fi
7083c021
AC
11904else
11905 # We cannot hardcode anything, or else we can only hardcode existing
11906 # directories.
11907 hardcode_action=unsupported
11908fi
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11910$as_echo "$hardcode_action" >&6; }
11911
11912if test "$hardcode_action" = relink ||
11913 test "$inherit_rpath" = yes; then
11914 # Fast installation is not supported
11915 enable_fast_install=no
11916elif test "$shlibpath_overrides_runpath" = yes ||
11917 test "$enable_shared" = no; then
11918 # Fast installation is not necessary
11919 enable_fast_install=needless
db137867
AC
11920fi
11921
11922
11923
db137867 11924
db137867 11925
db137867 11926
7083c021
AC
11927 if test "x$enable_dlopen" != xyes; then
11928 enable_dlopen=unknown
11929 enable_dlopen_self=unknown
11930 enable_dlopen_self_static=unknown
11931else
11932 lt_cv_dlopen=no
11933 lt_cv_dlopen_libs=
db137867 11934
7083c021
AC
11935 case $host_os in
11936 beos*)
11937 lt_cv_dlopen="load_add_on"
11938 lt_cv_dlopen_libs=
11939 lt_cv_dlopen_self=yes
11940 ;;
db137867 11941
7083c021
AC
11942 mingw* | pw32* | cegcc*)
11943 lt_cv_dlopen="LoadLibrary"
11944 lt_cv_dlopen_libs=
11945 ;;
db137867 11946
7083c021
AC
11947 cygwin*)
11948 lt_cv_dlopen="dlopen"
11949 lt_cv_dlopen_libs=
11950 ;;
db137867 11951
7083c021
AC
11952 darwin*)
11953 # if libdl is installed we need to link against it
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11955$as_echo_n "checking for dlopen in -ldl... " >&6; }
08c2568c 11956if ${ac_cv_lib_dl_dlopen+:} false; then :
7083c021
AC
11957 $as_echo_n "(cached) " >&6
11958else
11959 ac_check_lib_save_LIBS=$LIBS
11960LIBS="-ldl $LIBS"
11961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962/* end confdefs.h. */
db137867 11963
7083c021
AC
11964/* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11967#ifdef __cplusplus
11968extern "C"
11969#endif
11970char dlopen ();
11971int
11972main ()
11973{
11974return dlopen ();
11975 ;
11976 return 0;
11977}
11978_ACEOF
11979if ac_fn_c_try_link "$LINENO"; then :
11980 ac_cv_lib_dl_dlopen=yes
11981else
11982 ac_cv_lib_dl_dlopen=no
11983fi
11984rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986LIBS=$ac_check_lib_save_LIBS
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11989$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
08c2568c 11990if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7083c021
AC
11991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11992else
db137867 11993
7083c021
AC
11994 lt_cv_dlopen="dyld"
11995 lt_cv_dlopen_libs=
11996 lt_cv_dlopen_self=yes
db137867 11997
7083c021 11998fi
db137867 11999
7083c021 12000 ;;
db137867 12001
7083c021
AC
12002 *)
12003 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
08c2568c 12004if test "x$ac_cv_func_shl_load" = xyes; then :
7083c021
AC
12005 lt_cv_dlopen="shl_load"
12006else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12008$as_echo_n "checking for shl_load in -ldld... " >&6; }
08c2568c 12009if ${ac_cv_lib_dld_shl_load+:} false; then :
7083c021
AC
12010 $as_echo_n "(cached) " >&6
12011else
12012 ac_check_lib_save_LIBS=$LIBS
12013LIBS="-ldld $LIBS"
12014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015/* end confdefs.h. */
db137867 12016
7083c021
AC
12017/* Override any GCC internal prototype to avoid an error.
12018 Use char because int might match the return type of a GCC
12019 builtin and then its argument prototype would still apply. */
12020#ifdef __cplusplus
12021extern "C"
12022#endif
12023char shl_load ();
12024int
12025main ()
12026{
12027return shl_load ();
12028 ;
12029 return 0;
12030}
12031_ACEOF
12032if ac_fn_c_try_link "$LINENO"; then :
12033 ac_cv_lib_dld_shl_load=yes
12034else
12035 ac_cv_lib_dld_shl_load=no
12036fi
12037rm -f core conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039LIBS=$ac_check_lib_save_LIBS
12040fi
12041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12042$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
08c2568c 12043if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7083c021
AC
12044 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12045else
12046 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
08c2568c 12047if test "x$ac_cv_func_dlopen" = xyes; then :
7083c021
AC
12048 lt_cv_dlopen="dlopen"
12049else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12051$as_echo_n "checking for dlopen in -ldl... " >&6; }
08c2568c 12052if ${ac_cv_lib_dl_dlopen+:} false; then :
7083c021
AC
12053 $as_echo_n "(cached) " >&6
12054else
12055 ac_check_lib_save_LIBS=$LIBS
12056LIBS="-ldl $LIBS"
12057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058/* end confdefs.h. */
db137867 12059
7083c021
AC
12060/* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12063#ifdef __cplusplus
12064extern "C"
12065#endif
12066char dlopen ();
12067int
12068main ()
12069{
12070return dlopen ();
12071 ;
12072 return 0;
12073}
12074_ACEOF
12075if ac_fn_c_try_link "$LINENO"; then :
12076 ac_cv_lib_dl_dlopen=yes
12077else
12078 ac_cv_lib_dl_dlopen=no
12079fi
12080rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082LIBS=$ac_check_lib_save_LIBS
12083fi
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12085$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
08c2568c 12086if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7083c021
AC
12087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12088else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12090$as_echo_n "checking for dlopen in -lsvld... " >&6; }
08c2568c 12091if ${ac_cv_lib_svld_dlopen+:} false; then :
7083c021
AC
12092 $as_echo_n "(cached) " >&6
12093else
12094 ac_check_lib_save_LIBS=$LIBS
12095LIBS="-lsvld $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_svld_dlopen=yes
12116else
12117 ac_cv_lib_svld_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_svld_dlopen" >&5
12124$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
08c2568c 12125if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7083c021
AC
12126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12127else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12129$as_echo_n "checking for dld_link in -ldld... " >&6; }
08c2568c 12130if ${ac_cv_lib_dld_dld_link+:} false; then :
7083c021
AC
12131 $as_echo_n "(cached) " >&6
12132else
12133 ac_check_lib_save_LIBS=$LIBS
12134LIBS="-ldld $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 dld_link ();
12145int
12146main ()
12147{
12148return dld_link ();
12149 ;
12150 return 0;
12151}
12152_ACEOF
12153if ac_fn_c_try_link "$LINENO"; then :
12154 ac_cv_lib_dld_dld_link=yes
12155else
12156 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
12163$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
08c2568c 12164if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
7083c021
AC
12165 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12166fi
db137867
AC
12167
12168
7083c021 12169fi
db137867
AC
12170
12171
7083c021 12172fi
db137867
AC
12173
12174
7083c021 12175fi
db137867 12176
db137867 12177
7083c021 12178fi
db137867 12179
db137867 12180
7083c021 12181fi
db137867 12182
7083c021
AC
12183 ;;
12184 esac
db137867 12185
7083c021
AC
12186 if test "x$lt_cv_dlopen" != xno; then
12187 enable_dlopen=yes
12188 else
12189 enable_dlopen=no
12190 fi
db137867 12191
7083c021
AC
12192 case $lt_cv_dlopen in
12193 dlopen)
12194 save_CPPFLAGS="$CPPFLAGS"
12195 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
db137867 12196
7083c021
AC
12197 save_LDFLAGS="$LDFLAGS"
12198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
db137867 12199
7083c021
AC
12200 save_LIBS="$LIBS"
12201 LIBS="$lt_cv_dlopen_libs $LIBS"
db137867 12202
7083c021
AC
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12204$as_echo_n "checking whether a program can dlopen itself... " >&6; }
08c2568c 12205if ${lt_cv_dlopen_self+:} false; then :
030272f3 12206 $as_echo_n "(cached) " >&6
db137867 12207else
7083c021
AC
12208 if test "$cross_compiling" = yes; then :
12209 lt_cv_dlopen_self=cross
db137867 12210else
7083c021
AC
12211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12212 lt_status=$lt_dlunknown
12213 cat > conftest.$ac_ext <<_LT_EOF
b6d0720c 12214#line $LINENO "configure"
7083c021 12215#include "confdefs.h"
db137867 12216
7083c021
AC
12217#if HAVE_DLFCN_H
12218#include <dlfcn.h>
12219#endif
db137867 12220
7083c021 12221#include <stdio.h>
db137867 12222
7083c021
AC
12223#ifdef RTLD_GLOBAL
12224# define LT_DLGLOBAL RTLD_GLOBAL
12225#else
12226# ifdef DL_GLOBAL
12227# define LT_DLGLOBAL DL_GLOBAL
12228# else
12229# define LT_DLGLOBAL 0
12230# endif
12231#endif
db137867 12232
7083c021
AC
12233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12234 find out it does not work in some platform. */
12235#ifndef LT_DLLAZY_OR_NOW
12236# ifdef RTLD_LAZY
12237# define LT_DLLAZY_OR_NOW RTLD_LAZY
12238# else
12239# ifdef DL_LAZY
12240# define LT_DLLAZY_OR_NOW DL_LAZY
12241# else
12242# ifdef RTLD_NOW
12243# define LT_DLLAZY_OR_NOW RTLD_NOW
12244# else
12245# ifdef DL_NOW
12246# define LT_DLLAZY_OR_NOW DL_NOW
12247# else
12248# define LT_DLLAZY_OR_NOW 0
12249# endif
12250# endif
12251# endif
12252# endif
12253#endif
db137867 12254
b6d0720c
AC
12255/* When -fvisbility=hidden is used, assume the code has been annotated
12256 correspondingly for the symbols needed. */
12257#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12258int fnord () __attribute__((visibility("default")));
12259#endif
12260
12261int fnord () { return 42; }
7083c021
AC
12262int main ()
12263{
12264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12265 int status = $lt_dlunknown;
db137867 12266
7083c021
AC
12267 if (self)
12268 {
12269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b6d0720c
AC
12270 else
12271 {
12272 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12273 else puts (dlerror ());
12274 }
7083c021
AC
12275 /* dlclose (self); */
12276 }
12277 else
12278 puts (dlerror ());
db137867 12279
7083c021
AC
12280 return status;
12281}
12282_LT_EOF
12283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12284 (eval $ac_link) 2>&5
12285 ac_status=$?
12286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12287 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12288 (./conftest; exit; ) >&5 2>/dev/null
12289 lt_status=$?
12290 case x$lt_status in
12291 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12292 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12293 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12294 esac
12295 else :
12296 # compilation failed
12297 lt_cv_dlopen_self=no
12298 fi
db137867 12299fi
7083c021 12300rm -fr conftest*
db137867 12301
db137867 12302
7083c021
AC
12303fi
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12305$as_echo "$lt_cv_dlopen_self" >&6; }
db137867 12306
7083c021
AC
12307 if test "x$lt_cv_dlopen_self" = xyes; then
12308 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12310$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
08c2568c 12311if ${lt_cv_dlopen_self_static+:} false; then :
030272f3 12312 $as_echo_n "(cached) " >&6
db137867 12313else
7083c021
AC
12314 if test "$cross_compiling" = yes; then :
12315 lt_cv_dlopen_self_static=cross
db137867 12316else
7083c021
AC
12317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12318 lt_status=$lt_dlunknown
12319 cat > conftest.$ac_ext <<_LT_EOF
b6d0720c 12320#line $LINENO "configure"
7083c021 12321#include "confdefs.h"
db137867 12322
7083c021
AC
12323#if HAVE_DLFCN_H
12324#include <dlfcn.h>
12325#endif
db137867 12326
7083c021 12327#include <stdio.h>
db137867 12328
7083c021
AC
12329#ifdef RTLD_GLOBAL
12330# define LT_DLGLOBAL RTLD_GLOBAL
12331#else
12332# ifdef DL_GLOBAL
12333# define LT_DLGLOBAL DL_GLOBAL
12334# else
12335# define LT_DLGLOBAL 0
12336# endif
12337#endif
db137867 12338
7083c021
AC
12339/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12340 find out it does not work in some platform. */
12341#ifndef LT_DLLAZY_OR_NOW
12342# ifdef RTLD_LAZY
12343# define LT_DLLAZY_OR_NOW RTLD_LAZY
12344# else
12345# ifdef DL_LAZY
12346# define LT_DLLAZY_OR_NOW DL_LAZY
12347# else
12348# ifdef RTLD_NOW
12349# define LT_DLLAZY_OR_NOW RTLD_NOW
12350# else
12351# ifdef DL_NOW
12352# define LT_DLLAZY_OR_NOW DL_NOW
12353# else
12354# define LT_DLLAZY_OR_NOW 0
12355# endif
12356# endif
12357# endif
12358# endif
12359#endif
db137867 12360
b6d0720c
AC
12361/* When -fvisbility=hidden is used, assume the code has been annotated
12362 correspondingly for the symbols needed. */
12363#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12364int fnord () __attribute__((visibility("default")));
12365#endif
12366
12367int fnord () { return 42; }
7083c021
AC
12368int main ()
12369{
12370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12371 int status = $lt_dlunknown;
db137867 12372
7083c021
AC
12373 if (self)
12374 {
12375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b6d0720c
AC
12376 else
12377 {
12378 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12379 else puts (dlerror ());
12380 }
7083c021
AC
12381 /* dlclose (self); */
12382 }
12383 else
12384 puts (dlerror ());
db137867 12385
7083c021
AC
12386 return status;
12387}
12388_LT_EOF
12389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12390 (eval $ac_link) 2>&5
12391 ac_status=$?
12392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12393 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12394 (./conftest; exit; ) >&5 2>/dev/null
12395 lt_status=$?
12396 case x$lt_status in
12397 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12398 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12399 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12400 esac
12401 else :
12402 # compilation failed
12403 lt_cv_dlopen_self_static=no
12404 fi
db137867 12405fi
7083c021 12406rm -fr conftest*
3202e249 12407
db137867 12408
db137867 12409fi
7083c021
AC
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12411$as_echo "$lt_cv_dlopen_self_static" >&6; }
12412 fi
db137867 12413
7083c021
AC
12414 CPPFLAGS="$save_CPPFLAGS"
12415 LDFLAGS="$save_LDFLAGS"
12416 LIBS="$save_LIBS"
12417 ;;
12418 esac
db137867 12419
7083c021
AC
12420 case $lt_cv_dlopen_self in
12421 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12422 *) enable_dlopen_self=unknown ;;
12423 esac
db137867 12424
7083c021
AC
12425 case $lt_cv_dlopen_self_static in
12426 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12427 *) enable_dlopen_self_static=unknown ;;
12428 esac
db137867
AC
12429fi
12430
db137867 12431
db137867 12432
030272f3
VY
12433
12434
030272f3 12435
db137867 12436
db137867 12437
db137867 12438
030272f3 12439
030272f3 12440
db137867 12441
030272f3 12442
db137867 12443
db137867 12444
db137867 12445
db137867 12446
7083c021
AC
12447striplib=
12448old_striplib=
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12450$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12451if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12452 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12453 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12455$as_echo "yes" >&6; }
030272f3 12456else
7083c021
AC
12457# FIXME - insert some real tests, host_os isn't really good enough
12458 case $host_os in
12459 darwin*)
12460 if test -n "$STRIP" ; then
12461 striplib="$STRIP -x"
12462 old_striplib="$STRIP -S"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12464$as_echo "yes" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467$as_echo "no" >&6; }
12468 fi
12469 ;;
12470 *)
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472$as_echo "no" >&6; }
12473 ;;
12474 esac
030272f3
VY
12475fi
12476
db137867 12477
030272f3 12478
db137867 12479
db137867 12480
db137867 12481
db137867 12482
db137867 12483
db137867 12484
db137867 12485
db137867
AC
12486
12487
7083c021
AC
12488 # Report which library types will actually be built
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12490$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12492$as_echo "$can_build_shared" >&6; }
db137867 12493
7083c021
AC
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12495$as_echo_n "checking whether to build shared libraries... " >&6; }
12496 test "$can_build_shared" = "no" && enable_shared=no
db137867 12497
7083c021
AC
12498 # On AIX, shared libraries and static libraries use the same namespace, and
12499 # are all built from PIC.
12500 case $host_os in
12501 aix3*)
12502 test "$enable_shared" = yes && enable_static=no
12503 if test -n "$RANLIB"; then
12504 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12505 postinstall_cmds='$RANLIB $lib'
12506 fi
12507 ;;
db137867 12508
7083c021
AC
12509 aix[4-9]*)
12510 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12511 test "$enable_shared" = yes && enable_static=no
12512 fi
12513 ;;
12514 esac
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12516$as_echo "$enable_shared" >&6; }
12517
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12519$as_echo_n "checking whether to build static libraries... " >&6; }
12520 # Make sure either enable_shared or enable_static is yes.
12521 test "$enable_shared" = yes || enable_static=yes
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12523$as_echo "$enable_static" >&6; }
db137867 12524
db137867 12525
db137867 12526
db137867 12527
db137867 12528fi
7083c021
AC
12529ac_ext=c
12530ac_cpp='$CPP $CPPFLAGS'
12531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12533ac_compiler_gnu=$ac_cv_c_compiler_gnu
db137867 12534
7083c021 12535CC="$lt_save_CC"
db137867 12536
db137867 12537
db137867 12538
db137867 12539
db137867 12540
db137867 12541
db137867 12542
db137867 12543
db137867 12544
db137867
AC
12545
12546
db137867 12547
db137867 12548
7083c021 12549 ac_config_commands="$ac_config_commands libtool"
db137867
AC
12550
12551
12552
12553
7083c021 12554# Only expand once:
db137867
AC
12555
12556
12557
7083c021 12558LIBTOOL="$LIBTOOL --silent"
db137867 12559
7083c021
AC
12560case "$host_os" in
12561*cygwin*)
db137867 12562
7083c021
AC
12563cat >>confdefs.h <<_ACEOF
12564#define CYGWIN 1
12565_ACEOF
db137867
AC
12566
12567
7083c021
AC
12568cat >>confdefs.h <<_ACEOF
12569#define WINDOWS 1
12570_ACEOF
db137867 12571
7083c021
AC
12572 ;;
12573*mingw*)
db137867 12574
7083c021
AC
12575cat >>confdefs.h <<_ACEOF
12576#define MINGW 1
12577_ACEOF
db137867
AC
12578
12579
7083c021
AC
12580cat >>confdefs.h <<_ACEOF
12581#define WINDOWS 1
12582_ACEOF
db137867 12583
7083c021 12584 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
08c2568c 12585if test "x$ac_cv_header_windows_h" = xyes; then :
db137867 12586
7083c021 12587else
08c2568c 12588 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
7083c021 12589fi
db137867
AC
12590
12591
7083c021 12592 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
08c2568c 12593if test "x$ac_cv_header_winsock2_h" = xyes; then :
db137867 12594
7083c021 12595else
08c2568c 12596 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
7083c021 12597fi
db137867 12598
3202e249 12599
7083c021
AC
12600
12601cat >>confdefs.h <<_ACEOF
12602#define HAVE_WINSOCK2_H 1
db137867 12603_ACEOF
7083c021
AC
12604
12605
12606cat >>confdefs.h <<_ACEOF
12607#define HAVE_WINSOCK_H 1
db137867 12608_ACEOF
7083c021
AC
12609
12610 LIBS="$LIBS -lws2_32 -liphlpapi"
12611 is_mingw="yes"
12612 ;;
12613*interix*)
12614 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
12615 ;;
12616*solaris*)
12617 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
12618 ;;
12619*)
12620 ;;
db137867 12621esac
db137867 12622
7083c021
AC
12623 if test "$is_mingw" = "yes"; then
12624 MINGW_TRUE=
12625 MINGW_FALSE='#'
12626else
12627 MINGW_TRUE='#'
12628 MINGW_FALSE=
db137867
AC
12629fi
12630
db137867 12631
db137867 12632
7083c021
AC
12633# backwards support for IRC_CFLAGS
12634CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
12635
12636if test "$libexecdir" = '${exec_prefix}/libexec' &&
12637 test "$localstatedir" = '${prefix}/var'; then
12638 libexecdir='${bindir}'
12639 localstatedir='${prefix}'
db137867
AC
12640fi
12641
7083c021 12642ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
08c2568c 12643if test "x$ac_cv_type_pid_t" = xyes; then :
db137867 12644
db137867 12645else
7083c021
AC
12646
12647cat >>confdefs.h <<_ACEOF
12648#define pid_t int
12649_ACEOF
db137867
AC
12650
12651fi
7083c021
AC
12652
12653ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
08c2568c 12654if test "x$ac_cv_type_size_t" = xyes; then :
7083c021
AC
12655
12656else
12657
12658cat >>confdefs.h <<_ACEOF
12659#define size_t unsigned int
db137867
AC
12660_ACEOF
12661
12662fi
12663
7083c021 12664ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
08c2568c 12665if test "x$ac_cv_type_ssize_t" = xyes; then :
db137867 12666
db137867 12667else
7083c021
AC
12668
12669cat >>confdefs.h <<_ACEOF
12670#define ssize_t int
db137867 12671_ACEOF
7083c021
AC
12672
12673fi
12674
12675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12676$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
08c2568c 12677if ${ac_cv_type_uid_t+:} false; then :
7083c021
AC
12678 $as_echo_n "(cached) " >&6
12679else
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
12681/* end confdefs.h. */
12682#include <sys/types.h>
db137867 12683
db137867 12684_ACEOF
7083c021
AC
12685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12686 $EGREP "uid_t" >/dev/null 2>&1; then :
12687 ac_cv_type_uid_t=yes
db137867 12688else
7083c021 12689 ac_cv_type_uid_t=no
db137867 12690fi
7083c021 12691rm -f conftest*
db137867 12692
db137867 12693fi
7083c021
AC
12694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12695$as_echo "$ac_cv_type_uid_t" >&6; }
12696if test $ac_cv_type_uid_t = no; then
db137867 12697
7083c021
AC
12698$as_echo "#define uid_t int" >>confdefs.h
12699
12700
12701$as_echo "#define gid_t int" >>confdefs.h
db137867
AC
12702
12703fi
12704
12705
12706
7083c021
AC
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12708$as_echo_n "checking for ANSI C header files... " >&6; }
08c2568c 12709if ${ac_cv_header_stdc+:} false; then :
030272f3 12710 $as_echo_n "(cached) " >&6
db137867 12711else
7083c021 12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12713/* end confdefs.h. */
7083c021
AC
12714#include <stdlib.h>
12715#include <stdarg.h>
12716#include <string.h>
12717#include <float.h>
db137867 12718
db137867
AC
12719int
12720main ()
12721{
7083c021 12722
db137867
AC
12723 ;
12724 return 0;
12725}
12726_ACEOF
7083c021
AC
12727if ac_fn_c_try_compile "$LINENO"; then :
12728 ac_cv_header_stdc=yes
db137867 12729else
7083c021
AC
12730 ac_cv_header_stdc=no
12731fi
12732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db137867 12733
7083c021
AC
12734if test $ac_cv_header_stdc = yes; then
12735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737/* end confdefs.h. */
12738#include <string.h>
db137867 12739
7083c021
AC
12740_ACEOF
12741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12742 $EGREP "memchr" >/dev/null 2>&1; then :
db137867 12743
db137867 12744else
7083c021 12745 ac_cv_header_stdc=no
db137867 12746fi
7083c021 12747rm -f conftest*
db137867
AC
12748
12749fi
12750
7083c021
AC
12751if test $ac_cv_header_stdc = yes; then
12752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754/* end confdefs.h. */
12755#include <stdlib.h>
db137867 12756
db137867 12757_ACEOF
7083c021
AC
12758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12759 $EGREP "free" >/dev/null 2>&1; then :
db137867 12760
7083c021
AC
12761else
12762 ac_cv_header_stdc=no
12763fi
12764rm -f conftest*
db137867 12765
7083c021 12766fi
db137867 12767
7083c021
AC
12768if test $ac_cv_header_stdc = yes; then
12769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12770 if test "$cross_compiling" = yes; then :
12771 :
db137867 12772else
7083c021 12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12774/* end confdefs.h. */
7083c021
AC
12775#include <ctype.h>
12776#include <stdlib.h>
12777#if ((' ' & 0x0FF) == 0x020)
12778# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12779# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12780#else
12781# define ISLOWER(c) \
12782 (('a' <= (c) && (c) <= 'i') \
12783 || ('j' <= (c) && (c) <= 'r') \
12784 || ('s' <= (c) && (c) <= 'z'))
12785# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
db137867
AC
12786#endif
12787
7083c021 12788#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
db137867
AC
12789int
12790main ()
12791{
7083c021
AC
12792 int i;
12793 for (i = 0; i < 256; i++)
12794 if (XOR (islower (i), ISLOWER (i))
12795 || toupper (i) != TOUPPER (i))
12796 return 2;
db137867
AC
12797 return 0;
12798}
12799_ACEOF
7083c021 12800if ac_fn_c_try_run "$LINENO"; then :
db137867 12801
7083c021
AC
12802else
12803 ac_cv_header_stdc=no
12804fi
12805rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12806 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
12807fi
12808
db137867 12809fi
7083c021
AC
12810fi
12811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12812$as_echo "$ac_cv_header_stdc" >&6; }
12813if test $ac_cv_header_stdc = yes; then
12814
12815$as_echo "#define STDC_HEADERS 1" >>confdefs.h
db137867 12816
db137867 12817fi
db137867 12818
7083c021
AC
12819
12820for 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
12821do :
12822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12823ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
08c2568c 12824if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
12825 cat >>confdefs.h <<_ACEOF
12826#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
db137867
AC
12827_ACEOF
12828
12829fi
12830
7083c021 12831done
db137867 12832
7083c021
AC
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12834$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
08c2568c 12835if ${ac_cv_header_time+:} false; then :
030272f3 12836 $as_echo_n "(cached) " >&6
db137867 12837else
7083c021 12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12839/* end confdefs.h. */
db137867 12840#include <sys/types.h>
7083c021
AC
12841#include <sys/time.h>
12842#include <time.h>
db137867 12843
db137867
AC
12844int
12845main ()
12846{
7083c021
AC
12847if ((struct tm *) 0)
12848return 0;
030272f3 12849 ;
db137867 12850 return 0;
7083c021 12851}
030272f3 12852_ACEOF
7083c021
AC
12853if ac_fn_c_try_compile "$LINENO"; then :
12854 ac_cv_header_time=yes
12855else
12856 ac_cv_header_time=no
12857fi
12858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859fi
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12861$as_echo "$ac_cv_header_time" >&6; }
12862if test $ac_cv_header_time = yes; then
12863
12864$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12865
12866fi
12867
12868
12869
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12871$as_echo_n "checking for library containing socket... " >&6; }
08c2568c 12872if ${ac_cv_search_socket+:} false; then :
7083c021
AC
12873 $as_echo_n "(cached) " >&6
12874else
12875 ac_func_search_save_LIBS=$LIBS
12876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 12877/* end confdefs.h. */
030272f3 12878
7083c021
AC
12879/* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882#ifdef __cplusplus
12883extern "C"
12884#endif
12885char socket ();
030272f3
VY
12886int
12887main ()
12888{
7083c021 12889return socket ();
db137867
AC
12890 ;
12891 return 0;
12892}
12893_ACEOF
7083c021
AC
12894for ac_lib in '' socket; do
12895 if test -z "$ac_lib"; then
12896 ac_res="none required"
12897 else
12898 ac_res=-l$ac_lib
12899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12900 fi
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 ac_cv_search_socket=$ac_res
12903fi
12904rm -f core conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext
08c2568c 12906 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
12907 break
12908fi
12909done
08c2568c 12910if ${ac_cv_search_socket+:} false; then :
7083c021 12911
db137867 12912else
7083c021
AC
12913 ac_cv_search_socket=no
12914fi
12915rm conftest.$ac_ext
12916LIBS=$ac_func_search_save_LIBS
12917fi
12918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12919$as_echo "$ac_cv_search_socket" >&6; }
12920ac_res=$ac_cv_search_socket
12921if test "$ac_res" != no; then :
12922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
db137867 12923
db137867
AC
12924fi
12925
030272f3
VY
12926
12927
7083c021
AC
12928ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
12929#ifdef HAVE_SYS_TYPES_H
12930#include <sys/types.h>
12931#endif
12932#ifdef HAVE_SYS_SOCKET_H
12933#include <sys/socket.h>
12934#endif
12935#ifdef HAVE_WINSOCK2_H
12936#include <winsock2.h>
12937#endif
12938
12939"
08c2568c 12940if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7083c021
AC
12941
12942$as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
030272f3 12943
030272f3 12944fi
7083c021
AC
12945
12946
12947ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12948#include <sys/socket.h>
12949"
08c2568c 12950if test "x$ac_cv_type_socklen_t" = xyes; then :
030272f3 12951 rb_cv_socklen_t=socklen_t
db137867
AC
12952else
12953
7083c021 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
030272f3 12955$as_echo_n "checking for socklen_t equivalent... " >&6; }
08c2568c 12956 if ${rb_cv_socklen_t+:} false; then :
030272f3 12957 $as_echo_n "(cached) " >&6
a9fb3ed0
VY
12958else
12959
12960 # Systems have either "struct sockaddr *" or
12961 # "void *" as the second argument to getpeername
030272f3 12962 rb_cv_socklen_t=
a9fb3ed0
VY
12963 for arg2 in "struct sockaddr" void; do
12964 for t in int size_t unsigned long "unsigned long"; do
7083c021 12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9fb3ed0
VY
12966/* end confdefs.h. */
12967
3202e249 12968#ifdef HAVE_SYS_TYPES_H
a9fb3ed0 12969#include <sys/types.h>
3202e249
VY
12970#endif
12971#ifdef HAVE_SYS_SOCKET_H
a9fb3ed0 12972#include <sys/socket.h>
3202e249
VY
12973#endif
12974#ifdef HAVE_WINSOCK2_H
12975#include <winsock2.h>
12976#endif
a9fb3ed0
VY
12977int getpeername (int, $arg2 *, $t *);
12978
12979int
12980main ()
12981{
12982
12983$t len;
12984getpeername(0,0,&len);
12985
12986 ;
12987 return 0;
12988}
db137867 12989_ACEOF
7083c021 12990if ac_fn_c_try_compile "$LINENO"; then :
a9fb3ed0 12991
030272f3 12992 rb_cv_socklen_t="$t"
a9fb3ed0
VY
12993 break
12994
a9fb3ed0 12995fi
a9fb3ed0
VY
12996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 done
12998 done
12999
030272f3 13000 if test "x$rb_cv_socklen_t" = x; then
7083c021 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
030272f3
VY
13002$as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13003 rb_cv_socklen_t=int
a9fb3ed0
VY
13004 fi
13005
13006fi
13007
7083c021
AC
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13009$as_echo "$rb_cv_socklen_t" >&6; }
13010fi
13011
13012
13013rb_socklen_t=$rb_cv_socklen_t
13014
13015
13016
13017
13018
13019# Check whether --enable-ipv6 was given.
13020if test "${enable_ipv6+set}" = set; then :
13021 enableval=$enable_ipv6; ipv6=$enableval
13022else
13023 ipv6=yes
13024fi
13025
13026
13027if test x$ipv6 != xyes; then
13028 have_v6="no"
13029else
13030
13031have_v6=yes
13032
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13034$as_echo_n "checking for INET6 protocol support... " >&6; }
08c2568c 13035if ${rb_cv_proto_inet6+:} false; then :
7083c021
AC
13036 $as_echo_n "(cached) " >&6
13037else
13038
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040/* end confdefs.h. */
13041
13042#include <sys/types.h>
13043#include <sys/socket.h>
13044
13045#ifndef PF_INET6
13046#error Missing PF_INET6
13047#endif
13048#ifndef AF_INET6
13049#error Mlssing AF_INET6
13050#endif
13051
13052_ACEOF
13053if ac_fn_c_try_cpp "$LINENO"; then :
13054
13055 rb_cv_proto_inet6=yes
13056
13057else
13058
13059 rb_cv_proto_inet6=no
13060
13061fi
08c2568c 13062rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
13063
13064fi
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13066$as_echo "$rb_cv_proto_inet6" >&6; }
13067
13068 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13069
13070 else :
13071
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13073$as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13074 have_v6=no
13075
13076 fi
13077
13078
13079 if test "X$have_v6" = "Xyes"; then
13080
13081 rb_have_sockaddr_in6=
13082 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13083#include <sys/types.h>
13084#include <sys/socket.h>
13085#include <netinet/in.h>
13086
13087"
08c2568c 13088if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7083c021
AC
13089
13090cat >>confdefs.h <<_ACEOF
13091#define HAVE_STRUCT_SOCKADDR_IN6 1
13092_ACEOF
13093
13094
13095 rb_have_sockaddr_in6=yes
13096
13097else
13098
13099 rb_have_sockaddr_in6=no
13100
13101fi
13102
13103
13104 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13105
13106 else :
13107
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13109$as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13110 have_v6=no
13111
13112 fi
13113
13114 fi
13115
13116fi
13117
13118ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13119 #include <sys/types.h>
13120 #include <sys/socket.h>
13121
13122"
08c2568c 13123if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7083c021
AC
13124
13125cat >>confdefs.h <<_ACEOF
13126#define HAVE_STRUCT_SOCKADDR_STORAGE 1
13127_ACEOF
13128
13129
13130 rb_have_sockaddr_storage=yes
13131
13132fi
13133
13134
13135
7083c021 13136ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
08c2568c 13137if test "x$ac_cv_header_stdarg_h" = xyes; then :
db137867 13138
7083c021 13139else
08c2568c 13140 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
7083c021 13141fi
db137867 13142
db137867 13143
db137867 13144
7083c021
AC
13145ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13146#include <sys/socket.h>
13147"
08c2568c 13148if test "x$ac_cv_type_sa_family_t" = xyes; then :
db137867
AC
13149
13150else
db137867 13151
7083c021 13152$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
db137867
AC
13153
13154fi
db137867 13155
db137867 13156
db137867 13157
7083c021
AC
13158for 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
13159do :
13160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13161ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 13162if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
13163 cat >>confdefs.h <<_ACEOF
13164#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13165_ACEOF
db137867 13166
7083c021
AC
13167fi
13168done
db137867 13169
db137867 13170
7083c021
AC
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13172$as_echo_n "checking for library containing nanosleep... " >&6; }
08c2568c 13173if ${ac_cv_search_nanosleep+:} false; then :
030272f3 13174 $as_echo_n "(cached) " >&6
db137867 13175else
7083c021
AC
13176 ac_func_search_save_LIBS=$LIBS
13177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
13178/* end confdefs.h. */
13179
7083c021
AC
13180/* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183#ifdef __cplusplus
13184extern "C"
13185#endif
13186char nanosleep ();
db137867
AC
13187int
13188main ()
13189{
7083c021 13190return nanosleep ();
030272f3 13191 ;
db137867 13192 return 0;
030272f3
VY
13193}
13194_ACEOF
7083c021
AC
13195for ac_lib in '' rt posix4; do
13196 if test -z "$ac_lib"; then
13197 ac_res="none required"
13198 else
13199 ac_res=-l$ac_lib
13200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13201 fi
13202 if ac_fn_c_try_link "$LINENO"; then :
13203 ac_cv_search_nanosleep=$ac_res
13204fi
13205rm -f core conftest.err conftest.$ac_objext \
13206 conftest$ac_exeext
08c2568c 13207 if ${ac_cv_search_nanosleep+:} false; then :
7083c021
AC
13208 break
13209fi
13210done
08c2568c 13211if ${ac_cv_search_nanosleep+:} false; then :
030272f3 13212
7083c021
AC
13213else
13214 ac_cv_search_nanosleep=no
13215fi
13216rm conftest.$ac_ext
13217LIBS=$ac_func_search_save_LIBS
13218fi
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
13220$as_echo "$ac_cv_search_nanosleep" >&6; }
13221ac_res=$ac_cv_search_nanosleep
13222if test "$ac_res" != no; then :
13223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
030272f3 13224
7083c021
AC
13225$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
13226
13227fi
13228
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
13230$as_echo_n "checking for library containing timer_create... " >&6; }
08c2568c 13231if ${ac_cv_search_timer_create+:} false; then :
7083c021
AC
13232 $as_echo_n "(cached) " >&6
13233else
13234 ac_func_search_save_LIBS=$LIBS
13235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236/* end confdefs.h. */
030272f3 13237
7083c021
AC
13238/* Override any GCC internal prototype to avoid an error.
13239 Use char because int might match the return type of a GCC
13240 builtin and then its argument prototype would still apply. */
13241#ifdef __cplusplus
13242extern "C"
13243#endif
13244char timer_create ();
030272f3
VY
13245int
13246main ()
13247{
7083c021 13248return timer_create ();
db137867
AC
13249 ;
13250 return 0;
13251}
13252_ACEOF
7083c021
AC
13253for ac_lib in '' rt; do
13254 if test -z "$ac_lib"; then
13255 ac_res="none required"
13256 else
13257 ac_res=-l$ac_lib
13258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13259 fi
13260 if ac_fn_c_try_link "$LINENO"; then :
13261 ac_cv_search_timer_create=$ac_res
13262fi
13263rm -f core conftest.err conftest.$ac_objext \
13264 conftest$ac_exeext
08c2568c 13265 if ${ac_cv_search_timer_create+:} false; then :
7083c021 13266 break
030272f3 13267fi
7083c021 13268done
08c2568c 13269if ${ac_cv_search_timer_create+:} false; then :
030272f3 13270
db137867 13271else
7083c021 13272 ac_cv_search_timer_create=no
db137867 13273fi
7083c021
AC
13274rm conftest.$ac_ext
13275LIBS=$ac_func_search_save_LIBS
db137867 13276fi
7083c021
AC
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
13278$as_echo "$ac_cv_search_timer_create" >&6; }
13279ac_res=$ac_cv_search_timer_create
13280if test "$ac_res" != no; then :
13281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
db137867 13282
7083c021 13283$as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
db137867 13284
7083c021 13285fi
db137867 13286
7083c021
AC
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
13288$as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
08c2568c 13289if ${rb__cv_timer_create_works+:} false; then :
7083c021
AC
13290 $as_echo_n "(cached) " >&6
13291else
13292 if test "$cross_compiling" = yes; then :
13293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
13295as_fn_error $? "cannot run test program while cross compiling
13296See \`config.log' for more details" "$LINENO" 5; }
db137867 13297else
7083c021
AC
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299/* end confdefs.h. */
db137867 13300
7083c021
AC
13301#ifdef HAVE_TIME_H
13302#include <time.h>
13303#endif
13304#ifdef HAVE_SIGNAL_H
13305#include <signal.h>
13306#endif
13307#ifdef HAVE_UNISTD_H
13308#include <unistd.h>
13309#endif
13310int main(int argc, char *argv[])
13311{
13312#if HAVE_TIMER_CREATE
13313 struct sigevent ev;
13314 timer_t timer;
13315 ev.sigev_notify = SIGEV_SIGNAL;
13316 ev.sigev_signo = SIGVTALRM;
13317 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
13318 return 1;
13319 }
13320#else
13321 return 1;
13322#endif
13323 return 0;
13324}
db137867 13325
7083c021
AC
13326_ACEOF
13327if ac_fn_c_try_run "$LINENO"; then :
13328 rb__cv_timer_create_works=yes
13329else
13330 rb__cv_timer_create_works=no
13331fi
13332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13333 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
13334fi
13335
13336
7083c021
AC
13337fi
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
13339$as_echo "$rb__cv_timer_create_works" >&6; }
13340case $rb__cv_timer_create_works in
13341 yes)
13342$as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
13343;;
13344esac
db137867 13345
7083c021
AC
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
13347$as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
08c2568c 13348if ${rb__cv_timerfd_create_works+:} false; then :
7083c021
AC
13349 $as_echo_n "(cached) " >&6
13350else
13351 if test "$cross_compiling" = yes; then :
13352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
13354as_fn_error $? "cannot run test program while cross compiling
13355See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
13356else
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358/* end confdefs.h. */
db137867 13359
7083c021
AC
13360#ifdef HAVE_TIME_H
13361#include <time.h>
13362#endif
13363#ifdef HAVE_SIGNAL_H
13364#include <signal.h>
13365#endif
13366#ifdef HAVE_UNISTD_H
13367#include <unistd.h>
13368#endif
13369#ifdef HAVE_SYS_TIMERFD_H
13370#include <sys/timerfd.h>
13371#endif
13372int main(int argc, char *argv[])
13373{
13374#if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
13375 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
13376 return 1;
13377 }
13378#else
13379 return 1;
13380#endif
13381 return 0;
13382}
db137867 13383
7083c021
AC
13384_ACEOF
13385if ac_fn_c_try_run "$LINENO"; then :
13386 rb__cv_timerfd_create_works=yes
13387else
13388 rb__cv_timerfd_create_works=no
13389fi
13390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13391 conftest.$ac_objext conftest.beam conftest.$ac_ext
13392fi
db137867 13393
db137867
AC
13394
13395fi
7083c021
AC
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
13397$as_echo "$rb__cv_timerfd_create_works" >&6; }
13398case $rb__cv_timerfd_create_works in
13399 yes)
13400$as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
13401;;
13402esac
db137867 13403
7083c021
AC
13404
13405# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13406# for constant arguments. Useless!
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13408$as_echo_n "checking for working alloca.h... " >&6; }
08c2568c 13409if ${ac_cv_working_alloca_h+:} false; then :
030272f3 13410 $as_echo_n "(cached) " >&6
db137867 13411else
7083c021 13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 13413/* end confdefs.h. */
7083c021 13414#include <alloca.h>
030272f3
VY
13415int
13416main ()
13417{
7083c021
AC
13418char *p = (char *) alloca (2 * sizeof (int));
13419 if (p) return 0;
db137867
AC
13420 ;
13421 return 0;
13422}
13423_ACEOF
7083c021
AC
13424if ac_fn_c_try_link "$LINENO"; then :
13425 ac_cv_working_alloca_h=yes
030272f3 13426else
7083c021 13427 ac_cv_working_alloca_h=no
db137867 13428fi
7083c021
AC
13429rm -f core conftest.err conftest.$ac_objext \
13430 conftest$ac_exeext conftest.$ac_ext
030272f3 13431fi
7083c021
AC
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13433$as_echo "$ac_cv_working_alloca_h" >&6; }
13434if test $ac_cv_working_alloca_h = yes; then
db137867 13435
7083c021 13436$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
db137867
AC
13437
13438fi
13439
7083c021
AC
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13441$as_echo_n "checking for alloca... " >&6; }
08c2568c 13442if ${ac_cv_func_alloca_works+:} false; then :
030272f3 13443 $as_echo_n "(cached) " >&6
db137867 13444else
7083c021 13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13446/* end confdefs.h. */
7083c021
AC
13447#ifdef __GNUC__
13448# define alloca __builtin_alloca
13449#else
13450# ifdef _MSC_VER
13451# include <malloc.h>
13452# define alloca _alloca
13453# else
13454# ifdef HAVE_ALLOCA_H
13455# include <alloca.h>
13456# else
13457# ifdef _AIX
13458 #pragma alloca
13459# else
13460# ifndef alloca /* predefined by HP cc +Olibcalls */
08c2568c 13461void *alloca (size_t);
7083c021
AC
13462# endif
13463# endif
13464# endif
13465# endif
db137867 13466#endif
7083c021 13467
db137867
AC
13468int
13469main ()
13470{
7083c021
AC
13471char *p = (char *) alloca (1);
13472 if (p) return 0;
db137867
AC
13473 ;
13474 return 0;
13475}
13476_ACEOF
7083c021
AC
13477if ac_fn_c_try_link "$LINENO"; then :
13478 ac_cv_func_alloca_works=yes
db137867 13479else
7083c021 13480 ac_cv_func_alloca_works=no
db137867 13481fi
7083c021
AC
13482rm -f core conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
db137867 13484fi
7083c021
AC
13485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13486$as_echo "$ac_cv_func_alloca_works" >&6; }
db137867 13487
7083c021 13488if test $ac_cv_func_alloca_works = yes; then
db137867 13489
7083c021 13490$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
db137867 13491
db137867 13492else
7083c021
AC
13493 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13494# that cause trouble. Some versions do not even contain alloca or
13495# contain a buggy version. If you still want to use their alloca,
13496# use ar to extract alloca.o from them instead of compiling alloca.c.
db137867 13497
7083c021 13498ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
db137867 13499
7083c021 13500$as_echo "#define C_ALLOCA 1" >>confdefs.h
db137867
AC
13501
13502
7083c021
AC
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13504$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
08c2568c 13505if ${ac_cv_os_cray+:} false; then :
030272f3 13506 $as_echo_n "(cached) " >&6
db137867 13507else
7083c021 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13509/* end confdefs.h. */
7083c021
AC
13510#if defined CRAY && ! defined CRAY2
13511webecray
13512#else
13513wenotbecray
13514#endif
db137867 13515
db137867 13516_ACEOF
7083c021
AC
13517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13518 $EGREP "webecray" >/dev/null 2>&1; then :
13519 ac_cv_os_cray=yes
db137867 13520else
7083c021 13521 ac_cv_os_cray=no
db137867 13522fi
7083c021 13523rm -f conftest*
db137867 13524
db137867 13525fi
7083c021
AC
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13527$as_echo "$ac_cv_os_cray" >&6; }
13528if test $ac_cv_os_cray = yes; then
13529 for ac_func in _getb67 GETB67 getb67; do
13530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 13532if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
db137867 13533
7083c021
AC
13534cat >>confdefs.h <<_ACEOF
13535#define CRAY_STACKSEG_END $ac_func
13536_ACEOF
db137867 13537
7083c021
AC
13538 break
13539fi
db137867 13540
7083c021
AC
13541 done
13542fi
db137867 13543
7083c021
AC
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13545$as_echo_n "checking stack direction for C alloca... " >&6; }
08c2568c 13546if ${ac_cv_c_stack_direction+:} false; then :
030272f3 13547 $as_echo_n "(cached) " >&6
db137867 13548else
7083c021
AC
13549 if test "$cross_compiling" = yes; then :
13550 ac_cv_c_stack_direction=0
13551else
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13553/* end confdefs.h. */
7083c021 13554$ac_includes_default
db137867 13555int
7083c021 13556find_stack_direction ()
db137867 13557{
7083c021
AC
13558 static char *addr = 0;
13559 auto char dummy;
13560 if (addr == 0)
13561 {
13562 addr = &dummy;
13563 return find_stack_direction ();
13564 }
13565 else
13566 return (&dummy > addr) ? 1 : -1;
030272f3 13567}
030272f3
VY
13568
13569int
13570main ()
13571{
7083c021 13572 return find_stack_direction () < 0;
db137867
AC
13573}
13574_ACEOF
7083c021
AC
13575if ac_fn_c_try_run "$LINENO"; then :
13576 ac_cv_c_stack_direction=1
030272f3 13577else
7083c021 13578 ac_cv_c_stack_direction=-1
030272f3 13579fi
7083c021
AC
13580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13581 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
13582fi
13583
db137867 13584fi
7083c021
AC
13585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13586$as_echo "$ac_cv_c_stack_direction" >&6; }
13587cat >>confdefs.h <<_ACEOF
13588#define STACK_DIRECTION $ac_cv_c_stack_direction
db137867
AC
13589_ACEOF
13590
db137867 13591
7083c021 13592fi
db137867 13593
7083c021
AC
13594for ac_header in vfork.h
13595do :
13596 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
08c2568c 13597if test "x$ac_cv_header_vfork_h" = xyes; then :
7083c021
AC
13598 cat >>confdefs.h <<_ACEOF
13599#define HAVE_VFORK_H 1
13600_ACEOF
db137867 13601
7083c021 13602fi
db137867 13603
7083c021 13604done
a9fb3ed0 13605
7083c021
AC
13606for ac_func in fork vfork
13607do :
13608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13609ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 13610if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
13611 cat >>confdefs.h <<_ACEOF
13612#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13613_ACEOF
a9fb3ed0 13614
7083c021
AC
13615fi
13616done
3202e249 13617
7083c021
AC
13618if test "x$ac_cv_func_fork" = xyes; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13620$as_echo_n "checking for working fork... " >&6; }
08c2568c 13621if ${ac_cv_func_fork_works+:} false; then :
030272f3 13622 $as_echo_n "(cached) " >&6
db137867 13623else
7083c021
AC
13624 if test "$cross_compiling" = yes; then :
13625 ac_cv_func_fork_works=cross
13626else
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13628/* end confdefs.h. */
7083c021 13629$ac_includes_default
db137867
AC
13630int
13631main ()
13632{
7083c021
AC
13633
13634 /* By Ruediger Kuhlmann. */
13635 return fork () < 0;
13636
db137867
AC
13637 ;
13638 return 0;
13639}
13640_ACEOF
7083c021
AC
13641if ac_fn_c_try_run "$LINENO"; then :
13642 ac_cv_func_fork_works=yes
db137867 13643else
7083c021 13644 ac_cv_func_fork_works=no
db137867 13645fi
7083c021
AC
13646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13647 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867 13648fi
db137867
AC
13649
13650fi
7083c021
AC
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13652$as_echo "$ac_cv_func_fork_works" >&6; }
db137867 13653
7083c021
AC
13654else
13655 ac_cv_func_fork_works=$ac_cv_func_fork
13656fi
13657if test "x$ac_cv_func_fork_works" = xcross; then
13658 case $host in
13659 *-*-amigaos* | *-*-msdosdjgpp*)
13660 # Override, as these systems have only a dummy fork() stub
13661 ac_cv_func_fork_works=no
13662 ;;
13663 *)
13664 ac_cv_func_fork_works=yes
13665 ;;
13666 esac
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13668$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13669fi
13670ac_cv_func_vfork_works=$ac_cv_func_vfork
13671if test "x$ac_cv_func_vfork" = xyes; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13673$as_echo_n "checking for working vfork... " >&6; }
08c2568c 13674if ${ac_cv_func_vfork_works+:} false; then :
030272f3 13675 $as_echo_n "(cached) " >&6
db137867 13676else
7083c021
AC
13677 if test "$cross_compiling" = yes; then :
13678 ac_cv_func_vfork_works=cross
13679else
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13681/* end confdefs.h. */
7083c021
AC
13682/* Thanks to Paul Eggert for this test. */
13683$ac_includes_default
13684#include <sys/wait.h>
13685#ifdef HAVE_VFORK_H
13686# include <vfork.h>
13687#endif
13688/* On some sparc systems, changes by the child to local and incoming
13689 argument registers are propagated back to the parent. The compiler
13690 is told about this with #include <vfork.h>, but some compilers
13691 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13692 static variable whose address is put into a register that is
13693 clobbered by the vfork. */
13694static void
db137867 13695#ifdef __cplusplus
7083c021
AC
13696sparc_address_test (int arg)
13697# else
13698sparc_address_test (arg) int arg;
db137867 13699#endif
7083c021
AC
13700{
13701 static pid_t child;
13702 if (!child) {
13703 child = vfork ();
13704 if (child < 0) {
13705 perror ("vfork");
13706 _exit(2);
13707 }
13708 if (!child) {
13709 arg = getpid();
13710 write(-1, "", 0);
13711 _exit (arg);
13712 }
13713 }
13714}
13715
db137867
AC
13716int
13717main ()
13718{
7083c021
AC
13719 pid_t parent = getpid ();
13720 pid_t child;
13721
13722 sparc_address_test (0);
13723
13724 child = vfork ();
13725
13726 if (child == 0) {
13727 /* Here is another test for sparc vfork register problems. This
13728 test uses lots of local variables, at least as many local
13729 variables as main has allocated so far including compiler
13730 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13731 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13732 reuse the register of parent for one of the local variables,
13733 since it will think that parent can't possibly be used any more
13734 in this routine. Assigning to the local variable will thus
13735 munge parent in the parent process. */
13736 pid_t
13737 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13738 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13739 /* Convince the compiler that p..p7 are live; otherwise, it might
13740 use the same hardware register for all 8 local variables. */
13741 if (p != p1 || p != p2 || p != p3 || p != p4
13742 || p != p5 || p != p6 || p != p7)
13743 _exit(1);
db137867 13744
7083c021
AC
13745 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13746 from child file descriptors. If the child closes a descriptor
13747 before it execs or exits, this munges the parent's descriptor
13748 as well. Test for this by closing stdout in the child. */
13749 _exit(close(fileno(stdout)) != 0);
13750 } else {
13751 int status;
13752 struct stat st;
db137867 13753
7083c021
AC
13754 while (wait(&status) != child)
13755 ;
13756 return (
13757 /* Was there some problem with vforking? */
13758 child < 0
db137867 13759
7083c021
AC
13760 /* Did the child fail? (This shouldn't happen.) */
13761 || status
13762
13763 /* Did the vfork/compiler bug occur? */
13764 || parent != getpid()
13765
13766 /* Did the file descriptor bug occur? */
13767 || fstat(fileno(stdout), &st) != 0
13768 );
13769 }
13770}
13771_ACEOF
13772if ac_fn_c_try_run "$LINENO"; then :
13773 ac_cv_func_vfork_works=yes
db137867 13774else
7083c021 13775 ac_cv_func_vfork_works=no
db137867 13776fi
7083c021
AC
13777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13778 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867 13779fi
db137867 13780
7083c021
AC
13781fi
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13783$as_echo "$ac_cv_func_vfork_works" >&6; }
db137867 13784
7083c021
AC
13785fi;
13786if test "x$ac_cv_func_fork_works" = xcross; then
13787 ac_cv_func_vfork_works=$ac_cv_func_vfork
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13789$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
db137867
AC
13790fi
13791
7083c021
AC
13792if test "x$ac_cv_func_vfork_works" = xyes; then
13793
13794$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
db137867 13795
db137867 13796else
db137867 13797
7083c021 13798$as_echo "#define vfork fork" >>confdefs.h
db137867
AC
13799
13800fi
7083c021
AC
13801if test "x$ac_cv_func_fork_works" = xyes; then
13802
13803$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
db137867 13804
db137867 13805fi
7083c021 13806
96f4052b
AC
13807
13808
13809
13810 for ac_header in $ac_header_list
7083c021
AC
13811do :
13812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
96f4052b
AC
13813ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13814"
08c2568c 13815if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
13816 cat >>confdefs.h <<_ACEOF
13817#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13818_ACEOF
13819
db137867 13820fi
db137867 13821
7083c021
AC
13822done
13823
96f4052b
AC
13824
13825
13826
13827
13828
13829
13830
7083c021
AC
13831for ac_func in getpagesize
13832do :
13833 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
08c2568c 13834if test "x$ac_cv_func_getpagesize" = xyes; then :
7083c021
AC
13835 cat >>confdefs.h <<_ACEOF
13836#define HAVE_GETPAGESIZE 1
db137867
AC
13837_ACEOF
13838
13839fi
7083c021 13840done
db137867 13841
7083c021
AC
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13843$as_echo_n "checking for working mmap... " >&6; }
08c2568c 13844if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
030272f3 13845 $as_echo_n "(cached) " >&6
db137867 13846else
7083c021
AC
13847 if test "$cross_compiling" = yes; then :
13848 ac_cv_func_mmap_fixed_mapped=no
13849else
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13851/* end confdefs.h. */
7083c021
AC
13852$ac_includes_default
13853/* malloc might have been renamed as rpl_malloc. */
13854#undef malloc
db137867 13855
7083c021
AC
13856/* Thanks to Mike Haertel and Jim Avera for this test.
13857 Here is a matrix of mmap possibilities:
13858 mmap private not fixed
13859 mmap private fixed at somewhere currently unmapped
13860 mmap private fixed at somewhere already mapped
13861 mmap shared not fixed
13862 mmap shared fixed at somewhere currently unmapped
13863 mmap shared fixed at somewhere already mapped
13864 For private mappings, we should verify that changes cannot be read()
13865 back from the file, nor mmap's back from the file at a different
13866 address. (There have been systems where private was not correctly
13867 implemented like the infamous i386 svr4.0, and systems where the
13868 VM page cache was not coherent with the file system buffer cache
13869 like early versions of FreeBSD and possibly contemporary NetBSD.)
13870 For shared mappings, we should conversely verify that changes get
13871 propagated back to all the places they're supposed to be.
13872
13873 Grep wants private fixed already mapped.
13874 The main things grep needs to know about mmap are:
13875 * does it exist and is it safe to write into the mmap'd area
13876 * how to use it (BSD variants) */
13877
13878#include <fcntl.h>
13879#include <sys/mman.h>
13880
13881#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13882char *malloc ();
db137867 13883#endif
7083c021
AC
13884
13885/* This mess was copied from the GNU getpagesize.h. */
13886#ifndef HAVE_GETPAGESIZE
7083c021
AC
13887# ifdef _SC_PAGESIZE
13888# define getpagesize() sysconf(_SC_PAGESIZE)
13889# else /* no _SC_PAGESIZE */
13890# ifdef HAVE_SYS_PARAM_H
13891# include <sys/param.h>
13892# ifdef EXEC_PAGESIZE
13893# define getpagesize() EXEC_PAGESIZE
13894# else /* no EXEC_PAGESIZE */
13895# ifdef NBPG
13896# define getpagesize() NBPG * CLSIZE
13897# ifndef CLSIZE
13898# define CLSIZE 1
13899# endif /* no CLSIZE */
13900# else /* no NBPG */
13901# ifdef NBPC
13902# define getpagesize() NBPC
13903# else /* no NBPC */
13904# ifdef PAGESIZE
13905# define getpagesize() PAGESIZE
13906# endif /* PAGESIZE */
13907# endif /* no NBPC */
13908# endif /* no NBPG */
13909# endif /* no EXEC_PAGESIZE */
13910# else /* no HAVE_SYS_PARAM_H */
13911# define getpagesize() 8192 /* punt totally */
13912# endif /* no HAVE_SYS_PARAM_H */
13913# endif /* no _SC_PAGESIZE */
13914
13915#endif /* no HAVE_GETPAGESIZE */
13916
13917int
13918main ()
db137867 13919{
7083c021 13920 char *data, *data2, *data3;
5a241f54 13921 const char *cdata2;
7083c021 13922 int i, pagesize;
96f4052b 13923 int fd, fd2;
7083c021
AC
13924
13925 pagesize = getpagesize ();
13926
13927 /* First, make a file with some known garbage in it. */
13928 data = (char *) malloc (pagesize);
13929 if (!data)
13930 return 1;
13931 for (i = 0; i < pagesize; ++i)
13932 *(data + i) = rand ();
13933 umask (0);
13934 fd = creat ("conftest.mmap", 0600);
13935 if (fd < 0)
96f4052b 13936 return 2;
7083c021 13937 if (write (fd, data, pagesize) != pagesize)
96f4052b 13938 return 3;
7083c021
AC
13939 close (fd);
13940
96f4052b
AC
13941 /* Next, check that the tail of a page is zero-filled. File must have
13942 non-zero length, otherwise we risk SIGBUS for entire page. */
13943 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13944 if (fd2 < 0)
13945 return 4;
5a241f54
AC
13946 cdata2 = "";
13947 if (write (fd2, cdata2, 1) != 1)
96f4052b 13948 return 5;
5a241f54 13949 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
96f4052b
AC
13950 if (data2 == MAP_FAILED)
13951 return 6;
13952 for (i = 0; i < pagesize; ++i)
13953 if (*(data2 + i))
13954 return 7;
13955 close (fd2);
13956 if (munmap (data2, pagesize))
13957 return 8;
13958
7083c021
AC
13959 /* Next, try to mmap the file at a fixed address which already has
13960 something else allocated at it. If we can, also make sure that
13961 we see the same garbage. */
13962 fd = open ("conftest.mmap", O_RDWR);
13963 if (fd < 0)
96f4052b 13964 return 9;
7083c021
AC
13965 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13966 MAP_PRIVATE | MAP_FIXED, fd, 0L))
96f4052b 13967 return 10;
7083c021
AC
13968 for (i = 0; i < pagesize; ++i)
13969 if (*(data + i) != *(data2 + i))
96f4052b 13970 return 11;
7083c021
AC
13971
13972 /* Finally, make sure that changes to the mapped area do not
13973 percolate back to the file as seen by read(). (This is a bug on
13974 some variants of i386 svr4.0.) */
13975 for (i = 0; i < pagesize; ++i)
13976 *(data2 + i) = *(data2 + i) + 1;
13977 data3 = (char *) malloc (pagesize);
13978 if (!data3)
96f4052b 13979 return 12;
7083c021 13980 if (read (fd, data3, pagesize) != pagesize)
96f4052b 13981 return 13;
7083c021
AC
13982 for (i = 0; i < pagesize; ++i)
13983 if (*(data + i) != *(data3 + i))
96f4052b 13984 return 14;
7083c021
AC
13985 close (fd);
13986 return 0;
db137867 13987}
db137867 13988_ACEOF
7083c021
AC
13989if ac_fn_c_try_run "$LINENO"; then :
13990 ac_cv_func_mmap_fixed_mapped=yes
db137867 13991else
7083c021 13992 ac_cv_func_mmap_fixed_mapped=no
db137867 13993fi
7083c021
AC
13994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13995 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
13996fi
13997
7083c021
AC
13998fi
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14000$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14001if test $ac_cv_func_mmap_fixed_mapped = yes; then
db137867 14002
7083c021 14003$as_echo "#define HAVE_MMAP 1" >>confdefs.h
db137867
AC
14004
14005fi
96f4052b 14006rm -f conftest.mmap conftest.txt
db137867 14007
3202e249 14008
7083c021
AC
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14010$as_echo_n "checking for /dev/poll... " >&6; }
14011if test -c "/dev/poll"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013$as_echo "yes" >&6; }
3202e249 14014
7083c021 14015$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
3202e249 14016
7083c021
AC
14017else
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019$as_echo "no" >&6; }
3202e249
VY
14020fi
14021
14022
7083c021
AC
14023if test "$is_mingw" = "yes"; then
14024
14025$as_echo "#define HAVE_WIN32 1" >>confdefs.h
3202e249
VY
14026
14027fi
3202e249 14028
db137867 14029
7083c021
AC
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14031$as_echo_n "checking for OpenSSL... " >&6; }
14032# Check whether --enable-openssl was given.
14033if test "${enable_openssl+set}" = set; then :
14034 enableval=$enable_openssl; cf_enable_openssl=$enableval
db137867 14035else
7083c021 14036 cf_enable_openssl="auto"
db137867
AC
14037fi
14038
db137867 14039
7083c021
AC
14040if test "$cf_enable_openssl" != "no" ; then
14041 cf_openssl_basedir=""
14042 if test "$cf_enable_openssl" != "auto" &&
14043 test "$cf_enable_openssl" != "yes" ; then
14044 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14045 else
14046 for dirs in /usr/local/ssl /usr/pkg /usr/local \
14047 /usr/local/openssl ; do
14048 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14049 cf_openssl_basedir="${dirs}"
14050 break
14051 fi
14052 done
14053 unset dirs
14054 fi
14055 if test ! -z "$cf_openssl_basedir"; then
14056 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14057 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
14058 SSL_LIBS="-L${cf_openssl_basedir}/lib"
14059 else
14060 cf_openssl_basedir=""
14061 fi
14062 else
14063 if test -f "/usr/include/openssl/opensslv.h" ; then
14064 cf_openssl_basedir="/usr"
14065 fi
14066 fi
db137867 14067
7083c021
AC
14068 if test ! -z "$cf_openssl_basedir"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14070$as_echo "$cf_openssl_basedir" >&6; }
14071 cf_enable_openssl="yes"
14072 else
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14074$as_echo "not found. Specify a correct path?" >&6; }
14075 cf_enable_openssl="no"
14076 fi
14077 unset cf_openssl_basedir
14078else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14080$as_echo "disabled" >&6; }
db137867
AC
14081fi
14082
7083c021
AC
14083save_CPPFLAGS="$CPPFLAGS"
14084CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
14085save_LIBS="$LIBS"
14086LIBS="$LIBS $SSL_LIBS"
14087if test "$cf_enable_openssl" != no; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14089$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14090 if test "$cross_compiling" = yes; then :
14091 cf_enable_openssl=no
db137867 14092else
7083c021 14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14094/* end confdefs.h. */
7083c021
AC
14095#include <openssl/opensslv.h>
14096 #include <stdlib.h>
db137867
AC
14097int
14098main ()
14099{
7083c021
AC
14100if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14101 exit(0); else exit(1);
14102 ;
14103 return 0;
14104}
db137867 14105_ACEOF
7083c021
AC
14106if ac_fn_c_try_run "$LINENO"; then :
14107 cf_enable_openssl=yes
14108else
14109 cf_enable_openssl=no
14110fi
14111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14112 conftest.$ac_objext conftest.beam conftest.$ac_ext
14113fi
db137867
AC
14114
14115
7083c021
AC
14116 if test "$cf_enable_openssl" != no; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14118$as_echo "found" >&6; }
14119 else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14121$as_echo "no - OpenSSL support disabled" >&6; }
14122 fi
db137867 14123
db137867 14124fi
db137867 14125
7083c021
AC
14126
14127if test "$cf_enable_openssl" != no; then
14128 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14130$as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
08c2568c 14131if ${ac_cv_lib_crypto_RAND_status+:} false; then :
030272f3 14132 $as_echo_n "(cached) " >&6
db137867 14133else
7083c021
AC
14134 ac_check_lib_save_LIBS=$LIBS
14135LIBS="-lcrypto $LIBS"
14136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14137/* end confdefs.h. */
db137867
AC
14138
14139/* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14142#ifdef __cplusplus
14143extern "C"
14144#endif
7083c021 14145char RAND_status ();
db137867
AC
14146int
14147main ()
14148{
7083c021 14149return RAND_status ();
db137867
AC
14150 ;
14151 return 0;
14152}
14153_ACEOF
7083c021
AC
14154if ac_fn_c_try_link "$LINENO"; then :
14155 ac_cv_lib_crypto_RAND_status=yes
db137867 14156else
7083c021 14157 ac_cv_lib_crypto_RAND_status=no
db137867 14158fi
7083c021
AC
14159rm -f core conftest.err conftest.$ac_objext \
14160 conftest$ac_exeext conftest.$ac_ext
14161LIBS=$ac_check_lib_save_LIBS
db137867 14162fi
7083c021
AC
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14164$as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
08c2568c 14165if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
7083c021
AC
14166 cf_enable_openssl=yes
14167else
14168 cf_enable_openssl=no
db137867
AC
14169fi
14170
db137867
AC
14171fi
14172
7083c021
AC
14173if test "$cf_enable_openssl" != no; then
14174 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14176$as_echo_n "checking for SSL_read in -lssl... " >&6; }
08c2568c 14177if ${ac_cv_lib_ssl_SSL_read+:} false; then :
030272f3 14178 $as_echo_n "(cached) " >&6
db137867 14179else
7083c021
AC
14180 ac_check_lib_save_LIBS=$LIBS
14181LIBS="-lssl -lcrypto $LIBS"
14182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 14183/* end confdefs.h. */
db137867 14184
7083c021
AC
14185/* Override any GCC internal prototype to avoid an error.
14186 Use char because int might match the return type of a GCC
14187 builtin and then its argument prototype would still apply. */
14188#ifdef __cplusplus
14189extern "C"
14190#endif
14191char SSL_read ();
db137867
AC
14192int
14193main ()
14194{
7083c021
AC
14195return SSL_read ();
14196 ;
14197 return 0;
db137867
AC
14198}
14199_ACEOF
7083c021
AC
14200if ac_fn_c_try_link "$LINENO"; then :
14201 ac_cv_lib_ssl_SSL_read=yes
db137867 14202else
7083c021 14203 ac_cv_lib_ssl_SSL_read=no
db137867 14204fi
7083c021
AC
14205rm -f core conftest.err conftest.$ac_objext \
14206 conftest$ac_exeext conftest.$ac_ext
14207LIBS=$ac_check_lib_save_LIBS
14208fi
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
14210$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
08c2568c 14211if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
7083c021
AC
14212 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
14213else
14214 cf_enable_openssl=no
db137867 14215fi
db137867
AC
14216
14217fi
db137867 14218
db137867
AC
14219
14220
7083c021
AC
14221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
14222$as_echo_n "checking for GnuTLS... " >&6; }
14223# Check whether --enable-gnutls was given.
14224if test "${enable_gnutls+set}" = set; then :
14225 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
14226else
14227 cf_enable_gnutls="auto"
db137867
AC
14228fi
14229
14230
7083c021
AC
14231if test "$cf_enable_gnutls" != no; then
14232
14233
14234if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14235 if test -n "$ac_tool_prefix"; then
14236 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14237set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14239$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 14240if ${ac_cv_path_PKG_CONFIG+:} false; then :
030272f3 14241 $as_echo_n "(cached) " >&6
db137867 14242else
7083c021
AC
14243 case $PKG_CONFIG in
14244 [\\/]* | ?:[\\/]*)
14245 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14246 ;;
14247 *)
14248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249for as_dir in $PATH
14250do
14251 IFS=$as_save_IFS
14252 test -z "$as_dir" && as_dir=.
14253 for ac_exec_ext in '' $ac_executable_extensions; do
14254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14255 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14257 break 2
14258 fi
14259done
14260 done
14261IFS=$as_save_IFS
14262
14263 ;;
db137867 14264esac
7083c021
AC
14265fi
14266PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14267if test -n "$PKG_CONFIG"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14269$as_echo "$PKG_CONFIG" >&6; }
db137867 14270else
7083c021
AC
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272$as_echo "no" >&6; }
14273fi
14274
db137867 14275
db137867 14276fi
7083c021
AC
14277if test -z "$ac_cv_path_PKG_CONFIG"; then
14278 ac_pt_PKG_CONFIG=$PKG_CONFIG
14279 # Extract the first word of "pkg-config", so it can be a program name with args.
14280set dummy pkg-config; ac_word=$2
14281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 14283if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7083c021
AC
14284 $as_echo_n "(cached) " >&6
14285else
14286 case $ac_pt_PKG_CONFIG in
14287 [\\/]* | ?:[\\/]*)
14288 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14289 ;;
14290 *)
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292for as_dir in $PATH
14293do
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14298 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14301 fi
14302done
14303 done
14304IFS=$as_save_IFS
db137867 14305
7083c021
AC
14306 ;;
14307esac
14308fi
14309ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14310if test -n "$ac_pt_PKG_CONFIG"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14312$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14313else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315$as_echo "no" >&6; }
14316fi
db137867 14317
7083c021
AC
14318 if test "x$ac_pt_PKG_CONFIG" = x; then
14319 PKG_CONFIG=""
14320 else
14321 case $cross_compiling:$ac_tool_warned in
14322yes:)
14323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14325ac_tool_warned=yes ;;
db137867 14326esac
7083c021
AC
14327 PKG_CONFIG=$ac_pt_PKG_CONFIG
14328 fi
db137867 14329else
7083c021
AC
14330 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14331fi
db137867 14332
db137867 14333fi
7083c021
AC
14334if test -n "$PKG_CONFIG"; then
14335 _pkg_min_version=0.9.0
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14337$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14338 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14340$as_echo "yes" >&6; }
14341 else
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343$as_echo "no" >&6; }
14344 PKG_CONFIG=""
14345 fi
db137867 14346
7083c021 14347fi
db137867 14348
7083c021
AC
14349pkg_failed=no
14350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
14351$as_echo_n "checking for GNUTLS... " >&6; }
db137867 14352
96f4052b
AC
14353if test -n "$GNUTLS_CFLAGS"; then
14354 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
14355 elif test -n "$PKG_CONFIG"; then
14356 if test -n "$PKG_CONFIG" && \
7083c021
AC
14357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14358 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14359 ac_status=$?
14360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14361 test $ac_status = 0; }; then
14362 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
db137867 14363else
7083c021 14364 pkg_failed=yes
db137867 14365fi
96f4052b
AC
14366 else
14367 pkg_failed=untried
db137867 14368fi
96f4052b
AC
14369if test -n "$GNUTLS_LIBS"; then
14370 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
14371 elif test -n "$PKG_CONFIG"; then
14372 if test -n "$PKG_CONFIG" && \
7083c021
AC
14373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14374 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14375 ac_status=$?
14376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14377 test $ac_status = 0; }; then
14378 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
14379else
14380 pkg_failed=yes
14381fi
96f4052b
AC
14382 else
14383 pkg_failed=untried
db137867
AC
14384fi
14385
db137867
AC
14386
14387
7083c021 14388if test $pkg_failed = yes; then
db137867 14389
7083c021
AC
14390if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14391 _pkg_short_errors_supported=yes
db137867 14392else
7083c021
AC
14393 _pkg_short_errors_supported=no
14394fi
14395 if test $_pkg_short_errors_supported = yes; then
96f4052b 14396 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1`
7083c021 14397 else
96f4052b 14398 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls" 2>&1`
7083c021
AC
14399 fi
14400 # Put the nasty error message in config.log where it belongs
14401 echo "$GNUTLS_PKG_ERRORS" >&5
db137867 14402
7083c021
AC
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404$as_echo "no" >&6; }
14405 cf_enable_gnutls="no"
14406elif test $pkg_failed = untried; then
14407 cf_enable_gnutls="no"
14408else
14409 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
14410 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14412$as_echo "yes" >&6; }
db137867 14413
7083c021 14414 cf_enable_gnutls="yes"
db137867 14415
7083c021
AC
14416fi
14417fi
db137867 14418
7083c021
AC
14419if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
14420 cf_enable_gnutls="no"
14421fi
db137867 14422
7083c021 14423if test x"$cf_enable_openssl" != xno; then
db137867 14424
7083c021 14425$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
db137867 14426
7083c021
AC
14427 GNUTLS_CFLAGS=""
14428 GNUTLS_LIBS=""
14429 SSL_TYPE="openssl"
14430elif test x"$cf_enable_gnutls" != xno; then
14431
14432$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
db137867 14433
7083c021
AC
14434 SSL_LIBS=""
14435 SSL_CFLAGS=""
14436 SSL_TYPE="gnutls"
db137867 14437fi
db137867 14438
db137867 14439
db137867 14440
db137867 14441
7083c021
AC
14442CPPFLAGS="$save_CPPFLAGS"
14443LIBS="$save_LIBS"
14444
14445
db137867
AC
14446
14447
db137867 14448
db137867 14449
7083c021
AC
14450# Check whether --enable-assert was given.
14451if test "${enable_assert+set}" = set; then :
14452 enableval=$enable_assert; assert=$enableval
14453else
14454 assert=no
14455fi
db137867 14456
db137867 14457
7083c021 14458if test "$assert" = no; then
db137867 14459
7083c021 14460$as_echo "#define NDEBUG 1" >>confdefs.h
db137867 14461
7083c021 14462elif test "$assert" = soft; then
db137867 14463
7083c021 14464$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
db137867 14465
db137867 14466
7083c021 14467$as_echo "#define NDEBUG 1" >>confdefs.h
db137867 14468
7083c021
AC
14469elif test "$assert" = yes; then
14470 assert = "hard";
14471fi
14472
14473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
14474$as_echo_n "checking if you want to do a profile build... " >&6; }
14475# Check whether --enable-profile was given.
14476if test "${enable_profile+set}" = set; then :
14477 enableval=$enable_profile; profile=$enableval
db137867 14478else
7083c021
AC
14479 profile=no
14480fi
14481
14482
14483if test "$profile" = yes; then
14484 if test "$ac_cv_c_compiler_gnu" = yes; then
14485 CFLAGS="$CFLAGS -pg -static"
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
14487$as_echo "yes, adding -pg -static" >&6; }
db137867 14488
7083c021
AC
14489$as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
14490
14491 else
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
14493$as_echo "no, profile builds only work with gcc" >&6; }
14494 fi
14495else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497$as_echo "no" >&6; }
db137867 14498fi
7083c021
AC
14499
14500# Check whether --enable-balloc was given.
14501if test "${enable_balloc+set}" = set; then :
14502 enableval=$enable_balloc; balloc=$enableval
14503else
14504 balloc=yes
db137867
AC
14505fi
14506
14507
7083c021
AC
14508if test "$balloc" = no; then
14509
14510$as_echo "#define NOBALLOC 1" >>confdefs.h
14511
db137867 14512fi
db137867 14513
7083c021
AC
14514# Check whether --enable-warnings was given.
14515if test "${enable_warnings+set}" = set; then :
14516 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
14517fi
14518
db137867 14519
db137867 14520
db137867 14521
db137867 14522
db137867 14523
db137867 14524
db137867
AC
14525
14526
14527
7083c021
AC
14528
14529if test "$prefix" = "NONE"; then
14530
14531cat >>confdefs.h <<_ACEOF
14532#define RB_PREFIX "$ac_default_prefix"
db137867 14533_ACEOF
7083c021
AC
14534
14535
db137867 14536else
db137867 14537
db137867 14538
7083c021 14539 prefix=`echo $prefix | sed 's/\/$//'`
db137867 14540
7083c021
AC
14541cat >>confdefs.h <<_ACEOF
14542#define RB_PREFIX "$prefix"
db137867 14543_ACEOF
db137867 14544
7083c021 14545
db137867
AC
14546fi
14547
db137867 14548
db137867 14549
7083c021 14550ac_config_commands="$ac_config_commands include/librb-config.h"
db137867 14551
db137867 14552
db137867 14553
7083c021 14554ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
db137867
AC
14555
14556
7083c021
AC
14557cat >confcache <<\_ACEOF
14558# This file is a shell script that caches the results of configure
14559# tests run on this system so they can be shared between configure
14560# scripts and configure runs, see configure's option --config-cache.
14561# It is not useful on other systems. If it contains results you don't
14562# want to keep, you may remove or edit it.
14563#
14564# config.status only pays attention to the cache file if you give it
14565# the --recheck option to rerun configure.
14566#
14567# `ac_cv_env_foo' variables (set or unset) will be overridden when
14568# loading this file, other *unset* `ac_cv_foo' will be assigned the
14569# following values.
14570
db137867 14571_ACEOF
db137867 14572
7083c021
AC
14573# The following way of writing the cache mishandles newlines in values,
14574# but we know of no workaround that is simple, portable, and efficient.
14575# So, we kill variables containing newlines.
14576# Ultrix sh set writes to stderr and can't be redirected directly,
14577# and sets the high bit in the cache file unless we assign to the vars.
14578(
14579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14580 eval ac_val=\$$ac_var
14581 case $ac_val in #(
14582 *${as_nl}*)
14583 case $ac_var in #(
14584 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14585$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14586 esac
14587 case $ac_var in #(
14588 _ | IFS | as_nl) ;; #(
14589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14590 *) { eval $ac_var=; unset $ac_var;} ;;
14591 esac ;;
14592 esac
14593 done
14594
14595 (set) 2>&1 |
14596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14597 *${as_nl}ac_space=\ *)
14598 # `set' does not quote correctly, so add quotes: double-quote
14599 # substitution turns \\\\ into \\, and sed turns \\ into \.
14600 sed -n \
14601 "s/'/'\\\\''/g;
14602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14603 ;; #(
14604 *)
14605 # `set' quotes correctly as required by POSIX, so do not add quotes.
14606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14607 ;;
14608 esac |
14609 sort
14610) |
14611 sed '
14612 /^ac_cv_env_/b end
14613 t clear
14614 :clear
14615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14616 t end
14617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14618 :end' >>confcache
14619if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14620 if test -w "$cache_file"; then
08c2568c 14621 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14623$as_echo "$as_me: updating cache $cache_file" >&6;}
08c2568c
EM
14624 if test ! -f "$cache_file" || test -h "$cache_file"; then
14625 cat confcache >"$cache_file"
14626 else
14627 case $cache_file in #(
14628 */* | ?:*)
14629 mv -f confcache "$cache_file"$$ &&
14630 mv -f "$cache_file"$$ "$cache_file" ;; #(
14631 *)
14632 mv -f confcache "$cache_file" ;;
14633 esac
14634 fi
14635 fi
7083c021
AC
14636 else
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14638$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14639 fi
14640fi
14641rm -f confcache
14642
14643test "x$prefix" = xNONE && prefix=$ac_default_prefix
14644# Let make expand exec_prefix.
14645test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
db137867 14646
7083c021 14647DEFS=-DHAVE_CONFIG_H
db137867 14648
7083c021
AC
14649ac_libobjs=
14650ac_ltlibobjs=
08c2568c 14651U=
7083c021
AC
14652for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14653 # 1. Remove the extension, and $U if already installed.
14654 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14655 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14656 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14657 # will be set to the directory where LIBOBJS objects are built.
14658 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14659 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14660done
14661LIBOBJS=$ac_libobjs
db137867 14662
7083c021 14663LTLIBOBJS=$ac_ltlibobjs
db137867 14664
db137867 14665
7083c021
AC
14666 if test -n "$EXEEXT"; then
14667 am__EXEEXT_TRUE=
14668 am__EXEEXT_FALSE='#'
14669else
14670 am__EXEEXT_TRUE='#'
14671 am__EXEEXT_FALSE=
db137867
AC
14672fi
14673
7083c021 14674if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
08c2568c 14675 as_fn_error $? "conditional \"AMDEP\" was never defined.
7083c021 14676Usually this means the macro was only invoked conditionally." "$LINENO" 5
db137867 14677fi
7083c021 14678if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
08c2568c 14679 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7083c021
AC
14680Usually this means the macro was only invoked conditionally." "$LINENO" 5
14681fi
14682if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
08c2568c 14683 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7083c021
AC
14684Usually this means the macro was only invoked conditionally." "$LINENO" 5
14685fi
f171dafb 14686
7083c021 14687if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
08c2568c 14688 as_fn_error $? "conditional \"MINGW\" was never defined.
7083c021 14689Usually this means the macro was only invoked conditionally." "$LINENO" 5
db137867 14690fi
db137867 14691
08c2568c 14692: "${CONFIG_STATUS=./config.status}"
7083c021
AC
14693ac_write_fail=0
14694ac_clean_files_save=$ac_clean_files
14695ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14697$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14698as_write_fail=0
14699cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14700#! $SHELL
14701# Generated by $as_me.
14702# Run this file to recreate the current configuration.
14703# Compiler output produced by configure, useful for debugging
14704# configure, is in config.log if it exists.
db137867 14705
7083c021
AC
14706debug=false
14707ac_cs_recheck=false
14708ac_cs_silent=false
db137867 14709
7083c021
AC
14710SHELL=\${CONFIG_SHELL-$SHELL}
14711export SHELL
14712_ASEOF
14713cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14714## -------------------- ##
14715## M4sh Initialization. ##
14716## -------------------- ##
db137867 14717
7083c021
AC
14718# Be more Bourne compatible
14719DUALCASE=1; export DUALCASE # for MKS sh
14720if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14721 emulate sh
14722 NULLCMD=:
14723 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14724 # is contrary to our usage. Disable this feature.
14725 alias -g '${1+"$@"}'='"$@"'
14726 setopt NO_GLOB_SUBST
14727else
14728 case `(set -o) 2>/dev/null` in #(
14729 *posix*) :
14730 set -o posix ;; #(
14731 *) :
14732 ;;
14733esac
14734fi
db137867 14735
db137867 14736
7083c021
AC
14737as_nl='
14738'
14739export as_nl
14740# Printing a long string crashes Solaris 7 /usr/bin/printf.
14741as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14742as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14743as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14744# Prefer a ksh shell builtin over an external printf program on Solaris,
14745# but without wasting forks for bash or zsh.
14746if test -z "$BASH_VERSION$ZSH_VERSION" \
14747 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14748 as_echo='print -r --'
14749 as_echo_n='print -rn --'
14750elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14751 as_echo='printf %s\n'
14752 as_echo_n='printf %s'
db137867 14753else
7083c021
AC
14754 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14755 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14756 as_echo_n='/usr/ucb/echo -n'
14757 else
14758 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14759 as_echo_n_body='eval
14760 arg=$1;
14761 case $arg in #(
14762 *"$as_nl"*)
14763 expr "X$arg" : "X\\(.*\\)$as_nl";
14764 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14765 esac;
14766 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14767 '
14768 export as_echo_n_body
14769 as_echo_n='sh -c $as_echo_n_body as_echo'
14770 fi
14771 export as_echo_body
14772 as_echo='sh -c $as_echo_body as_echo'
db137867 14773fi
7083c021
AC
14774
14775# The user is always right.
14776if test "${PATH_SEPARATOR+set}" != set; then
14777 PATH_SEPARATOR=:
14778 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14779 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14780 PATH_SEPARATOR=';'
14781 }
db137867
AC
14782fi
14783
14784
7083c021
AC
14785# IFS
14786# We need space, tab and new line, in precisely that order. Quoting is
14787# there to prevent editors from complaining about space-tab.
14788# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14789# splitting by setting IFS to empty value.)
14790IFS=" "" $as_nl"
db137867 14791
7083c021 14792# Find who we are. Look in the path if we contain no directory separator.
08c2568c 14793as_myself=
7083c021
AC
14794case $0 in #((
14795 *[\\/]* ) as_myself=$0 ;;
14796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797for as_dir in $PATH
14798do
14799 IFS=$as_save_IFS
14800 test -z "$as_dir" && as_dir=.
14801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14802 done
14803IFS=$as_save_IFS
db137867 14804
7083c021
AC
14805 ;;
14806esac
14807# We did not find ourselves, most probably we were run as `sh COMMAND'
14808# in which case we are not to be found in the path.
14809if test "x$as_myself" = x; then
14810 as_myself=$0
14811fi
14812if test ! -f "$as_myself"; then
14813 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14814 exit 1
db137867 14815fi
db137867 14816
7083c021
AC
14817# Unset variables that we do not need and which cause bugs (e.g. in
14818# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14819# suppresses any "Segmentation fault" message there. '((' could
14820# trigger a bug in pdksh 5.2.14.
14821for as_var in BASH_ENV ENV MAIL MAILPATH
14822do eval test x\${$as_var+set} = xset \
14823 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14824done
14825PS1='$ '
14826PS2='> '
14827PS4='+ '
db137867 14828
7083c021
AC
14829# NLS nuisances.
14830LC_ALL=C
14831export LC_ALL
14832LANGUAGE=C
14833export LANGUAGE
db137867 14834
7083c021
AC
14835# CDPATH.
14836(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
db137867 14837
db137867 14838
08c2568c
EM
14839# as_fn_error STATUS ERROR [LINENO LOG_FD]
14840# ----------------------------------------
7083c021
AC
14841# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14842# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
08c2568c 14843# script with STATUS, using 1 if that was 0.
7083c021
AC
14844as_fn_error ()
14845{
08c2568c
EM
14846 as_status=$1; test $as_status -eq 0 && as_status=1
14847 if test "$4"; then
14848 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14849 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 14850 fi
08c2568c 14851 $as_echo "$as_me: error: $2" >&2
7083c021
AC
14852 as_fn_exit $as_status
14853} # as_fn_error
db137867 14854
db137867 14855
7083c021
AC
14856# as_fn_set_status STATUS
14857# -----------------------
14858# Set $? to STATUS, without forking.
14859as_fn_set_status ()
14860{
14861 return $1
14862} # as_fn_set_status
14863
14864# as_fn_exit STATUS
14865# -----------------
14866# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14867as_fn_exit ()
14868{
14869 set +e
14870 as_fn_set_status $1
14871 exit $1
14872} # as_fn_exit
14873
14874# as_fn_unset VAR
14875# ---------------
14876# Portably unset VAR.
14877as_fn_unset ()
14878{
14879 { eval $1=; unset $1;}
14880}
14881as_unset=as_fn_unset
14882# as_fn_append VAR VALUE
14883# ----------------------
14884# Append the text in VALUE to the end of the definition contained in VAR. Take
14885# advantage of any shell optimizations that allow amortized linear growth over
14886# repeated appends, instead of the typical quadratic growth present in naive
14887# implementations.
14888if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14889 eval 'as_fn_append ()
14890 {
14891 eval $1+=\$2
14892 }'
14893else
14894 as_fn_append ()
14895 {
14896 eval $1=\$$1\$2
14897 }
14898fi # as_fn_append
14899
14900# as_fn_arith ARG...
14901# ------------------
14902# Perform arithmetic evaluation on the ARGs, and store the result in the
14903# global $as_val. Take advantage of shells that can avoid forks. The arguments
14904# must be portable across $(()) and expr.
14905if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14906 eval 'as_fn_arith ()
14907 {
14908 as_val=$(( $* ))
14909 }'
14910else
14911 as_fn_arith ()
14912 {
14913 as_val=`expr "$@" || test $? -eq 1`
14914 }
14915fi # as_fn_arith
14916
db137867 14917
7083c021
AC
14918if expr a : '\(a\)' >/dev/null 2>&1 &&
14919 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14920 as_expr=expr
14921else
14922 as_expr=false
db137867
AC
14923fi
14924
7083c021
AC
14925if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14926 as_basename=basename
14927else
14928 as_basename=false
14929fi
db137867 14930
7083c021
AC
14931if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14932 as_dirname=dirname
db137867 14933else
7083c021 14934 as_dirname=false
db137867
AC
14935fi
14936
7083c021
AC
14937as_me=`$as_basename -- "$0" ||
14938$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14939 X"$0" : 'X\(//\)$' \| \
14940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14941$as_echo X/"$0" |
14942 sed '/^.*\/\([^/][^/]*\)\/*$/{
14943 s//\1/
14944 q
14945 }
14946 /^X\/\(\/\/\)$/{
14947 s//\1/
14948 q
14949 }
14950 /^X\/\(\/\).*/{
14951 s//\1/
14952 q
14953 }
14954 s/.*/./; q'`
db137867 14955
7083c021
AC
14956# Avoid depending upon Character Ranges.
14957as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14959as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14960as_cr_digits='0123456789'
14961as_cr_alnum=$as_cr_Letters$as_cr_digits
db137867 14962
7083c021
AC
14963ECHO_C= ECHO_N= ECHO_T=
14964case `echo -n x` in #(((((
14965-n*)
14966 case `echo 'xy\c'` in
14967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14968 xy) ECHO_C='\c';;
14969 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14970 ECHO_T=' ';;
14971 esac;;
14972*)
14973 ECHO_N='-n';;
14974esac
14975
14976rm -f conf$$ conf$$.exe conf$$.file
14977if test -d conf$$.dir; then
14978 rm -f conf$$.dir/conf$$.file
db137867 14979else
7083c021
AC
14980 rm -f conf$$.dir
14981 mkdir conf$$.dir 2>/dev/null
db137867 14982fi
7083c021
AC
14983if (echo >conf$$.file) 2>/dev/null; then
14984 if ln -s conf$$.file conf$$ 2>/dev/null; then
14985 as_ln_s='ln -s'
14986 # ... but there are two gotchas:
14987 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14988 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14989 # In both cases, we have to default to `cp -p'.
14990 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14991 as_ln_s='cp -p'
14992 elif ln conf$$.file conf$$ 2>/dev/null; then
14993 as_ln_s=ln
14994 else
14995 as_ln_s='cp -p'
14996 fi
db137867 14997else
7083c021
AC
14998 as_ln_s='cp -p'
14999fi
15000rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15001rmdir conf$$.dir 2>/dev/null
15002
15003
15004# as_fn_mkdir_p
15005# -------------
15006# Create "$as_dir" as a directory, including parents if necessary.
15007as_fn_mkdir_p ()
db137867 15008{
db137867 15009
7083c021
AC
15010 case $as_dir in #(
15011 -*) as_dir=./$as_dir;;
15012 esac
15013 test -d "$as_dir" || eval $as_mkdir_p || {
15014 as_dirs=
15015 while :; do
15016 case $as_dir in #(
15017 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15018 *) as_qdir=$as_dir;;
15019 esac
15020 as_dirs="'$as_qdir' $as_dirs"
15021 as_dir=`$as_dirname -- "$as_dir" ||
15022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15023 X"$as_dir" : 'X\(//\)[^/]' \| \
15024 X"$as_dir" : 'X\(//\)$' \| \
15025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15026$as_echo X"$as_dir" |
15027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15028 s//\1/
15029 q
15030 }
15031 /^X\(\/\/\)[^/].*/{
15032 s//\1/
15033 q
15034 }
15035 /^X\(\/\/\)$/{
15036 s//\1/
15037 q
15038 }
15039 /^X\(\/\).*/{
15040 s//\1/
15041 q
15042 }
15043 s/.*/./; q'`
15044 test -d "$as_dir" && break
15045 done
15046 test -z "$as_dirs" || eval "mkdir $as_dirs"
08c2568c 15047 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
15048
15049
15050} # as_fn_mkdir_p
15051if mkdir -p . 2>/dev/null; then
15052 as_mkdir_p='mkdir -p "$as_dir"'
15053else
15054 test -d ./-p && rmdir ./-p
15055 as_mkdir_p=false
db137867 15056fi
7083c021
AC
15057
15058if test -x / >/dev/null 2>&1; then
15059 as_test_x='test -x'
15060else
15061 if ls -dL / >/dev/null 2>&1; then
15062 as_ls_L_option=L
15063 else
15064 as_ls_L_option=
15065 fi
15066 as_test_x='
15067 eval sh -c '\''
15068 if test -d "$1"; then
15069 test -d "$1/.";
15070 else
15071 case $1 in #(
15072 -*)set "./$1";;
15073 esac;
15074 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15075 ???[sx]*):;;*)false;;esac;fi
15076 '\'' sh
15077 '
db137867 15078fi
7083c021 15079as_executable_p=$as_test_x
db137867 15080
7083c021
AC
15081# Sed expression to map a string onto a valid CPP name.
15082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
db137867 15083
7083c021
AC
15084# Sed expression to map a string onto a valid variable name.
15085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
db137867 15086
db137867 15087
7083c021
AC
15088exec 6>&1
15089## ----------------------------------- ##
15090## Main body of $CONFIG_STATUS script. ##
15091## ----------------------------------- ##
15092_ASEOF
15093test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
db137867 15094
7083c021
AC
15095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15096# Save the log message, to keep $0 and so on meaningful, and to
15097# report actual input values of CONFIG_FILES etc. instead of their
15098# values after options handling.
15099ac_log="
15100This file was extended by libratbox $as_me devel, which was
08c2568c 15101generated by GNU Autoconf 2.68. Invocation command line was
db137867 15102
7083c021
AC
15103 CONFIG_FILES = $CONFIG_FILES
15104 CONFIG_HEADERS = $CONFIG_HEADERS
15105 CONFIG_LINKS = $CONFIG_LINKS
15106 CONFIG_COMMANDS = $CONFIG_COMMANDS
15107 $ $0 $@
15108
15109on `(hostname || uname -n) 2>/dev/null | sed 1q`
15110"
db137867 15111
db137867 15112_ACEOF
7083c021
AC
15113
15114case $ac_config_files in *"
15115"*) set x $ac_config_files; shift; ac_config_files=$*;;
db137867 15116esac
db137867 15117
7083c021
AC
15118case $ac_config_headers in *"
15119"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15120esac
db137867 15121
db137867 15122
7083c021
AC
15123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15124# Files that config.status was made for.
15125config_files="$ac_config_files"
15126config_headers="$ac_config_headers"
15127config_commands="$ac_config_commands"
db137867 15128
db137867 15129_ACEOF
db137867 15130
7083c021
AC
15131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15132ac_cs_usage="\
15133\`$as_me' instantiates files and other configuration actions
15134from templates according to the current configuration. Unless the files
15135and actions are specified as TAGs, all are instantiated by default.
15136
15137Usage: $0 [OPTION]... [TAG]...
15138
15139 -h, --help print this help, then exit
15140 -V, --version print version number and configuration settings, then exit
96f4052b 15141 --config print configuration, then exit
7083c021
AC
15142 -q, --quiet, --silent
15143 do not print progress messages
15144 -d, --debug don't remove temporary files
15145 --recheck update $as_me by reconfiguring in the same conditions
15146 --file=FILE[:TEMPLATE]
15147 instantiate the configuration file FILE
15148 --header=FILE[:TEMPLATE]
15149 instantiate the configuration header FILE
15150
15151Configuration files:
15152$config_files
15153
15154Configuration headers:
15155$config_headers
15156
15157Configuration commands:
15158$config_commands
15159
15160Report bugs to the package provider."
15161
db137867 15162_ACEOF
7083c021 15163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
96f4052b 15164ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7083c021
AC
15165ac_cs_version="\\
15166libratbox config.status devel
08c2568c 15167configured by $0, generated by GNU Autoconf 2.68,
96f4052b 15168 with options \\"\$ac_cs_config\\"
db137867 15169
08c2568c 15170Copyright (C) 2010 Free Software Foundation, Inc.
7083c021
AC
15171This config.status script is free software; the Free Software Foundation
15172gives unlimited permission to copy, distribute and modify it."
db137867 15173
7083c021
AC
15174ac_pwd='$ac_pwd'
15175srcdir='$srcdir'
15176INSTALL='$INSTALL'
15177MKDIR_P='$MKDIR_P'
15178AWK='$AWK'
15179test -n "\$AWK" || AWK=awk
15180_ACEOF
db137867 15181
7083c021
AC
15182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15183# The default lists apply if the user does not specify any file.
15184ac_need_defaults=:
15185while test $# != 0
15186do
15187 case $1 in
08c2568c 15188 --*=?*)
7083c021
AC
15189 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15190 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15191 ac_shift=:
15192 ;;
08c2568c
EM
15193 --*=)
15194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15195 ac_optarg=
15196 ac_shift=:
15197 ;;
7083c021
AC
15198 *)
15199 ac_option=$1
15200 ac_optarg=$2
15201 ac_shift=shift
15202 ;;
15203 esac
15204
15205 case $ac_option in
15206 # Handling of the options.
15207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15208 ac_cs_recheck=: ;;
15209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15210 $as_echo "$ac_cs_version"; exit ;;
96f4052b
AC
15211 --config | --confi | --conf | --con | --co | --c )
15212 $as_echo "$ac_cs_config"; exit ;;
7083c021
AC
15213 --debug | --debu | --deb | --de | --d | -d )
15214 debug=: ;;
15215 --file | --fil | --fi | --f )
15216 $ac_shift
15217 case $ac_optarg in
15218 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
08c2568c 15219 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
15220 esac
15221 as_fn_append CONFIG_FILES " '$ac_optarg'"
15222 ac_need_defaults=false;;
15223 --header | --heade | --head | --hea )
15224 $ac_shift
15225 case $ac_optarg in
15226 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15227 esac
15228 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15229 ac_need_defaults=false;;
15230 --he | --h)
15231 # Conflict between --help and --header
08c2568c 15232 as_fn_error $? "ambiguous option: \`$1'
7083c021
AC
15233Try \`$0 --help' for more information.";;
15234 --help | --hel | -h )
15235 $as_echo "$ac_cs_usage"; exit ;;
15236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15238 ac_cs_silent=: ;;
15239
15240 # This is an error.
08c2568c 15241 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021
AC
15242Try \`$0 --help' for more information." ;;
15243
15244 *) as_fn_append ac_config_targets " $1"
15245 ac_need_defaults=false ;;
15246
15247 esac
15248 shift
15249done
db137867 15250
7083c021 15251ac_configure_extra_args=
c2ac22cc 15252
7083c021
AC
15253if $ac_cs_silent; then
15254 exec 6>/dev/null
15255 ac_configure_extra_args="$ac_configure_extra_args --silent"
15256fi
c2ac22cc 15257
7083c021
AC
15258_ACEOF
15259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15260if \$ac_cs_recheck; then
15261 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15262 shift
15263 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15264 CONFIG_SHELL='$SHELL'
15265 export CONFIG_SHELL
15266 exec "\$@"
c2ac22cc
VY
15267fi
15268
7083c021
AC
15269_ACEOF
15270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15271exec 5>>config.log
15272{
15273 echo
15274 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15275## Running $as_me. ##
15276_ASBOX
15277 $as_echo "$ac_log"
15278} >&5
c2ac22cc 15279
7083c021
AC
15280_ACEOF
15281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15282#
15283# INIT-COMMANDS
15284#
15285AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
c2ac22cc
VY
15286
15287
7083c021
AC
15288# The HP-UX ksh and POSIX shell print the target directory to stdout
15289# if CDPATH is set.
15290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15291
15292sed_quote_subst='$sed_quote_subst'
15293double_quote_subst='$double_quote_subst'
15294delay_variable_subst='$delay_variable_subst'
b6d0720c
AC
15295enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15296enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15297macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15298macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15299pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15300enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15301SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15302ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15303host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15304host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15305host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15306build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15307build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15308build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15309SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15310Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15311GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15312EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15313FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15314LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15315NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15316LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15317max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15318ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15319exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15320lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15321lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15322lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15323lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15324lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15325reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15326reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15327OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15328deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15329file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15330file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15331want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15332DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15333sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15334AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15335AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15336archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15337STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15338RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15339old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15340old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15341old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15342lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15343CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15344CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15345compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15346GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15347lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15348lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15349lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15350lt_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"`'
15351nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15352lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15353objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15354MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15355lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15356lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15357lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15358lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15359lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15360need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15361MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15362DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15363NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15364LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15365OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15366OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15367libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15368shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15369extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15370archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15371enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15372export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15373whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15374compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15375old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15376old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15377archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15378archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15379module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15380module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15381with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15382allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15383no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15384hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15385hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15386hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15387hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15388hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15389hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15390hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15391hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15392inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15393link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15394always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15395export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15396exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15397include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15398prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15399postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15400file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15401variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15402need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15403need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15404version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15405runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15406shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15407shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15408libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15409library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15410soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15411install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15412postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15413postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15414finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15415finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15416hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15417sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15418sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15419hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15420enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15421enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15422enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15423old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15424striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
7083c021
AC
15425
15426LTCC='$LTCC'
15427LTCFLAGS='$LTCFLAGS'
15428compiler='$compiler_DEFAULT'
15429
b6d0720c
AC
15430# A function that is used when there is no print builtin or printf.
15431func_fallback_echo ()
15432{
15433 eval 'cat <<_LTECHO_EOF
15434\$1
15435_LTECHO_EOF'
15436}
15437
7083c021 15438# Quote evaled strings.
b6d0720c
AC
15439for var in SHELL \
15440ECHO \
15441SED \
7083c021
AC
15442GREP \
15443EGREP \
15444FGREP \
15445LD \
15446NM \
15447LN_S \
15448lt_SP2NL \
15449lt_NL2SP \
15450reload_flag \
15451OBJDUMP \
15452deplibs_check_method \
15453file_magic_cmd \
b6d0720c
AC
15454file_magic_glob \
15455want_nocaseglob \
15456DLLTOOL \
15457sharedlib_from_linklib_cmd \
7083c021
AC
15458AR \
15459AR_FLAGS \
b6d0720c 15460archiver_list_spec \
7083c021
AC
15461STRIP \
15462RANLIB \
15463CC \
15464CFLAGS \
15465compiler \
15466lt_cv_sys_global_symbol_pipe \
15467lt_cv_sys_global_symbol_to_cdecl \
15468lt_cv_sys_global_symbol_to_c_name_address \
15469lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
b6d0720c 15470nm_file_list_spec \
7083c021 15471lt_prog_compiler_no_builtin_flag \
7083c021 15472lt_prog_compiler_pic \
b6d0720c 15473lt_prog_compiler_wl \
7083c021
AC
15474lt_prog_compiler_static \
15475lt_cv_prog_compiler_c_o \
15476need_locks \
b6d0720c 15477MANIFEST_TOOL \
7083c021
AC
15478DSYMUTIL \
15479NMEDIT \
15480LIPO \
15481OTOOL \
15482OTOOL64 \
15483shrext_cmds \
15484export_dynamic_flag_spec \
15485whole_archive_flag_spec \
15486compiler_needs_object \
15487with_gnu_ld \
15488allow_undefined_flag \
15489no_undefined_flag \
15490hardcode_libdir_flag_spec \
15491hardcode_libdir_flag_spec_ld \
15492hardcode_libdir_separator \
7083c021
AC
15493exclude_expsyms \
15494include_expsyms \
15495file_list_spec \
15496variables_saved_for_relink \
15497libname_spec \
15498library_names_spec \
15499soname_spec \
b6d0720c 15500install_override_mode \
7083c021
AC
15501finish_eval \
15502old_striplib \
15503striplib; do
b6d0720c 15504 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
7083c021 15505 *[\\\\\\\`\\"\\\$]*)
b6d0720c 15506 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
7083c021
AC
15507 ;;
15508 *)
15509 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15510 ;;
15511 esac
c2ac22cc 15512done
7083c021
AC
15513
15514# Double-quote double-evaled strings.
15515for var in reload_cmds \
15516old_postinstall_cmds \
15517old_postuninstall_cmds \
15518old_archive_cmds \
15519extract_expsyms_cmds \
15520old_archive_from_new_cmds \
15521old_archive_from_expsyms_cmds \
15522archive_cmds \
15523archive_expsym_cmds \
15524module_cmds \
15525module_expsym_cmds \
15526export_symbols_cmds \
15527prelink_cmds \
b6d0720c 15528postlink_cmds \
7083c021
AC
15529postinstall_cmds \
15530postuninstall_cmds \
15531finish_cmds \
15532sys_lib_search_path_spec \
15533sys_lib_dlsearch_path_spec; do
b6d0720c 15534 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
7083c021 15535 *[\\\\\\\`\\"\\\$]*)
b6d0720c 15536 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
7083c021
AC
15537 ;;
15538 *)
15539 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15540 ;;
15541 esac
c2ac22cc 15542done
c2ac22cc 15543
7083c021
AC
15544ac_aux_dir='$ac_aux_dir'
15545xsi_shell='$xsi_shell'
15546lt_shell_append='$lt_shell_append'
c2ac22cc 15547
7083c021
AC
15548# See if we are running on zsh, and set the options which allow our
15549# commands through without removal of \ escapes INIT.
15550if test -n "\${ZSH_VERSION+set}" ; then
15551 setopt NO_GLOB_SUBST
c2ac22cc 15552fi
c2ac22cc 15553
c2ac22cc 15554
7083c021
AC
15555 PACKAGE='$PACKAGE'
15556 VERSION='$VERSION'
15557 TIMESTAMP='$TIMESTAMP'
15558 RM='$RM'
15559 ofile='$ofile'
c2ac22cc 15560
c2ac22cc 15561
c2ac22cc 15562
c2ac22cc 15563
7083c021
AC
15564 if test x$ac_cv_header_stdc = xyes; then
15565 rb_header_stdc=yes
15566 fi
15567 if test x$ac_cv_header_stdlib_h = xyes; then
15568 rb_header_stdlib_h=yes
15569 fi
15570 if test x$ac_cv_header_string_h = xyes; then
15571 rb_header_string_h=yes
15572 fi
15573 if test x$ac_cv_header_memory_h = xyes; then
15574 rb_header_memory_h=yes
15575 fi
15576 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
15577 rb_alloca_h="$ac_cv_working_alloca_h"
15578 else
15579 rb_alloc_h="$ac_cv_header_alloca_h"
15580 fi
15581 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
15582 rb_sockaddr_sa_len=yes
15583 fi
15584 if test x$ac_cv_header_sys_socket_h = xyes; then
15585 rb_sys_socket_h=yes
15586 fi
15587 if test x$ac_cv_header_sys_types_h = xyes; then
15588 rb_sys_types_h=yes
15589 fi
15590 if test x$ac_cv_header_sys_stat_h = xyes; then
15591 rb_sys_stat_h=yes
15592 fi
15593 if test x$ac_cv_header_sys_time_h = xyes; then
15594 rb_sys_time_h=yes
15595 fi
15596 if test x$ac_cv_header_time = xyes; then
15597 rb_time_h=yes
15598 fi
c2ac22cc 15599
7083c021
AC
15600 if test x$ac_cv_header_stdint_h = xyes; then
15601 rb_stdint_h=yes
15602 fi
15603 if test x$ac_cv_header_inttypes_h = xyes; then
15604 rb_inttypes_h=yes
15605 fi
15606 if test x$ac_cv_header_netinet_in_h = xyes; then
15607 rb_netinet_in_h=yes
15608 fi
c2ac22cc 15609
7083c021
AC
15610 if test x$ac_cv_header_crypt_h = xyes; then
15611 rb_crypt_h=yes
15612 fi
15613 if test x$ac_cv_header_errno_h = xyes; then
15614 rb_errno_h=yes
15615 fi
15616 if test x$ac_cv_header_unistd_h = xyes; then
15617 rb_unistd_h=yes
15618 fi
15619 if test x$ac_cv_header_windows_h = xyes; then
15620 rb_windows_h=yes
15621 fi
15622 if test x$ac_cv_header_winsock2_h = xyes; then
15623 rb_winsock2_h=yes
15624 fi
c2ac22cc 15625
7083c021 15626 rb_socklen_t=$rb_socklen_t
c2ac22cc 15627
7083c021
AC
15628 if test "x$rb_have_sockaddr_storage" = "xyes"; then
15629 rb_sockaddr_storage="yes"
15630 else
15631 rb_sockaddr_storage="no"
15632 fi
c2ac22cc 15633
7083c021 15634 rb_have_ipv6="$have_v6"
c2ac22cc 15635
7083c021
AC
15636 rb_mv="$MV"
15637 rb_rm="$RM"
c2ac22cc 15638
c2ac22cc 15639
c2ac22cc 15640
db137867 15641
db137867 15642
c2ac22cc 15643
c2ac22cc
VY
15644_ACEOF
15645
7083c021 15646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
db137867 15647
7083c021
AC
15648# Handling of arguments.
15649for ac_config_target in $ac_config_targets
15650do
15651 case $ac_config_target in
15652 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
15653 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15654 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15655 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
15656 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15657 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15658 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
c2ac22cc 15659
08c2568c 15660 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7083c021
AC
15661 esac
15662done
c2ac22cc 15663
db137867 15664
7083c021
AC
15665# If the user did not use the arguments to specify the items to instantiate,
15666# then the envvar interface is used. Set only those that are not.
15667# We use the long form for the default assignment because of an extremely
15668# bizarre bug on SunOS 4.1.3.
15669if $ac_need_defaults; then
15670 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15671 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15672 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15673fi
db137867 15674
7083c021
AC
15675# Have a temporary directory for convenience. Make it in the build tree
15676# simply because there is no reason against having it here, and in addition,
15677# creating and moving files from /tmp can sometimes cause problems.
15678# Hook for its removal unless debugging.
15679# Note that there is a small window in which the directory will not be cleaned:
15680# after its creation but before its name has been assigned to `$tmp'.
15681$debug ||
15682{
08c2568c 15683 tmp= ac_tmp=
7083c021 15684 trap 'exit_status=$?
08c2568c
EM
15685 : "${ac_tmp:=$tmp}"
15686 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7083c021
AC
15687' 0
15688 trap 'as_fn_exit 1' 1 2 13 15
15689}
15690# Create a (secure) tmp directory for tmp files.
db137867 15691
7083c021
AC
15692{
15693 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
08c2568c 15694 test -d "$tmp"
7083c021
AC
15695} ||
15696{
15697 tmp=./conf$$-$RANDOM
15698 (umask 077 && mkdir "$tmp")
08c2568c
EM
15699} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15700ac_tmp=$tmp
db137867 15701
7083c021
AC
15702# Set up the scripts for CONFIG_FILES section.
15703# No need to generate them if there are no CONFIG_FILES.
15704# This happens for instance with `./config.status config.h'.
15705if test -n "$CONFIG_FILES"; then
db137867
AC
15706
15707
7083c021
AC
15708ac_cr=`echo X | tr X '\015'`
15709# On cygwin, bash can eat \r inside `` if the user requested igncr.
15710# But we know of no other shell where ac_cr would be empty at this
15711# point, so we can use a bashism as a fallback.
15712if test "x$ac_cr" = x; then
15713 eval ac_cr=\$\'\\r\'
15714fi
15715ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15716if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
08c2568c 15717 ac_cs_awk_cr='\\r'
db137867 15718else
7083c021 15719 ac_cs_awk_cr=$ac_cr
db137867
AC
15720fi
15721
08c2568c 15722echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
db137867
AC
15723_ACEOF
15724
db137867 15725
7083c021
AC
15726{
15727 echo "cat >conf$$subs.awk <<_ACEOF" &&
15728 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15729 echo "_ACEOF"
15730} >conf$$subs.sh ||
08c2568c
EM
15731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15732ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7083c021
AC
15733ac_delim='%!_!# '
15734for ac_last_try in false false false false false :; do
15735 . ./conf$$subs.sh ||
08c2568c 15736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
db137867 15737
7083c021
AC
15738 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15739 if test $ac_delim_n = $ac_delim_num; then
15740 break
15741 elif $ac_last_try; then
08c2568c 15742 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
15743 else
15744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15745 fi
15746done
15747rm -f conf$$subs.sh
db137867 15748
7083c021 15749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
08c2568c 15750cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
db137867 15751_ACEOF
7083c021
AC
15752sed -n '
15753h
15754s/^/S["/; s/!.*/"]=/
15755p
15756g
15757s/^[^!]*!//
15758:repl
15759t repl
15760s/'"$ac_delim"'$//
15761t delim
15762:nl
15763h
96f4052b 15764s/\(.\{148\}\)..*/\1/
7083c021
AC
15765t more1
15766s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15767p
15768n
15769b repl
15770:more1
15771s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15772p
15773g
15774s/.\{148\}//
15775t nl
15776:delim
15777h
96f4052b 15778s/\(.\{148\}\)..*/\1/
7083c021
AC
15779t more2
15780s/["\\]/\\&/g; s/^/"/; s/$/"/
15781p
15782b
15783:more2
15784s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15785p
15786g
15787s/.\{148\}//
15788t delim
15789' <conf$$subs.awk | sed '
15790/^[^""]/{
15791 N
15792 s/\n//
15793}
15794' >>$CONFIG_STATUS || ac_write_fail=1
15795rm -f conf$$subs.awk
15796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15797_ACAWK
08c2568c 15798cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
15799 for (key in S) S_is_set[key] = 1
15800 FS = "\a"
db137867 15801
7083c021
AC
15802}
15803{
15804 line = $ 0
15805 nfields = split(line, field, "@")
15806 substed = 0
15807 len = length(field[1])
15808 for (i = 2; i < nfields; i++) {
15809 key = field[i]
15810 keylen = length(key)
15811 if (S_is_set[key]) {
15812 value = S[key]
15813 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15814 len += length(value) + length(field[++i])
15815 substed = 1
15816 } else
15817 len += 1 + keylen
15818 }
db137867 15819
7083c021
AC
15820 print line
15821}
15822
15823_ACAWK
15824_ACEOF
15825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15826if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15827 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
db137867 15828else
7083c021 15829 cat
08c2568c
EM
15830fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15831 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7083c021 15832_ACEOF
db137867 15833
08c2568c
EM
15834# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15835# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7083c021
AC
15836# trailing colons and then remove the whole line if VPATH becomes empty
15837# (actually we leave an empty line to preserve line numbers).
15838if test "x$srcdir" = x.; then
08c2568c
EM
15839 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15840h
15841s///
15842s/^/:/
15843s/[ ]*$/:/
15844s/:\$(srcdir):/:/g
15845s/:\${srcdir}:/:/g
15846s/:@srcdir@:/:/g
15847s/^:*//
7083c021 15848s/:*$//
08c2568c
EM
15849x
15850s/\(=[ ]*\).*/\1/
15851G
15852s/\n//
7083c021
AC
15853s/^[^=]*=[ ]*$//
15854}'
15855fi
db137867 15856
7083c021
AC
15857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15858fi # test -n "$CONFIG_FILES"
db137867 15859
7083c021
AC
15860# Set up the scripts for CONFIG_HEADERS section.
15861# No need to generate them if there are no CONFIG_HEADERS.
15862# This happens for instance with `./config.status Makefile'.
15863if test -n "$CONFIG_HEADERS"; then
08c2568c 15864cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021 15865BEGIN {
db137867
AC
15866_ACEOF
15867
7083c021
AC
15868# Transform confdefs.h into an awk script `defines.awk', embedded as
15869# here-document in config.status, that substitutes the proper values into
15870# config.h.in to produce config.h.
db137867 15871
7083c021
AC
15872# Create a delimiter string that does not exist in confdefs.h, to ease
15873# handling of long lines.
15874ac_delim='%!_!# '
15875for ac_last_try in false false :; do
08c2568c
EM
15876 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15877 if test -z "$ac_tt"; then
7083c021
AC
15878 break
15879 elif $ac_last_try; then
08c2568c 15880 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
15881 else
15882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15883 fi
15884done
db137867 15885
7083c021
AC
15886# For the awk script, D is an array of macro values keyed by name,
15887# likewise P contains macro parameters if any. Preserve backslash
15888# newline sequences.
db137867 15889
7083c021
AC
15890ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15891sed -n '
15892s/.\{148\}/&'"$ac_delim"'/g
15893t rset
15894:rset
15895s/^[ ]*#[ ]*define[ ][ ]*/ /
15896t def
15897d
15898:def
15899s/\\$//
15900t bsnl
15901s/["\\]/\\&/g
15902s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15903D["\1"]=" \3"/p
15904s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15905d
15906:bsnl
15907s/["\\]/\\&/g
15908s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15909D["\1"]=" \3\\\\\\n"\\/p
15910t cont
15911s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15912t cont
15913d
15914:cont
15915n
15916s/.\{148\}/&'"$ac_delim"'/g
15917t clear
15918:clear
15919s/\\$//
15920t bsnlc
15921s/["\\]/\\&/g; s/^/"/; s/$/"/p
15922d
15923:bsnlc
15924s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15925b cont
15926' <confdefs.h | sed '
15927s/'"$ac_delim"'/"\\\
15928"/g' >>$CONFIG_STATUS || ac_write_fail=1
db137867 15929
7083c021
AC
15930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15931 for (key in D) D_is_set[key] = 1
15932 FS = "\a"
15933}
15934/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15935 line = \$ 0
15936 split(line, arg, " ")
15937 if (arg[1] == "#") {
15938 defundef = arg[2]
15939 mac1 = arg[3]
15940 } else {
15941 defundef = substr(arg[1], 2)
15942 mac1 = arg[2]
15943 }
15944 split(mac1, mac2, "(") #)
15945 macro = mac2[1]
15946 prefix = substr(line, 1, index(line, defundef) - 1)
15947 if (D_is_set[macro]) {
15948 # Preserve the white space surrounding the "#".
15949 print prefix "define", macro P[macro] D[macro]
15950 next
15951 } else {
15952 # Replace #undef with comments. This is necessary, for example,
15953 # in the case of _POSIX_SOURCE, which is predefined and required
15954 # on some systems where configure will not decide to define it.
15955 if (defundef == "undef") {
15956 print "/*", prefix defundef, macro, "*/"
15957 next
15958 }
15959 }
15960}
15961{ print }
15962_ACAWK
db137867 15963_ACEOF
7083c021 15964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
08c2568c 15965 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021 15966fi # test -n "$CONFIG_HEADERS"
db137867
AC
15967
15968
7083c021
AC
15969eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15970shift
15971for ac_tag
15972do
15973 case $ac_tag in
15974 :[FHLC]) ac_mode=$ac_tag; continue;;
15975 esac
15976 case $ac_mode$ac_tag in
15977 :[FHL]*:*);;
08c2568c 15978 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7083c021
AC
15979 :[FH]-) ac_tag=-:-;;
15980 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15981 esac
15982 ac_save_IFS=$IFS
15983 IFS=:
15984 set x $ac_tag
15985 IFS=$ac_save_IFS
15986 shift
15987 ac_file=$1
15988 shift
db137867 15989
7083c021
AC
15990 case $ac_mode in
15991 :L) ac_source=$1;;
15992 :[FH])
15993 ac_file_inputs=
15994 for ac_f
15995 do
15996 case $ac_f in
08c2568c 15997 -) ac_f="$ac_tmp/stdin";;
7083c021
AC
15998 *) # Look for the file first in the build tree, then in the source tree
15999 # (if the path is not absolute). The absolute path cannot be DOS-style,
16000 # because $ac_f cannot contain `:'.
16001 test -f "$ac_f" ||
16002 case $ac_f in
16003 [\\/$]*) false;;
16004 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16005 esac ||
08c2568c 16006 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7083c021
AC
16007 esac
16008 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16009 as_fn_append ac_file_inputs " '$ac_f'"
16010 done
db137867 16011
7083c021
AC
16012 # Let's still pretend it is `configure' which instantiates (i.e., don't
16013 # use $as_me), people would be surprised to read:
16014 # /* config.h. Generated by config.status. */
16015 configure_input='Generated from '`
16016 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16017 `' by configure.'
16018 if test x"$ac_file" != x-; then
16019 configure_input="$ac_file. $configure_input"
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16021$as_echo "$as_me: creating $ac_file" >&6;}
16022 fi
16023 # Neutralize special characters interpreted by sed in replacement strings.
16024 case $configure_input in #(
16025 *\&* | *\|* | *\\* )
16026 ac_sed_conf_input=`$as_echo "$configure_input" |
16027 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16028 *) ac_sed_conf_input=$configure_input;;
16029 esac
db137867 16030
7083c021 16031 case $ac_tag in
08c2568c
EM
16032 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7083c021
AC
16034 esac
16035 ;;
16036 esac
db137867 16037
7083c021
AC
16038 ac_dir=`$as_dirname -- "$ac_file" ||
16039$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040 X"$ac_file" : 'X\(//\)[^/]' \| \
16041 X"$ac_file" : 'X\(//\)$' \| \
16042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16043$as_echo X"$ac_file" |
16044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16045 s//\1/
16046 q
16047 }
16048 /^X\(\/\/\)[^/].*/{
16049 s//\1/
16050 q
16051 }
16052 /^X\(\/\/\)$/{
16053 s//\1/
16054 q
16055 }
16056 /^X\(\/\).*/{
16057 s//\1/
16058 q
16059 }
16060 s/.*/./; q'`
16061 as_dir="$ac_dir"; as_fn_mkdir_p
16062 ac_builddir=.
db137867 16063
7083c021
AC
16064case "$ac_dir" in
16065.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16066*)
16067 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16068 # A ".." for each directory in $ac_dir_suffix.
16069 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16070 case $ac_top_builddir_sub in
16071 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16072 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16073 esac ;;
16074esac
16075ac_abs_top_builddir=$ac_pwd
16076ac_abs_builddir=$ac_pwd$ac_dir_suffix
16077# for backward compatibility:
16078ac_top_builddir=$ac_top_build_prefix
db137867 16079
7083c021
AC
16080case $srcdir in
16081 .) # We are building in place.
16082 ac_srcdir=.
16083 ac_top_srcdir=$ac_top_builddir_sub
16084 ac_abs_top_srcdir=$ac_pwd ;;
16085 [\\/]* | ?:[\\/]* ) # Absolute name.
16086 ac_srcdir=$srcdir$ac_dir_suffix;
16087 ac_top_srcdir=$srcdir
16088 ac_abs_top_srcdir=$srcdir ;;
16089 *) # Relative name.
16090 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16091 ac_top_srcdir=$ac_top_build_prefix$srcdir
16092 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16093esac
16094ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
db137867 16095
c2ac22cc 16096
7083c021
AC
16097 case $ac_mode in
16098 :F)
16099 #
16100 # CONFIG_FILE
16101 #
db137867 16102
7083c021
AC
16103 case $INSTALL in
16104 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16105 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16106 esac
16107 ac_MKDIR_P=$MKDIR_P
16108 case $MKDIR_P in
16109 [\\/$]* | ?:[\\/]* ) ;;
16110 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16111 esac
db137867
AC
16112_ACEOF
16113
7083c021
AC
16114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16115# If the template does not know about datarootdir, expand it.
16116# FIXME: This hack should be removed a few years after 2.60.
16117ac_datarootdir_hack=; ac_datarootdir_seen=
16118ac_sed_dataroot='
16119/datarootdir/ {
16120 p
16121 q
16122}
16123/@datadir@/p
16124/@docdir@/p
16125/@infodir@/p
16126/@localedir@/p
16127/@mandir@/p'
16128case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16129*datarootdir*) ac_datarootdir_seen=yes;;
16130*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16132$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16133_ACEOF
16134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135 ac_datarootdir_hack='
16136 s&@datadir@&$datadir&g
16137 s&@docdir@&$docdir&g
16138 s&@infodir@&$infodir&g
16139 s&@localedir@&$localedir&g
16140 s&@mandir@&$mandir&g
16141 s&\\\${datarootdir}&$datarootdir&g' ;;
16142esac
db137867
AC
16143_ACEOF
16144
7083c021
AC
16145# Neutralize VPATH when `$srcdir' = `.'.
16146# Shell code in configure.ac might set extrasub.
16147# FIXME: do we really want to maintain this feature?
16148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16149ac_sed_extra="$ac_vpsub
16150$extrasub
16151_ACEOF
16152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153:t
16154/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16155s|@configure_input@|$ac_sed_conf_input|;t t
16156s&@top_builddir@&$ac_top_builddir_sub&;t t
16157s&@top_build_prefix@&$ac_top_build_prefix&;t t
16158s&@srcdir@&$ac_srcdir&;t t
16159s&@abs_srcdir@&$ac_abs_srcdir&;t t
16160s&@top_srcdir@&$ac_top_srcdir&;t t
16161s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16162s&@builddir@&$ac_builddir&;t t
16163s&@abs_builddir@&$ac_abs_builddir&;t t
16164s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16165s&@INSTALL@&$ac_INSTALL&;t t
16166s&@MKDIR_P@&$ac_MKDIR_P&;t t
16167$ac_datarootdir_hack
16168"
08c2568c
EM
16169eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16170 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
db137867 16171
7083c021 16172test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
08c2568c
EM
16173 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16174 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16175 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
08c2568c 16177which seems to be undefined. Please make sure it is defined" >&5
7083c021 16178$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
08c2568c 16179which seems to be undefined. Please make sure it is defined" >&2;}
db137867 16180
08c2568c 16181 rm -f "$ac_tmp/stdin"
7083c021 16182 case $ac_file in
08c2568c
EM
16183 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16184 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 16185 esac \
08c2568c 16186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7083c021
AC
16187 ;;
16188 :H)
16189 #
16190 # CONFIG_HEADER
16191 #
16192 if test x"$ac_file" != x-; then
16193 {
16194 $as_echo "/* $configure_input */" \
08c2568c
EM
16195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16196 } >"$ac_tmp/config.h" \
16197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16198 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16200$as_echo "$as_me: $ac_file is unchanged" >&6;}
16201 else
16202 rm -f "$ac_file"
08c2568c
EM
16203 mv "$ac_tmp/config.h" "$ac_file" \
16204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7083c021
AC
16205 fi
16206 else
16207 $as_echo "/* $configure_input */" \
08c2568c
EM
16208 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16209 || as_fn_error $? "could not create -" "$LINENO" 5
7083c021
AC
16210 fi
16211# Compute "$ac_file"'s index in $config_headers.
16212_am_arg="$ac_file"
16213_am_stamp_count=1
16214for _am_header in $config_headers :; do
16215 case $_am_header in
16216 $_am_arg | $_am_arg:* )
16217 break ;;
16218 * )
16219 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16220 esac
16221done
16222echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16223$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16224 X"$_am_arg" : 'X\(//\)[^/]' \| \
16225 X"$_am_arg" : 'X\(//\)$' \| \
16226 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16227$as_echo X"$_am_arg" |
16228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16229 s//\1/
16230 q
16231 }
16232 /^X\(\/\/\)[^/].*/{
16233 s//\1/
16234 q
16235 }
16236 /^X\(\/\/\)$/{
16237 s//\1/
16238 q
16239 }
16240 /^X\(\/\).*/{
16241 s//\1/
16242 q
16243 }
16244 s/.*/./; q'`/stamp-h$_am_stamp_count
16245 ;;
db137867 16246
7083c021
AC
16247 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16248$as_echo "$as_me: executing $ac_file commands" >&6;}
16249 ;;
16250 esac
db137867 16251
db137867 16252
7083c021
AC
16253 case $ac_file$ac_mode in
16254 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16255 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16256 # are listed without --file. Let's play safe and only enable the eval
16257 # if we detect the quoting.
16258 case $CONFIG_FILES in
16259 *\'*) eval set x "$CONFIG_FILES" ;;
16260 *) set x $CONFIG_FILES ;;
16261 esac
16262 shift
16263 for mf
16264 do
16265 # Strip MF so we end up with the name of the file.
16266 mf=`echo "$mf" | sed -e 's/:.*$//'`
16267 # Check whether this is an Automake generated Makefile or not.
16268 # We used to match only the files named `Makefile.in', but
16269 # some people rename them; so instead we look at the file content.
16270 # Grep'ing the first line is not enough: some people post-process
16271 # each Makefile.in and add a new line on top of each file to say so.
16272 # Grep'ing the whole file is not good either: AIX grep has a line
16273 # limit of 2048, but all sed's we know have understand at least 4000.
16274 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16275 dirpart=`$as_dirname -- "$mf" ||
16276$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16277 X"$mf" : 'X\(//\)[^/]' \| \
16278 X"$mf" : 'X\(//\)$' \| \
16279 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16280$as_echo X"$mf" |
16281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16282 s//\1/
16283 q
16284 }
16285 /^X\(\/\/\)[^/].*/{
16286 s//\1/
16287 q
16288 }
16289 /^X\(\/\/\)$/{
16290 s//\1/
16291 q
16292 }
16293 /^X\(\/\).*/{
16294 s//\1/
16295 q
16296 }
16297 s/.*/./; q'`
16298 else
16299 continue
16300 fi
16301 # Extract the definition of DEPDIR, am__include, and am__quote
16302 # from the Makefile without running `make'.
16303 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16304 test -z "$DEPDIR" && continue
16305 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16306 test -z "am__include" && continue
16307 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16308 # When using ansi2knr, U may be empty or an underscore; expand it
16309 U=`sed -n 's/^U = //p' < "$mf"`
16310 # Find all dependency output files, they are included files with
16311 # $(DEPDIR) in their names. We invoke sed twice because it is the
16312 # simplest approach to changing $(DEPDIR) to its actual value in the
16313 # expansion.
16314 for file in `sed -n "
16315 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16316 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16317 # Make sure the directory exists.
16318 test -f "$dirpart/$file" && continue
16319 fdir=`$as_dirname -- "$file" ||
16320$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16321 X"$file" : 'X\(//\)[^/]' \| \
16322 X"$file" : 'X\(//\)$' \| \
16323 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16324$as_echo X"$file" |
16325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16326 s//\1/
16327 q
16328 }
16329 /^X\(\/\/\)[^/].*/{
16330 s//\1/
16331 q
16332 }
16333 /^X\(\/\/\)$/{
16334 s//\1/
16335 q
16336 }
16337 /^X\(\/\).*/{
16338 s//\1/
16339 q
16340 }
16341 s/.*/./; q'`
16342 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16343 # echo "creating $dirpart/$file"
16344 echo '# dummy' > "$dirpart/$file"
16345 done
16346 done
16347}
16348 ;;
16349 "libtool":C)
db137867 16350
7083c021
AC
16351 # See if we are running on zsh, and set the options which allow our
16352 # commands through without removal of \ escapes.
16353 if test -n "${ZSH_VERSION+set}" ; then
16354 setopt NO_GLOB_SUBST
16355 fi
c2ac22cc 16356
7083c021
AC
16357 cfgfile="${ofile}T"
16358 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16359 $RM "$cfgfile"
db137867 16360
7083c021
AC
16361 cat <<_LT_EOF >> "$cfgfile"
16362#! $SHELL
db137867 16363
7083c021
AC
16364# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16365# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16366# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16367# NOTE: Changes made to this file will be lost: look at ltmain.sh.
db137867 16368#
7083c021 16369# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
b6d0720c
AC
16370# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16371# Inc.
7083c021 16372# Written by Gordon Matzigkeit, 1996
db137867 16373#
7083c021
AC
16374# This file is part of GNU Libtool.
16375#
16376# GNU Libtool is free software; you can redistribute it and/or
16377# modify it under the terms of the GNU General Public License as
16378# published by the Free Software Foundation; either version 2 of
16379# the License, or (at your option) any later version.
16380#
16381# As a special exception to the GNU General Public License,
16382# if you distribute this file as part of a program or library that
16383# is built using GNU Libtool, you may include this file under the
16384# same distribution terms that you use for the rest of that program.
16385#
16386# GNU Libtool is distributed in the hope that it will be useful,
16387# but WITHOUT ANY WARRANTY; without even the implied warranty of
16388# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16389# GNU General Public License for more details.
16390#
16391# You should have received a copy of the GNU General Public License
16392# along with GNU Libtool; see the file COPYING. If not, a copy
16393# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16394# obtained by writing to the Free Software Foundation, Inc.,
16395# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
db137867 16396
db137867 16397
7083c021
AC
16398# The names of the tagged configurations supported by this script.
16399available_tags=""
db137867 16400
7083c021 16401# ### BEGIN LIBTOOL CONFIG
db137867 16402
7083c021
AC
16403# Whether or not to build static libraries.
16404build_old_libs=$enable_static
db137867 16405
7083c021
AC
16406# Whether or not to build shared libraries.
16407build_libtool_libs=$enable_shared
db137867 16408
7083c021
AC
16409# Which release of libtool.m4 was used?
16410macro_version=$macro_version
16411macro_revision=$macro_revision
db137867 16412
7083c021
AC
16413# What type of objects to build.
16414pic_mode=$pic_mode
db137867 16415
7083c021
AC
16416# Whether or not to optimize for fast installation.
16417fast_install=$enable_fast_install
db137867 16418
b6d0720c
AC
16419# Shell to use when invoking shell scripts.
16420SHELL=$lt_SHELL
16421
16422# An echo program that protects backslashes.
16423ECHO=$lt_ECHO
16424
7083c021
AC
16425# The host system.
16426host_alias=$host_alias
16427host=$host
16428host_os=$host_os
db137867 16429
7083c021
AC
16430# The build system.
16431build_alias=$build_alias
16432build=$build
16433build_os=$build_os
db137867 16434
7083c021
AC
16435# A sed program that does not truncate output.
16436SED=$lt_SED
db137867 16437
7083c021
AC
16438# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16439Xsed="\$SED -e 1s/^X//"
db137867 16440
7083c021
AC
16441# A grep program that handles long lines.
16442GREP=$lt_GREP
db137867 16443
7083c021
AC
16444# An ERE matcher.
16445EGREP=$lt_EGREP
db137867 16446
7083c021
AC
16447# A literal string matcher.
16448FGREP=$lt_FGREP
db137867 16449
7083c021
AC
16450# A BSD- or MS-compatible name lister.
16451NM=$lt_NM
030272f3 16452
7083c021
AC
16453# Whether we need soft or hard links.
16454LN_S=$lt_LN_S
db137867 16455
7083c021
AC
16456# What is the maximum length of a command?
16457max_cmd_len=$max_cmd_len
db137867 16458
7083c021
AC
16459# Object file suffix (normally "o").
16460objext=$ac_objext
db137867 16461
7083c021
AC
16462# Executable file suffix (normally "").
16463exeext=$exeext
db137867 16464
7083c021
AC
16465# whether the shell understands "unset".
16466lt_unset=$lt_unset
db137867 16467
7083c021
AC
16468# turn spaces into newlines.
16469SP2NL=$lt_lt_SP2NL
db137867 16470
7083c021
AC
16471# turn newlines into spaces.
16472NL2SP=$lt_lt_NL2SP
db137867 16473
b6d0720c
AC
16474# convert \$build file names to \$host format.
16475to_host_file_cmd=$lt_cv_to_host_file_cmd
16476
16477# convert \$build files to toolchain format.
16478to_tool_file_cmd=$lt_cv_to_tool_file_cmd
db137867 16479
7083c021
AC
16480# An object symbol dumper.
16481OBJDUMP=$lt_OBJDUMP
db137867 16482
7083c021
AC
16483# Method to check whether dependent libraries are shared objects.
16484deplibs_check_method=$lt_deplibs_check_method
db137867 16485
b6d0720c 16486# Command to use when deplibs_check_method = "file_magic".
7083c021 16487file_magic_cmd=$lt_file_magic_cmd
db137867 16488
b6d0720c
AC
16489# How to find potential files when deplibs_check_method = "file_magic".
16490file_magic_glob=$lt_file_magic_glob
16491
16492# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16493want_nocaseglob=$lt_want_nocaseglob
16494
16495# DLL creation program.
16496DLLTOOL=$lt_DLLTOOL
16497
16498# Command to associate shared and link libraries.
16499sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16500
7083c021
AC
16501# The archiver.
16502AR=$lt_AR
b6d0720c
AC
16503
16504# Flags to create an archive.
7083c021 16505AR_FLAGS=$lt_AR_FLAGS
db137867 16506
b6d0720c
AC
16507# How to feed a file listing to the archiver.
16508archiver_list_spec=$lt_archiver_list_spec
16509
7083c021
AC
16510# A symbol stripping program.
16511STRIP=$lt_STRIP
db137867 16512
7083c021
AC
16513# Commands used to install an old-style archive.
16514RANLIB=$lt_RANLIB
16515old_postinstall_cmds=$lt_old_postinstall_cmds
16516old_postuninstall_cmds=$lt_old_postuninstall_cmds
db137867 16517
b6d0720c
AC
16518# Whether to use a lock for old archive extraction.
16519lock_old_archive_extraction=$lock_old_archive_extraction
16520
7083c021
AC
16521# A C compiler.
16522LTCC=$lt_CC
db137867 16523
7083c021
AC
16524# LTCC compiler flags.
16525LTCFLAGS=$lt_CFLAGS
db137867 16526
7083c021
AC
16527# Take the output of nm and produce a listing of raw symbols and C names.
16528global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
db137867 16529
7083c021
AC
16530# Transform the output of nm in a proper C declaration.
16531global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
db137867 16532
7083c021
AC
16533# Transform the output of nm in a C name address pair.
16534global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
db137867 16535
7083c021
AC
16536# Transform the output of nm in a C name address pair when lib prefix is needed.
16537global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
db137867 16538
b6d0720c
AC
16539# Specify filename containing input files for \$NM.
16540nm_file_list_spec=$lt_nm_file_list_spec
db137867 16541
b6d0720c
AC
16542# The root where to search for dependent libraries,and in which our libraries should be installed.
16543lt_sysroot=$lt_sysroot
db137867 16544
b6d0720c
AC
16545# The name of the directory that contains temporary libtool files.
16546objdir=$objdir
db137867 16547
7083c021
AC
16548# Used to examine libraries when file_magic_cmd begins with "file".
16549MAGIC_CMD=$MAGIC_CMD
16550
16551# Must we lock files when doing compilation?
16552need_locks=$lt_need_locks
db137867 16553
b6d0720c
AC
16554# Manifest tool.
16555MANIFEST_TOOL=$lt_MANIFEST_TOOL
16556
7083c021
AC
16557# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16558DSYMUTIL=$lt_DSYMUTIL
db137867 16559
7083c021
AC
16560# Tool to change global to local symbols on Mac OS X.
16561NMEDIT=$lt_NMEDIT
db137867 16562
7083c021
AC
16563# Tool to manipulate fat objects and archives on Mac OS X.
16564LIPO=$lt_LIPO
db137867 16565
7083c021
AC
16566# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16567OTOOL=$lt_OTOOL
db137867 16568
7083c021
AC
16569# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16570OTOOL64=$lt_OTOOL64
db137867 16571
7083c021
AC
16572# Old archive suffix (normally "a").
16573libext=$libext
db137867 16574
7083c021
AC
16575# Shared library suffix (normally ".so").
16576shrext_cmds=$lt_shrext_cmds
db137867 16577
7083c021
AC
16578# The commands to extract the exported symbol list from a shared archive.
16579extract_expsyms_cmds=$lt_extract_expsyms_cmds
db137867 16580
7083c021
AC
16581# Variables whose values should be saved in libtool wrapper scripts and
16582# restored at link time.
16583variables_saved_for_relink=$lt_variables_saved_for_relink
030272f3 16584
7083c021
AC
16585# Do we need the "lib" prefix for modules?
16586need_lib_prefix=$need_lib_prefix
030272f3 16587
7083c021
AC
16588# Do we need a version for libraries?
16589need_version=$need_version
030272f3 16590
7083c021
AC
16591# Library versioning type.
16592version_type=$version_type
db137867 16593
7083c021
AC
16594# Shared library runtime path variable.
16595runpath_var=$runpath_var
db137867 16596
7083c021
AC
16597# Shared library path variable.
16598shlibpath_var=$shlibpath_var
db137867 16599
7083c021
AC
16600# Is shlibpath searched before the hard-coded library search path?
16601shlibpath_overrides_runpath=$shlibpath_overrides_runpath
db137867 16602
7083c021
AC
16603# Format of library name prefix.
16604libname_spec=$lt_libname_spec
db137867 16605
7083c021
AC
16606# List of archive names. First name is the real one, the rest are links.
16607# The last name is the one that the linker finds with -lNAME
16608library_names_spec=$lt_library_names_spec
db137867 16609
7083c021
AC
16610# The coded name of the library, if different from the real name.
16611soname_spec=$lt_soname_spec
db137867 16612
b6d0720c
AC
16613# Permission mode override for installation of shared libraries.
16614install_override_mode=$lt_install_override_mode
16615
7083c021
AC
16616# Command to use after installation of a shared archive.
16617postinstall_cmds=$lt_postinstall_cmds
db137867 16618
7083c021
AC
16619# Command to use after uninstallation of a shared archive.
16620postuninstall_cmds=$lt_postuninstall_cmds
db137867 16621
7083c021
AC
16622# Commands used to finish a libtool library installation in a directory.
16623finish_cmds=$lt_finish_cmds
db137867 16624
7083c021
AC
16625# As "finish_cmds", except a single script fragment to be evaled but
16626# not shown.
16627finish_eval=$lt_finish_eval
db137867 16628
7083c021
AC
16629# Whether we should hardcode library paths into libraries.
16630hardcode_into_libs=$hardcode_into_libs
db137867 16631
7083c021
AC
16632# Compile-time system search path for libraries.
16633sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
db137867 16634
7083c021
AC
16635# Run-time system search path for libraries.
16636sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
db137867 16637
7083c021
AC
16638# Whether dlopen is supported.
16639dlopen_support=$enable_dlopen
db137867 16640
7083c021
AC
16641# Whether dlopen of programs is supported.
16642dlopen_self=$enable_dlopen_self
db137867 16643
7083c021
AC
16644# Whether dlopen of statically linked programs is supported.
16645dlopen_self_static=$enable_dlopen_self_static
db137867 16646
7083c021
AC
16647# Commands to strip libraries.
16648old_striplib=$lt_old_striplib
16649striplib=$lt_striplib
db137867 16650
db137867 16651
7083c021
AC
16652# The linker used to build libraries.
16653LD=$lt_LD
db137867 16654
b6d0720c
AC
16655# How to create reloadable object files.
16656reload_flag=$lt_reload_flag
16657reload_cmds=$lt_reload_cmds
16658
7083c021
AC
16659# Commands used to build an old-style archive.
16660old_archive_cmds=$lt_old_archive_cmds
db137867 16661
7083c021
AC
16662# A language specific compiler.
16663CC=$lt_compiler
db137867 16664
7083c021
AC
16665# Is the compiler the GNU compiler?
16666with_gcc=$GCC
db137867 16667
7083c021
AC
16668# Compiler flag to turn off builtin functions.
16669no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
db137867 16670
7083c021
AC
16671# Additional compiler flags for building library objects.
16672pic_flag=$lt_lt_prog_compiler_pic
16673
b6d0720c
AC
16674# How to pass a linker flag through the compiler.
16675wl=$lt_lt_prog_compiler_wl
16676
7083c021
AC
16677# Compiler flag to prevent dynamic linking.
16678link_static_flag=$lt_lt_prog_compiler_static
16679
16680# Does compiler simultaneously support -c and -o options?
16681compiler_c_o=$lt_lt_cv_prog_compiler_c_o
a9fb3ed0 16682
7083c021
AC
16683# Whether or not to add -lc for building shared libraries.
16684build_libtool_need_lc=$archive_cmds_need_lc
a9fb3ed0 16685
7083c021
AC
16686# Whether or not to disallow shared libs when runtime libs are static.
16687allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
db137867 16688
7083c021
AC
16689# Compiler flag to allow reflexive dlopens.
16690export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
db137867 16691
7083c021
AC
16692# Compiler flag to generate shared objects directly from archives.
16693whole_archive_flag_spec=$lt_whole_archive_flag_spec
db137867 16694
7083c021
AC
16695# Whether the compiler copes with passing no objects directly.
16696compiler_needs_object=$lt_compiler_needs_object
db137867 16697
7083c021
AC
16698# Create an old-style archive from a shared archive.
16699old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
db137867 16700
7083c021
AC
16701# Create a temporary old-style archive to link instead of a shared archive.
16702old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
db137867 16703
7083c021
AC
16704# Commands used to build a shared archive.
16705archive_cmds=$lt_archive_cmds
16706archive_expsym_cmds=$lt_archive_expsym_cmds
db137867 16707
7083c021
AC
16708# Commands used to build a loadable module if different from building
16709# a shared archive.
16710module_cmds=$lt_module_cmds
16711module_expsym_cmds=$lt_module_expsym_cmds
db137867 16712
7083c021
AC
16713# Whether we are building with GNU ld or not.
16714with_gnu_ld=$lt_with_gnu_ld
db137867 16715
7083c021
AC
16716# Flag that allows shared libraries with undefined symbols to be built.
16717allow_undefined_flag=$lt_allow_undefined_flag
db137867 16718
7083c021
AC
16719# Flag that enforces no undefined symbols.
16720no_undefined_flag=$lt_no_undefined_flag
db137867 16721
7083c021
AC
16722# Flag to hardcode \$libdir into a binary during linking.
16723# This must work even if \$libdir does not exist
16724hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
db137867 16725
7083c021
AC
16726# If ld is used when linking, flag to hardcode \$libdir into a binary
16727# during linking. This must work even if \$libdir does not exist.
16728hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
db137867 16729
7083c021
AC
16730# Whether we need a single "-rpath" flag with a separated argument.
16731hardcode_libdir_separator=$lt_hardcode_libdir_separator
db137867 16732
7083c021
AC
16733# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16734# DIR into the resulting binary.
16735hardcode_direct=$hardcode_direct
db137867 16736
7083c021
AC
16737# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16738# DIR into the resulting binary and the resulting library dependency is
16739# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16740# library is relocated.
16741hardcode_direct_absolute=$hardcode_direct_absolute
db137867 16742
7083c021
AC
16743# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16744# into the resulting binary.
16745hardcode_minus_L=$hardcode_minus_L
db137867 16746
7083c021
AC
16747# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16748# into the resulting binary.
16749hardcode_shlibpath_var=$hardcode_shlibpath_var
db137867 16750
7083c021
AC
16751# Set to "yes" if building a shared library automatically hardcodes DIR
16752# into the library and all subsequent libraries and executables linked
16753# against it.
16754hardcode_automatic=$hardcode_automatic
db137867 16755
7083c021
AC
16756# Set to yes if linker adds runtime paths of dependent libraries
16757# to runtime path list.
16758inherit_rpath=$inherit_rpath
db137867 16759
7083c021
AC
16760# Whether libtool must link a program against all its dependency libraries.
16761link_all_deplibs=$link_all_deplibs
db137867 16762
7083c021
AC
16763# Set to "yes" if exported symbols are required.
16764always_export_symbols=$always_export_symbols
030272f3 16765
7083c021
AC
16766# The commands to list exported symbols.
16767export_symbols_cmds=$lt_export_symbols_cmds
db137867 16768
7083c021
AC
16769# Symbols that should not be listed in the preloaded symbols.
16770exclude_expsyms=$lt_exclude_expsyms
030272f3 16771
7083c021
AC
16772# Symbols that must always be exported.
16773include_expsyms=$lt_include_expsyms
db137867 16774
7083c021
AC
16775# Commands necessary for linking programs (against libraries) with templates.
16776prelink_cmds=$lt_prelink_cmds
db137867 16777
b6d0720c
AC
16778# Commands necessary for finishing linking programs.
16779postlink_cmds=$lt_postlink_cmds
16780
7083c021
AC
16781# Specify filename containing input files.
16782file_list_spec=$lt_file_list_spec
db137867 16783
7083c021
AC
16784# How to hardcode a shared library path into an executable.
16785hardcode_action=$hardcode_action
db137867 16786
7083c021 16787# ### END LIBTOOL CONFIG
030272f3 16788
7083c021
AC
16789_LT_EOF
16790
16791 case $host_os in
16792 aix3*)
16793 cat <<\_LT_EOF >> "$cfgfile"
16794# AIX sometimes has problems with the GCC collect2 program. For some
16795# reason, if we set the COLLECT_NAMES environment variable, the problems
16796# vanish in a puff of smoke.
16797if test "X${COLLECT_NAMES+set}" != Xset; then
16798 COLLECT_NAMES=
16799 export COLLECT_NAMES
16800fi
16801_LT_EOF
16802 ;;
16803 esac
030272f3 16804
030272f3 16805
7083c021 16806ltmain="$ac_aux_dir/ltmain.sh"
030272f3 16807
030272f3 16808
7083c021
AC
16809 # We use sed instead of cat because bash on DJGPP gets confused if
16810 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16811 # text mode, it properly converts lines to CR/LF. This bash problem
16812 # is reportedly fixed, but why not run on old versions too?
b6d0720c
AC
16813 sed '$q' "$ltmain" >> "$cfgfile" \
16814 || (rm -f "$cfgfile"; exit 1)
16815
16816 if test x"$xsi_shell" = xyes; then
16817 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16818func_dirname ()\
16819{\
16820\ case ${1} in\
16821\ */*) func_dirname_result="${1%/*}${2}" ;;\
16822\ * ) func_dirname_result="${3}" ;;\
16823\ esac\
16824} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16825 && mv -f "$cfgfile.tmp" "$cfgfile" \
16826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16827test 0 -eq $? || _lt_function_replace_fail=:
16828
16829
16830 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16831func_basename ()\
16832{\
16833\ func_basename_result="${1##*/}"\
16834} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16835 && mv -f "$cfgfile.tmp" "$cfgfile" \
16836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16837test 0 -eq $? || _lt_function_replace_fail=:
16838
16839
16840 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16841func_dirname_and_basename ()\
16842{\
16843\ case ${1} in\
16844\ */*) func_dirname_result="${1%/*}${2}" ;;\
16845\ * ) func_dirname_result="${3}" ;;\
16846\ esac\
16847\ func_basename_result="${1##*/}"\
16848} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16849 && mv -f "$cfgfile.tmp" "$cfgfile" \
16850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16851test 0 -eq $? || _lt_function_replace_fail=:
16852
16853
16854 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16855func_stripname ()\
16856{\
16857\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16858\ # positional parameters, so assign one to ordinary parameter first.\
16859\ func_stripname_result=${3}\
16860\ func_stripname_result=${func_stripname_result#"${1}"}\
16861\ func_stripname_result=${func_stripname_result%"${2}"}\
16862} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16863 && mv -f "$cfgfile.tmp" "$cfgfile" \
16864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16865test 0 -eq $? || _lt_function_replace_fail=:
16866
16867
16868 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16869func_split_long_opt ()\
16870{\
16871\ func_split_long_opt_name=${1%%=*}\
16872\ func_split_long_opt_arg=${1#*=}\
16873} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16874 && mv -f "$cfgfile.tmp" "$cfgfile" \
16875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16876test 0 -eq $? || _lt_function_replace_fail=:
16877
16878
16879 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16880func_split_short_opt ()\
16881{\
16882\ func_split_short_opt_arg=${1#??}\
16883\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16884} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16885 && mv -f "$cfgfile.tmp" "$cfgfile" \
16886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16887test 0 -eq $? || _lt_function_replace_fail=:
16888
16889
16890 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16891func_lo2o ()\
16892{\
16893\ case ${1} in\
16894\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16895\ *) func_lo2o_result=${1} ;;\
16896\ esac\
16897} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16898 && mv -f "$cfgfile.tmp" "$cfgfile" \
16899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16900test 0 -eq $? || _lt_function_replace_fail=:
16901
16902
16903 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16904func_xform ()\
16905{\
16906 func_xform_result=${1%.*}.lo\
16907} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16908 && mv -f "$cfgfile.tmp" "$cfgfile" \
16909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16910test 0 -eq $? || _lt_function_replace_fail=:
16911
16912
16913 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16914func_arith ()\
16915{\
16916 func_arith_result=$(( $* ))\
16917} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16918 && mv -f "$cfgfile.tmp" "$cfgfile" \
16919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16920test 0 -eq $? || _lt_function_replace_fail=:
16921
16922
16923 sed -e '/^func_len ()$/,/^} # func_len /c\
16924func_len ()\
16925{\
16926 func_len_result=${#1}\
16927} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16928 && mv -f "$cfgfile.tmp" "$cfgfile" \
16929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16930test 0 -eq $? || _lt_function_replace_fail=:
16931
16932fi
16933
16934if test x"$lt_shell_append" = xyes; then
16935 sed -e '/^func_append ()$/,/^} # func_append /c\
16936func_append ()\
16937{\
16938 eval "${1}+=\\${2}"\
16939} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16940 && mv -f "$cfgfile.tmp" "$cfgfile" \
16941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16942test 0 -eq $? || _lt_function_replace_fail=:
16943
16944
16945 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16946func_append_quoted ()\
16947{\
16948\ func_quote_for_eval "${2}"\
16949\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16950} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16951 && mv -f "$cfgfile.tmp" "$cfgfile" \
16952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16953test 0 -eq $? || _lt_function_replace_fail=:
16954
16955
16956 # Save a `func_append' function call where possible by direct use of '+='
16957 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16958 && mv -f "$cfgfile.tmp" "$cfgfile" \
16959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16960 test 0 -eq $? || _lt_function_replace_fail=:
16961else
16962 # Save a `func_append' function call even when '+=' is not available
16963 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16964 && mv -f "$cfgfile.tmp" "$cfgfile" \
16965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16966 test 0 -eq $? || _lt_function_replace_fail=:
16967fi
16968
16969if test x"$_lt_function_replace_fail" = x":"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16971$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16972fi
16973
16974
16975 mv -f "$cfgfile" "$ofile" ||
7083c021
AC
16976 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16977 chmod +x "$ofile"
16978
db137867
AC
16979 ;;
16980 "include/librb-config.h":C)
16981 outfile=include/librb-config.h.tmp
16982 cat > $outfile <<\_______EOF
16983/*
16984 * librb-config.h: libratbox config file. Please modify configure.ac
16985 */
16986
16987#ifndef __LIBRB_CONFIG_H
16988#define __LIBRB_CONFIG_H
16989
16990_______EOF
16991
16992if test "x$rb_have_ipv6" = "xyes"; then
16993 echo "#define RB_IPV6 1" >> $outfile
16994fi
16995
16996if test "x$rb_windows_h" = "xyes"; then
16997 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
16998 echo '#include <windows.h>' >> $outfile
16999 echo '#include <winsock2.h>' >> $outfile
17000 echo '#include <iphlpapi.h>' >> $outfile
17001fi
17002
17003if test "x$rb_alloca_h" = "xyes"; then
17004 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
17005fi
17006
17007if test "x$rb_header_stdc" = "xyes"; then
17008 echo '#include <stdlib.h>' >> $outfile
17009 echo '#include <stddef.h>' >> $outfile
17010elif test "x$rb_header_stdlib" = "xyes"; then
17011 echo '#include <stdlib.h>' >> $outfile
17012fi
17013
17014if test "x$rb_header_string_h" = "xyes"; then
17015 echo '#include <string.h>' >> $outfile
17016fi
17017
17018if test "x$rb_stdint_h" = "xyes"; then
17019 echo '#include <stdint.h>' >> $outfile
17020fi
17021
17022if test "x$rb_inttypes_h" = "xyes"; then
17023 echo '#include <inttypes.h>' >> $outfile
17024fi
17025
17026if test "x$rb_sys_types_h" = "xyes"; then
17027 echo '#include <sys/types.h>' >> $outfile
17028fi
17029if test "x$rb_sys_time_h" = "xyes"; then
17030 echo '#include <sys/time.h>' >> $outfile
17031fi
17032if test "x$rb_sys_stat_h" = "xyes"; then
17033 echo '#include <sys/stat.h>' >> $outfile
17034fi
17035if test "x$rb_time_h" = "xyes"; then
17036 echo '#include <time.h>' >> $outfile
17037fi
17038
17039if test "x$rb_sys_socket_h" = "xyes"; then
17040 echo '#include <sys/socket.h>' >> $outfile
17041fi
17042
17043if test "x$rb_netinet_in_h" = "xyes"; then
17044 echo '#include <netinet/in.h>' >> $outfile
17045fi
17046
17047if test "x$rb_arpa_inet_h" = "xyes"; then
17048 echo '#include <arpa/inet.h>' >> $outfile
17049fi
17050
17051if test "x$rb_unistd_h" = "xyes"; then
17052 echo '#include <unistd.h>' >> $outfile
17053fi
17054
17055if test "x$rb_crypt_h" = "xyes"; then
17056 echo '#include <crypt.h>' >> $outfile
17057fi
17058
17059if test "x$rb_errno_h" = "xyes"; then
17060 echo '#include <errno.h>' >> $outfile
17061fi
17062
a9fb3ed0
VY
17063echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
17064
17065
db137867
AC
17066if test "x$rb_sockaddr_sa_len" = "xyes"; then
17067 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
17068fi
17069
db137867
AC
17070if test "x$rb_sockaddr_storage" = "xyes"; then
17071 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
17072else
3202e249 17073 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
db137867
AC
17074fi
17075
17076cat >> $outfile <<\_______EOF
17077#endif /* __LIBRB_CONFIG_H */
17078_______EOF
17079
17080if cmp -s $outfile include/librb-config.h; then
7083c021 17081 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
030272f3 17082$as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
db137867
AC
17083 ${rb_rm} -f $outfile
17084else
17085 ${rb_mv} $outfile include/librb-config.h
17086fi
17087
17088 ;;
17089
17090 esac
17091done # for ac_tag
17092
17093
7083c021 17094as_fn_exit 0
db137867 17095_ACEOF
db137867
AC
17096ac_clean_files=$ac_clean_files_save
17097
030272f3 17098test $ac_write_fail = 0 ||
08c2568c 17099 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
030272f3 17100
db137867
AC
17101
17102# configure is writing to config.log, and then calls config.status.
17103# config.status does its own redirection, appending to config.log.
17104# Unfortunately, on DOS this fails, as config.log is still kept open
17105# by configure, so config.status won't be able to write to it; its
17106# output is simply discarded. So we exec the FD to /dev/null,
17107# effectively closing config.log, so it can be properly (re)opened and
17108# appended to by config.status. When coming back to configure, we
17109# need to make the FD available again.
17110if test "$no_create" != yes; then
17111 ac_cs_success=:
17112 ac_config_status_args=
17113 test "$silent" = yes &&
17114 ac_config_status_args="$ac_config_status_args --quiet"
17115 exec 5>/dev/null
17116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17117 exec 5>>config.log
17118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17119 # would make configure fail if this is the last instruction.
08c2568c 17120 $ac_cs_success || as_fn_exit 1
db137867 17121fi
030272f3 17122if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7083c021 17123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
030272f3
VY
17124$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17125fi
db137867 17126
db137867
AC
17127
17128
17129echo
17130echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
17131echo
17132
17133echo "Installing into: $prefix"
17134
17135echo "IPv6 support ................... $have_v6"
17136echo "Assert debugging ............... $assert"
17137echo "Block allocator ................ $balloc"
c2ac22cc 17138echo "SSL Type........................ $SSL_TYPE"
db137867
AC
17139echo
17140