]> jfr.im git - irc/rqf/shadowircd.git/blame - libratbox/configure
Add SHA256/SHA512 support to crypt.c and fix up the MD5 component (it seemed to have...
[irc/rqf/shadowircd.git] / libratbox / configure
CommitLineData
b57f37fb
WP
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
12e39525 3# Generated by GNU Autoconf 2.68 for libratbox devel.
b57f37fb 4#
f030cae8 5# $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
b57f37fb 6#
1800d973 7#
b57f37fb 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
12e39525
JH
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
1800d973 11#
042acc47 12#
b57f37fb
WP
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
042acc47
WP
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
b57f37fb
WP
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
042acc47 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b57f37fb
WP
22 emulate sh
23 NULLCMD=:
f030cae8 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b57f37fb
WP
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
042acc47
WP
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
b57f37fb 34esac
b57f37fb
WP
35fi
36
37
f030cae8
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
042acc47
WP
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
f030cae8
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'
b57f37fb 58 else
f030cae8
VY
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
042acc47 62 case $arg in #(
f030cae8
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'
b57f37fb 71 fi
f030cae8
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 }
b57f37fb
WP
83fi
84
b57f37fb
WP
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.)
b57f37fb
WP
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
12e39525 94as_myself=
042acc47 95case $0 in #((
b57f37fb
WP
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=.
042acc47
WP
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
b57f37fb
WP
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
f030cae8 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
042acc47 115 exit 1
b57f37fb
WP
116fi
117
042acc47
WP
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 || :
b57f37fb
WP
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
f030cae8
VY
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
b57f37fb 135
042acc47
WP
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
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
12e39525 220 # Preserve -v and -x to the replacement shell.
042acc47
WP
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
12e39525
JH
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
042acc47
WP
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242$0: including any error possibly output before this
243$0: message. Then install a modern shell, or manually run
244$0: the script under such a shell if you do have one."
245 fi
246 exit 1
247fi
248fi
249fi
250SHELL=${CONFIG_SHELL-/bin/sh}
251export SHELL
252# Unset more variables known to interfere with behavior of common tools.
253CLICOLOR_FORCE= GREP_OPTIONS=
254unset CLICOLOR_FORCE GREP_OPTIONS
255
256## --------------------- ##
257## M4sh Shell Functions. ##
258## --------------------- ##
259# as_fn_unset VAR
260# ---------------
261# Portably unset VAR.
262as_fn_unset ()
263{
264 { eval $1=; unset $1;}
265}
266as_unset=as_fn_unset
267
268# as_fn_set_status STATUS
269# -----------------------
270# Set $? to STATUS, without forking.
271as_fn_set_status ()
272{
273 return $1
274} # as_fn_set_status
275
276# as_fn_exit STATUS
277# -----------------
278# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279as_fn_exit ()
280{
281 set +e
282 as_fn_set_status $1
283 exit $1
284} # as_fn_exit
285
286# as_fn_mkdir_p
287# -------------
288# Create "$as_dir" as a directory, including parents if necessary.
289as_fn_mkdir_p ()
290{
291
292 case $as_dir in #(
293 -*) as_dir=./$as_dir;;
294 esac
295 test -d "$as_dir" || eval $as_mkdir_p || {
296 as_dirs=
297 while :; do
298 case $as_dir in #(
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 *) as_qdir=$as_dir;;
301 esac
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308$as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)[^/].*/{
314 s//\1/
315 q
316 }
317 /^X\(\/\/\)$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\).*/{
322 s//\1/
323 q
324 }
325 s/.*/./; q'`
326 test -d "$as_dir" && break
327 done
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
12e39525 329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
042acc47
WP
330
331
332} # as_fn_mkdir_p
333# as_fn_append VAR VALUE
334# ----------------------
335# Append the text in VALUE to the end of the definition contained in VAR. Take
336# advantage of any shell optimizations that allow amortized linear growth over
337# repeated appends, instead of the typical quadratic growth present in naive
338# implementations.
339if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
341 {
342 eval $1+=\$2
343 }'
344else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349fi # as_fn_append
350
351# as_fn_arith ARG...
352# ------------------
353# Perform arithmetic evaluation on the ARGs, and store the result in the
354# global $as_val. Take advantage of shells that can avoid forks. The arguments
355# must be portable across $(()) and expr.
356if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366fi # as_fn_arith
367
368
12e39525
JH
369# as_fn_error STATUS ERROR [LINENO LOG_FD]
370# ----------------------------------------
042acc47
WP
371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12e39525 373# script with STATUS, using 1 if that was 0.
042acc47
WP
374as_fn_error ()
375{
12e39525
JH
376 as_status=$1; test $as_status -eq 0 && as_status=1
377 if test "$4"; then
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
042acc47 380 fi
12e39525 381 $as_echo "$as_me: error: $2" >&2
042acc47
WP
382 as_fn_exit $as_status
383} # as_fn_error
384
b57f37fb
WP
385if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387 as_expr=expr
388else
389 as_expr=false
390fi
391
392if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 as_basename=basename
394else
395 as_basename=false
396fi
397
042acc47
WP
398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400else
401 as_dirname=false
402fi
b57f37fb 403
b57f37fb
WP
404as_me=`$as_basename -- "$0" ||
405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 408$as_echo X/"$0" |
b57f37fb
WP
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\/\)$/{
414 s//\1/
415 q
416 }
417 /^X\/\(\/\).*/{
418 s//\1/
419 q
420 }
421 s/.*/./; q'`
422
042acc47
WP
423# Avoid depending upon Character Ranges.
424as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427as_cr_digits='0123456789'
428as_cr_alnum=$as_cr_Letters$as_cr_digits
b57f37fb
WP
429
430
042acc47
WP
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b57f37fb 453
042acc47
WP
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
b57f37fb
WP
460}
461
042acc47
WP
462ECHO_C= ECHO_N= ECHO_T=
463case `echo -n x` in #(((((
464-n*)
465 case `echo 'xy\c'` in
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
470 esac;;
471*)
472 ECHO_N='-n';;
473esac
b57f37fb 474
042acc47
WP
475rm -f conf$$ conf$$.exe conf$$.file
476if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
478else
479 rm -f conf$$.dir
480 mkdir conf$$.dir 2>/dev/null
b57f37fb 481fi
042acc47
WP
482if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s='ln -s'
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 as_ln_s='cp -p'
491 elif ln conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s=ln
493 else
494 as_ln_s='cp -p'
495 fi
b57f37fb 496else
042acc47 497 as_ln_s='cp -p'
b57f37fb 498fi
042acc47
WP
499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500rmdir conf$$.dir 2>/dev/null
b57f37fb 501
042acc47
WP
502if mkdir -p . 2>/dev/null; then
503 as_mkdir_p='mkdir -p "$as_dir"'
504else
505 test -d ./-p && rmdir ./-p
506 as_mkdir_p=false
b57f37fb
WP
507fi
508
042acc47
WP
509if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
b57f37fb 511else
042acc47
WP
512 if ls -dL / >/dev/null 2>&1; then
513 as_ls_L_option=L
514 else
515 as_ls_L_option=
516 fi
517 as_test_x='
518 eval sh -c '\''
519 if test -d "$1"; then
520 test -d "$1/.";
521 else
522 case $1 in #(
523 -*)set "./$1";;
524 esac;
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
b57f37fb 529fi
042acc47 530as_executable_p=$as_test_x
b57f37fb 531
042acc47
WP
532# Sed expression to map a string onto a valid CPP name.
533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb 534
042acc47
WP
535# Sed expression to map a string onto a valid variable name.
536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb
WP
537
538
539
540# Check that we are running under the correct shell.
541SHELL=${CONFIG_SHELL-/bin/sh}
542
042acc47 543case X$lt_ECHO in
b57f37fb
WP
544X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
042acc47 546 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
b57f37fb
WP
547 ;;
548esac
549
042acc47 550ECHO=${lt_ECHO-echo}
b57f37fb
WP
551if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
042acc47
WP
557elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $ECHO works!
b57f37fb
WP
559 :
560else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563fi
564
565if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
042acc47 568 cat <<_LT_EOF
b57f37fb 569$*
042acc47 570_LT_EOF
b57f37fb
WP
571 exit 0
572fi
573
574# The HP-UX ksh and POSIX shell print the target directory to stdout
575# if CDPATH is set.
576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
042acc47
WP
578if test -z "$lt_ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
584 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
585 then
586 break
587 fi
588 done
589 fi
b57f37fb 590
042acc47
WP
591 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
592 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
593 test "X$echo_testing_string" = "X$echo_test_string"; then
594 :
595 else
596 # The Solaris, AIX, and Digital Unix default echo programs unquote
597 # backslashes. This makes it impossible to quote backslashes using
598 # echo "$something" | sed 's/\\/\\\\/g'
599 #
600 # So, first we look for a working echo in the user's PATH.
b57f37fb 601
042acc47
WP
602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603 for dir in $PATH /usr/ucb; do
604 IFS="$lt_save_ifs"
605 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 ECHO="$dir/echo"
610 break
611 fi
612 done
b57f37fb 613 IFS="$lt_save_ifs"
b57f37fb 614
042acc47
WP
615 if test "X$ECHO" = Xecho; then
616 # We didn't find a better echo, so look for alternatives.
617 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
618 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
619 test "X$echo_testing_string" = "X$echo_test_string"; then
620 # This shell has a builtin print -r that does the trick.
621 ECHO='print -r'
622 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
623 test "X$CONFIG_SHELL" != X/bin/ksh; then
624 # If we have ksh, try running configure again with it.
625 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626 export ORIGINAL_CONFIG_SHELL
627 CONFIG_SHELL=/bin/ksh
628 export CONFIG_SHELL
629 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
b57f37fb 630 else
042acc47
WP
631 # Try using printf.
632 ECHO='printf %s\n'
633 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # Cool, printf works
637 :
638 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 export CONFIG_SHELL
644 SHELL="$CONFIG_SHELL"
645 export SHELL
646 ECHO="$CONFIG_SHELL $0 --fallback-echo"
647 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648 test "X$echo_testing_string" = 'X\t' &&
649 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 ECHO="$CONFIG_SHELL $0 --fallback-echo"
652 else
653 # maybe with a smaller string...
654 prev=:
b57f37fb 655
042acc47
WP
656 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
658 then
659 break
660 fi
661 prev="$cmd"
662 done
b57f37fb 663
042acc47
WP
664 if test "$prev" != 'sed 50q "$0"'; then
665 echo_test_string=`eval $prev`
666 export echo_test_string
667 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 else
669 # Oops. We lost completely, so just stick with echo.
670 ECHO=echo
671 fi
672 fi
b57f37fb
WP
673 fi
674 fi
675 fi
676fi
b57f37fb
WP
677
678# Copy echo and quote the copy suitably for passing to libtool from
679# the Makefile, instead of quoting the original, which is used later.
042acc47
WP
680lt_ECHO=$ECHO
681if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
b57f37fb
WP
683fi
684
685
686
687
1800d973
WP
688test -n "$DJDIR" || exec 7<&0 </dev/null
689exec 6>&1
b57f37fb
WP
690
691# Name of the host.
12e39525 692# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b57f37fb
WP
693# so uname gets run too.
694ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
695
696#
697# Initializations.
698#
699ac_default_prefix=/usr/local
700ac_clean_files=
701ac_config_libobj_dir=.
702LIBOBJS=
703cross_compiling=no
704subdirs=
705MFLAGS=
706MAKEFLAGS=
b57f37fb
WP
707
708# Identity of this package.
709PACKAGE_NAME='libratbox'
710PACKAGE_TARNAME='libratbox'
711PACKAGE_VERSION='devel'
712PACKAGE_STRING='libratbox devel'
713PACKAGE_BUGREPORT=''
042acc47 714PACKAGE_URL=''
b57f37fb
WP
715
716ac_default_prefix=/usr/local/libratbox
717# Factoring default headers for most tests.
718ac_includes_default="\
719#include <stdio.h>
720#ifdef HAVE_SYS_TYPES_H
721# include <sys/types.h>
722#endif
723#ifdef HAVE_SYS_STAT_H
724# include <sys/stat.h>
725#endif
726#ifdef STDC_HEADERS
727# include <stdlib.h>
728# include <stddef.h>
729#else
730# ifdef HAVE_STDLIB_H
731# include <stdlib.h>
732# endif
733#endif
734#ifdef HAVE_STRING_H
735# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
736# include <memory.h>
737# endif
738# include <string.h>
739#endif
740#ifdef HAVE_STRINGS_H
741# include <strings.h>
742#endif
743#ifdef HAVE_INTTYPES_H
744# include <inttypes.h>
745#endif
746#ifdef HAVE_STDINT_H
747# include <stdint.h>
748#endif
749#ifdef HAVE_UNISTD_H
750# include <unistd.h>
751#endif"
752
1800d973 753ac_header_list=
042acc47
WP
754ac_subst_vars='am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
f030cae8
VY
757LIBOBJS
758RB_PREFIX
759SSL_LIBS
760SSL_CFLAGS
761SEDOBJ
762PICFLAGS
763GNUTLS_LIBS
764GNUTLS_CFLAGS
765PKG_CONFIG
766ALLOCA
f030cae8
VY
767MINGW_FALSE
768MINGW_TRUE
042acc47
WP
769OTOOL64
770OTOOL
771LIPO
f030cae8
VY
772NMEDIT
773DSYMUTIL
042acc47 774lt_ECHO
f030cae8
VY
775RANLIB
776AR
042acc47 777OBJDUMP
f030cae8 778LN_S
042acc47
WP
779NM
780ac_ct_DUMPBIN
781DUMPBIN
782LD
783FGREP
f030cae8
VY
784host_os
785host_vendor
786host_cpu
787host
788build_os
789build_vendor
790build_cpu
791build
042acc47 792LIBTOOL
f030cae8
VY
793TOUCH
794LN
795MV
796CP
797RM
798AS
799MAINT
800MAINTAINER_MODE_FALSE
801MAINTAINER_MODE_TRUE
802SED
803EGREP
804GREP
805CPP
806am__fastdepCC_FALSE
807am__fastdepCC_TRUE
808CCDEPMODE
809AMDEPBACKSLASH
810AMDEP_FALSE
811AMDEP_TRUE
812am__quote
813am__include
814DEPDIR
815OBJEXT
816EXEEXT
817ac_ct_CC
818CPPFLAGS
819LDFLAGS
820CFLAGS
821CC
822am__untar
823am__tar
824AMTAR
825am__leading_dot
826SET_MAKE
827AWK
828mkdir_p
829MKDIR_P
830INSTALL_STRIP_PROGRAM
831STRIP
832install_sh
833MAKEINFO
834AUTOHEADER
835AUTOMAKE
836AUTOCONF
837ACLOCAL
838VERSION
839PACKAGE
840CYGPATH_W
841am__isrc
842INSTALL_DATA
843INSTALL_SCRIPT
844INSTALL_PROGRAM
845target_alias
846host_alias
b57f37fb 847build_alias
f030cae8
VY
848LIBS
849ECHO_T
850ECHO_N
851ECHO_C
852DEFS
853mandir
854localedir
855libdir
856psdir
857pdfdir
858dvidir
859htmldir
860infodir
861docdir
862oldincludedir
863includedir
864localstatedir
865sharedstatedir
866sysconfdir
867datadir
868datarootdir
869libexecdir
870sbindir
871bindir
872program_transform_name
873prefix
874exec_prefix
042acc47 875PACKAGE_URL
f030cae8
VY
876PACKAGE_BUGREPORT
877PACKAGE_STRING
878PACKAGE_VERSION
879PACKAGE_TARNAME
880PACKAGE_NAME
881PATH_SEPARATOR
882SHELL'
883ac_subst_files=''
884ac_user_opts='
885enable_option_checking
886enable_dependency_tracking
887enable_static
888enable_shared
889enable_maintainer_mode
042acc47 890with_pic
f030cae8
VY
891enable_fast_install
892with_gnu_ld
893enable_libtool_lock
f030cae8
VY
894enable_ipv6
895enable_openssl
896enable_gnutls
897enable_assert
898enable_profile
899enable_balloc
900enable_warnings
901'
902 ac_precious_vars='build_alias
b57f37fb
WP
903host_alias
904target_alias
b57f37fb
WP
905CC
906CFLAGS
907LDFLAGS
f030cae8 908LIBS
b57f37fb 909CPPFLAGS
b57f37fb 910CPP
dd910409
WP
911PKG_CONFIG
912GNUTLS_CFLAGS
913GNUTLS_LIBS'
94b4fbf9 914
b57f37fb
WP
915
916# Initialize some variables set by options.
917ac_init_help=
918ac_init_version=false
f030cae8
VY
919ac_unrecognized_opts=
920ac_unrecognized_sep=
b57f37fb
WP
921# The variables have the same names as the options, with
922# dashes changed to underlines.
923cache_file=/dev/null
924exec_prefix=NONE
925no_create=
926no_recursion=
927prefix=NONE
928program_prefix=NONE
929program_suffix=NONE
930program_transform_name=s,x,x,
931silent=
932site=
933srcdir=
934verbose=
935x_includes=NONE
936x_libraries=NONE
937
938# Installation directory options.
939# These are left unexpanded so users can "make install exec_prefix=/foo"
940# and all the variables that are supposed to be based on exec_prefix
941# by default will actually change.
942# Use braces instead of parens because sh, perl, etc. also accept them.
943# (The list follows the same order as the GNU Coding Standards.)
944bindir='${exec_prefix}/bin'
945sbindir='${exec_prefix}/sbin'
946libexecdir='${exec_prefix}/libexec'
947datarootdir='${prefix}/share'
948datadir='${datarootdir}'
949sysconfdir='${prefix}/etc'
950sharedstatedir='${prefix}/com'
951localstatedir='${prefix}/var'
952includedir='${prefix}/include'
953oldincludedir='/usr/include'
954docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955infodir='${datarootdir}/info'
956htmldir='${docdir}'
957dvidir='${docdir}'
958pdfdir='${docdir}'
959psdir='${docdir}'
960libdir='${exec_prefix}/lib'
961localedir='${datarootdir}/locale'
962mandir='${datarootdir}/man'
963
964ac_prev=
965ac_dashdash=
966for ac_option
967do
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
973 fi
974
975 case $ac_option in
12e39525
JH
976 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *=) ac_optarg= ;;
978 *) ac_optarg=yes ;;
b57f37fb
WP
979 esac
980
981 # Accept the important Cygnus configure options, so we can diagnose typos.
982
983 case $ac_dashdash$ac_option in
984 --)
985 ac_dashdash=yes ;;
986
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 ac_prev=bindir ;;
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 bindir=$ac_optarg ;;
991
992 -build | --build | --buil | --bui | --bu)
993 ac_prev=build_alias ;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias=$ac_optarg ;;
996
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file=$ac_optarg ;;
1003
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
1006
1007 -datadir | --datadir | --datadi | --datad)
1008 ac_prev=datadir ;;
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir=$ac_optarg ;;
1011
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
1018
1019 -disable-* | --disable-*)
f030cae8 1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b57f37fb 1021 # Reject names that are not valid shell variable names.
f030cae8 1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12e39525 1023 as_fn_error $? "invalid feature name: $ac_useropt"
f030cae8
VY
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028"enable_$ac_useropt"
1029"*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
b57f37fb
WP
1034
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1039
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1044
1045 -enable-* | --enable-*)
f030cae8 1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b57f37fb 1047 # Reject names that are not valid shell variable names.
f030cae8 1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12e39525 1049 as_fn_error $? "invalid feature name: $ac_useropt"
f030cae8
VY
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054"enable_$ac_useropt"
1055"*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=\$ac_optarg ;;
b57f37fb
WP
1060
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1069
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1073
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1080
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1085
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1091
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1098
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1103
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1108
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1115
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1120
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1127
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1132
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1136
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1140
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1144
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1153
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1158
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1165
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1172
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1189
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1194
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1199
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1203
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1209
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1220
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1225
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1230
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1237
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1242
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1245
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1248
1249 -with-* | --with-*)
f030cae8 1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b57f37fb 1251 # Reject names that are not valid shell variable names.
f030cae8 1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12e39525 1253 as_fn_error $? "invalid package name: $ac_useropt"
f030cae8
VY
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258"with_$ac_useropt"
1259"*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
b57f37fb
WP
1264
1265 -without-* | --without-*)
f030cae8 1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b57f37fb 1267 # Reject names that are not valid shell variable names.
f030cae8 1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12e39525 1269 as_fn_error $? "invalid package name: $ac_useropt"
f030cae8
VY
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"with_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
b57f37fb
WP
1280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1298
12e39525
JH
1299 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300Try \`$0 --help' for more information"
b57f37fb
WP
1301 ;;
1302
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
042acc47
WP
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
12e39525 1308 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
042acc47 1309 esac
b57f37fb
WP
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1312
1313 *)
1314 # FIXME: should be removed in autoconf 3.0.
f030cae8 1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b57f37fb 1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f030cae8 1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
12e39525 1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b57f37fb
WP
1319 ;;
1320
1321 esac
1322done
1323
1324if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12e39525 1326 as_fn_error $? "missing argument to $ac_option"
b57f37fb
WP
1327fi
1328
f030cae8
VY
1329if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
12e39525 1332 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
f030cae8
VY
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1335fi
1336
1337# Check all directory arguments for consistency.
b57f37fb
WP
1338for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1342do
1343 eval ac_val=\$$ac_var
f030cae8
VY
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
b57f37fb
WP
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
12e39525 1355 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b57f37fb
WP
1356done
1357
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
12e39525
JH
1369 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used" >&2
b57f37fb
WP
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1373 fi
1374fi
1375
1376ac_tool_prefix=
1377test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379test "$silent" = yes && exec 6>/dev/null
1380
1381
1382ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383ac_ls_di=`ls -di .` &&
1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12e39525 1385 as_fn_error $? "working directory cannot be determined"
b57f37fb 1386test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12e39525 1387 as_fn_error $? "pwd does not report name of working directory"
b57f37fb
WP
1388
1389
1390# Find the source files, if location was not specified.
1391if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
f030cae8
VY
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399$as_echo X"$as_myself" |
b57f37fb
WP
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)[^/].*/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\).*/{
1413 s//\1/
1414 q
1415 }
1416 s/.*/./; q'`
1417 srcdir=$ac_confdir
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 srcdir=..
1420 fi
1421else
1422 ac_srcdir_defaulted=no
1423fi
1424if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12e39525 1426 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b57f37fb
WP
1427fi
1428ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429ac_abs_confdir=`(
12e39525 1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
b57f37fb
WP
1431 pwd)`
1432# When building in place, set srcdir=.
1433if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435fi
1436# Remove unnecessary trailing slashes from srcdir.
1437# Double slashes in file names in object file debugging info
1438# mess up M-x gdb in Emacs.
1439case $srcdir in
1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441esac
1442for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447done
1448
1449#
1450# Report the --help message.
1451#
1452if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456\`configure' configures libratbox devel to adapt to many kinds of systems.
1457
1458Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461VAR=VALUE. See below for descriptions of some of the useful variables.
1462
1463Defaults for the options are specified in brackets.
1464
1465Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
12e39525 1470 -q, --quiet, --silent do not print \`checking ...' messages
b57f37fb
WP
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475
1476Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
f030cae8 1478 [$ac_default_prefix]
b57f37fb 1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
f030cae8 1480 [PREFIX]
b57f37fb
WP
1481
1482By default, \`make install' will install all the files in
1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485for instance \`--prefix=\$HOME'.
1486
1487For better control, use the options below.
1488
1489Fine tuning of the installation directories:
f030cae8
VY
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
b57f37fb
WP
1509_ACEOF
1510
1511 cat <<\_ACEOF
1512
1513Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive ) echo "Configuration of libratbox devel:";;
1527 esac
1528 cat <<\_ACEOF
1529
1530Optional Features:
f030cae8 1531 --disable-option-checking ignore unrecognized --enable/--with options
b57f37fb
WP
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --disable-dependency-tracking speeds up one-time build
1535 --enable-dependency-tracking do not reject slow dependency extractors
1536 --enable-static[=PKGS] build static libraries [default=no]
1537 --enable-shared[=PKGS] build shared libraries [default=yes]
1538 --enable-maintainer-mode enable make rules and dependencies not useful
1539 (and sometimes confusing) to the casual installer
1540 --enable-fast-install[=PKGS]
1541 optimize for fast installation [default=yes]
1542 --disable-libtool-lock avoid locking (might break parallel builds)
1543 --disable-ipv6 Disable IPv6 support
1544 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1545 --disable-openssl Disable OpenSSL support.
033be687
VY
1546 --enable-gnutls Enable GnuTLS support.
1547 --disable-gnutls Disable GnuTLS support.
b57f37fb
WP
1548 --enable-assert Enable assert(). Choose between soft(warnings) and
1549 hard(aborts the daemon)
1550 --enable-profile Enable profiling
1551 --disable-balloc Disable the block allocator.
1552 --enable-warnings Enable all sorts of warnings for debugging.
1553
1554Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b57f37fb
WP
1557 --with-pic try to use only PIC/non-PIC objects [default=use
1558 both]
042acc47 1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b57f37fb
WP
1560
1561Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1800d973 1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b57f37fb
WP
1568 you have headers in a nonstandard directory <include dir>
1569 CPP C preprocessor
dd910409
WP
1570 PKG_CONFIG path to pkg-config utility
1571 GNUTLS_CFLAGS
1572 C compiler flags for GNUTLS, overriding pkg-config
1573 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
b57f37fb
WP
1574
1575Use these variables to override the choices made by `configure' or to help
1576it to find libraries and programs with nonstandard names/locations.
1577
042acc47 1578Report bugs to the package provider.
b57f37fb
WP
1579_ACEOF
1580ac_status=$?
1581fi
1582
1583if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
f030cae8
VY
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588 continue
b57f37fb
WP
1589 ac_builddir=.
1590
1591case "$ac_dir" in
1592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593*)
f030cae8 1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b57f37fb 1595 # A ".." for each directory in $ac_dir_suffix.
f030cae8 1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b57f37fb
WP
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601esac
1602ac_abs_top_builddir=$ac_pwd
1603ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604# for backward compatibility:
1605ac_top_builddir=$ac_top_build_prefix
1606
1607case $srcdir in
1608 .) # We are building in place.
1609 ac_srcdir=.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620esac
1621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1631 else
f030cae8 1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b57f37fb
WP
1633 fi || ac_status=$?
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1635 done
1636fi
1637
1638test -n "$ac_init_help" && exit $ac_status
1639if $ac_init_version; then
1640 cat <<\_ACEOF
1641libratbox configure devel
12e39525 1642generated by GNU Autoconf 2.68
b57f37fb 1643
12e39525 1644Copyright (C) 2010 Free Software Foundation, Inc.
b57f37fb
WP
1645This configure script is free software; the Free Software Foundation
1646gives unlimited permission to copy, distribute and modify it.
1647
f030cae8 1648$Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
b57f37fb
WP
1649_ACEOF
1650 exit
1651fi
042acc47
WP
1652
1653## ------------------------ ##
1654## Autoconf initialization. ##
1655## ------------------------ ##
1656
1657# ac_fn_c_try_compile LINENO
1658# --------------------------
1659# Try to compile conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_compile ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689fi
12e39525 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1691 as_fn_set_status $ac_retval
042acc47
WP
1692
1693} # ac_fn_c_try_compile
1694
1695# ac_fn_c_try_cpp LINENO
1696# ----------------------
1697# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_cpp ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12e39525 1716 test $ac_status = 0; } > conftest.i && {
042acc47
WP
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 }; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726fi
12e39525 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1728 as_fn_set_status $ac_retval
042acc47
WP
1729
1730} # ac_fn_c_try_cpp
1731
1732# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733# -------------------------------------------------------
1734# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735# the include files in INCLUDES and setting the cache variable VAR
1736# accordingly.
1737ac_fn_c_check_header_mongrel ()
1738{
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12e39525 1740 if eval \${$3+:} false; then :
042acc47
WP
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
12e39525 1743if eval \${$3+:} false; then :
042acc47
WP
1744 $as_echo_n "(cached) " >&6
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749else
1750 # Is the header compilable?
1751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752$as_echo_n "checking $2 usability... " >&6; }
1753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1760else
1761 ac_header_compiler=no
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765$as_echo "$ac_header_compiler" >&6; }
1766
1767# Is the header present?
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769$as_echo_n "checking $2 presence... " >&6; }
1770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1776else
1777 ac_header_preproc=no
1778fi
12e39525 1779rm -f conftest.err conftest.i conftest.$ac_ext
042acc47
WP
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781$as_echo "$ac_header_preproc" >&6; }
1782
1783# So? What about this header?
1784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 yes:no: )
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ;;
1791 no:yes:* )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 ;;
1803esac
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
12e39525 1806if eval \${$3+:} false; then :
042acc47
WP
1807 $as_echo_n "(cached) " >&6
1808else
1809 eval "$3=\$ac_header_compiler"
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
1814fi
12e39525 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
042acc47
WP
1816
1817} # ac_fn_c_check_header_mongrel
1818
1819# ac_fn_c_try_run LINENO
1820# ----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822# that executables *can* be run.
1823ac_fn_c_try_run ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1847 ac_retval=0
1848else
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=$ac_status
1854fi
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
12e39525 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1857 as_fn_set_status $ac_retval
042acc47
WP
1858
1859} # ac_fn_c_try_run
1860
1861# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1862# -------------------------------------------------------
1863# Tests whether HEADER exists and can be compiled using the include files in
1864# INCLUDES, setting the cache variable VAR accordingly.
1865ac_fn_c_check_header_compile ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
12e39525 1870if eval \${$3+:} false; then :
042acc47
WP
1871 $as_echo_n "(cached) " >&6
1872else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874/* end confdefs.h. */
1875$4
1876#include <$2>
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880else
1881 eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
12e39525 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
042acc47
WP
1889
1890} # ac_fn_c_check_header_compile
1891
1892# ac_fn_c_try_link LINENO
1893# -----------------------
1894# Try to link conftest.$ac_ext, and return whether this succeeded.
1895ac_fn_c_try_link ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 $as_test_x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922else
1923 $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
12e39525 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1934 as_fn_set_status $ac_retval
042acc47
WP
1935
1936} # ac_fn_c_try_link
1937
1938# ac_fn_c_check_func LINENO FUNC VAR
1939# ----------------------------------
1940# Tests whether FUNC exists, setting the cache variable VAR accordingly
1941ac_fn_c_check_func ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945$as_echo_n "checking for $2... " >&6; }
12e39525 1946if eval \${$3+:} false; then :
042acc47
WP
1947 $as_echo_n "(cached) " >&6
1948else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h. */
1951/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953#define $2 innocuous_$2
1954
1955/* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1959
1960#ifdef __STDC__
1961# include <limits.h>
1962#else
1963# include <assert.h>
1964#endif
1965
1966#undef $2
1967
1968/* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971#ifdef __cplusplus
1972extern "C"
1973#endif
1974char $2 ();
1975/* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978#if defined __stub_$2 || defined __stub___$2
1979choke me
1980#endif
1981
1982int
1983main ()
1984{
1985return $2 ();
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992else
1993 eval "$3=no"
1994fi
1995rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1997fi
1998eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
12e39525 2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
042acc47
WP
2002
2003} # ac_fn_c_check_func
2004
2005# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2006# -------------------------------------------
2007# Tests whether TYPE exists after having included INCLUDES, setting cache
2008# variable VAR accordingly.
2009ac_fn_c_check_type ()
2010{
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013$as_echo_n "checking for $2... " >&6; }
12e39525 2014if eval \${$3+:} false; then :
042acc47
WP
2015 $as_echo_n "(cached) " >&6
2016else
2017 eval "$3=no"
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h. */
2020$4
2021int
2022main ()
2023{
2024if (sizeof ($2))
2025 return 0;
2026 ;
2027 return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033$4
2034int
2035main ()
2036{
2037if (sizeof (($2)))
2038 return 0;
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044
2045else
2046 eval "$3=yes"
2047fi
2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
12e39525 2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
042acc47
WP
2056
2057} # ac_fn_c_check_type
2058
2059# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2060# ----------------------------------------------------
2061# Tries to find if the field MEMBER exists in type AGGR, after including
2062# INCLUDES, setting cache variable VAR accordingly.
2063ac_fn_c_check_member ()
2064{
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2067$as_echo_n "checking for $2.$3... " >&6; }
12e39525 2068if eval \${$4+:} false; then :
042acc47
WP
2069 $as_echo_n "(cached) " >&6
2070else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h. */
2073$5
2074int
2075main ()
2076{
2077static $2 ac_aggr;
2078if (ac_aggr.$3)
2079return 0;
2080 ;
2081 return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085 eval "$4=yes"
2086else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089$5
2090int
2091main ()
2092{
2093static $2 ac_aggr;
2094if (sizeof ac_aggr.$3)
2095return 0;
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$4=yes"
2102else
2103 eval "$4=no"
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106fi
2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108fi
2109eval ac_res=\$$4
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111$as_echo "$ac_res" >&6; }
12e39525 2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
042acc47
WP
2113
2114} # ac_fn_c_check_member
b57f37fb
WP
2115cat >config.log <<_ACEOF
2116This file contains any messages produced by compilers while
2117running configure, to aid debugging if configure makes a mistake.
2118
2119It was created by libratbox $as_me devel, which was
12e39525 2120generated by GNU Autoconf 2.68. Invocation command line was
b57f37fb
WP
2121
2122 $ $0 $@
2123
2124_ACEOF
2125exec 5>>config.log
2126{
2127cat <<_ASUNAME
2128## --------- ##
2129## Platform. ##
2130## --------- ##
2131
2132hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136uname -v = `(uname -v) 2>/dev/null || echo unknown`
2137
2138/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2140
2141/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2145/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2148
2149_ASUNAME
2150
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
042acc47
WP
2156 $as_echo "PATH: $as_dir"
2157 done
b57f37fb
WP
2158IFS=$as_save_IFS
2159
2160} >&5
2161
2162cat >&5 <<_ACEOF
2163
2164
2165## ----------- ##
2166## Core tests. ##
2167## ----------- ##
2168
2169_ACEOF
2170
2171
2172# Keep a trace of the command line.
2173# Strip out --no-create and --no-recursion so they do not pile up.
2174# Strip out --silent because we don't want to record it for future runs.
2175# Also quote any args containing shell meta-characters.
2176# Make two passes to allow for proper duplicate-argument suppression.
2177ac_configure_args=
2178ac_configure_args0=
2179ac_configure_args1=
2180ac_must_keep_next=false
2181for ac_pass in 1 2
2182do
2183 for ac_arg
2184 do
2185 case $ac_arg in
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2189 continue ;;
2190 *\'*)
f030cae8 2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b57f37fb
WP
2192 esac
2193 case $ac_pass in
042acc47 2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b57f37fb 2195 2)
042acc47 2196 as_fn_append ac_configure_args1 " '$ac_arg'"
b57f37fb
WP
2197 if test $ac_must_keep_next = true; then
2198 ac_must_keep_next=false # Got value, back to normal.
2199 else
2200 case $ac_arg in
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2207 esac
2208 ;;
2209 -* ) ac_must_keep_next=true ;;
2210 esac
2211 fi
042acc47 2212 as_fn_append ac_configure_args " '$ac_arg'"
b57f37fb
WP
2213 ;;
2214 esac
2215 done
2216done
042acc47
WP
2217{ ac_configure_args0=; unset ac_configure_args0;}
2218{ ac_configure_args1=; unset ac_configure_args1;}
b57f37fb
WP
2219
2220# When interrupted or exit'd, cleanup temporary files, and complete
2221# config.log. We remove comments because anyway the quotes in there
2222# would cause problems or look ugly.
2223# WARNING: Use '\'' to represent an apostrophe within the trap.
2224# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2227 {
2228 echo
2229
12e39525 2230 $as_echo "## ---------------- ##
b57f37fb 2231## Cache variables. ##
12e39525 2232## ---------------- ##"
b57f37fb
WP
2233 echo
2234 # The following way of writing the cache mishandles newlines in values,
2235(
2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in #(
2239 *${as_nl}*)
2240 case $ac_var in #(
042acc47 2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
f030cae8 2242$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
b57f37fb
WP
2243 esac
2244 case $ac_var in #(
2245 _ | IFS | as_nl) ;; #(
f030cae8 2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
042acc47 2247 *) { eval $ac_var=; unset $ac_var;} ;;
b57f37fb
WP
2248 esac ;;
2249 esac
2250 done
2251 (set) 2>&1 |
2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253 *${as_nl}ac_space=\ *)
2254 sed -n \
2255 "s/'\''/'\''\\\\'\'''\''/g;
2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257 ;; #(
2258 *)
2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2260 ;;
2261 esac |
2262 sort
2263)
2264 echo
2265
12e39525 2266 $as_echo "## ----------------- ##
b57f37fb 2267## Output variables. ##
12e39525 2268## ----------------- ##"
b57f37fb
WP
2269 echo
2270 for ac_var in $ac_subst_vars
2271 do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
f030cae8 2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b57f37fb 2275 esac
f030cae8 2276 $as_echo "$ac_var='\''$ac_val'\''"
b57f37fb
WP
2277 done | sort
2278 echo
2279
2280 if test -n "$ac_subst_files"; then
12e39525 2281 $as_echo "## ------------------- ##
b57f37fb 2282## File substitutions. ##
12e39525 2283## ------------------- ##"
b57f37fb
WP
2284 echo
2285 for ac_var in $ac_subst_files
2286 do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
f030cae8 2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b57f37fb 2290 esac
f030cae8 2291 $as_echo "$ac_var='\''$ac_val'\''"
b57f37fb
WP
2292 done | sort
2293 echo
2294 fi
2295
2296 if test -s confdefs.h; then
12e39525 2297 $as_echo "## ----------- ##
b57f37fb 2298## confdefs.h. ##
12e39525 2299## ----------- ##"
b57f37fb
WP
2300 echo
2301 cat confdefs.h
2302 echo
2303 fi
2304 test "$ac_signal" != 0 &&
f030cae8
VY
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
b57f37fb
WP
2307 } >&5
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310 exit $exit_status
2311' 0
2312for ac_signal in 1 2 13 15; do
042acc47 2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b57f37fb
WP
2314done
2315ac_signal=0
2316
2317# confdefs.h avoids OS command line length limits that DEFS can exceed.
2318rm -f -r conftest* confdefs.h
2319
042acc47
WP
2320$as_echo "/* confdefs.h */" > confdefs.h
2321
b57f37fb
WP
2322# Predefined preprocessor variables.
2323
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_NAME "$PACKAGE_NAME"
2326_ACEOF
2327
b57f37fb
WP
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330_ACEOF
2331
b57f37fb
WP
2332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_VERSION "$PACKAGE_VERSION"
2334_ACEOF
2335
b57f37fb
WP
2336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_STRING "$PACKAGE_STRING"
2338_ACEOF
2339
b57f37fb
WP
2340cat >>confdefs.h <<_ACEOF
2341#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342_ACEOF
2343
042acc47
WP
2344cat >>confdefs.h <<_ACEOF
2345#define PACKAGE_URL "$PACKAGE_URL"
2346_ACEOF
2347
b57f37fb
WP
2348
2349# Let the site file select an alternate cache file if it wants to.
f030cae8
VY
2350# Prefer an explicitly selected file to automatically selected ones.
2351ac_site_file1=NONE
2352ac_site_file2=NONE
b57f37fb 2353if test -n "$CONFIG_SITE"; then
12e39525
JH
2354 # We do not want a PATH search for config.site.
2355 case $CONFIG_SITE in #((
2356 -*) ac_site_file1=./$CONFIG_SITE;;
2357 */*) ac_site_file1=$CONFIG_SITE;;
2358 *) ac_site_file1=./$CONFIG_SITE;;
2359 esac
b57f37fb 2360elif test "x$prefix" != xNONE; then
f030cae8
VY
2361 ac_site_file1=$prefix/share/config.site
2362 ac_site_file2=$prefix/etc/config.site
b57f37fb 2363else
f030cae8
VY
2364 ac_site_file1=$ac_default_prefix/share/config.site
2365 ac_site_file2=$ac_default_prefix/etc/config.site
b57f37fb 2366fi
f030cae8 2367for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b57f37fb 2368do
f030cae8 2369 test "x$ac_site_file" = xNONE && continue
1800d973 2370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
042acc47 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
f030cae8 2372$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b57f37fb 2373 sed 's/^/| /' "$ac_site_file" >&5
12e39525
JH
2374 . "$ac_site_file" \
2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377as_fn_error $? "failed to load site script $ac_site_file
2378See \`config.log' for more details" "$LINENO" 5; }
b57f37fb
WP
2379 fi
2380done
2381
2382if test -r "$cache_file"; then
1800d973
WP
2383 # Some versions of bash will fail to source /dev/null (special files
2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
042acc47 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
f030cae8 2387$as_echo "$as_me: loading cache $cache_file" >&6;}
b57f37fb
WP
2388 case $cache_file in
2389 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2390 *) . "./$cache_file";;
2391 esac
2392 fi
2393else
042acc47 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
f030cae8 2395$as_echo "$as_me: creating cache $cache_file" >&6;}
b57f37fb
WP
2396 >$cache_file
2397fi
2398
1800d973
WP
2399as_fn_append ac_header_list " stdlib.h"
2400as_fn_append ac_header_list " unistd.h"
2401as_fn_append ac_header_list " sys/param.h"
b57f37fb
WP
2402# Check that the precious variables saved in the cache have kept the same
2403# value.
2404ac_cache_corrupted=false
2405for ac_var in $ac_precious_vars; do
2406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2407 eval ac_new_set=\$ac_env_${ac_var}_set
2408 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2409 eval ac_new_val=\$ac_env_${ac_var}_value
2410 case $ac_old_set,$ac_new_set in
2411 set,)
042acc47 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f030cae8 2413$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b57f37fb
WP
2414 ac_cache_corrupted=: ;;
2415 ,set)
042acc47 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
f030cae8 2417$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b57f37fb
WP
2418 ac_cache_corrupted=: ;;
2419 ,);;
2420 *)
2421 if test "x$ac_old_val" != "x$ac_new_val"; then
f030cae8
VY
2422 # differences in whitespace do not lead to failure.
2423 ac_old_val_w=`echo x $ac_old_val`
2424 ac_new_val_w=`echo x $ac_new_val`
2425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
042acc47 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
f030cae8
VY
2427$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2428 ac_cache_corrupted=:
2429 else
042acc47 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
f030cae8
VY
2431$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2432 eval $ac_var=\$ac_old_val
2433 fi
042acc47 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
f030cae8 2435$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
042acc47 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
f030cae8 2437$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b57f37fb
WP
2438 fi;;
2439 esac
2440 # Pass precious variables to config.status.
2441 if test "$ac_new_set" = set; then
2442 case $ac_new_val in
f030cae8 2443 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b57f37fb
WP
2444 *) ac_arg=$ac_var=$ac_new_val ;;
2445 esac
2446 case " $ac_configure_args " in
2447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
042acc47 2448 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b57f37fb
WP
2449 esac
2450 fi
2451done
2452if $ac_cache_corrupted; then
042acc47 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 2454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
042acc47 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
f030cae8 2456$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12e39525 2457 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b57f37fb 2458fi
042acc47
WP
2459## -------------------- ##
2460## Main body of script. ##
2461## -------------------- ##
b57f37fb 2462
042acc47
WP
2463ac_ext=c
2464ac_cpp='$CPP $CPPFLAGS'
2465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467ac_compiler_gnu=$ac_cv_c_compiler_gnu
b57f37fb
WP
2468
2469
042acc47 2470am__api_version='1.11'
b57f37fb 2471
042acc47
WP
2472ac_aux_dir=
2473for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
12e39525
JH
2474 if test -f "$ac_dir/install-sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 break
2478 elif test -f "$ac_dir/install.sh"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 break
2482 elif test -f "$ac_dir/shtool"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2485 break
2486 fi
042acc47
WP
2487done
2488if test -z "$ac_aux_dir"; then
12e39525 2489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
042acc47 2490fi
b57f37fb 2491
042acc47
WP
2492# These three variables are undocumented and unsupported,
2493# and are intended to be withdrawn in a future Autoconf release.
2494# They can cause serious problems if a builder's source tree is in a directory
2495# whose full name contains unusual characters.
2496ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2497ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2498ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
b57f37fb
WP
2499
2500
2501# Find a good install program. We prefer a C program (faster),
2502# so one script is as good as another. But avoid the broken or
2503# incompatible versions:
2504# SysV /etc/install, /usr/sbin/install
2505# SunOS /usr/etc/install
2506# IRIX /sbin/install
2507# AIX /bin/install
2508# AmigaOS /C/install, which installs bootblocks on floppy discs
2509# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2510# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2511# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2512# OS/2's system install, which has a completely different semantic
2513# ./install, which can be erroneously created by make from ./install.sh.
f030cae8 2514# Reject install programs that cannot install multiple files.
042acc47 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
f030cae8 2516$as_echo_n "checking for a BSD-compatible install... " >&6; }
b57f37fb 2517if test -z "$INSTALL"; then
12e39525 2518if ${ac_cv_path_install+:} false; then :
f030cae8 2519 $as_echo_n "(cached) " >&6
b57f37fb
WP
2520else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
042acc47
WP
2526 # Account for people who put trailing slashes in PATH elements.
2527case $as_dir/ in #((
2528 ./ | .// | /[cC]/* | \
b57f37fb 2529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
042acc47 2530 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b57f37fb
WP
2531 /usr/ucb/* ) ;;
2532 *)
2533 # OSF1 and SCO ODT 3.0 have their own names for install.
2534 # Don't use installbsd from OSF since it installs stuff as root
2535 # by default.
2536 for ac_prog in ginstall scoinst install; do
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2539 if test $ac_prog = install &&
2540 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541 # AIX install. It has an incompatible calling convention.
2542 :
2543 elif test $ac_prog = install &&
2544 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # program-specific install script used by HP pwplus--don't use.
2546 :
2547 else
f030cae8
VY
2548 rm -rf conftest.one conftest.two conftest.dir
2549 echo one > conftest.one
2550 echo two > conftest.two
2551 mkdir conftest.dir
2552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2553 test -s conftest.one && test -s conftest.two &&
2554 test -s conftest.dir/conftest.one &&
2555 test -s conftest.dir/conftest.two
2556 then
2557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2558 break 3
2559 fi
b57f37fb
WP
2560 fi
2561 fi
2562 done
2563 done
2564 ;;
2565esac
f030cae8 2566
042acc47 2567 done
b57f37fb
WP
2568IFS=$as_save_IFS
2569
f030cae8 2570rm -rf conftest.one conftest.two conftest.dir
b57f37fb
WP
2571
2572fi
2573 if test "${ac_cv_path_install+set}" = set; then
2574 INSTALL=$ac_cv_path_install
2575 else
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for INSTALL within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 INSTALL=$ac_install_sh
2581 fi
2582fi
042acc47 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
f030cae8 2584$as_echo "$INSTALL" >&6; }
b57f37fb
WP
2585
2586# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2587# It thinks the first close brace ends the variable substitution.
2588test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2589
2590test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2591
2592test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2593
042acc47 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
f030cae8 2595$as_echo_n "checking whether build environment is sane... " >&6; }
b57f37fb
WP
2596# Just in case
2597sleep 1
2598echo timestamp > conftest.file
042acc47
WP
2599# Reject unsafe characters in $srcdir or the absolute working directory
2600# name. Accept space and tab only in the latter.
2601am_lf='
2602'
2603case `pwd` in
2604 *[\\\"\#\$\&\'\`$am_lf]*)
12e39525 2605 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
042acc47
WP
2606esac
2607case $srcdir in
2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12e39525 2609 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
042acc47
WP
2610esac
2611
b57f37fb
WP
2612# Do `set' in a subshell so we don't clobber the current shell's
2613# arguments. Must try -L first in case configure is actually a
2614# symlink; some systems play weird games with the mod time of symlinks
2615# (eg FreeBSD returns the mod time of the symlink's containing
2616# directory).
2617if (
042acc47 2618 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
b57f37fb
WP
2619 if test "$*" = "X"; then
2620 # -L didn't work.
042acc47 2621 set X `ls -t "$srcdir/configure" conftest.file`
b57f37fb
WP
2622 fi
2623 rm -f conftest.file
2624 if test "$*" != "X $srcdir/configure conftest.file" \
2625 && test "$*" != "X conftest.file $srcdir/configure"; then
2626
2627 # If neither matched, then we have a broken ls. This can happen
2628 # if, for instance, CONFIG_SHELL is bash and it inherits a
2629 # broken ls alias from the environment. This has actually
2630 # happened. Such a system could not be considered "sane".
12e39525 2631 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
042acc47 2632alias in your environment" "$LINENO" 5
b57f37fb
WP
2633 fi
2634
2635 test "$2" = conftest.file
2636 )
2637then
2638 # Ok.
2639 :
2640else
12e39525 2641 as_fn_error $? "newly created file is older than distributed files!
042acc47 2642Check your system clock" "$LINENO" 5
b57f37fb 2643fi
042acc47 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f030cae8 2645$as_echo "yes" >&6; }
b57f37fb
WP
2646test "$program_prefix" != NONE &&
2647 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2648# Use a double $ so make ignores it.
2649test "$program_suffix" != NONE &&
2650 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
f030cae8 2651# Double any \ or $.
b57f37fb 2652# By default was `s,x,x', remove it if useless.
f030cae8
VY
2653ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2654program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b57f37fb
WP
2655
2656# expand $ac_aux_dir to an absolute path
2657am_aux_dir=`cd $ac_aux_dir && pwd`
2658
042acc47
WP
2659if test x"${MISSING+set}" != xset; then
2660 case $am_aux_dir in
2661 *\ * | *\ *)
2662 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2663 *)
2664 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2665 esac
2666fi
b57f37fb
WP
2667# Use eval to expand $SHELL
2668if eval "$MISSING --run true"; then
2669 am_missing_run="$MISSING --run "
2670else
2671 am_missing_run=
042acc47 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
f030cae8 2673$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
b57f37fb
WP
2674fi
2675
042acc47
WP
2676if test x"${install_sh}" != xset; then
2677 case $am_aux_dir in
2678 *\ * | *\ *)
2679 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2680 *)
2681 install_sh="\${SHELL} $am_aux_dir/install-sh"
2682 esac
2683fi
2684
2685# Installed binaries are usually stripped using `strip' when the user
2686# run `make install-strip'. However `strip' might not be the right
2687# tool to use in cross-compilation environments, therefore Automake
2688# will honor the `STRIP' environment variable to overrule this program.
2689if test "$cross_compiling" != no; then
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692set dummy ${ac_tool_prefix}strip; ac_word=$2
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
12e39525 2695if ${ac_cv_prog_STRIP+:} false; then :
042acc47
WP
2696 $as_echo_n "(cached) " >&6
2697else
2698 if test -n "$STRIP"; then
2699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712done
2713 done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
2718STRIP=$ac_cv_prog_STRIP
2719if test -n "$STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721$as_echo "$STRIP" >&6; }
2722else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725fi
2726
2727
2728fi
2729if test -z "$ac_cv_prog_STRIP"; then
2730 ac_ct_STRIP=$STRIP
2731 # Extract the first word of "strip", so it can be a program name with args.
2732set dummy strip; ac_word=$2
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734$as_echo_n "checking for $ac_word... " >&6; }
12e39525 2735if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
042acc47
WP
2736 $as_echo_n "(cached) " >&6
2737else
2738 if test -n "$ac_ct_STRIP"; then
2739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_ac_ct_STRIP="strip"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752done
2753 done
2754IFS=$as_save_IFS
2755
2756fi
2757fi
2758ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2759if test -n "$ac_ct_STRIP"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761$as_echo "$ac_ct_STRIP" >&6; }
2762else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
2765fi
2766
2767 if test "x$ac_ct_STRIP" = x; then
2768 STRIP=":"
2769 else
2770 case $cross_compiling:$ac_tool_warned in
2771yes:)
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774ac_tool_warned=yes ;;
2775esac
2776 STRIP=$ac_ct_STRIP
2777 fi
2778else
2779 STRIP="$ac_cv_prog_STRIP"
2780fi
2781
2782fi
2783INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2784
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
f030cae8 2786$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
b57f37fb 2787if test -z "$MKDIR_P"; then
12e39525 2788 if ${ac_cv_path_mkdir+:} false; then :
f030cae8 2789 $as_echo_n "(cached) " >&6
b57f37fb
WP
2790else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2793do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
042acc47 2796 for ac_prog in mkdir gmkdir; do
b57f37fb
WP
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800 'mkdir (GNU coreutils) '* | \
2801 'mkdir (coreutils) '* | \
2802 'mkdir (fileutils) '4.1*)
2803 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2804 break 3;;
2805 esac
2806 done
2807 done
042acc47 2808 done
b57f37fb
WP
2809IFS=$as_save_IFS
2810
2811fi
2812
1800d973 2813 test -d ./--version && rmdir ./--version
b57f37fb
WP
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 MKDIR_P="$ac_cv_path_mkdir -p"
2816 else
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for MKDIR_P within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
b57f37fb
WP
2821 MKDIR_P="$ac_install_sh -d"
2822 fi
2823fi
042acc47 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
f030cae8 2825$as_echo "$MKDIR_P" >&6; }
b57f37fb
WP
2826
2827mkdir_p="$MKDIR_P"
2828case $mkdir_p in
2829 [\\/$]* | ?:[\\/]*) ;;
2830 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2831esac
2832
2833for ac_prog in gawk mawk nawk awk
2834do
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836set dummy $ac_prog; ac_word=$2
042acc47 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 2838$as_echo_n "checking for $ac_word... " >&6; }
12e39525 2839if ${ac_cv_prog_AWK+:} false; then :
f030cae8 2840 $as_echo_n "(cached) " >&6
b57f37fb
WP
2841else
2842 if test -n "$AWK"; then
2843 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
042acc47 2850 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_AWK="$ac_prog"
042acc47 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2854 break 2
2855 fi
2856done
042acc47 2857 done
b57f37fb
WP
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862AWK=$ac_cv_prog_AWK
2863if test -n "$AWK"; then
042acc47 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
f030cae8 2865$as_echo "$AWK" >&6; }
b57f37fb 2866else
042acc47 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 2868$as_echo "no" >&6; }
b57f37fb
WP
2869fi
2870
2871
2872 test -n "$AWK" && break
2873done
2874
042acc47 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
f030cae8
VY
2876$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2877set x ${MAKE-make}
2878ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12e39525 2879if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
f030cae8 2880 $as_echo_n "(cached) " >&6
b57f37fb
WP
2881else
2882 cat >conftest.make <<\_ACEOF
2883SHELL = /bin/sh
2884all:
2885 @echo '@@@%%%=$(MAKE)=@@@%%%'
2886_ACEOF
12e39525 2887# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b57f37fb
WP
2888case `${MAKE-make} -f conftest.make 2>/dev/null` in
2889 *@@@%%%=?*=@@@%%%*)
2890 eval ac_cv_prog_make_${ac_make}_set=yes;;
2891 *)
2892 eval ac_cv_prog_make_${ac_make}_set=no;;
2893esac
2894rm -f conftest.make
2895fi
2896if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
042acc47 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f030cae8 2898$as_echo "yes" >&6; }
b57f37fb
WP
2899 SET_MAKE=
2900else
042acc47 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 2902$as_echo "no" >&6; }
b57f37fb
WP
2903 SET_MAKE="MAKE=${MAKE-make}"
2904fi
2905
2906rm -rf .tst 2>/dev/null
2907mkdir .tst 2>/dev/null
2908if test -d .tst; then
2909 am__leading_dot=.
2910else
2911 am__leading_dot=_
2912fi
2913rmdir .tst 2>/dev/null
2914
2915if test "`cd $srcdir && pwd`" != "`pwd`"; then
2916 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2917 # is not polluted with repeated "-I."
2918 am__isrc=' -I$(srcdir)'
2919 # test to see if srcdir already configured
2920 if test -f $srcdir/config.status; then
12e39525 2921 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
b57f37fb
WP
2922 fi
2923fi
2924
2925# test whether we have cygpath
2926if test -z "$CYGPATH_W"; then
2927 if (cygpath --version) >/dev/null 2>/dev/null; then
2928 CYGPATH_W='cygpath -w'
2929 else
2930 CYGPATH_W=echo
2931 fi
2932fi
2933
2934
2935# Define the identity of the package.
2936 PACKAGE=libratbox
2937 VERSION=devel
2938
2939
2940# Some tools Automake needs.
2941
2942ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2943
2944
2945AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2946
2947
2948AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2949
2950
2951AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2952
2953
2954MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2955
b57f37fb
WP
2956# We need awk for the "check" target. The system "awk" is bad on
2957# some platforms.
2958# Always define AMTAR for backward compatibility.
2959
2960AMTAR=${AMTAR-"${am_missing_run}tar"}
2961
2962am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963
2964
2965
2966
2967
2968
2969ac_config_headers="$ac_config_headers include/libratbox_config.h"
2970
2971
2972
b57f37fb
WP
2973DEPDIR="${am__leading_dot}deps"
2974
2975ac_config_commands="$ac_config_commands depfiles"
2976
2977
2978am_make=${MAKE-make}
2979cat > confinc << 'END'
2980am__doit:
042acc47 2981 @echo this is the am__doit target
b57f37fb
WP
2982.PHONY: am__doit
2983END
2984# If we don't find an include directive, just comment out the code.
042acc47 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
f030cae8 2986$as_echo_n "checking for style of include used by $am_make... " >&6; }
b57f37fb
WP
2987am__include="#"
2988am__quote=
2989_am_result=none
2990# First try GNU make style include.
2991echo "include confinc" > confmf
042acc47
WP
2992# Ignore all kinds of additional output from `make'.
2993case `$am_make -s -f confmf 2> /dev/null` in #(
2994*the\ am__doit\ target*)
2995 am__include=include
2996 am__quote=
2997 _am_result=GNU
2998 ;;
2999esac
b57f37fb
WP
3000# Now try BSD make style include.
3001if test "$am__include" = "#"; then
3002 echo '.include "confinc"' > confmf
042acc47
WP
3003 case `$am_make -s -f confmf 2> /dev/null` in #(
3004 *the\ am__doit\ target*)
3005 am__include=.include
3006 am__quote="\""
3007 _am_result=BSD
3008 ;;
3009 esac
b57f37fb
WP
3010fi
3011
3012
042acc47 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
f030cae8 3014$as_echo "$_am_result" >&6; }
b57f37fb
WP
3015rm -f confinc confmf
3016
3017# Check whether --enable-dependency-tracking was given.
042acc47 3018if test "${enable_dependency_tracking+set}" = set; then :
b57f37fb
WP
3019 enableval=$enable_dependency_tracking;
3020fi
3021
3022if test "x$enable_dependency_tracking" != xno; then
3023 am_depcomp="$ac_aux_dir/depcomp"
3024 AMDEPBACKSLASH='\'
3025fi
3026 if test "x$enable_dependency_tracking" != xno; then
3027 AMDEP_TRUE=
3028 AMDEP_FALSE='#'
3029else
3030 AMDEP_TRUE='#'
3031 AMDEP_FALSE=
3032fi
3033
3034
3035ac_ext=c
3036ac_cpp='$CPP $CPPFLAGS'
3037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3042set dummy ${ac_tool_prefix}gcc; ac_word=$2
042acc47 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3044$as_echo_n "checking for $ac_word... " >&6; }
12e39525 3045if ${ac_cv_prog_CC+:} false; then :
f030cae8 3046 $as_echo_n "(cached) " >&6
b57f37fb
WP
3047else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
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=.
042acc47 3056 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
042acc47 3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3060 break 2
3061 fi
3062done
042acc47 3063 done
b57f37fb
WP
3064IFS=$as_save_IFS
3065
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
042acc47 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3071$as_echo "$CC" >&6; }
b57f37fb 3072else
042acc47 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3074$as_echo "no" >&6; }
b57f37fb
WP
3075fi
3076
3077
3078fi
3079if test -z "$ac_cv_prog_CC"; then
3080 ac_ct_CC=$CC
3081 # Extract the first word of "gcc", so it can be a program name with args.
3082set dummy gcc; ac_word=$2
042acc47 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3084$as_echo_n "checking for $ac_word... " >&6; }
12e39525 3085if ${ac_cv_prog_ac_ct_CC+:} false; then :
f030cae8 3086 $as_echo_n "(cached) " >&6
b57f37fb
WP
3087else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
042acc47 3096 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC="gcc"
042acc47 3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3100 break 2
3101 fi
3102done
042acc47 3103 done
b57f37fb
WP
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109if test -n "$ac_ct_CC"; then
042acc47 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
f030cae8 3111$as_echo "$ac_ct_CC" >&6; }
b57f37fb 3112else
042acc47 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3114$as_echo "no" >&6; }
b57f37fb
WP
3115fi
3116
3117 if test "x$ac_ct_CC" = x; then
3118 CC=""
3119 else
3120 case $cross_compiling:$ac_tool_warned in
3121yes:)
042acc47 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 3123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
3124ac_tool_warned=yes ;;
3125esac
3126 CC=$ac_ct_CC
3127 fi
3128else
3129 CC="$ac_cv_prog_CC"
3130fi
3131
3132if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3135set dummy ${ac_tool_prefix}cc; ac_word=$2
042acc47 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3137$as_echo_n "checking for $ac_word... " >&6; }
12e39525 3138if ${ac_cv_prog_CC+:} false; then :
f030cae8 3139 $as_echo_n "(cached) " >&6
b57f37fb
WP
3140else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143else
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
042acc47 3149 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_CC="${ac_tool_prefix}cc"
042acc47 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3153 break 2
3154 fi
3155done
042acc47 3156 done
b57f37fb
WP
3157IFS=$as_save_IFS
3158
3159fi
3160fi
3161CC=$ac_cv_prog_CC
3162if test -n "$CC"; then
042acc47 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3164$as_echo "$CC" >&6; }
b57f37fb 3165else
042acc47 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3167$as_echo "no" >&6; }
b57f37fb
WP
3168fi
3169
3170
3171 fi
3172fi
3173if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175set dummy cc; ac_word=$2
042acc47 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3177$as_echo_n "checking for $ac_word... " >&6; }
12e39525 3178if ${ac_cv_prog_CC+:} false; then :
f030cae8 3179 $as_echo_n "(cached) " >&6
b57f37fb
WP
3180else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184 ac_prog_rejected=no
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
042acc47 3190 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193 ac_prog_rejected=yes
3194 continue
3195 fi
3196 ac_cv_prog_CC="cc"
042acc47 3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3198 break 2
3199 fi
3200done
042acc47 3201 done
b57f37fb
WP
3202IFS=$as_save_IFS
3203
3204if test $ac_prog_rejected = yes; then
3205 # We found a bogon in the path, so make sure we never use it.
3206 set dummy $ac_cv_prog_CC
3207 shift
3208 if test $# != 0; then
3209 # We chose a different compiler from the bogus one.
3210 # However, it has the same basename, so the bogon will be chosen
3211 # first if we set CC to just the basename; use the full file name.
3212 shift
3213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3214 fi
3215fi
3216fi
3217fi
3218CC=$ac_cv_prog_CC
3219if test -n "$CC"; then
042acc47 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3221$as_echo "$CC" >&6; }
b57f37fb 3222else
042acc47 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3224$as_echo "no" >&6; }
b57f37fb
WP
3225fi
3226
3227
3228fi
3229if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 for ac_prog in cl.exe
3232 do
3233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
042acc47 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3236$as_echo_n "checking for $ac_word... " >&6; }
12e39525 3237if ${ac_cv_prog_CC+:} false; then :
f030cae8 3238 $as_echo_n "(cached) " >&6
b57f37fb
WP
3239else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
042acc47 3248 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
042acc47 3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3252 break 2
3253 fi
3254done
042acc47 3255 done
b57f37fb
WP
3256IFS=$as_save_IFS
3257
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
042acc47 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3263$as_echo "$CC" >&6; }
b57f37fb 3264else
042acc47 3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3266$as_echo "no" >&6; }
b57f37fb
WP
3267fi
3268
3269
3270 test -n "$CC" && break
3271 done
3272fi
3273if test -z "$CC"; then
3274 ac_ct_CC=$CC
3275 for ac_prog in cl.exe
3276do
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278set dummy $ac_prog; ac_word=$2
042acc47 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3280$as_echo_n "checking for $ac_word... " >&6; }
12e39525 3281if ${ac_cv_prog_ac_ct_CC+:} false; then :
f030cae8 3282 $as_echo_n "(cached) " >&6
b57f37fb
WP
3283else
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
042acc47 3292 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_ac_ct_CC="$ac_prog"
042acc47 3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3296 break 2
3297 fi
3298done
042acc47 3299 done
b57f37fb
WP
3300IFS=$as_save_IFS
3301
3302fi
3303fi
3304ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305if test -n "$ac_ct_CC"; then
042acc47 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
f030cae8 3307$as_echo "$ac_ct_CC" >&6; }
b57f37fb 3308else
042acc47 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3310$as_echo "no" >&6; }
b57f37fb
WP
3311fi
3312
3313
3314 test -n "$ac_ct_CC" && break
3315done
3316
3317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321yes:)
042acc47 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 3323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
3324ac_tool_warned=yes ;;
3325esac
3326 CC=$ac_ct_CC
3327 fi
3328fi
3329
3330fi
3331
3332
042acc47 3333test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
3335as_fn_error $? "no acceptable C compiler found in \$PATH
3336See \`config.log' for more details" "$LINENO" 5; }
b57f37fb
WP
3337
3338# Provide some information about the compiler.
042acc47 3339$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
f030cae8
VY
3340set X $ac_compile
3341ac_compiler=$2
042acc47
WP
3342for ac_option in --version -v -V -qversion; do
3343 { { ac_try="$ac_compiler $ac_option >&5"
b57f37fb
WP
3344case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347esac
042acc47
WP
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b57f37fb 3351 ac_status=$?
042acc47
WP
3352 if test -s conftest.err; then
3353 sed '10a\
3354... rest of stderr output deleted ...
3355 10q' conftest.err >conftest.er1
3356 cat conftest.er1 >&5
042acc47 3357 fi
1800d973 3358 rm -f conftest.er1 conftest.err
042acc47
WP
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361done
b57f37fb 3362
042acc47 3363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 3364/* end confdefs.h. */
1800d973 3365
b57f37fb
WP
3366int
3367main ()
3368{
3369
3370 ;
3371 return 0;
3372}
3373_ACEOF
3374ac_clean_files_save=$ac_clean_files
1800d973 3375ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b57f37fb
WP
3376# Try to create an executable without -o first, disregard a.out.
3377# It will help us diagnose broken compilers, and finding out an intuition
3378# of exeext.
1800d973
WP
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380$as_echo_n "checking whether the C compiler works... " >&6; }
f030cae8
VY
3381ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3382
3383# The possible output files:
3384ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3385
b57f37fb
WP
3386ac_rmfiles=
3387for ac_file in $ac_files
3388do
3389 case $ac_file in
f030cae8 3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b57f37fb
WP
3391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3392 esac
3393done
3394rm -f $ac_rmfiles
3395
042acc47 3396if { { ac_try="$ac_link_default"
b57f37fb
WP
3397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
042acc47
WP
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
b57f37fb
WP
3403 (eval "$ac_link_default") 2>&5
3404 ac_status=$?
042acc47
WP
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
b57f37fb
WP
3407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3408# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3409# in a Makefile. We should not override ac_cv_exeext if it was cached,
3410# so that the user can short-circuit this test for compilers unknown to
3411# Autoconf.
3412for ac_file in $ac_files ''
3413do
3414 test -f "$ac_file" || continue
3415 case $ac_file in
f030cae8 3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b57f37fb
WP
3417 ;;
3418 [ab].out )
3419 # We found the default executable, but exeext='' is most
3420 # certainly right.
3421 break;;
3422 *.* )
042acc47 3423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
b57f37fb
WP
3424 then :; else
3425 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426 fi
3427 # We set ac_cv_exeext here because the later test for it is not
3428 # safe: cross compilers may not add the suffix if given an `-o'
3429 # argument, so we may need to know it at that point already.
3430 # Even if this section looks crufty: it has the advantage of
3431 # actually working.
3432 break;;
3433 * )
3434 break;;
3435 esac
3436done
3437test "$ac_cv_exeext" = no && ac_cv_exeext=
3438
3439else
3440 ac_file=''
3441fi
042acc47 3442if test -z "$ac_file"; then :
1800d973
WP
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445$as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
042acc47 3448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
3450as_fn_error 77 "C compiler cannot create executables
3451See \`config.log' for more details" "$LINENO" 5; }
1800d973
WP
3452else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454$as_echo "yes" >&6; }
b57f37fb 3455fi
1800d973
WP
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3457$as_echo_n "checking for C compiler default output file name... " >&6; }
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3459$as_echo "$ac_file" >&6; }
b57f37fb
WP
3460ac_exeext=$ac_cv_exeext
3461
1800d973 3462rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b57f37fb 3463ac_clean_files=$ac_clean_files_save
042acc47 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
f030cae8 3465$as_echo_n "checking for suffix of executables... " >&6; }
042acc47 3466if { { ac_try="$ac_link"
b57f37fb
WP
3467case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470esac
042acc47
WP
3471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472$as_echo "$ac_try_echo"; } >&5
b57f37fb
WP
3473 (eval "$ac_link") 2>&5
3474 ac_status=$?
042acc47
WP
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
b57f37fb
WP
3477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3478# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3479# work properly (i.e., refer to `conftest.exe'), while it won't with
3480# `rm'.
3481for ac_file in conftest.exe conftest conftest.*; do
3482 test -f "$ac_file" || continue
3483 case $ac_file in
f030cae8 3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b57f37fb
WP
3485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486 break;;
3487 * ) break;;
3488 esac
3489done
3490else
042acc47 3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
3493as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3494See \`config.log' for more details" "$LINENO" 5; }
b57f37fb 3495fi
1800d973 3496rm -f conftest conftest$ac_cv_exeext
042acc47 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
f030cae8 3498$as_echo "$ac_cv_exeext" >&6; }
b57f37fb
WP
3499
3500rm -f conftest.$ac_ext
3501EXEEXT=$ac_cv_exeext
3502ac_exeext=$EXEEXT
1800d973
WP
3503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h. */
3505#include <stdio.h>
3506int
3507main ()
3508{
3509FILE *f = fopen ("conftest.out", "w");
3510 return ferror (f) || fclose (f) != 0;
3511
3512 ;
3513 return 0;
3514}
3515_ACEOF
3516ac_clean_files="$ac_clean_files conftest.out"
3517# Check that the compiler produces executables we can run. If not, either
3518# the compiler is broken, or we cross compile.
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3520$as_echo_n "checking whether we are cross compiling... " >&6; }
3521if test "$cross_compiling" != yes; then
3522 { { ac_try="$ac_link"
3523case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526esac
3527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528$as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_link") 2>&5
3530 ac_status=$?
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }
3533 if { ac_try='./conftest$ac_cv_exeext'
3534 { { case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537esac
3538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539$as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_try") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; }; then
3544 cross_compiling=no
3545 else
3546 if test "$cross_compiling" = maybe; then
3547 cross_compiling=yes
3548 else
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525 3551as_fn_error $? "cannot run C compiled programs.
1800d973 3552If you meant to cross compile, use \`--host'.
12e39525 3553See \`config.log' for more details" "$LINENO" 5; }
1800d973
WP
3554 fi
3555 fi
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3558$as_echo "$cross_compiling" >&6; }
3559
3560rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3561ac_clean_files=$ac_clean_files_save
042acc47 3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
f030cae8 3563$as_echo_n "checking for suffix of object files... " >&6; }
12e39525 3564if ${ac_cv_objext+:} false; then :
f030cae8 3565 $as_echo_n "(cached) " >&6
b57f37fb 3566else
042acc47 3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3568/* end confdefs.h. */
3569
3570int
3571main ()
3572{
3573
3574 ;
3575 return 0;
3576}
3577_ACEOF
3578rm -f conftest.o conftest.obj
042acc47 3579if { { ac_try="$ac_compile"
b57f37fb
WP
3580case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583esac
042acc47
WP
3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
b57f37fb
WP
3586 (eval "$ac_compile") 2>&5
3587 ac_status=$?
042acc47
WP
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
b57f37fb
WP
3590 for ac_file in conftest.o conftest.obj conftest.*; do
3591 test -f "$ac_file" || continue;
3592 case $ac_file in
f030cae8 3593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b57f37fb
WP
3594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3595 break;;
3596 esac
3597done
3598else
f030cae8 3599 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
042acc47 3602{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
3604as_fn_error $? "cannot compute suffix of object files: cannot compile
3605See \`config.log' for more details" "$LINENO" 5; }
b57f37fb 3606fi
b57f37fb
WP
3607rm -f conftest.$ac_cv_objext conftest.$ac_ext
3608fi
042acc47 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
f030cae8 3610$as_echo "$ac_cv_objext" >&6; }
b57f37fb
WP
3611OBJEXT=$ac_cv_objext
3612ac_objext=$OBJEXT
042acc47 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
f030cae8 3614$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12e39525 3615if ${ac_cv_c_compiler_gnu+:} false; then :
f030cae8 3616 $as_echo_n "(cached) " >&6
b57f37fb 3617else
042acc47 3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3619/* end confdefs.h. */
3620
3621int
3622main ()
3623{
3624#ifndef __GNUC__
3625 choke me
3626#endif
3627
3628 ;
3629 return 0;
3630}
3631_ACEOF
042acc47 3632if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb
WP
3633 ac_compiler_gnu=yes
3634else
042acc47 3635 ac_compiler_gnu=no
b57f37fb 3636fi
b57f37fb
WP
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638ac_cv_c_compiler_gnu=$ac_compiler_gnu
3639
3640fi
042acc47 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
f030cae8
VY
3642$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3643if test $ac_compiler_gnu = yes; then
3644 GCC=yes
3645else
3646 GCC=
3647fi
b57f37fb
WP
3648ac_test_CFLAGS=${CFLAGS+set}
3649ac_save_CFLAGS=$CFLAGS
042acc47 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
f030cae8 3651$as_echo_n "checking whether $CC accepts -g... " >&6; }
12e39525 3652if ${ac_cv_prog_cc_g+:} false; then :
f030cae8 3653 $as_echo_n "(cached) " >&6
b57f37fb
WP
3654else
3655 ac_save_c_werror_flag=$ac_c_werror_flag
3656 ac_c_werror_flag=yes
3657 ac_cv_prog_cc_g=no
3658 CFLAGS="-g"
042acc47 3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3660/* end confdefs.h. */
3661
3662int
3663main ()
3664{
3665
3666 ;
3667 return 0;
3668}
3669_ACEOF
042acc47 3670if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb
WP
3671 ac_cv_prog_cc_g=yes
3672else
042acc47
WP
3673 CFLAGS=""
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3675/* end confdefs.h. */
3676
3677int
3678main ()
3679{
3680
3681 ;
3682 return 0;
3683}
3684_ACEOF
042acc47 3685if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb 3686
042acc47
WP
3687else
3688 ac_c_werror_flag=$ac_save_c_werror_flag
b57f37fb 3689 CFLAGS="-g"
042acc47 3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3691/* end confdefs.h. */
3692
3693int
3694main ()
3695{
3696
3697 ;
3698 return 0;
3699}
3700_ACEOF
042acc47 3701if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb 3702 ac_cv_prog_cc_g=yes
b57f37fb 3703fi
b57f37fb
WP
3704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705fi
b57f37fb
WP
3706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707fi
b57f37fb
WP
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_c_werror_flag=$ac_save_c_werror_flag
3710fi
042acc47 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
f030cae8 3712$as_echo "$ac_cv_prog_cc_g" >&6; }
b57f37fb
WP
3713if test "$ac_test_CFLAGS" = set; then
3714 CFLAGS=$ac_save_CFLAGS
3715elif test $ac_cv_prog_cc_g = yes; then
3716 if test "$GCC" = yes; then
3717 CFLAGS="-g -O2"
3718 else
3719 CFLAGS="-g"
3720 fi
3721else
3722 if test "$GCC" = yes; then
3723 CFLAGS="-O2"
3724 else
3725 CFLAGS=
3726 fi
3727fi
042acc47 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
f030cae8 3729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12e39525 3730if ${ac_cv_prog_cc_c89+:} false; then :
f030cae8 3731 $as_echo_n "(cached) " >&6
b57f37fb
WP
3732else
3733 ac_cv_prog_cc_c89=no
3734ac_save_CC=$CC
042acc47 3735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3736/* end confdefs.h. */
3737#include <stdarg.h>
3738#include <stdio.h>
3739#include <sys/types.h>
3740#include <sys/stat.h>
3741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3742struct buf { int x; };
3743FILE * (*rcsopen) (struct buf *, struct stat *, int);
3744static char *e (p, i)
3745 char **p;
3746 int i;
3747{
3748 return p[i];
3749}
3750static char *f (char * (*g) (char **, int), char **p, ...)
3751{
3752 char *s;
3753 va_list v;
3754 va_start (v,p);
3755 s = g (p, va_arg (v,int));
3756 va_end (v);
3757 return s;
3758}
3759
3760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3761 function prototypes and stuff, but not '\xHH' hex character constants.
3762 These don't provoke an error unfortunately, instead are silently treated
3763 as 'x'. The following induces an error, until -std is added to get
3764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3765 array size at least. It's necessary to write '\x00'==0 to get something
3766 that's true only with -std. */
3767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3768
3769/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3770 inside strings and character constants. */
3771#define FOO(x) 'x'
3772int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3773
3774int test (int i, double x);
3775struct s1 {int (*f) (int a);};
3776struct s2 {int (*f) (double a);};
3777int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778int argc;
3779char **argv;
3780int
3781main ()
3782{
3783return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3790do
3791 CC="$ac_save_CC $ac_arg"
042acc47 3792 if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb 3793 ac_cv_prog_cc_c89=$ac_arg
b57f37fb 3794fi
b57f37fb
WP
3795rm -f core conftest.err conftest.$ac_objext
3796 test "x$ac_cv_prog_cc_c89" != "xno" && break
3797done
3798rm -f conftest.$ac_ext
3799CC=$ac_save_CC
3800
3801fi
3802# AC_CACHE_VAL
3803case "x$ac_cv_prog_cc_c89" in
3804 x)
042acc47 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
f030cae8 3806$as_echo "none needed" >&6; } ;;
b57f37fb 3807 xno)
042acc47 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
f030cae8 3809$as_echo "unsupported" >&6; } ;;
b57f37fb
WP
3810 *)
3811 CC="$CC $ac_cv_prog_cc_c89"
042acc47 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
f030cae8 3813$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b57f37fb 3814esac
042acc47 3815if test "x$ac_cv_prog_cc_c89" != xno; then :
b57f37fb 3816
042acc47 3817fi
b57f37fb
WP
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
3824
3825depcc="$CC" am_compiler_list=
3826
042acc47 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
f030cae8 3828$as_echo_n "checking dependency style of $depcc... " >&6; }
12e39525 3829if ${am_cv_CC_dependencies_compiler_type+:} false; then :
f030cae8 3830 $as_echo_n "(cached) " >&6
b57f37fb
WP
3831else
3832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3833 # We make a subdir and do the tests there. Otherwise we can end up
3834 # making bogus files that we don't know about and never remove. For
3835 # instance it was reported that on HP-UX the gcc test will end up
3836 # making a dummy file named `D' -- because `-MD' means `put the output
3837 # in D'.
3838 mkdir conftest.dir
3839 # Copy depcomp to subdir because otherwise we won't find it if we're
3840 # using a relative directory.
3841 cp "$am_depcomp" conftest.dir
3842 cd conftest.dir
3843 # We will build objects and dependencies in a subdirectory because
3844 # it helps to detect inapplicable dependency modes. For instance
3845 # both Tru64's cc and ICC support -MD to output dependencies as a
3846 # side effect of compilation, but ICC will put the dependencies in
3847 # the current directory while Tru64 will put them in the object
3848 # directory.
3849 mkdir sub
3850
3851 am_cv_CC_dependencies_compiler_type=none
3852 if test "$am_compiler_list" = ""; then
3853 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3854 fi
042acc47
WP
3855 am__universal=false
3856 case " $depcc " in #(
3857 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3858 esac
3859
b57f37fb
WP
3860 for depmode in $am_compiler_list; do
3861 # Setup a source with many dependencies, because some compilers
3862 # like to wrap large dependency lists on column 80 (with \), and
3863 # we should not choose a depcomp mode which is confused by this.
3864 #
3865 # We need to recreate these files for each test, as the compiler may
3866 # overwrite some of them when testing with obscure command lines.
3867 # This happens at least with the AIX C compiler.
3868 : > sub/conftest.c
3869 for i in 1 2 3 4 5 6; do
3870 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3871 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3872 # Solaris 8's {/usr,}/bin/sh.
3873 touch sub/conftst$i.h
3874 done
3875 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3876
042acc47
WP
3877 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3878 # mode. It turns out that the SunPro C++ compiler does not properly
3879 # handle `-M -o', and we need to detect this. Also, some Intel
3880 # versions had trouble with output in subdirs
3881 am__obj=sub/conftest.${OBJEXT-o}
3882 am__minus_obj="-o $am__obj"
b57f37fb 3883 case $depmode in
042acc47
WP
3884 gcc)
3885 # This depmode causes a compiler race in universal mode.
3886 test "$am__universal" = false || continue
3887 ;;
b57f37fb
WP
3888 nosideeffect)
3889 # after this tag, mechanisms are not by side-effect, so they'll
3890 # only be used when explicitly requested
3891 if test "x$enable_dependency_tracking" = xyes; then
3892 continue
3893 else
3894 break
3895 fi
3896 ;;
042acc47
WP
3897 msvisualcpp | msvcmsys)
3898 # This compiler won't grok `-c -o', but also, the minuso test has
3899 # not run yet. These depmodes are late enough in the game, and
3900 # so weak that their functioning should not be impacted.
3901 am__obj=conftest.${OBJEXT-o}
3902 am__minus_obj=
3903 ;;
b57f37fb
WP
3904 none) break ;;
3905 esac
b57f37fb 3906 if depmode=$depmode \
042acc47 3907 source=sub/conftest.c object=$am__obj \
b57f37fb 3908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
042acc47 3909 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
b57f37fb
WP
3910 >/dev/null 2>conftest.err &&
3911 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
042acc47 3913 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
b57f37fb
WP
3914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3915 # icc doesn't choke on unknown options, it will just issue warnings
3916 # or remarks (even with -Werror). So we grep stderr for any message
3917 # that says an option was ignored or not supported.
3918 # When given -MP, icc 7.0 and 7.1 complain thusly:
3919 # icc: Command line warning: ignoring option '-M'; no argument required
3920 # The diagnosis changed in icc 8.0:
3921 # icc: Command line remark: option '-MP' not supported
3922 if (grep 'ignoring option' conftest.err ||
3923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3924 am_cv_CC_dependencies_compiler_type=$depmode
3925 break
3926 fi
3927 fi
3928 done
3929
3930 cd ..
3931 rm -rf conftest.dir
3932else
3933 am_cv_CC_dependencies_compiler_type=none
3934fi
3935
3936fi
042acc47 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
f030cae8 3938$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
b57f37fb
WP
3939CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3940
3941 if
3942 test "x$enable_dependency_tracking" != xno \
3943 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3944 am__fastdepCC_TRUE=
3945 am__fastdepCC_FALSE='#'
3946else
3947 am__fastdepCC_TRUE='#'
3948 am__fastdepCC_FALSE=
3949fi
3950
3951
f030cae8
VY
3952
3953ac_ext=c
3954ac_cpp='$CPP $CPPFLAGS'
3955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957ac_compiler_gnu=$ac_cv_c_compiler_gnu
042acc47 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
f030cae8
VY
3959$as_echo_n "checking how to run the C preprocessor... " >&6; }
3960# On Suns, sometimes $CPP names a directory.
3961if test -n "$CPP" && test -d "$CPP"; then
3962 CPP=
3963fi
3964if test -z "$CPP"; then
12e39525 3965 if ${ac_cv_prog_CPP+:} false; then :
f030cae8 3966 $as_echo_n "(cached) " >&6
b57f37fb 3967else
f030cae8
VY
3968 # Double quotes because CPP needs to be expanded
3969 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3970 do
3971 ac_preproc_ok=false
3972for ac_c_preproc_warn_flag in '' yes
3973do
3974 # Use a header file that comes with gcc, so configuring glibc
3975 # with a fresh cross-compiler works.
3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977 # <limits.h> exists even on freestanding compilers.
3978 # On the NeXT, cc -E runs the code through the compiler's parser,
3979 # not just through cpp. "Syntax error" is here to catch this case.
042acc47 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 3981/* end confdefs.h. */
f030cae8
VY
3982#ifdef __STDC__
3983# include <limits.h>
b57f37fb 3984#else
f030cae8 3985# include <assert.h>
b57f37fb 3986#endif
f030cae8 3987 Syntax error
b57f37fb 3988_ACEOF
042acc47 3989if ac_fn_c_try_cpp "$LINENO"; then :
b57f37fb 3990
042acc47 3991else
f030cae8
VY
3992 # Broken: fails on valid input.
3993continue
b57f37fb 3994fi
12e39525 3995rm -f conftest.err conftest.i conftest.$ac_ext
b57f37fb 3996
f030cae8
VY
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
042acc47 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4000/* end confdefs.h. */
4001#include <ac_nonexistent.h>
4002_ACEOF
042acc47 4003if ac_fn_c_try_cpp "$LINENO"; then :
f030cae8
VY
4004 # Broken: success on invalid input.
4005continue
4006else
f030cae8
VY
4007 # Passes both tests.
4008ac_preproc_ok=:
4009break
4010fi
12e39525 4011rm -f conftest.err conftest.i conftest.$ac_ext
b57f37fb 4012
f030cae8
VY
4013done
4014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12e39525 4015rm -f conftest.i conftest.err conftest.$ac_ext
042acc47 4016if $ac_preproc_ok; then :
f030cae8 4017 break
b57f37fb
WP
4018fi
4019
f030cae8
VY
4020 done
4021 ac_cv_prog_CPP=$CPP
b57f37fb 4022
f030cae8
VY
4023fi
4024 CPP=$ac_cv_prog_CPP
b57f37fb 4025else
f030cae8
VY
4026 ac_cv_prog_CPP=$CPP
4027fi
042acc47 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
f030cae8
VY
4029$as_echo "$CPP" >&6; }
4030ac_preproc_ok=false
4031for ac_c_preproc_warn_flag in '' yes
b57f37fb 4032do
f030cae8
VY
4033 # Use a header file that comes with gcc, so configuring glibc
4034 # with a fresh cross-compiler works.
4035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 # <limits.h> exists even on freestanding compilers.
4037 # On the NeXT, cc -E runs the code through the compiler's parser,
4038 # not just through cpp. "Syntax error" is here to catch this case.
042acc47 4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4040/* end confdefs.h. */
4041#ifdef __STDC__
4042# include <limits.h>
4043#else
4044# include <assert.h>
4045#endif
4046 Syntax error
4047_ACEOF
042acc47 4048if ac_fn_c_try_cpp "$LINENO"; then :
b57f37fb 4049
042acc47 4050else
f030cae8
VY
4051 # Broken: fails on valid input.
4052continue
b57f37fb 4053fi
12e39525 4054rm -f conftest.err conftest.i conftest.$ac_ext
b57f37fb 4055
f030cae8
VY
4056 # OK, works on sane cases. Now check whether nonexistent headers
4057 # can be detected and how.
042acc47 4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4059/* end confdefs.h. */
4060#include <ac_nonexistent.h>
4061_ACEOF
042acc47 4062if ac_fn_c_try_cpp "$LINENO"; then :
f030cae8
VY
4063 # Broken: success on invalid input.
4064continue
4065else
f030cae8
VY
4066 # Passes both tests.
4067ac_preproc_ok=:
4068break
4069fi
12e39525 4070rm -f conftest.err conftest.i conftest.$ac_ext
f030cae8
VY
4071
4072done
4073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12e39525 4074rm -f conftest.i conftest.err conftest.$ac_ext
042acc47
WP
4075if $ac_preproc_ok; then :
4076
b57f37fb 4077else
042acc47 4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 4079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
4080as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4081See \`config.log' for more details" "$LINENO" 5; }
f030cae8
VY
4082fi
4083
4084ac_ext=c
4085ac_cpp='$CPP $CPPFLAGS'
4086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090
042acc47 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
f030cae8 4092$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12e39525 4093if ${ac_cv_path_GREP+:} false; then :
f030cae8 4094 $as_echo_n "(cached) " >&6
b57f37fb 4095else
f030cae8 4096 if test -z "$GREP"; then
b57f37fb 4097 ac_path_GREP_found=false
f030cae8
VY
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b57f37fb
WP
4100for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
042acc47 4104 for ac_prog in grep ggrep; do
f030cae8
VY
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4108# Check for GNU ac_path_GREP and select it if it is found.
b57f37fb
WP
4109 # Check for GNU $ac_path_GREP
4110case `"$ac_path_GREP" --version 2>&1` in
4111*GNU*)
4112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4113*)
4114 ac_count=0
f030cae8 4115 $as_echo_n 0123456789 >"conftest.in"
b57f37fb
WP
4116 while :
4117 do
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
f030cae8 4121 $as_echo 'GREP' >> "conftest.nl"
b57f37fb
WP
4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4124 as_fn_arith $ac_count + 1 && ac_count=$as_val
b57f37fb
WP
4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_GREP="$ac_path_GREP"
4128 ac_path_GREP_max=$ac_count
4129 fi
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4132 done
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134esac
4135
f030cae8
VY
4136 $ac_path_GREP_found && break 3
4137 done
b57f37fb 4138 done
042acc47 4139 done
b57f37fb 4140IFS=$as_save_IFS
f030cae8 4141 if test -z "$ac_cv_path_GREP"; then
12e39525 4142 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f030cae8 4143 fi
b57f37fb
WP
4144else
4145 ac_cv_path_GREP=$GREP
4146fi
4147
b57f37fb 4148fi
042acc47 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
f030cae8 4150$as_echo "$ac_cv_path_GREP" >&6; }
b57f37fb
WP
4151 GREP="$ac_cv_path_GREP"
4152
4153
042acc47 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
f030cae8 4155$as_echo_n "checking for egrep... " >&6; }
12e39525 4156if ${ac_cv_path_EGREP+:} false; then :
f030cae8 4157 $as_echo_n "(cached) " >&6
b57f37fb
WP
4158else
4159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4160 then ac_cv_path_EGREP="$GREP -E"
4161 else
f030cae8 4162 if test -z "$EGREP"; then
b57f37fb 4163 ac_path_EGREP_found=false
f030cae8
VY
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b57f37fb
WP
4166for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
042acc47 4170 for ac_prog in egrep; do
f030cae8
VY
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4173 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4174# Check for GNU ac_path_EGREP and select it if it is found.
b57f37fb
WP
4175 # Check for GNU $ac_path_EGREP
4176case `"$ac_path_EGREP" --version 2>&1` in
4177*GNU*)
4178 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4179*)
4180 ac_count=0
f030cae8 4181 $as_echo_n 0123456789 >"conftest.in"
b57f37fb
WP
4182 while :
4183 do
4184 cat "conftest.in" "conftest.in" >"conftest.tmp"
4185 mv "conftest.tmp" "conftest.in"
4186 cp "conftest.in" "conftest.nl"
f030cae8 4187 $as_echo 'EGREP' >> "conftest.nl"
b57f37fb
WP
4188 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4190 as_fn_arith $ac_count + 1 && ac_count=$as_val
b57f37fb
WP
4191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4192 # Best one so far, save it but keep looking for a better one
4193 ac_cv_path_EGREP="$ac_path_EGREP"
4194 ac_path_EGREP_max=$ac_count
4195 fi
4196 # 10*(2^10) chars as input seems more than enough
4197 test $ac_count -gt 10 && break
4198 done
4199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4200esac
4201
f030cae8
VY
4202 $ac_path_EGREP_found && break 3
4203 done
b57f37fb 4204 done
042acc47 4205 done
b57f37fb 4206IFS=$as_save_IFS
f030cae8 4207 if test -z "$ac_cv_path_EGREP"; then
12e39525 4208 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f030cae8 4209 fi
b57f37fb
WP
4210else
4211 ac_cv_path_EGREP=$EGREP
4212fi
4213
b57f37fb
WP
4214 fi
4215fi
042acc47 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
f030cae8 4217$as_echo "$ac_cv_path_EGREP" >&6; }
b57f37fb
WP
4218 EGREP="$ac_cv_path_EGREP"
4219
4220
042acc47 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
f030cae8 4222$as_echo_n "checking for ANSI C header files... " >&6; }
12e39525 4223if ${ac_cv_header_stdc+:} false; then :
f030cae8 4224 $as_echo_n "(cached) " >&6
b57f37fb 4225else
042acc47 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 4227/* end confdefs.h. */
f030cae8
VY
4228#include <stdlib.h>
4229#include <stdarg.h>
4230#include <string.h>
4231#include <float.h>
b57f37fb 4232
b57f37fb
WP
4233int
4234main ()
4235{
f030cae8 4236
b57f37fb
WP
4237 ;
4238 return 0;
4239}
4240_ACEOF
042acc47 4241if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4242 ac_cv_header_stdc=yes
b57f37fb 4243else
042acc47 4244 ac_cv_header_stdc=no
b57f37fb 4245fi
f030cae8
VY
4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247
4248if test $ac_cv_header_stdc = yes; then
4249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
042acc47 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4251/* end confdefs.h. */
4252#include <string.h>
4253
4254_ACEOF
4255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
042acc47
WP
4256 $EGREP "memchr" >/dev/null 2>&1; then :
4257
b57f37fb 4258else
f030cae8 4259 ac_cv_header_stdc=no
b57f37fb 4260fi
f030cae8 4261rm -f conftest*
b57f37fb
WP
4262
4263fi
4264
f030cae8
VY
4265if test $ac_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
042acc47 4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 4268/* end confdefs.h. */
f030cae8 4269#include <stdlib.h>
b57f37fb
WP
4270
4271_ACEOF
f030cae8 4272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
042acc47
WP
4273 $EGREP "free" >/dev/null 2>&1; then :
4274
b57f37fb 4275else
f030cae8 4276 ac_cv_header_stdc=no
b57f37fb 4277fi
f030cae8 4278rm -f conftest*
b57f37fb
WP
4279
4280fi
b57f37fb 4281
f030cae8
VY
4282if test $ac_cv_header_stdc = yes; then
4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
042acc47 4284 if test "$cross_compiling" = yes; then :
f030cae8 4285 :
b57f37fb 4286else
042acc47 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 4288/* end confdefs.h. */
f030cae8
VY
4289#include <ctype.h>
4290#include <stdlib.h>
4291#if ((' ' & 0x0FF) == 0x020)
4292# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4294#else
4295# define ISLOWER(c) \
4296 (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
b57f37fb
WP
4300#endif
4301
f030cae8
VY
4302#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4303int
4304main ()
4305{
4306 int i;
4307 for (i = 0; i < 256; i++)
4308 if (XOR (islower (i), ISLOWER (i))
4309 || toupper (i) != TOUPPER (i))
4310 return 2;
b57f37fb
WP
4311 return 0;
4312}
4313_ACEOF
042acc47 4314if ac_fn_c_try_run "$LINENO"; then :
f030cae8 4315
042acc47
WP
4316else
4317 ac_cv_header_stdc=no
f030cae8 4318fi
042acc47
WP
4319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4320 conftest.$ac_objext conftest.beam conftest.$ac_ext
f030cae8
VY
4321fi
4322
f030cae8
VY
4323fi
4324fi
042acc47 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
f030cae8
VY
4326$as_echo "$ac_cv_header_stdc" >&6; }
4327if test $ac_cv_header_stdc = yes; then
4328
042acc47 4329$as_echo "#define STDC_HEADERS 1" >>confdefs.h
f030cae8
VY
4330
4331fi
4332
4333# On IRIX 5.3, sys/types and inttypes.h are conflicting.
042acc47
WP
4334for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4335 inttypes.h stdint.h unistd.h
4336do :
4337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4338ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4339"
12e39525 4340if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
042acc47
WP
4341 cat >>confdefs.h <<_ACEOF
4342#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4343_ACEOF
f030cae8 4344
042acc47 4345fi
f030cae8 4346
042acc47 4347done
f030cae8
VY
4348
4349
4350
042acc47 4351 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
12e39525 4352if test "x$ac_cv_header_minix_config_h" = xyes; then :
042acc47
WP
4353 MINIX=yes
4354else
4355 MINIX=
4356fi
f030cae8
VY
4357
4358
042acc47 4359 if test "$MINIX" = yes; then
f030cae8 4360
042acc47 4361$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
f030cae8 4362
b57f37fb 4363
042acc47 4364$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
b57f37fb 4365
b57f37fb 4366
042acc47 4367$as_echo "#define _MINIX 1" >>confdefs.h
f030cae8 4368
042acc47 4369 fi
f030cae8
VY
4370
4371
042acc47 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
f030cae8 4373$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
12e39525 4374if ${ac_cv_safe_to_define___extensions__+:} false; then :
f030cae8 4375 $as_echo_n "(cached) " >&6
b57f37fb 4376else
042acc47 4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8 4378/* end confdefs.h. */
b57f37fb 4379
f030cae8
VY
4380# define __EXTENSIONS__ 1
4381 $ac_includes_default
4382int
4383main ()
4384{
4385
4386 ;
4387 return 0;
4388}
4389_ACEOF
042acc47 4390if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4391 ac_cv_safe_to_define___extensions__=yes
b57f37fb 4392else
042acc47 4393 ac_cv_safe_to_define___extensions__=no
b57f37fb 4394fi
f030cae8
VY
4395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396fi
042acc47 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
f030cae8
VY
4398$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4399 test $ac_cv_safe_to_define___extensions__ = yes &&
042acc47 4400 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
b57f37fb 4401
042acc47 4402 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
f030cae8 4403
042acc47 4404 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
f030cae8 4405
042acc47
WP
4406 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4407
4408 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
f030cae8 4409
f030cae8
VY
4410
4411
4412
042acc47 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
f030cae8 4414$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12e39525 4415if ${ac_cv_prog_cc_c99+:} false; then :
f030cae8 4416 $as_echo_n "(cached) " >&6
b57f37fb 4417else
f030cae8
VY
4418 ac_cv_prog_cc_c99=no
4419ac_save_CC=$CC
042acc47 4420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4421/* end confdefs.h. */
4422#include <stdarg.h>
4423#include <stdbool.h>
4424#include <stdlib.h>
4425#include <wchar.h>
4426#include <stdio.h>
b57f37fb 4427
f030cae8
VY
4428// Check varargs macros. These examples are taken from C99 6.10.3.5.
4429#define debug(...) fprintf (stderr, __VA_ARGS__)
4430#define showlist(...) puts (#__VA_ARGS__)
4431#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4432static void
4433test_varargs_macros (void)
4434{
4435 int x = 1234;
4436 int y = 5678;
4437 debug ("Flag");
4438 debug ("X = %d\n", x);
4439 showlist (The first, second, and third items.);
4440 report (x>y, "x is %d but y is %d", x, y);
4441}
b57f37fb 4442
f030cae8
VY
4443// Check long long types.
4444#define BIG64 18446744073709551615ull
4445#define BIG32 4294967295ul
4446#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4447#if !BIG_OK
4448 your preprocessor is broken;
4449#endif
4450#if BIG_OK
4451#else
4452 your preprocessor is broken;
4453#endif
4454static long long int bignum = -9223372036854775807LL;
4455static unsigned long long int ubignum = BIG64;
b57f37fb 4456
f030cae8
VY
4457struct incomplete_array
4458{
4459 int datasize;
4460 double data[];
4461};
b57f37fb 4462
f030cae8
VY
4463struct named_init {
4464 int number;
4465 const wchar_t *name;
4466 double average;
4467};
b57f37fb 4468
f030cae8 4469typedef const char *ccp;
b57f37fb 4470
f030cae8
VY
4471static inline int
4472test_restrict (ccp restrict text)
4473{
4474 // See if C++-style comments work.
4475 // Iterate through items via the restricted pointer.
4476 // Also check for declarations in for loops.
4477 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4478 continue;
4479 return 0;
4480}
b57f37fb 4481
f030cae8
VY
4482// Check varargs and va_copy.
4483static void
4484test_varargs (const char *format, ...)
4485{
4486 va_list args;
4487 va_start (args, format);
4488 va_list args_copy;
4489 va_copy (args_copy, args);
b57f37fb 4490
f030cae8
VY
4491 const char *str;
4492 int number;
4493 float fnumber;
b57f37fb 4494
f030cae8
VY
4495 while (*format)
4496 {
4497 switch (*format++)
4498 {
4499 case 's': // string
4500 str = va_arg (args_copy, const char *);
4501 break;
4502 case 'd': // int
4503 number = va_arg (args_copy, int);
4504 break;
4505 case 'f': // float
4506 fnumber = va_arg (args_copy, double);
4507 break;
4508 default:
4509 break;
4510 }
4511 }
4512 va_end (args_copy);
4513 va_end (args);
4514}
b57f37fb 4515
f030cae8
VY
4516int
4517main ()
4518{
b57f37fb 4519
f030cae8
VY
4520 // Check bool.
4521 _Bool success = false;
b57f37fb 4522
f030cae8
VY
4523 // Check restrict.
4524 if (test_restrict ("String literal") == 0)
4525 success = true;
4526 char *restrict newvar = "Another string";
b57f37fb 4527
f030cae8
VY
4528 // Check varargs.
4529 test_varargs ("s, d' f .", "string", 65, 34.234);
4530 test_varargs_macros ();
b57f37fb 4531
f030cae8
VY
4532 // Check flexible array members.
4533 struct incomplete_array *ia =
4534 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4535 ia->datasize = 10;
4536 for (int i = 0; i < ia->datasize; ++i)
4537 ia->data[i] = i * 1.234;
b57f37fb 4538
f030cae8
VY
4539 // Check named initializers.
4540 struct named_init ni = {
4541 .number = 34,
4542 .name = L"Test wide string",
4543 .average = 543.34343,
4544 };
b57f37fb 4545
f030cae8 4546 ni.number = 58;
b57f37fb 4547
f030cae8
VY
4548 int dynamic_array[ni.number];
4549 dynamic_array[ni.number - 1] = 543;
4550
4551 // work around unused variable warnings
4552 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4553 || dynamic_array[ni.number - 1] != 543);
4554
4555 ;
4556 return 0;
4557}
4558_ACEOF
4559for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4560do
4561 CC="$ac_save_CC $ac_arg"
042acc47 4562 if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4563 ac_cv_prog_cc_c99=$ac_arg
b57f37fb 4564fi
f030cae8
VY
4565rm -f core conftest.err conftest.$ac_objext
4566 test "x$ac_cv_prog_cc_c99" != "xno" && break
4567done
4568rm -f conftest.$ac_ext
4569CC=$ac_save_CC
4570
b57f37fb 4571fi
f030cae8
VY
4572# AC_CACHE_VAL
4573case "x$ac_cv_prog_cc_c99" in
4574 x)
042acc47 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
f030cae8
VY
4576$as_echo "none needed" >&6; } ;;
4577 xno)
042acc47 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
f030cae8
VY
4579$as_echo "unsupported" >&6; } ;;
4580 *)
4581 CC="$CC $ac_cv_prog_cc_c99"
042acc47 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
f030cae8 4583$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
b57f37fb 4584esac
042acc47 4585if test "x$ac_cv_prog_cc_c99" != xno; then :
b57f37fb 4586
f030cae8
VY
4587fi
4588
4589
f030cae8 4590
042acc47 4591if test x"$ac_cv_prog_cc_c99" = "xno"; then
12e39525 4592 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
f030cae8 4593fi
b57f37fb 4594
b57f37fb
WP
4595
4596
042acc47 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
f030cae8 4598$as_echo_n "checking for egrep... " >&6; }
12e39525 4599if ${ac_cv_path_EGREP+:} false; then :
f030cae8 4600 $as_echo_n "(cached) " >&6
b57f37fb 4601else
f030cae8
VY
4602 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4603 then ac_cv_path_EGREP="$GREP -E"
4604 else
4605 if test -z "$EGREP"; then
4606 ac_path_EGREP_found=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
042acc47 4613 for ac_prog in egrep; do
f030cae8
VY
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4616 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4617# Check for GNU ac_path_EGREP and select it if it is found.
4618 # Check for GNU $ac_path_EGREP
4619case `"$ac_path_EGREP" --version 2>&1` in
4620*GNU*)
4621 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4622*)
4623 ac_count=0
4624 $as_echo_n 0123456789 >"conftest.in"
4625 while :
4626 do
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 $as_echo 'EGREP' >> "conftest.nl"
4631 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4633 as_fn_arith $ac_count + 1 && ac_count=$as_val
f030cae8
VY
4634 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_EGREP="$ac_path_EGREP"
4637 ac_path_EGREP_max=$ac_count
4638 fi
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
4641 done
4642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643esac
b57f37fb 4644
f030cae8
VY
4645 $ac_path_EGREP_found && break 3
4646 done
4647 done
042acc47 4648 done
f030cae8
VY
4649IFS=$as_save_IFS
4650 if test -z "$ac_cv_path_EGREP"; then
12e39525 4651 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f030cae8 4652 fi
b57f37fb 4653else
f030cae8 4654 ac_cv_path_EGREP=$EGREP
b57f37fb 4655fi
f030cae8
VY
4656
4657 fi
4658fi
042acc47 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
f030cae8
VY
4660$as_echo "$ac_cv_path_EGREP" >&6; }
4661 EGREP="$ac_cv_path_EGREP"
4662
4663
042acc47 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
f030cae8 4665$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12e39525 4666if ${ac_cv_path_SED+:} false; then :
f030cae8
VY
4667 $as_echo_n "(cached) " >&6
4668else
4669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4670 for ac_i in 1 2 3 4 5 6 7; do
4671 ac_script="$ac_script$as_nl$ac_script"
4672 done
4673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
042acc47 4674 { ac_script=; unset ac_script;}
f030cae8
VY
4675 if test -z "$SED"; then
4676 ac_path_SED_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
042acc47 4683 for ac_prog in sed gsed; do
f030cae8
VY
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4686 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4687# Check for GNU ac_path_SED and select it if it is found.
4688 # Check for GNU $ac_path_SED
4689case `"$ac_path_SED" --version 2>&1` in
4690*GNU*)
4691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4692*)
4693 ac_count=0
4694 $as_echo_n 0123456789 >"conftest.in"
4695 while :
4696 do
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo '' >> "conftest.nl"
4701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
f030cae8
VY
4704 if test $ac_count -gt ${ac_path_SED_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_SED="$ac_path_SED"
4707 ac_path_SED_max=$ac_count
b57f37fb 4708 fi
f030cae8
VY
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
b57f37fb 4711 done
f030cae8
VY
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713esac
4714
4715 $ac_path_SED_found && break 3
4716 done
4717 done
042acc47 4718 done
f030cae8
VY
4719IFS=$as_save_IFS
4720 if test -z "$ac_cv_path_SED"; then
12e39525 4721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
f030cae8 4722 fi
b57f37fb 4723else
f030cae8 4724 ac_cv_path_SED=$SED
b57f37fb 4725fi
f030cae8 4726
b57f37fb 4727fi
042acc47 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
f030cae8
VY
4729$as_echo "$ac_cv_path_SED" >&6; }
4730 SED="$ac_cv_path_SED"
4731 rm -f conftest.sed
b57f37fb 4732
f030cae8
VY
4733
4734F77=no
4735CXX=no
4736GCJ=no
4737
4738# Check whether --enable-static was given.
042acc47 4739if test "${enable_static+set}" = set; then :
f030cae8
VY
4740 enableval=$enable_static; p=${PACKAGE-default}
4741 case $enableval in
4742 yes) enable_static=yes ;;
4743 no) enable_static=no ;;
4744 *)
4745 enable_static=no
4746 # Look at the argument we got. We use all the common list separators.
4747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4748 for pkg in $enableval; do
4749 IFS="$lt_save_ifs"
4750 if test "X$pkg" = "X$p"; then
4751 enable_static=yes
4752 fi
4753 done
4754 IFS="$lt_save_ifs"
4755 ;;
4756 esac
b57f37fb 4757else
f030cae8 4758 enable_static=no
b57f37fb 4759fi
f030cae8
VY
4760
4761
4762
042acc47
WP
4763
4764
4765
4766
4767
4768
f030cae8 4769# Check whether --enable-shared was given.
042acc47 4770if test "${enable_shared+set}" = set; then :
f030cae8
VY
4771 enableval=$enable_shared; p=${PACKAGE-default}
4772 case $enableval in
4773 yes) enable_shared=yes ;;
4774 no) enable_shared=no ;;
4775 *)
4776 enable_shared=no
4777 # Look at the argument we got. We use all the common list separators.
4778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4779 for pkg in $enableval; do
4780 IFS="$lt_save_ifs"
4781 if test "X$pkg" = "X$p"; then
4782 enable_shared=yes
4783 fi
4784 done
4785 IFS="$lt_save_ifs"
4786 ;;
4787 esac
b57f37fb 4788else
f030cae8 4789 enable_shared=yes
b57f37fb 4790fi
b57f37fb
WP
4791
4792
042acc47
WP
4793
4794
4795
4796
4797
4798
4799
4800
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
f030cae8
VY
4802$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4803 # Check whether --enable-maintainer-mode was given.
042acc47 4804if test "${enable_maintainer_mode+set}" = set; then :
f030cae8 4805 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b57f37fb 4806else
f030cae8 4807 USE_MAINTAINER_MODE=no
b57f37fb 4808fi
f030cae8 4809
042acc47 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
f030cae8
VY
4811$as_echo "$USE_MAINTAINER_MODE" >&6; }
4812 if test $USE_MAINTAINER_MODE = yes; then
4813 MAINTAINER_MODE_TRUE=
4814 MAINTAINER_MODE_FALSE='#'
4815else
4816 MAINTAINER_MODE_TRUE='#'
4817 MAINTAINER_MODE_FALSE=
4818fi
4819
4820 MAINT=$MAINTAINER_MODE_TRUE
4821
4822
4823
042acc47 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
f030cae8 4825$as_echo_n "checking for library containing strerror... " >&6; }
12e39525 4826if ${ac_cv_search_strerror+:} false; then :
f030cae8
VY
4827 $as_echo_n "(cached) " >&6
4828else
4829 ac_func_search_save_LIBS=$LIBS
042acc47 4830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4831/* end confdefs.h. */
4832
4833/* Override any GCC internal prototype to avoid an error.
4834 Use char because int might match the return type of a GCC
4835 builtin and then its argument prototype would still apply. */
4836#ifdef __cplusplus
4837extern "C"
4838#endif
4839char strerror ();
4840int
4841main ()
4842{
4843return strerror ();
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848for ac_lib in '' cposix; do
4849 if test -z "$ac_lib"; then
4850 ac_res="none required"
4851 else
4852 ac_res=-l$ac_lib
4853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4854 fi
042acc47 4855 if ac_fn_c_try_link "$LINENO"; then :
f030cae8 4856 ac_cv_search_strerror=$ac_res
f030cae8 4857fi
042acc47
WP
4858rm -f core conftest.err conftest.$ac_objext \
4859 conftest$ac_exeext
12e39525 4860 if ${ac_cv_search_strerror+:} false; then :
f030cae8
VY
4861 break
4862fi
4863done
12e39525 4864if ${ac_cv_search_strerror+:} false; then :
042acc47 4865
f030cae8
VY
4866else
4867 ac_cv_search_strerror=no
4868fi
4869rm conftest.$ac_ext
4870LIBS=$ac_func_search_save_LIBS
4871fi
042acc47 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
f030cae8
VY
4873$as_echo "$ac_cv_search_strerror" >&6; }
4874ac_res=$ac_cv_search_strerror
042acc47 4875if test "$ac_res" != no; then :
f030cae8
VY
4876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4877
4878fi
4879
042acc47 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
f030cae8 4881$as_echo_n "checking for inline... " >&6; }
12e39525 4882if ${ac_cv_c_inline+:} false; then :
f030cae8
VY
4883 $as_echo_n "(cached) " >&6
4884else
4885 ac_cv_c_inline=no
4886for ac_kw in inline __inline__ __inline; do
042acc47 4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4888/* end confdefs.h. */
4889#ifndef __cplusplus
4890typedef int foo_t;
4891static $ac_kw foo_t static_foo () {return 0; }
4892$ac_kw foo_t foo () {return 0; }
4893#endif
4894
4895_ACEOF
042acc47 4896if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4897 ac_cv_c_inline=$ac_kw
f030cae8 4898fi
f030cae8
VY
4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 test "$ac_cv_c_inline" != no && break
4901done
4902
4903fi
042acc47 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
f030cae8
VY
4905$as_echo "$ac_cv_c_inline" >&6; }
4906
f030cae8
VY
4907case $ac_cv_c_inline in
4908 inline | yes) ;;
4909 *)
4910 case $ac_cv_c_inline in
4911 no) ac_val=;;
4912 *) ac_val=$ac_cv_c_inline;;
4913 esac
4914 cat >>confdefs.h <<_ACEOF
4915#ifndef __cplusplus
4916#define inline $ac_val
4917#endif
4918_ACEOF
b57f37fb
WP
4919 ;;
4920esac
4921
042acc47 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
f030cae8 4923$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12e39525 4924if ${ac_cv_c_const+:} false; then :
f030cae8 4925 $as_echo_n "(cached) " >&6
b57f37fb 4926else
042acc47 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4928/* end confdefs.h. */
4929
4930int
4931main ()
4932{
4933/* FIXME: Include the comments suggested by Paul. */
4934#ifndef __cplusplus
4935 /* Ultrix mips cc rejects this. */
4936 typedef int charset[2];
4937 const charset cs;
4938 /* SunOS 4.1.1 cc rejects this. */
4939 char const *const *pcpcc;
4940 char **ppc;
4941 /* NEC SVR4.0.2 mips cc rejects this. */
4942 struct point {int x, y;};
4943 static struct point const zero = {0,0};
4944 /* AIX XL C 1.02.0.0 rejects this.
4945 It does not let you subtract one const X* pointer from another in
4946 an arm of an if-expression whose if-part is not a constant
4947 expression */
4948 const char *g = "string";
4949 pcpcc = &g + (g ? g-g : 0);
4950 /* HPUX 7.0 cc rejects these. */
4951 ++pcpcc;
4952 ppc = (char**) pcpcc;
4953 pcpcc = (char const *const *) ppc;
4954 { /* SCO 3.2v4 cc rejects this. */
4955 char *t;
4956 char const *s = 0 ? (char *) 0 : (char const *) 0;
4957
4958 *t++ = 0;
4959 if (s) return 0;
4960 }
4961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4962 int x[] = {25, 17};
4963 const int *foo = &x[0];
4964 ++foo;
4965 }
4966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4967 typedef const int *iptr;
4968 iptr p = 0;
4969 ++p;
4970 }
4971 { /* AIX XL C 1.02.0.0 rejects this saying
4972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4973 struct s { int j; const int *ap[3]; };
4974 struct s *b; b->j = 5;
4975 }
4976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4977 const int foo = 10;
4978 if (!foo) return 0;
4979 }
4980 return !cs[0] && !zero.x;
4981#endif
4982
4983 ;
4984 return 0;
4985}
4986_ACEOF
042acc47 4987if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4988 ac_cv_c_const=yes
b57f37fb 4989else
042acc47 4990 ac_cv_c_const=no
f030cae8 4991fi
f030cae8
VY
4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993fi
042acc47 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
f030cae8
VY
4995$as_echo "$ac_cv_c_const" >&6; }
4996if test $ac_cv_c_const = no; then
4997
042acc47 4998$as_echo "#define const /**/" >>confdefs.h
f030cae8
VY
4999
5000fi
5001
042acc47 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
f030cae8
VY
5003$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5004set x ${MAKE-make}
5005ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12e39525 5006if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
f030cae8
VY
5007 $as_echo_n "(cached) " >&6
5008else
5009 cat >conftest.make <<\_ACEOF
5010SHELL = /bin/sh
5011all:
5012 @echo '@@@%%%=$(MAKE)=@@@%%%'
5013_ACEOF
12e39525 5014# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
f030cae8
VY
5015case `${MAKE-make} -f conftest.make 2>/dev/null` in
5016 *@@@%%%=?*=@@@%%%*)
5017 eval ac_cv_prog_make_${ac_make}_set=yes;;
5018 *)
5019 eval ac_cv_prog_make_${ac_make}_set=no;;
5020esac
5021rm -f conftest.make
5022fi
5023if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
042acc47 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f030cae8
VY
5025$as_echo "yes" >&6; }
5026 SET_MAKE=
5027else
042acc47 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5029$as_echo "no" >&6; }
5030 SET_MAKE="MAKE=${MAKE-make}"
5031fi
5032
b57f37fb 5033
f030cae8
VY
5034# Extract the first word of "automake", so it can be a program name with args.
5035set dummy automake; ac_word=$2
042acc47 5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5037$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5038if ${ac_cv_path_AUTOMAKE+:} false; then :
f030cae8
VY
5039 $as_echo_n "(cached) " >&6
5040else
5041 case $AUTOMAKE in
5042 [\\/]* | ?:[\\/]*)
5043 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
b57f37fb 5044 ;;
f030cae8
VY
5045 *)
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
042acc47 5051 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
042acc47 5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5055 break 2
5056 fi
5057done
042acc47 5058 done
f030cae8 5059IFS=$as_save_IFS
b57f37fb 5060
b57f37fb 5061 ;;
f030cae8
VY
5062esac
5063fi
5064AUTOMAKE=$ac_cv_path_AUTOMAKE
5065if test -n "$AUTOMAKE"; then
042acc47 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
f030cae8
VY
5067$as_echo "$AUTOMAKE" >&6; }
5068else
042acc47 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5070$as_echo "no" >&6; }
5071fi
b57f37fb 5072
b57f37fb 5073
f030cae8
VY
5074# Extract the first word of "aclocal", so it can be a program name with args.
5075set dummy aclocal; ac_word=$2
042acc47 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5077$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5078if ${ac_cv_path_ACLOCAL+:} false; then :
f030cae8
VY
5079 $as_echo_n "(cached) " >&6
5080else
5081 case $ACLOCAL in
5082 [\\/]* | ?:[\\/]*)
5083 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
b57f37fb 5084 ;;
b57f37fb 5085 *)
f030cae8
VY
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
042acc47 5091 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
042acc47 5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5095 break 2
5096 fi
5097done
042acc47 5098 done
f030cae8 5099IFS=$as_save_IFS
b57f37fb 5100
b57f37fb 5101 ;;
f030cae8
VY
5102esac
5103fi
5104ACLOCAL=$ac_cv_path_ACLOCAL
5105if test -n "$ACLOCAL"; then
042acc47 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
f030cae8
VY
5107$as_echo "$ACLOCAL" >&6; }
5108else
042acc47 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5110$as_echo "no" >&6; }
5111fi
b57f37fb 5112
b57f37fb 5113
f030cae8
VY
5114# Extract the first word of "autoheader", so it can be a program name with args.
5115set dummy autoheader; ac_word=$2
042acc47 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5117$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5118if ${ac_cv_path_AUTOHEADER+:} false; then :
f030cae8
VY
5119 $as_echo_n "(cached) " >&6
5120else
5121 case $AUTOHEADER in
5122 [\\/]* | ?:[\\/]*)
5123 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
b57f37fb 5124 ;;
f030cae8
VY
5125 *)
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
042acc47 5131 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
042acc47 5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8 5135 break 2
b57f37fb 5136 fi
f030cae8 5137done
042acc47 5138 done
f030cae8
VY
5139IFS=$as_save_IFS
5140
b57f37fb 5141 ;;
f030cae8
VY
5142esac
5143fi
5144AUTOHEADER=$ac_cv_path_AUTOHEADER
5145if test -n "$AUTOHEADER"; then
042acc47 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
f030cae8
VY
5147$as_echo "$AUTOHEADER" >&6; }
5148else
042acc47 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5150$as_echo "no" >&6; }
5151fi
b57f37fb 5152
f030cae8
VY
5153
5154# Extract the first word of "as", so it can be a program name with args.
5155set dummy as; ac_word=$2
042acc47 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5157$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5158if ${ac_cv_path_AS+:} false; then :
f030cae8
VY
5159 $as_echo_n "(cached) " >&6
5160else
5161 case $AS in
5162 [\\/]* | ?:[\\/]*)
5163 ac_cv_path_AS="$AS" # Let the user override the test with a path.
b57f37fb 5164 ;;
f030cae8
VY
5165 *)
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
042acc47 5171 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
042acc47 5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5175 break 2
5176 fi
5177done
042acc47 5178 done
f030cae8 5179IFS=$as_save_IFS
b57f37fb 5180
b57f37fb 5181 ;;
f030cae8
VY
5182esac
5183fi
5184AS=$ac_cv_path_AS
5185if test -n "$AS"; then
042acc47 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
f030cae8
VY
5187$as_echo "$AS" >&6; }
5188else
042acc47 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5190$as_echo "no" >&6; }
5191fi
b57f37fb 5192
b57f37fb 5193
f030cae8
VY
5194# Extract the first word of "rm", so it can be a program name with args.
5195set dummy rm; ac_word=$2
042acc47 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5197$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5198if ${ac_cv_path_RM+:} false; then :
f030cae8
VY
5199 $as_echo_n "(cached) " >&6
5200else
5201 case $RM in
5202 [\\/]* | ?:[\\/]*)
5203 ac_cv_path_RM="$RM" # Let the user override the test with a path.
b57f37fb 5204 ;;
f030cae8
VY
5205 *)
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
042acc47 5211 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
042acc47 5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5215 break 2
5216 fi
5217done
042acc47 5218 done
f030cae8 5219IFS=$as_save_IFS
b57f37fb 5220
b57f37fb 5221 ;;
f030cae8
VY
5222esac
5223fi
5224RM=$ac_cv_path_RM
5225if test -n "$RM"; then
042acc47 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
f030cae8
VY
5227$as_echo "$RM" >&6; }
5228else
042acc47 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5230$as_echo "no" >&6; }
5231fi
b57f37fb 5232
b57f37fb 5233
f030cae8
VY
5234# Extract the first word of "cp", so it can be a program name with args.
5235set dummy cp; ac_word=$2
042acc47 5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5237$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5238if ${ac_cv_path_CP+:} false; then :
f030cae8
VY
5239 $as_echo_n "(cached) " >&6
5240else
5241 case $CP in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_CP="$CP" # Let the user override the test with a path.
b57f37fb 5244 ;;
f030cae8
VY
5245 *)
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
042acc47 5251 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
042acc47 5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5255 break 2
5256 fi
5257done
042acc47 5258 done
f030cae8 5259IFS=$as_save_IFS
b57f37fb 5260
b57f37fb
WP
5261 ;;
5262esac
b57f37fb 5263fi
f030cae8
VY
5264CP=$ac_cv_path_CP
5265if test -n "$CP"; then
042acc47 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
f030cae8
VY
5267$as_echo "$CP" >&6; }
5268else
042acc47 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 5270$as_echo "no" >&6; }
b57f37fb
WP
5271fi
5272
b57f37fb 5273
f030cae8
VY
5274# Extract the first word of "mv", so it can be a program name with args.
5275set dummy mv; ac_word=$2
042acc47 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5277$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5278if ${ac_cv_path_MV+:} false; then :
f030cae8
VY
5279 $as_echo_n "(cached) " >&6
5280else
5281 case $MV in
5282 [\\/]* | ?:[\\/]*)
5283 ac_cv_path_MV="$MV" # Let the user override the test with a path.
b57f37fb 5284 ;;
f030cae8
VY
5285 *)
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
042acc47 5291 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
042acc47 5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8 5295 break 2
b57f37fb 5296 fi
f030cae8 5297done
042acc47 5298 done
f030cae8 5299IFS=$as_save_IFS
b57f37fb 5300
b57f37fb 5301 ;;
f030cae8
VY
5302esac
5303fi
5304MV=$ac_cv_path_MV
5305if test -n "$MV"; then
042acc47 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
f030cae8
VY
5307$as_echo "$MV" >&6; }
5308else
042acc47 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5310$as_echo "no" >&6; }
5311fi
5312
5313
5314# Extract the first word of "ln", so it can be a program name with args.
5315set dummy ln; ac_word=$2
042acc47 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5317$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5318if ${ac_cv_path_LN+:} false; then :
f030cae8
VY
5319 $as_echo_n "(cached) " >&6
5320else
5321 case $LN in
5322 [\\/]* | ?:[\\/]*)
5323 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5324 ;;
5325 *)
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
042acc47 5331 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
042acc47 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5335 break 2
5336 fi
5337done
042acc47 5338 done
f030cae8 5339IFS=$as_save_IFS
b57f37fb 5340
f030cae8
VY
5341 ;;
5342esac
5343fi
5344LN=$ac_cv_path_LN
5345if test -n "$LN"; then
042acc47 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
f030cae8 5347$as_echo "$LN" >&6; }
b57f37fb 5348else
042acc47 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5350$as_echo "no" >&6; }
5351fi
b57f37fb 5352
b57f37fb 5353
f030cae8
VY
5354# Extract the first word of "touch", so it can be a program name with args.
5355set dummy touch; ac_word=$2
042acc47 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5357$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5358if ${ac_cv_path_TOUCH+:} false; then :
f030cae8
VY
5359 $as_echo_n "(cached) " >&6
5360else
5361 case $TOUCH in
5362 [\\/]* | ?:[\\/]*)
5363 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5364 ;;
5365 *)
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
042acc47 5371 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
042acc47 5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5375 break 2
5376 fi
5377done
042acc47 5378 done
f030cae8 5379IFS=$as_save_IFS
b57f37fb 5380
f030cae8 5381 ;;
b57f37fb 5382esac
f030cae8
VY
5383fi
5384TOUCH=$ac_cv_path_TOUCH
5385if test -n "$TOUCH"; then
042acc47 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
f030cae8 5387$as_echo "$TOUCH" >&6; }
b57f37fb 5388else
042acc47 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 5390$as_echo "no" >&6; }
b57f37fb
WP
5391fi
5392
f030cae8
VY
5393
5394ac_ext=c
b57f37fb
WP
5395ac_cpp='$CPP $CPPFLAGS'
5396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399
f030cae8 5400
042acc47
WP
5401case `pwd` in
5402 *\ * | *\ *)
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5404$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5405esac
5406
5407
5408
1800d973
WP
5409macro_version='2.2.6b'
5410macro_revision='1.3017'
042acc47
WP
5411
5412
5413
5414
5415
5416
5417
5418
5419
f030cae8
VY
5420
5421
042acc47
WP
5422
5423
5424ltmain="$ac_aux_dir/ltmain.sh"
5425
f030cae8
VY
5426# Make sure we can run config.sub.
5427$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
12e39525 5428 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f030cae8 5429
042acc47 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
f030cae8 5431$as_echo_n "checking build system type... " >&6; }
12e39525 5432if ${ac_cv_build+:} false; then :
f030cae8
VY
5433 $as_echo_n "(cached) " >&6
5434else
5435 ac_build_alias=$build_alias
5436test "x$ac_build_alias" = x &&
5437 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5438test "x$ac_build_alias" = x &&
12e39525 5439 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
f030cae8 5440ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
12e39525 5441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
f030cae8
VY
5442
5443fi
042acc47 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
f030cae8
VY
5445$as_echo "$ac_cv_build" >&6; }
5446case $ac_cv_build in
5447*-*-*) ;;
12e39525 5448*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
f030cae8
VY
5449esac
5450build=$ac_cv_build
5451ac_save_IFS=$IFS; IFS='-'
5452set x $ac_cv_build
5453shift
5454build_cpu=$1
5455build_vendor=$2
5456shift; shift
5457# Remember, the first character of IFS is used to create $*,
5458# except with old shells:
5459build_os=$*
5460IFS=$ac_save_IFS
5461case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5462
5463
042acc47 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
f030cae8 5465$as_echo_n "checking host system type... " >&6; }
12e39525 5466if ${ac_cv_host+:} false; then :
f030cae8
VY
5467 $as_echo_n "(cached) " >&6
5468else
5469 if test "x$host_alias" = x; then
5470 ac_cv_host=$ac_cv_build
5471else
5472 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12e39525 5473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
f030cae8
VY
5474fi
5475
5476fi
042acc47 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
f030cae8
VY
5478$as_echo "$ac_cv_host" >&6; }
5479case $ac_cv_host in
5480*-*-*) ;;
12e39525 5481*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
f030cae8
VY
5482esac
5483host=$ac_cv_host
5484ac_save_IFS=$IFS; IFS='-'
5485set x $ac_cv_host
5486shift
5487host_cpu=$1
5488host_vendor=$2
5489shift; shift
5490# Remember, the first character of IFS is used to create $*,
5491# except with old shells:
5492host_os=$*
5493IFS=$ac_save_IFS
5494case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5495
5496
042acc47 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
f030cae8 5498$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12e39525 5499if ${ac_cv_path_SED+:} false; then :
f030cae8
VY
5500 $as_echo_n "(cached) " >&6
5501else
042acc47
WP
5502 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5503 for ac_i in 1 2 3 4 5 6 7; do
5504 ac_script="$ac_script$as_nl$ac_script"
5505 done
5506 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5507 { ac_script=; unset ac_script;}
5508 if test -z "$SED"; then
5509 ac_path_SED_found=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f030cae8
VY
5512for as_dir in $PATH
5513do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
042acc47 5516 for ac_prog in sed gsed; do
f030cae8 5517 for ac_exec_ext in '' $ac_executable_extensions; do
042acc47
WP
5518 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5519 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5520# Check for GNU ac_path_SED and select it if it is found.
5521 # Check for GNU $ac_path_SED
5522case `"$ac_path_SED" --version 2>&1` in
5523*GNU*)
5524 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5525*)
5526 ac_count=0
5527 $as_echo_n 0123456789 >"conftest.in"
5528 while :
5529 do
5530 cat "conftest.in" "conftest.in" >"conftest.tmp"
5531 mv "conftest.tmp" "conftest.in"
5532 cp "conftest.in" "conftest.nl"
5533 $as_echo '' >> "conftest.nl"
5534 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5536 as_fn_arith $ac_count + 1 && ac_count=$as_val
5537 if test $ac_count -gt ${ac_path_SED_max-0}; then
5538 # Best one so far, save it but keep looking for a better one
5539 ac_cv_path_SED="$ac_path_SED"
5540 ac_path_SED_max=$ac_count
5541 fi
5542 # 10*(2^10) chars as input seems more than enough
5543 test $ac_count -gt 10 && break
5544 done
5545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5546esac
5547
5548 $ac_path_SED_found && break 3
f030cae8
VY
5549 done
5550 done
042acc47 5551 done
f030cae8 5552IFS=$as_save_IFS
042acc47 5553 if test -z "$ac_cv_path_SED"; then
12e39525 5554 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
b57f37fb 5555 fi
042acc47
WP
5556else
5557 ac_cv_path_SED=$SED
5558fi
b57f37fb 5559
f030cae8 5560fi
042acc47
WP
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5562$as_echo "$ac_cv_path_SED" >&6; }
5563 SED="$ac_cv_path_SED"
5564 rm -f conftest.sed
b57f37fb 5565
042acc47
WP
5566test -z "$SED" && SED=sed
5567Xsed="$SED -e 1s/^X//"
b57f37fb 5568
b57f37fb
WP
5569
5570
b57f37fb 5571
042acc47
WP
5572
5573
5574
5575
5576
5577
5578
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5580$as_echo_n "checking for fgrep... " >&6; }
12e39525 5581if ${ac_cv_path_FGREP+:} false; then :
042acc47
WP
5582 $as_echo_n "(cached) " >&6
5583else
5584 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5585 then ac_cv_path_FGREP="$GREP -F"
5586 else
5587 if test -z "$FGREP"; then
5588 ac_path_FGREP_found=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5592do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_prog in fgrep; do
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5598 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5599# Check for GNU ac_path_FGREP and select it if it is found.
5600 # Check for GNU $ac_path_FGREP
5601case `"$ac_path_FGREP" --version 2>&1` in
5602*GNU*)
5603 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5604*)
5605 ac_count=0
5606 $as_echo_n 0123456789 >"conftest.in"
5607 while :
5608 do
5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
5610 mv "conftest.tmp" "conftest.in"
5611 cp "conftest.in" "conftest.nl"
5612 $as_echo 'FGREP' >> "conftest.nl"
5613 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5615 as_fn_arith $ac_count + 1 && ac_count=$as_val
5616 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5617 # Best one so far, save it but keep looking for a better one
5618 ac_cv_path_FGREP="$ac_path_FGREP"
5619 ac_path_FGREP_max=$ac_count
5620 fi
5621 # 10*(2^10) chars as input seems more than enough
5622 test $ac_count -gt 10 && break
5623 done
5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5625esac
5626
5627 $ac_path_FGREP_found && break 3
5628 done
5629 done
5630 done
5631IFS=$as_save_IFS
5632 if test -z "$ac_cv_path_FGREP"; then
12e39525 5633 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
042acc47
WP
5634 fi
5635else
5636 ac_cv_path_FGREP=$FGREP
5637fi
5638
5639 fi
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5642$as_echo "$ac_cv_path_FGREP" >&6; }
5643 FGREP="$ac_cv_path_FGREP"
5644
5645
5646test -z "$GREP" && GREP=grep
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666# Check whether --with-gnu-ld was given.
5667if test "${with_gnu_ld+set}" = set; then :
5668 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5669else
5670 with_gnu_ld=no
5671fi
5672
5673ac_prog=ld
5674if test "$GCC" = yes; then
5675 # Check if gcc -print-prog-name=ld gives a path.
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5677$as_echo_n "checking for ld used by $CC... " >&6; }
5678 case $host in
5679 *-*-mingw*)
5680 # gcc leaves a trailing carriage return which upsets mingw
5681 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5682 *)
5683 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5684 esac
5685 case $ac_prog in
5686 # Accept absolute paths.
5687 [\\/]* | ?:[\\/]*)
5688 re_direlt='/[^/][^/]*/\.\./'
5689 # Canonicalize the pathname of ld
5690 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5691 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5692 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5693 done
5694 test -z "$LD" && LD="$ac_prog"
5695 ;;
5696 "")
5697 # If it fails, then pretend we aren't using GCC.
5698 ac_prog=ld
5699 ;;
5700 *)
5701 # If it is relative, then search for the first ld in PATH.
5702 with_gnu_ld=unknown
5703 ;;
5704 esac
5705elif test "$with_gnu_ld" = yes; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5707$as_echo_n "checking for GNU ld... " >&6; }
5708else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
f030cae8 5710$as_echo_n "checking for non-GNU ld... " >&6; }
b57f37fb 5711fi
12e39525 5712if ${lt_cv_path_LD+:} false; then :
f030cae8
VY
5713 $as_echo_n "(cached) " >&6
5714else
5715 if test -z "$LD"; then
5716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5717 for ac_dir in $PATH; do
5718 IFS="$lt_save_ifs"
5719 test -z "$ac_dir" && ac_dir=.
5720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5721 lt_cv_path_LD="$ac_dir/$ac_prog"
5722 # Check to see if the program is GNU ld. I'd rather use --version,
5723 # but apparently some variants of GNU ld only accept -v.
5724 # Break only if it was the GNU/non-GNU ld that we prefer.
5725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5726 *GNU* | *'with BFD'*)
5727 test "$with_gnu_ld" != no && break
5728 ;;
5729 *)
5730 test "$with_gnu_ld" != yes && break
5731 ;;
5732 esac
5733 fi
5734 done
5735 IFS="$lt_save_ifs"
5736else
5737 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b57f37fb 5738fi
b57f37fb 5739fi
f030cae8
VY
5740
5741LD="$lt_cv_path_LD"
5742if test -n "$LD"; then
042acc47 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
f030cae8 5744$as_echo "$LD" >&6; }
b57f37fb 5745else
042acc47 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 5747$as_echo "no" >&6; }
b57f37fb 5748fi
12e39525 5749test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
042acc47 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
f030cae8 5751$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12e39525 5752if ${lt_cv_prog_gnu_ld+:} false; then :
f030cae8 5753 $as_echo_n "(cached) " >&6
b57f37fb 5754else
f030cae8
VY
5755 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5756case `$LD -v 2>&1 </dev/null` in
5757*GNU* | *'with BFD'*)
5758 lt_cv_prog_gnu_ld=yes
5759 ;;
5760*)
5761 lt_cv_prog_gnu_ld=no
5762 ;;
5763esac
b57f37fb 5764fi
042acc47 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
f030cae8
VY
5766$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5767with_gnu_ld=$lt_cv_prog_gnu_ld
b57f37fb 5768
b57f37fb 5769
b57f37fb 5770
042acc47
WP
5771
5772
5773
5774
5775
5776
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5778$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12e39525 5779if ${lt_cv_path_NM+:} false; then :
f030cae8
VY
5780 $as_echo_n "(cached) " >&6
5781else
5782 if test -n "$NM"; then
5783 # Let the user override the test.
5784 lt_cv_path_NM="$NM"
5785else
5786 lt_nm_to_check="${ac_tool_prefix}nm"
5787 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5788 lt_nm_to_check="$lt_nm_to_check nm"
5789 fi
5790 for lt_tmp_nm in $lt_nm_to_check; do
5791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5792 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5793 IFS="$lt_save_ifs"
5794 test -z "$ac_dir" && ac_dir=.
5795 tmp_nm="$ac_dir/$lt_tmp_nm"
5796 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5797 # Check to see if the nm accepts a BSD-compat flag.
5798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5799 # nm: unknown option "B" ignored
5800 # Tru64's nm complains that /dev/null is an invalid object file
5801 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5802 */dev/null* | *'Invalid file or object type'*)
5803 lt_cv_path_NM="$tmp_nm -B"
5804 break
5805 ;;
5806 *)
5807 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5808 */dev/null*)
5809 lt_cv_path_NM="$tmp_nm -p"
5810 break
5811 ;;
5812 *)
5813 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5814 continue # so that we can try to find one that supports BSD flags
5815 ;;
5816 esac
5817 ;;
5818 esac
5819 fi
5820 done
5821 IFS="$lt_save_ifs"
5822 done
042acc47 5823 : ${lt_cv_path_NM=no}
b57f37fb 5824fi
f030cae8 5825fi
042acc47 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
f030cae8 5827$as_echo "$lt_cv_path_NM" >&6; }
042acc47
WP
5828if test "$lt_cv_path_NM" != "no"; then
5829 NM="$lt_cv_path_NM"
5830else
5831 # Didn't find any BSD compatible name lister, look for dumpbin.
5832 if test -n "$ac_tool_prefix"; then
5833 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5834 do
5835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5836set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5839if ${ac_cv_prog_DUMPBIN+:} false; then :
042acc47
WP
5840 $as_echo_n "(cached) " >&6
5841else
5842 if test -n "$DUMPBIN"; then
5843 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856done
5857 done
5858IFS=$as_save_IFS
b57f37fb 5859
042acc47
WP
5860fi
5861fi
5862DUMPBIN=$ac_cv_prog_DUMPBIN
5863if test -n "$DUMPBIN"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5865$as_echo "$DUMPBIN" >&6; }
b57f37fb 5866else
042acc47
WP
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
b57f37fb
WP
5869fi
5870
042acc47
WP
5871
5872 test -n "$DUMPBIN" && break
5873 done
5874fi
5875if test -z "$DUMPBIN"; then
5876 ac_ct_DUMPBIN=$DUMPBIN
5877 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5878do
5879 # Extract the first word of "$ac_prog", so it can be a program name with args.
5880set dummy $ac_prog; ac_word=$2
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
12e39525 5883if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
f030cae8
VY
5884 $as_echo_n "(cached) " >&6
5885else
042acc47
WP
5886 if test -n "$ac_ct_DUMPBIN"; then
5887 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900done
5901 done
5902IFS=$as_save_IFS
b57f37fb 5903
042acc47
WP
5904fi
5905fi
5906ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5907if test -n "$ac_ct_DUMPBIN"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5909$as_echo "$ac_ct_DUMPBIN" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
b57f37fb 5914
b57f37fb 5915
042acc47
WP
5916 test -n "$ac_ct_DUMPBIN" && break
5917done
b57f37fb 5918
042acc47
WP
5919 if test "x$ac_ct_DUMPBIN" = x; then
5920 DUMPBIN=":"
f030cae8 5921 else
042acc47
WP
5922 case $cross_compiling:$ac_tool_warned in
5923yes:)
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926ac_tool_warned=yes ;;
5927esac
5928 DUMPBIN=$ac_ct_DUMPBIN
f030cae8 5929 fi
042acc47 5930fi
b57f37fb 5931
b57f37fb 5932
042acc47
WP
5933 if test "$DUMPBIN" != ":"; then
5934 NM="$DUMPBIN"
f030cae8 5935 fi
042acc47
WP
5936fi
5937test -z "$NM" && NM=nm
b57f37fb 5938
b57f37fb 5939
b57f37fb 5940
b57f37fb 5941
f030cae8 5942
f030cae8 5943
042acc47
WP
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5945$as_echo_n "checking the name lister ($NM) interface... " >&6; }
12e39525 5946if ${lt_cv_nm_interface+:} false; then :
042acc47
WP
5947 $as_echo_n "(cached) " >&6
5948else
5949 lt_cv_nm_interface="BSD nm"
5950 echo "int some_variable = 0;" > conftest.$ac_ext
12e39525 5951 (eval echo "\"\$as_me:5951: $ac_compile\"" >&5)
042acc47
WP
5952 (eval "$ac_compile" 2>conftest.err)
5953 cat conftest.err >&5
12e39525 5954 (eval echo "\"\$as_me:5954: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
042acc47
WP
5955 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5956 cat conftest.err >&5
12e39525 5957 (eval echo "\"\$as_me:5957: output\"" >&5)
042acc47
WP
5958 cat conftest.out >&5
5959 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5960 lt_cv_nm_interface="MS dumpbin"
f030cae8 5961 fi
042acc47
WP
5962 rm -f conftest*
5963fi
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5965$as_echo "$lt_cv_nm_interface" >&6; }
b57f37fb 5966
042acc47
WP
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5968$as_echo_n "checking whether ln -s works... " >&6; }
5969LN_S=$as_ln_s
5970if test "$LN_S" = "ln -s"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5972$as_echo "yes" >&6; }
5973else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5975$as_echo "no, using $LN_S" >&6; }
5976fi
b57f37fb 5977
042acc47
WP
5978# find the maximum length of command line arguments
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5980$as_echo_n "checking the maximum length of command line arguments... " >&6; }
12e39525 5981if ${lt_cv_sys_max_cmd_len+:} false; then :
042acc47
WP
5982 $as_echo_n "(cached) " >&6
5983else
5984 i=0
5985 teststring="ABCD"
b57f37fb 5986
042acc47
WP
5987 case $build_os in
5988 msdosdjgpp*)
5989 # On DJGPP, this test can blow up pretty badly due to problems in libc
5990 # (any single argument exceeding 2000 bytes causes a buffer overrun
5991 # during glob expansion). Even if it were fixed, the result of this
5992 # check would be larger than it should be.
5993 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5994 ;;
b57f37fb 5995
042acc47
WP
5996 gnu*)
5997 # Under GNU Hurd, this test is not required because there is
5998 # no limit to the length of command line arguments.
5999 # Libtool will interpret -1 as no limit whatsoever
6000 lt_cv_sys_max_cmd_len=-1;
6001 ;;
b57f37fb 6002
042acc47
WP
6003 cygwin* | mingw* | cegcc*)
6004 # On Win9x/ME, this test blows up -- it succeeds, but takes
6005 # about 5 minutes as the teststring grows exponentially.
6006 # Worse, since 9x/ME are not pre-emptively multitasking,
6007 # you end up with a "frozen" computer, even though with patience
6008 # the test eventually succeeds (with a max line length of 256k).
6009 # Instead, let's just punt: use the minimum linelength reported by
6010 # all of the supported platforms: 8192 (on NT/2K/XP).
6011 lt_cv_sys_max_cmd_len=8192;
6012 ;;
b57f37fb 6013
042acc47
WP
6014 amigaos*)
6015 # On AmigaOS with pdksh, this test takes hours, literally.
6016 # So we just punt and use a minimum line length of 8192.
6017 lt_cv_sys_max_cmd_len=8192;
6018 ;;
b57f37fb 6019
042acc47
WP
6020 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6021 # This has been around since 386BSD, at least. Likely further.
6022 if test -x /sbin/sysctl; then
6023 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6024 elif test -x /usr/sbin/sysctl; then
6025 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6026 else
6027 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6028 fi
6029 # And add a safety zone
6030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
f030cae8 6032 ;;
042acc47
WP
6033
6034 interix*)
6035 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6036 lt_cv_sys_max_cmd_len=196608
f030cae8 6037 ;;
042acc47
WP
6038
6039 osf*)
6040 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6041 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6042 # nice to cause kernel panics so lets avoid the loop below.
6043 # First set a reasonable default.
6044 lt_cv_sys_max_cmd_len=16384
6045 #
6046 if test -x /sbin/sysconfig; then
6047 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6048 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6049 esac
6050 fi
f030cae8 6051 ;;
042acc47
WP
6052 sco3.2v5*)
6053 lt_cv_sys_max_cmd_len=102400
f030cae8 6054 ;;
042acc47
WP
6055 sysv5* | sco5v6* | sysv4.2uw2*)
6056 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6057 if test -n "$kargmax"; then
6058 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6059 else
6060 lt_cv_sys_max_cmd_len=32768
6061 fi
f030cae8 6062 ;;
042acc47
WP
6063 *)
6064 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6065 if test -n "$lt_cv_sys_max_cmd_len"; then
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6068 else
6069 # Make teststring a little bigger before we do anything with it.
6070 # a 1K string should be a reasonable start.
6071 for i in 1 2 3 4 5 6 7 8 ; do
6072 teststring=$teststring$teststring
6073 done
6074 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6075 # If test is not a shell built-in, we'll probably end up computing a
6076 # maximum length that is only half of the actual maximum length, but
6077 # we can't tell.
6078 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6079 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6080 test $i != 17 # 1/2 MB should be enough
6081 do
6082 i=`expr $i + 1`
6083 teststring=$teststring$teststring
6084 done
6085 # Only check the string length outside the loop.
6086 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6087 teststring=
6088 # Add a significant safety factor because C++ compilers can tack on
6089 # massive amounts of additional arguments before passing them to the
6090 # linker. It appears as though 1/2 is a usable value.
6091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6092 fi
f030cae8
VY
6093 ;;
6094 esac
f030cae8 6095
042acc47 6096fi
b57f37fb 6097
042acc47
WP
6098if test -n $lt_cv_sys_max_cmd_len ; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6100$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6101else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6103$as_echo "none" >&6; }
b57f37fb 6104fi
042acc47 6105max_cmd_len=$lt_cv_sys_max_cmd_len
f030cae8 6106
b57f37fb 6107
b57f37fb
WP
6108
6109
6110
6111
042acc47
WP
6112: ${CP="cp -f"}
6113: ${MV="mv -f"}
6114: ${RM="rm -f"}
b57f37fb 6115
042acc47
WP
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6117$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6118# Try some XSI features
6119xsi_shell=no
6120( _lt_dummy="a/b/c"
6121 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6122 = c,a/b,, \
6123 && eval 'test $(( 1 + 1 )) -eq 2 \
6124 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6125 && xsi_shell=yes
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6127$as_echo "$xsi_shell" >&6; }
6128
6129
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6131$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6132lt_shell_append=no
6133( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6134 >/dev/null 2>&1 \
6135 && lt_shell_append=yes
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6137$as_echo "$lt_shell_append" >&6; }
6138
6139
6140if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6141 lt_unset=unset
6142else
6143 lt_unset=false
f030cae8 6144fi
b57f37fb
WP
6145
6146
042acc47
WP
6147
6148
6149
6150# test EBCDIC or ASCII
6151case `echo X|tr X '\101'` in
6152 A) # ASCII based system
6153 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6154 lt_SP2NL='tr \040 \012'
6155 lt_NL2SP='tr \015\012 \040\040'
f030cae8 6156 ;;
042acc47
WP
6157 *) # EBCDIC based system
6158 lt_SP2NL='tr \100 \n'
6159 lt_NL2SP='tr \r\n \100\100'
f030cae8 6160 ;;
042acc47 6161esac
b57f37fb 6162
b57f37fb 6163
b57f37fb 6164
b57f37fb 6165
f030cae8 6166
f030cae8 6167
b57f37fb
WP
6168
6169
6170
042acc47
WP
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6172$as_echo_n "checking for $LD option to reload object files... " >&6; }
12e39525 6173if ${lt_cv_ld_reload_flag+:} false; then :
f030cae8 6174 $as_echo_n "(cached) " >&6
b57f37fb 6175else
042acc47 6176 lt_cv_ld_reload_flag='-r'
b57f37fb 6177fi
042acc47
WP
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6179$as_echo "$lt_cv_ld_reload_flag" >&6; }
6180reload_flag=$lt_cv_ld_reload_flag
6181case $reload_flag in
6182"" | " "*) ;;
6183*) reload_flag=" $reload_flag" ;;
6184esac
6185reload_cmds='$LD$reload_flag -o $output$reload_objs'
6186case $host_os in
6187 darwin*)
6188 if test "$GCC" = yes; then
6189 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6190 else
6191 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6192 fi
6193 ;;
b57f37fb 6194esac
b57f37fb 6195
b57f37fb 6196
b57f37fb 6197
b57f37fb 6198
b57f37fb 6199
b57f37fb 6200
b57f37fb 6201
b57f37fb 6202
042acc47
WP
6203
6204if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6206set dummy ${ac_tool_prefix}objdump; ac_word=$2
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6208$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6209if ${ac_cv_prog_OBJDUMP+:} false; then :
f030cae8 6210 $as_echo_n "(cached) " >&6
b57f37fb 6211else
042acc47
WP
6212 if test -n "$OBJDUMP"; then
6213 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
b57f37fb
WP
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
042acc47 6220 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
6222 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6224 break 2
6225 fi
6226done
042acc47 6227 done
b57f37fb
WP
6228IFS=$as_save_IFS
6229
6230fi
6231fi
042acc47
WP
6232OBJDUMP=$ac_cv_prog_OBJDUMP
6233if test -n "$OBJDUMP"; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6235$as_echo "$OBJDUMP" >&6; }
b57f37fb 6236else
042acc47 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6238$as_echo "no" >&6; }
b57f37fb
WP
6239fi
6240
6241
b57f37fb 6242fi
042acc47
WP
6243if test -z "$ac_cv_prog_OBJDUMP"; then
6244 ac_ct_OBJDUMP=$OBJDUMP
6245 # Extract the first word of "objdump", so it can be a program name with args.
6246set dummy objdump; ac_word=$2
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6248$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6249if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
f030cae8 6250 $as_echo_n "(cached) " >&6
b57f37fb 6251else
042acc47
WP
6252 if test -n "$ac_ct_OBJDUMP"; then
6253 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
b57f37fb
WP
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
042acc47 6260 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
6262 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6264 break 2
6265 fi
6266done
042acc47 6267 done
b57f37fb
WP
6268IFS=$as_save_IFS
6269
6270fi
6271fi
042acc47
WP
6272ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6273if test -n "$ac_ct_OBJDUMP"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6275$as_echo "$ac_ct_OBJDUMP" >&6; }
b57f37fb 6276else
042acc47 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6278$as_echo "no" >&6; }
b57f37fb
WP
6279fi
6280
042acc47
WP
6281 if test "x$ac_ct_OBJDUMP" = x; then
6282 OBJDUMP="false"
b57f37fb
WP
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285yes:)
042acc47 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
6288ac_tool_warned=yes ;;
6289esac
042acc47 6290 OBJDUMP=$ac_ct_OBJDUMP
b57f37fb 6291 fi
042acc47
WP
6292else
6293 OBJDUMP="$ac_cv_prog_OBJDUMP"
b57f37fb 6294fi
b57f37fb 6295
042acc47 6296test -z "$OBJDUMP" && OBJDUMP=objdump
b57f37fb 6297
b57f37fb 6298
b57f37fb 6299
b57f37fb 6300
b57f37fb 6301
b57f37fb 6302
b57f37fb 6303
b57f37fb 6304
b57f37fb 6305
042acc47
WP
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6307$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12e39525 6308if ${lt_cv_deplibs_check_method+:} false; then :
042acc47 6309 $as_echo_n "(cached) " >&6
b57f37fb 6310else
042acc47
WP
6311 lt_cv_file_magic_cmd='$MAGIC_CMD'
6312lt_cv_file_magic_test_file=
6313lt_cv_deplibs_check_method='unknown'
6314# Need to set the preceding variable on all platforms that support
6315# interlibrary dependencies.
6316# 'none' -- dependencies not supported.
6317# `unknown' -- same as none, but documents that we really don't know.
6318# 'pass_all' -- all dependencies passed with no checks.
6319# 'test_compile' -- check by making test program.
6320# 'file_magic [[regex]]' -- check by looking for files in library path
6321# which responds to the $file_magic_cmd with a given extended regex.
6322# If you have `file' or equivalent on your system and you're not sure
6323# whether `pass_all' will *always* work, you probably want this one.
b57f37fb 6324
042acc47
WP
6325case $host_os in
6326aix[4-9]*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
b57f37fb 6329
042acc47
WP
6330beos*)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
b57f37fb 6333
042acc47
WP
6334bsdi[45]*)
6335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6336 lt_cv_file_magic_cmd='/usr/bin/file -L'
6337 lt_cv_file_magic_test_file=/shlib/libc.so
6338 ;;
b57f37fb 6339
042acc47
WP
6340cygwin*)
6341 # func_win32_libid is a shell function defined in ltmain.sh
6342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6343 lt_cv_file_magic_cmd='func_win32_libid'
6344 ;;
b57f37fb 6345
042acc47
WP
6346mingw* | pw32*)
6347 # Base MSYS/MinGW do not provide the 'file' command needed by
6348 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6349 # unless we find 'file', for example because we are cross-compiling.
6350 if ( file / ) >/dev/null 2>&1; then
6351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6352 lt_cv_file_magic_cmd='func_win32_libid'
6353 else
6354 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6355 lt_cv_file_magic_cmd='$OBJDUMP -f'
6356 fi
6357 ;;
b57f37fb 6358
042acc47
WP
6359cegcc)
6360 # use the weaker test based on 'objdump'. See mingw*.
6361 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6362 lt_cv_file_magic_cmd='$OBJDUMP -f'
6363 ;;
b57f37fb 6364
042acc47
WP
6365darwin* | rhapsody*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
b57f37fb 6368
042acc47
WP
6369freebsd* | dragonfly*)
6370 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6371 case $host_cpu in
6372 i*86 )
6373 # Not sure whether the presence of OpenBSD here was a mistake.
6374 # Let's accept both of them until this is cleared up.
6375 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6376 lt_cv_file_magic_cmd=/usr/bin/file
6377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6378 ;;
6379 esac
b57f37fb 6380 else
042acc47 6381 lt_cv_deplibs_check_method=pass_all
b57f37fb 6382 fi
042acc47 6383 ;;
b57f37fb 6384
042acc47
WP
6385gnu*)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
b57f37fb 6388
042acc47
WP
6389hpux10.20* | hpux11*)
6390 lt_cv_file_magic_cmd=/usr/bin/file
6391 case $host_cpu in
6392 ia64*)
6393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6394 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6395 ;;
6396 hppa*64*)
6397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6398 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6399 ;;
6400 *)
6401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6402 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6403 ;;
6404 esac
6405 ;;
b57f37fb 6406
042acc47
WP
6407interix[3-9]*)
6408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6410 ;;
b57f37fb 6411
042acc47
WP
6412irix5* | irix6* | nonstopux*)
6413 case $LD in
6414 *-32|*"-32 ") libmagic=32-bit;;
6415 *-n32|*"-n32 ") libmagic=N32;;
6416 *-64|*"-64 ") libmagic=64-bit;;
6417 *) libmagic=never-match;;
6418 esac
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
b57f37fb 6421
042acc47
WP
6422# This must be Linux ELF.
6423linux* | k*bsd*-gnu)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
b57f37fb 6426
1800d973 6427netbsd*)
042acc47
WP
6428 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6430 else
6431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6432 fi
6433 ;;
b57f37fb 6434
042acc47
WP
6435newos6*)
6436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6437 lt_cv_file_magic_cmd=/usr/bin/file
6438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6439 ;;
b57f37fb 6440
042acc47
WP
6441*nto* | *qnx*)
6442 lt_cv_deplibs_check_method=pass_all
6443 ;;
b57f37fb 6444
042acc47
WP
6445openbsd*)
6446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6448 else
6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6450 fi
6451 ;;
b57f37fb 6452
042acc47
WP
6453osf3* | osf4* | osf5*)
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
b57f37fb 6456
042acc47
WP
6457rdos*)
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
b57f37fb 6460
042acc47
WP
6461solaris*)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
b57f37fb 6464
042acc47
WP
6465sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6466 lt_cv_deplibs_check_method=pass_all
6467 ;;
b57f37fb 6468
042acc47
WP
6469sysv4 | sysv4.3*)
6470 case $host_vendor in
6471 motorola)
6472 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]'
6473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6474 ;;
6475 ncr)
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478 sequent)
6479 lt_cv_file_magic_cmd='/bin/file'
6480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6481 ;;
6482 sni)
6483 lt_cv_file_magic_cmd='/bin/file'
6484 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6485 lt_cv_file_magic_test_file=/lib/libc.so
6486 ;;
6487 siemens)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490 pc)
6491 lt_cv_deplibs_check_method=pass_all
6492 ;;
6493 esac
6494 ;;
b57f37fb 6495
042acc47
WP
6496tpf*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499esac
b57f37fb 6500
b57f37fb 6501fi
042acc47
WP
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6503$as_echo "$lt_cv_deplibs_check_method" >&6; }
6504file_magic_cmd=$lt_cv_file_magic_cmd
6505deplibs_check_method=$lt_cv_deplibs_check_method
6506test -z "$deplibs_check_method" && deplibs_check_method=unknown
b57f37fb 6507
b57f37fb 6508
b57f37fb 6509
b57f37fb 6510
b57f37fb 6511
b57f37fb 6512
b57f37fb 6513
b57f37fb 6514
b57f37fb 6515
b57f37fb 6516
b57f37fb
WP
6517
6518
b57f37fb 6519if test -n "$ac_tool_prefix"; then
042acc47
WP
6520 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6521set dummy ${ac_tool_prefix}ar; ac_word=$2
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6523$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6524if ${ac_cv_prog_AR+:} false; then :
f030cae8 6525 $as_echo_n "(cached) " >&6
b57f37fb 6526else
042acc47
WP
6527 if test -n "$AR"; then
6528 ac_cv_prog_AR="$AR" # Let the user override the test.
b57f37fb
WP
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
042acc47 6535 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
6537 ac_cv_prog_AR="${ac_tool_prefix}ar"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6539 break 2
6540 fi
6541done
042acc47 6542 done
b57f37fb
WP
6543IFS=$as_save_IFS
6544
6545fi
6546fi
042acc47
WP
6547AR=$ac_cv_prog_AR
6548if test -n "$AR"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6550$as_echo "$AR" >&6; }
b57f37fb 6551else
042acc47 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6553$as_echo "no" >&6; }
b57f37fb
WP
6554fi
6555
6556
b57f37fb 6557fi
042acc47
WP
6558if test -z "$ac_cv_prog_AR"; then
6559 ac_ct_AR=$AR
6560 # Extract the first word of "ar", so it can be a program name with args.
6561set dummy ar; ac_word=$2
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6563$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6564if ${ac_cv_prog_ac_ct_AR+:} false; then :
f030cae8 6565 $as_echo_n "(cached) " >&6
b57f37fb 6566else
042acc47
WP
6567 if test -n "$ac_ct_AR"; then
6568 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b57f37fb
WP
6569else
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
042acc47 6575 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
6577 ac_cv_prog_ac_ct_AR="ar"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6579 break 2
6580 fi
6581done
042acc47 6582 done
b57f37fb
WP
6583IFS=$as_save_IFS
6584
6585fi
6586fi
042acc47
WP
6587ac_ct_AR=$ac_cv_prog_ac_ct_AR
6588if test -n "$ac_ct_AR"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6590$as_echo "$ac_ct_AR" >&6; }
b57f37fb 6591else
042acc47 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6593$as_echo "no" >&6; }
b57f37fb
WP
6594fi
6595
042acc47
WP
6596 if test "x$ac_ct_AR" = x; then
6597 AR="false"
b57f37fb
WP
6598 else
6599 case $cross_compiling:$ac_tool_warned in
6600yes:)
042acc47 6601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 6602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
6603ac_tool_warned=yes ;;
6604esac
042acc47 6605 AR=$ac_ct_AR
b57f37fb 6606 fi
042acc47
WP
6607else
6608 AR="$ac_cv_prog_AR"
b57f37fb
WP
6609fi
6610
042acc47
WP
6611test -z "$AR" && AR=ar
6612test -z "$AR_FLAGS" && AR_FLAGS=cru
b57f37fb 6613
b57f37fb 6614
b57f37fb 6615
b57f37fb 6616
b57f37fb 6617
b57f37fb 6618
b57f37fb 6619
b57f37fb 6620
042acc47
WP
6621
6622
6623
6624if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6626set dummy ${ac_tool_prefix}strip; ac_word=$2
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6629if ${ac_cv_prog_STRIP+:} false; then :
042acc47
WP
6630 $as_echo_n "(cached) " >&6
6631else
6632 if test -n "$STRIP"; then
6633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
b57f37fb 6645 fi
042acc47
WP
6646done
6647 done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
6652STRIP=$ac_cv_prog_STRIP
6653if test -n "$STRIP"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6655$as_echo "$STRIP" >&6; }
b57f37fb 6656else
042acc47
WP
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661
6662fi
6663if test -z "$ac_cv_prog_STRIP"; then
6664 ac_ct_STRIP=$STRIP
6665 # Extract the first word of "strip", so it can be a program name with args.
6666set dummy strip; ac_word=$2
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6669if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
042acc47
WP
6670 $as_echo_n "(cached) " >&6
6671else
6672 if test -n "$ac_ct_STRIP"; then
6673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_STRIP="strip"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
b57f37fb 6685 fi
042acc47
WP
6686done
6687 done
6688IFS=$as_save_IFS
6689
6690fi
6691fi
6692ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6693if test -n "$ac_ct_STRIP"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6695$as_echo "$ac_ct_STRIP" >&6; }
6696else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698$as_echo "no" >&6; }
b57f37fb
WP
6699fi
6700
042acc47
WP
6701 if test "x$ac_ct_STRIP" = x; then
6702 STRIP=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705yes:)
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708ac_tool_warned=yes ;;
6709esac
6710 STRIP=$ac_ct_STRIP
6711 fi
f030cae8 6712else
042acc47 6713 STRIP="$ac_cv_prog_STRIP"
f030cae8 6714fi
b57f37fb 6715
042acc47 6716test -z "$STRIP" && STRIP=:
b57f37fb
WP
6717
6718
b57f37fb 6719
b57f37fb 6720
b57f37fb 6721
b57f37fb 6722
042acc47
WP
6723if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6725set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6728if ${ac_cv_prog_RANLIB+:} false; then :
042acc47
WP
6729 $as_echo_n "(cached) " >&6
6730else
6731 if test -n "$RANLIB"; then
6732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6733else
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745done
6746 done
6747IFS=$as_save_IFS
b57f37fb 6748
042acc47
WP
6749fi
6750fi
6751RANLIB=$ac_cv_prog_RANLIB
6752if test -n "$RANLIB"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6754$as_echo "$RANLIB" >&6; }
6755else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757$as_echo "no" >&6; }
6758fi
b57f37fb 6759
b57f37fb 6760
042acc47
WP
6761fi
6762if test -z "$ac_cv_prog_RANLIB"; then
6763 ac_ct_RANLIB=$RANLIB
6764 # Extract the first word of "ranlib", so it can be a program name with args.
6765set dummy ranlib; ac_word=$2
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767$as_echo_n "checking for $ac_word... " >&6; }
12e39525 6768if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
042acc47
WP
6769 $as_echo_n "(cached) " >&6
6770else
6771 if test -n "$ac_ct_RANLIB"; then
6772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6773else
6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_RANLIB="ranlib"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785done
6786 done
6787IFS=$as_save_IFS
b57f37fb 6788
042acc47
WP
6789fi
6790fi
6791ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6792if test -n "$ac_ct_RANLIB"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6794$as_echo "$ac_ct_RANLIB" >&6; }
6795else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797$as_echo "no" >&6; }
b57f37fb
WP
6798fi
6799
042acc47
WP
6800 if test "x$ac_ct_RANLIB" = x; then
6801 RANLIB=":"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804yes:)
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807ac_tool_warned=yes ;;
6808esac
6809 RANLIB=$ac_ct_RANLIB
6810 fi
b57f37fb 6811else
042acc47 6812 RANLIB="$ac_cv_prog_RANLIB"
b57f37fb
WP
6813fi
6814
042acc47 6815test -z "$RANLIB" && RANLIB=:
b57f37fb
WP
6816
6817
6818
6819
042acc47
WP
6820
6821
6822# Determine commands to create old-style static archives.
6823old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6824old_postinstall_cmds='chmod 644 $oldlib'
6825old_postuninstall_cmds=
6826
6827if test -n "$RANLIB"; then
6828 case $host_os in
6829 openbsd*)
6830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6831 ;;
6832 *)
6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6834 ;;
6835 esac
6836 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6837fi
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872# If no C compiler was specified, use CC.
6873LTCC=${LTCC-"$CC"}
6874
6875# If no C compiler flags were specified, use CFLAGS.
6876LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6877
6878# Allow CC to be a program name with arguments.
6879compiler=$CC
6880
6881
6882# Check for command to grab the raw symbol name followed by C symbol from nm.
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6884$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12e39525 6885if ${lt_cv_sys_global_symbol_pipe+:} false; then :
f030cae8 6886 $as_echo_n "(cached) " >&6
b57f37fb
WP
6887else
6888
6889# These are sane defaults that work on at least a few old systems.
6890# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891
6892# Character class describing NM global symbol codes.
6893symcode='[BCDEGRST]'
6894
6895# Regexp to match symbols that can be accessed directly from C.
6896sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897
b57f37fb
WP
6898# Define system-specific variables.
6899case $host_os in
6900aix*)
6901 symcode='[BCDT]'
6902 ;;
042acc47 6903cygwin* | mingw* | pw32* | cegcc*)
b57f37fb
WP
6904 symcode='[ABCDGISTW]'
6905 ;;
042acc47 6906hpux*)
b57f37fb
WP
6907 if test "$host_cpu" = ia64; then
6908 symcode='[ABCDEGRST]'
6909 fi
b57f37fb
WP
6910 ;;
6911irix* | nonstopux*)
6912 symcode='[BCDEGRST]'
6913 ;;
6914osf*)
6915 symcode='[BCDEGQRST]'
6916 ;;
6917solaris*)
6918 symcode='[BDRT]'
6919 ;;
6920sco3.2v5*)
6921 symcode='[DT]'
6922 ;;
6923sysv4.2uw2*)
6924 symcode='[DT]'
6925 ;;
6926sysv5* | sco5v6* | unixware* | OpenUNIX*)
6927 symcode='[ABDT]'
6928 ;;
6929sysv4)
6930 symcode='[DFNSTU]'
6931 ;;
6932esac
6933
042acc47
WP
6934# If we're using GNU nm, then use its standard symbol codes.
6935case `$NM -V 2>&1` in
6936*GNU* | *'with BFD'*)
6937 symcode='[ABCDGIRSTW]' ;;
6938esac
6939
6940# Transform an extracted symbol line into a proper C declaration.
6941# Some systems (esp. on ia64) link data and code symbols differently,
6942# so use this general approach.
6943lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6944
6945# Transform an extracted symbol line into symbol name and symbol address
6946lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6947lt_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'"
6948
b57f37fb
WP
6949# Handle CRLF in mingw tool chain
6950opt_cr=
6951case $build_os in
6952mingw*)
042acc47 6953 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
b57f37fb
WP
6954 ;;
6955esac
6956
042acc47 6957# Try without a prefix underscore, then with it.
b57f37fb
WP
6958for ac_symprfx in "" "_"; do
6959
6960 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6961 symxfrm="\\1 $ac_symprfx\\2 \\2"
6962
6963 # Write the raw and C identifiers.
042acc47
WP
6964 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6965 # Fake it for dumpbin and say T for any non-static function
6966 # and D for any global variable.
6967 # Also find C++ and __fastcall symbols from MSVC++,
6968 # which start with @ or ?.
6969 lt_cv_sys_global_symbol_pipe="$AWK '"\
6970" {last_section=section; section=\$ 3};"\
6971" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6972" \$ 0!~/External *\|/{next};"\
6973" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6974" {if(hide[section]) next};"\
6975" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6976" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6977" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6978" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6979" ' prfx=^$ac_symprfx"
6980 else
6981 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6982 fi
b57f37fb
WP
6983
6984 # Check to see that the pipe works correctly.
6985 pipe_works=no
6986
6987 rm -f conftest*
042acc47 6988 cat > conftest.$ac_ext <<_LT_EOF
b57f37fb
WP
6989#ifdef __cplusplus
6990extern "C" {
6991#endif
6992char nm_test_var;
042acc47
WP
6993void nm_test_func(void);
6994void nm_test_func(void){}
b57f37fb
WP
6995#ifdef __cplusplus
6996}
6997#endif
6998int main(){nm_test_var='a';nm_test_func();return(0);}
042acc47 6999_LT_EOF
b57f37fb 7000
042acc47 7001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b57f37fb
WP
7002 (eval $ac_compile) 2>&5
7003 ac_status=$?
042acc47
WP
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; then
b57f37fb
WP
7006 # Now try to grab the symbols.
7007 nlist=conftest.nm
042acc47 7008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
b57f37fb
WP
7009 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7010 ac_status=$?
042acc47
WP
7011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012 test $ac_status = 0; } && test -s "$nlist"; then
b57f37fb
WP
7013 # Try sorting and uniquifying the output.
7014 if sort "$nlist" | uniq > "$nlist"T; then
7015 mv -f "$nlist"T "$nlist"
7016 else
7017 rm -f "$nlist"T
7018 fi
7019
7020 # Make sure that we snagged all the symbols we need.
042acc47
WP
7021 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7022 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7023 cat <<_LT_EOF > conftest.$ac_ext
b57f37fb
WP
7024#ifdef __cplusplus
7025extern "C" {
7026#endif
7027
042acc47 7028_LT_EOF
b57f37fb 7029 # Now generate the symbol file.
042acc47 7030 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
b57f37fb 7031
042acc47 7032 cat <<_LT_EOF >> conftest.$ac_ext
b57f37fb 7033
042acc47 7034/* The mapping between symbol names and symbols. */
b57f37fb
WP
7035const struct {
7036 const char *name;
042acc47 7037 void *address;
b57f37fb 7038}
042acc47 7039lt__PROGRAM__LTX_preloaded_symbols[] =
b57f37fb 7040{
042acc47
WP
7041 { "@PROGRAM@", (void *) 0 },
7042_LT_EOF
7043 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7044 cat <<\_LT_EOF >> conftest.$ac_ext
7045 {0, (void *) 0}
b57f37fb
WP
7046};
7047
042acc47
WP
7048/* This works around a problem in FreeBSD linker */
7049#ifdef FREEBSD_WORKAROUND
7050static const void *lt_preloaded_setup() {
7051 return lt__PROGRAM__LTX_preloaded_symbols;
7052}
7053#endif
7054
b57f37fb
WP
7055#ifdef __cplusplus
7056}
7057#endif
042acc47 7058_LT_EOF
b57f37fb
WP
7059 # Now try linking the two files.
7060 mv conftest.$ac_objext conftstm.$ac_objext
7061 lt_save_LIBS="$LIBS"
7062 lt_save_CFLAGS="$CFLAGS"
7063 LIBS="conftstm.$ac_objext"
7064 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
042acc47 7065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
b57f37fb
WP
7066 (eval $ac_link) 2>&5
7067 ac_status=$?
042acc47
WP
7068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
b57f37fb
WP
7070 pipe_works=yes
7071 fi
7072 LIBS="$lt_save_LIBS"
7073 CFLAGS="$lt_save_CFLAGS"
7074 else
7075 echo "cannot find nm_test_func in $nlist" >&5
7076 fi
7077 else
7078 echo "cannot find nm_test_var in $nlist" >&5
7079 fi
7080 else
7081 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7082 fi
7083 else
7084 echo "$progname: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7086 fi
56efe974 7087 rm -rf conftest* conftst*
b57f37fb
WP
7088
7089 # Do not use the global_symbol_pipe unless it works.
7090 if test "$pipe_works" = yes; then
7091 break
7092 else
7093 lt_cv_sys_global_symbol_pipe=
7094 fi
7095done
7096
7097fi
7098
7099if test -z "$lt_cv_sys_global_symbol_pipe"; then
7100 lt_cv_sys_global_symbol_to_cdecl=
7101fi
7102if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
042acc47 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
f030cae8 7104$as_echo "failed" >&6; }
b57f37fb 7105else
042acc47 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
f030cae8 7107$as_echo "ok" >&6; }
b57f37fb
WP
7108fi
7109
b57f37fb
WP
7110
7111
7112
7113
7114
b57f37fb 7115
b57f37fb 7116
b57f37fb 7117
b57f37fb 7118
b57f37fb 7119
b57f37fb 7120
b57f37fb 7121
b57f37fb 7122
b57f37fb 7123
b57f37fb
WP
7124
7125
b57f37fb 7126
b57f37fb 7127
b57f37fb 7128
b57f37fb 7129
042acc47
WP
7130
7131# Check whether --enable-libtool-lock was given.
7132if test "${enable_libtool_lock+set}" = set; then :
7133 enableval=$enable_libtool_lock;
b57f37fb
WP
7134fi
7135
042acc47 7136test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
b57f37fb 7137
042acc47
WP
7138# Some flags need to be propagated to the compiler or linker for good
7139# libtool support.
7140case $host in
7141ia64-*-hpux*)
7142 # Find out which ABI we are using.
7143 echo 'int i;' > conftest.$ac_ext
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145 (eval $ac_compile) 2>&5
7146 ac_status=$?
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; }; then
7149 case `/usr/bin/file conftest.$ac_objext` in
7150 *ELF-32*)
7151 HPUX_IA64_MODE="32"
7152 ;;
7153 *ELF-64*)
7154 HPUX_IA64_MODE="64"
7155 ;;
7156 esac
7157 fi
7158 rm -rf conftest*
7159 ;;
7160*-*-irix6*)
7161 # Find out which ABI we are using.
12e39525 7162 echo '#line 7162 "configure"' > conftest.$ac_ext
042acc47
WP
7163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7164 (eval $ac_compile) 2>&5
7165 ac_status=$?
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167 test $ac_status = 0; }; then
7168 if test "$lt_cv_prog_gnu_ld" = yes; then
7169 case `/usr/bin/file conftest.$ac_objext` in
7170 *32-bit*)
7171 LD="${LD-ld} -melf32bsmip"
7172 ;;
7173 *N32*)
7174 LD="${LD-ld} -melf32bmipn32"
7175 ;;
7176 *64-bit*)
7177 LD="${LD-ld} -melf64bmip"
7178 ;;
7179 esac
7180 else
7181 case `/usr/bin/file conftest.$ac_objext` in
7182 *32-bit*)
7183 LD="${LD-ld} -32"
7184 ;;
7185 *N32*)
7186 LD="${LD-ld} -n32"
7187 ;;
7188 *64-bit*)
7189 LD="${LD-ld} -64"
7190 ;;
7191 esac
7192 fi
7193 fi
7194 rm -rf conftest*
7195 ;;
7196
7197x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7198s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7199 # Find out which ABI we are using.
7200 echo 'int i;' > conftest.$ac_ext
7201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7202 (eval $ac_compile) 2>&5
7203 ac_status=$?
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; then
7206 case `/usr/bin/file conftest.o` in
7207 *32-bit*)
7208 case $host in
7209 x86_64-*kfreebsd*-gnu)
7210 LD="${LD-ld} -m elf_i386_fbsd"
7211 ;;
7212 x86_64-*linux*)
7213 LD="${LD-ld} -m elf_i386"
7214 ;;
7215 ppc64-*linux*|powerpc64-*linux*)
7216 LD="${LD-ld} -m elf32ppclinux"
7217 ;;
7218 s390x-*linux*)
7219 LD="${LD-ld} -m elf_s390"
7220 ;;
7221 sparc64-*linux*)
7222 LD="${LD-ld} -m elf32_sparc"
7223 ;;
7224 esac
7225 ;;
7226 *64-bit*)
7227 case $host in
7228 x86_64-*kfreebsd*-gnu)
7229 LD="${LD-ld} -m elf_x86_64_fbsd"
7230 ;;
7231 x86_64-*linux*)
7232 LD="${LD-ld} -m elf_x86_64"
7233 ;;
7234 ppc*-*linux*|powerpc*-*linux*)
7235 LD="${LD-ld} -m elf64ppc"
7236 ;;
7237 s390*-*linux*|s390*-*tpf*)
7238 LD="${LD-ld} -m elf64_s390"
7239 ;;
7240 sparc*-*linux*)
7241 LD="${LD-ld} -m elf64_sparc"
7242 ;;
7243 esac
7244 ;;
7245 esac
7246 fi
7247 rm -rf conftest*
7248 ;;
7249
7250*-*-sco3.2v5*)
7251 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7252 SAVE_CFLAGS="$CFLAGS"
7253 CFLAGS="$CFLAGS -belf"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7255$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12e39525 7256if ${lt_cv_cc_needs_belf+:} false; then :
042acc47
WP
7257 $as_echo_n "(cached) " >&6
7258else
7259 ac_ext=c
7260ac_cpp='$CPP $CPPFLAGS'
7261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h. */
7267
7268int
7269main ()
7270{
7271
7272 ;
7273 return 0;
7274}
7275_ACEOF
7276if ac_fn_c_try_link "$LINENO"; then :
7277 lt_cv_cc_needs_belf=yes
7278else
7279 lt_cv_cc_needs_belf=no
7280fi
7281rm -f core conftest.err conftest.$ac_objext \
7282 conftest$ac_exeext conftest.$ac_ext
7283 ac_ext=c
7284ac_cpp='$CPP $CPPFLAGS'
7285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7291$as_echo "$lt_cv_cc_needs_belf" >&6; }
7292 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7293 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7294 CFLAGS="$SAVE_CFLAGS"
7295 fi
7296 ;;
7297sparc*-*solaris*)
7298 # Find out which ABI we are using.
7299 echo 'int i;' > conftest.$ac_ext
7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7301 (eval $ac_compile) 2>&5
7302 ac_status=$?
7303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304 test $ac_status = 0; }; then
7305 case `/usr/bin/file conftest.o` in
7306 *64-bit*)
7307 case $lt_cv_prog_gnu_ld in
7308 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7309 *)
7310 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7311 LD="${LD-ld} -64"
7312 fi
7313 ;;
7314 esac
7315 ;;
7316 esac
7317 fi
7318 rm -rf conftest*
7319 ;;
7320esac
7321
7322need_locks="$enable_libtool_lock"
7323
7324
7325 case $host_os in
7326 rhapsody* | darwin*)
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7329set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7332if ${ac_cv_prog_DSYMUTIL+:} false; then :
042acc47
WP
7333 $as_echo_n "(cached) " >&6
7334else
7335 if test -n "$DSYMUTIL"; then
7336 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7337else
7338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
b57f37fb
WP
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
042acc47 7343 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7345 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
7347 break 2
7348 fi
7349done
042acc47
WP
7350 done
7351IFS=$as_save_IFS
7352
7353fi
7354fi
7355DSYMUTIL=$ac_cv_prog_DSYMUTIL
7356if test -n "$DSYMUTIL"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7358$as_echo "$DSYMUTIL" >&6; }
7359else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361$as_echo "no" >&6; }
7362fi
7363
7364
7365fi
7366if test -z "$ac_cv_prog_DSYMUTIL"; then
7367 ac_ct_DSYMUTIL=$DSYMUTIL
7368 # Extract the first word of "dsymutil", so it can be a program name with args.
7369set dummy dsymutil; ac_word=$2
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7372if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
042acc47
WP
7373 $as_echo_n "(cached) " >&6
7374else
7375 if test -n "$ac_ct_DSYMUTIL"; then
7376 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7377else
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
b57f37fb 7389done
042acc47 7390 done
b57f37fb
WP
7391IFS=$as_save_IFS
7392
7393fi
7394fi
042acc47
WP
7395ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7396if test -n "$ac_ct_DSYMUTIL"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7398$as_echo "$ac_ct_DSYMUTIL" >&6; }
b57f37fb 7399else
042acc47 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7401$as_echo "no" >&6; }
b57f37fb
WP
7402fi
7403
042acc47
WP
7404 if test "x$ac_ct_DSYMUTIL" = x; then
7405 DSYMUTIL=":"
b57f37fb
WP
7406 else
7407 case $cross_compiling:$ac_tool_warned in
7408yes:)
042acc47 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 7410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
7411ac_tool_warned=yes ;;
7412esac
042acc47 7413 DSYMUTIL=$ac_ct_DSYMUTIL
b57f37fb
WP
7414 fi
7415else
042acc47 7416 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b57f37fb
WP
7417fi
7418
042acc47
WP
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7421set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7423$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7424if ${ac_cv_prog_NMEDIT+:} false; then :
f030cae8 7425 $as_echo_n "(cached) " >&6
b57f37fb 7426else
042acc47
WP
7427 if test -n "$NMEDIT"; then
7428 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b57f37fb
WP
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
042acc47 7435 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7437 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
7439 break 2
7440 fi
7441done
042acc47 7442 done
b57f37fb
WP
7443IFS=$as_save_IFS
7444
7445fi
7446fi
042acc47
WP
7447NMEDIT=$ac_cv_prog_NMEDIT
7448if test -n "$NMEDIT"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7450$as_echo "$NMEDIT" >&6; }
b57f37fb 7451else
042acc47 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7453$as_echo "no" >&6; }
b57f37fb
WP
7454fi
7455
7456
7457fi
042acc47
WP
7458if test -z "$ac_cv_prog_NMEDIT"; then
7459 ac_ct_NMEDIT=$NMEDIT
7460 # Extract the first word of "nmedit", so it can be a program name with args.
7461set dummy nmedit; ac_word=$2
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7463$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7464if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
f030cae8 7465 $as_echo_n "(cached) " >&6
b57f37fb 7466else
042acc47
WP
7467 if test -n "$ac_ct_NMEDIT"; then
7468 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b57f37fb
WP
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
042acc47 7475 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7477 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
7479 break 2
7480 fi
7481done
042acc47 7482 done
b57f37fb
WP
7483IFS=$as_save_IFS
7484
7485fi
7486fi
042acc47
WP
7487ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7488if test -n "$ac_ct_NMEDIT"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7490$as_echo "$ac_ct_NMEDIT" >&6; }
b57f37fb 7491else
042acc47 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7493$as_echo "no" >&6; }
b57f37fb
WP
7494fi
7495
042acc47
WP
7496 if test "x$ac_ct_NMEDIT" = x; then
7497 NMEDIT=":"
b57f37fb
WP
7498 else
7499 case $cross_compiling:$ac_tool_warned in
7500yes:)
042acc47 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 7502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
7503ac_tool_warned=yes ;;
7504esac
042acc47 7505 NMEDIT=$ac_ct_NMEDIT
b57f37fb
WP
7506 fi
7507else
042acc47 7508 NMEDIT="$ac_cv_prog_NMEDIT"
b57f37fb
WP
7509fi
7510
042acc47
WP
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7513set dummy ${ac_tool_prefix}lipo; ac_word=$2
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7516if ${ac_cv_prog_LIPO+:} false; then :
042acc47
WP
7517 $as_echo_n "(cached) " >&6
7518else
7519 if test -n "$LIPO"; then
7520 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7521else
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533done
7534 done
7535IFS=$as_save_IFS
b57f37fb 7536
b57f37fb 7537fi
b57f37fb 7538fi
042acc47
WP
7539LIPO=$ac_cv_prog_LIPO
7540if test -n "$LIPO"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7542$as_echo "$LIPO" >&6; }
b57f37fb 7543else
042acc47 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7545$as_echo "no" >&6; }
b57f37fb
WP
7546fi
7547
042acc47
WP
7548
7549fi
7550if test -z "$ac_cv_prog_LIPO"; then
7551 ac_ct_LIPO=$LIPO
7552 # Extract the first word of "lipo", so it can be a program name with args.
7553set dummy lipo; ac_word=$2
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7556if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
f030cae8 7557 $as_echo_n "(cached) " >&6
b57f37fb 7558else
042acc47
WP
7559 if test -n "$ac_ct_LIPO"; then
7560 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_ac_ct_LIPO="lipo"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573done
b57f37fb 7574 done
042acc47 7575IFS=$as_save_IFS
b57f37fb 7576
042acc47
WP
7577fi
7578fi
7579ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7580if test -n "$ac_ct_LIPO"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7582$as_echo "$ac_ct_LIPO" >&6; }
b57f37fb 7583else
042acc47 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7585$as_echo "no" >&6; }
b57f37fb
WP
7586fi
7587
042acc47
WP
7588 if test "x$ac_ct_LIPO" = x; then
7589 LIPO=":"
b57f37fb 7590 else
042acc47
WP
7591 case $cross_compiling:$ac_tool_warned in
7592yes:)
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595ac_tool_warned=yes ;;
7596esac
7597 LIPO=$ac_ct_LIPO
b57f37fb 7598 fi
042acc47
WP
7599else
7600 LIPO="$ac_cv_prog_LIPO"
b57f37fb
WP
7601fi
7602
56efe974 7603 if test -n "$ac_tool_prefix"; then
042acc47
WP
7604 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7605set dummy ${ac_tool_prefix}otool; ac_word=$2
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7607$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7608if ${ac_cv_prog_OTOOL+:} false; then :
f030cae8 7609 $as_echo_n "(cached) " >&6
56efe974 7610else
042acc47
WP
7611 if test -n "$OTOOL"; then
7612 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
56efe974
WP
7613else
7614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
042acc47 7619 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7621 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
7623 break 2
7624 fi
7625done
042acc47 7626 done
56efe974
WP
7627IFS=$as_save_IFS
7628
7629fi
7630fi
042acc47
WP
7631OTOOL=$ac_cv_prog_OTOOL
7632if test -n "$OTOOL"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7634$as_echo "$OTOOL" >&6; }
56efe974 7635else
042acc47 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7637$as_echo "no" >&6; }
56efe974
WP
7638fi
7639
7640
7641fi
042acc47
WP
7642if test -z "$ac_cv_prog_OTOOL"; then
7643 ac_ct_OTOOL=$OTOOL
7644 # Extract the first word of "otool", so it can be a program name with args.
7645set dummy otool; ac_word=$2
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7647$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7648if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
f030cae8 7649 $as_echo_n "(cached) " >&6
56efe974 7650else
042acc47
WP
7651 if test -n "$ac_ct_OTOOL"; then
7652 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
56efe974
WP
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
042acc47 7659 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7661 ac_cv_prog_ac_ct_OTOOL="otool"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
7663 break 2
7664 fi
7665done
042acc47 7666 done
56efe974
WP
7667IFS=$as_save_IFS
7668
7669fi
7670fi
042acc47
WP
7671ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7672if test -n "$ac_ct_OTOOL"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7674$as_echo "$ac_ct_OTOOL" >&6; }
56efe974 7675else
042acc47 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7677$as_echo "no" >&6; }
56efe974
WP
7678fi
7679
042acc47
WP
7680 if test "x$ac_ct_OTOOL" = x; then
7681 OTOOL=":"
56efe974
WP
7682 else
7683 case $cross_compiling:$ac_tool_warned in
7684yes:)
042acc47 7685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 7686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56efe974
WP
7687ac_tool_warned=yes ;;
7688esac
042acc47 7689 OTOOL=$ac_ct_OTOOL
56efe974
WP
7690 fi
7691else
042acc47 7692 OTOOL="$ac_cv_prog_OTOOL"
56efe974
WP
7693fi
7694
7695 if test -n "$ac_tool_prefix"; then
042acc47
WP
7696 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7697set dummy ${ac_tool_prefix}otool64; ac_word=$2
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7699$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7700if ${ac_cv_prog_OTOOL64+:} false; then :
f030cae8 7701 $as_echo_n "(cached) " >&6
56efe974 7702else
042acc47
WP
7703 if test -n "$OTOOL64"; then
7704 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
56efe974
WP
7705else
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
042acc47 7711 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7713 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
7715 break 2
7716 fi
7717done
042acc47 7718 done
56efe974
WP
7719IFS=$as_save_IFS
7720
7721fi
7722fi
042acc47
WP
7723OTOOL64=$ac_cv_prog_OTOOL64
7724if test -n "$OTOOL64"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7726$as_echo "$OTOOL64" >&6; }
56efe974 7727else
042acc47 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7729$as_echo "no" >&6; }
56efe974
WP
7730fi
7731
7732
7733fi
042acc47
WP
7734if test -z "$ac_cv_prog_OTOOL64"; then
7735 ac_ct_OTOOL64=$OTOOL64
7736 # Extract the first word of "otool64", so it can be a program name with args.
7737set dummy otool64; ac_word=$2
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7739$as_echo_n "checking for $ac_word... " >&6; }
12e39525 7740if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
f030cae8 7741 $as_echo_n "(cached) " >&6
56efe974 7742else
042acc47
WP
7743 if test -n "$ac_ct_OTOOL64"; then
7744 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
56efe974
WP
7745else
7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
042acc47 7751 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7753 ac_cv_prog_ac_ct_OTOOL64="otool64"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
7755 break 2
7756 fi
7757done
042acc47 7758 done
56efe974
WP
7759IFS=$as_save_IFS
7760
7761fi
7762fi
042acc47
WP
7763ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7764if test -n "$ac_ct_OTOOL64"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7766$as_echo "$ac_ct_OTOOL64" >&6; }
56efe974 7767else
042acc47 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7769$as_echo "no" >&6; }
56efe974
WP
7770fi
7771
042acc47
WP
7772 if test "x$ac_ct_OTOOL64" = x; then
7773 OTOOL64=":"
56efe974
WP
7774 else
7775 case $cross_compiling:$ac_tool_warned in
7776yes:)
042acc47 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 7778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56efe974
WP
7779ac_tool_warned=yes ;;
7780esac
042acc47 7781 OTOOL64=$ac_ct_OTOOL64
56efe974
WP
7782 fi
7783else
042acc47 7784 OTOOL64="$ac_cv_prog_OTOOL64"
56efe974
WP
7785fi
7786
7787
56efe974 7788
56efe974 7789
042acc47
WP
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7814$as_echo_n "checking for -single_module linker flag... " >&6; }
12e39525 7815if ${lt_cv_apple_cc_single_mod+:} false; then :
042acc47
WP
7816 $as_echo_n "(cached) " >&6
7817else
7818 lt_cv_apple_cc_single_mod=no
7819 if test -z "${LT_MULTI_MODULE}"; then
7820 # By default we will add the -single_module flag. You can override
7821 # by either setting the environment variable LT_MULTI_MODULE
7822 # non-empty at configure time, or by adding -multi_module to the
7823 # link flags.
7824 rm -rf libconftest.dylib*
7825 echo "int foo(void){return 1;}" > conftest.c
7826 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7827-dynamiclib -Wl,-single_module conftest.c" >&5
7828 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7829 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7830 _lt_result=$?
7831 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7832 lt_cv_apple_cc_single_mod=yes
7833 else
7834 cat conftest.err >&5
7835 fi
7836 rm -rf libconftest.dylib*
7837 rm -f conftest.*
7838 fi
7839fi
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7841$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7843$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12e39525 7844if ${lt_cv_ld_exported_symbols_list+:} false; then :
042acc47
WP
7845 $as_echo_n "(cached) " >&6
7846else
7847 lt_cv_ld_exported_symbols_list=no
7848 save_LDFLAGS=$LDFLAGS
7849 echo "_main" > conftest.sym
7850 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h. */
7853
7854int
7855main ()
7856{
7857
7858 ;
7859 return 0;
56efe974
WP
7860}
7861_ACEOF
042acc47 7862if ac_fn_c_try_link "$LINENO"; then :
56efe974
WP
7863 lt_cv_ld_exported_symbols_list=yes
7864else
042acc47 7865 lt_cv_ld_exported_symbols_list=no
56efe974 7866fi
042acc47
WP
7867rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 LDFLAGS="$save_LDFLAGS"
56efe974
WP
7870
7871fi
042acc47 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
f030cae8 7873$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
56efe974 7874 case $host_os in
042acc47 7875 rhapsody* | darwin1.[012])
56efe974
WP
7876 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7877 darwin1.*)
042acc47
WP
7878 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7879 darwin*) # darwin 5.x on
56efe974
WP
7880 # if running on 10.5 or later, the deployment target defaults
7881 # to the OS version, if on x86, and 10.4, the deployment
7882 # target defaults to 10.4. Don't you love it?
7883 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
042acc47
WP
7884 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7885 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7886 10.[012]*)
7887 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7888 10.*)
7889 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
56efe974
WP
7890 esac
7891 ;;
7892 esac
7893 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7894 _lt_dar_single_mod='$single_module'
7895 fi
7896 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7897 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7898 else
042acc47 7899 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
56efe974
WP
7900 fi
7901 if test "$DSYMUTIL" != ":"; then
042acc47 7902 _lt_dsymutil='~$DSYMUTIL $lib || :'
56efe974
WP
7903 else
7904 _lt_dsymutil=
7905 fi
7906 ;;
7907 esac
7908
042acc47
WP
7909for ac_header in dlfcn.h
7910do :
7911 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7912"
12e39525 7913if test "x$ac_cv_header_dlfcn_h" = xyes; then :
042acc47
WP
7914 cat >>confdefs.h <<_ACEOF
7915#define HAVE_DLFCN_H 1
7916_ACEOF
56efe974 7917
b57f37fb
WP
7918fi
7919
042acc47
WP
7920done
7921
7922
7923
7924# Set options
7925
7926
7927
7928 enable_dlopen=no
7929
7930
7931 enable_win32_dll=no
7932
7933
7934
b57f37fb
WP
7935
7936
7937# Check whether --with-pic was given.
042acc47 7938if test "${with_pic+set}" = set; then :
b57f37fb
WP
7939 withval=$with_pic; pic_mode="$withval"
7940else
7941 pic_mode=default
7942fi
7943
042acc47 7944
b57f37fb
WP
7945test -z "$pic_mode" && pic_mode=default
7946
b57f37fb
WP
7947
7948
b57f37fb 7949
b57f37fb 7950
b57f37fb 7951
b57f37fb 7952
042acc47
WP
7953 # Check whether --enable-fast-install was given.
7954if test "${enable_fast_install+set}" = set; then :
7955 enableval=$enable_fast_install; p=${PACKAGE-default}
7956 case $enableval in
7957 yes) enable_fast_install=yes ;;
7958 no) enable_fast_install=no ;;
7959 *)
7960 enable_fast_install=no
7961 # Look at the argument we got. We use all the common list separators.
7962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7963 for pkg in $enableval; do
7964 IFS="$lt_save_ifs"
7965 if test "X$pkg" = "X$p"; then
7966 enable_fast_install=yes
7967 fi
7968 done
7969 IFS="$lt_save_ifs"
7970 ;;
7971 esac
7972else
7973 enable_fast_install=yes
7974fi
b57f37fb 7975
b57f37fb 7976
b57f37fb 7977
b57f37fb
WP
7978
7979
b57f37fb 7980
b57f37fb
WP
7981
7982
7983
b57f37fb 7984
b57f37fb 7985
042acc47
WP
7986# This can be used to rebuild libtool when needed
7987LIBTOOL_DEPS="$ltmain"
b57f37fb 7988
042acc47
WP
7989# Always use our own libtool.
7990LIBTOOL='$(SHELL) $(top_builddir)/libtool'
b57f37fb 7991
b57f37fb 7992
b57f37fb 7993
b57f37fb 7994
b57f37fb 7995
b57f37fb 7996
b57f37fb 7997
b57f37fb 7998
b57f37fb 7999
b57f37fb 8000
b57f37fb 8001
b57f37fb 8002
b57f37fb 8003
b57f37fb 8004
b57f37fb 8005
b57f37fb 8006
b57f37fb 8007
b57f37fb 8008
b57f37fb 8009
b57f37fb 8010
b57f37fb 8011
b57f37fb 8012
b57f37fb 8013
b57f37fb 8014
b57f37fb 8015
042acc47 8016test -z "$LN_S" && LN_S="ln -s"
b57f37fb 8017
b57f37fb 8018
b57f37fb 8019
b57f37fb 8020
b57f37fb 8021
b57f37fb 8022
b57f37fb 8023
b57f37fb 8024
b57f37fb 8025
b57f37fb 8026
b57f37fb 8027
b57f37fb 8028
b57f37fb 8029
b57f37fb 8030
042acc47
WP
8031if test -n "${ZSH_VERSION+set}" ; then
8032 setopt NO_GLOB_SUBST
b57f37fb 8033fi
b57f37fb 8034
042acc47
WP
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8036$as_echo_n "checking for objdir... " >&6; }
12e39525 8037if ${lt_cv_objdir+:} false; then :
042acc47 8038 $as_echo_n "(cached) " >&6
b57f37fb 8039else
042acc47
WP
8040 rm -f .libs 2>/dev/null
8041mkdir .libs 2>/dev/null
8042if test -d .libs; then
8043 lt_cv_objdir=.libs
8044else
8045 # MS-DOS does not allow filenames that begin with a dot.
8046 lt_cv_objdir=_libs
8047fi
8048rmdir .libs 2>/dev/null
b57f37fb 8049fi
042acc47
WP
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8051$as_echo "$lt_cv_objdir" >&6; }
8052objdir=$lt_cv_objdir
b57f37fb
WP
8053
8054
b57f37fb 8055
b57f37fb 8056
b57f37fb 8057
042acc47
WP
8058cat >>confdefs.h <<_ACEOF
8059#define LT_OBJDIR "$lt_cv_objdir/"
8060_ACEOF
b57f37fb 8061
b57f37fb 8062
b57f37fb 8063
b57f37fb 8064
b57f37fb 8065
b57f37fb 8066
b57f37fb 8067
b57f37fb 8068
b57f37fb 8069
b57f37fb 8070
b57f37fb 8071
b57f37fb 8072
b57f37fb 8073
b57f37fb 8074
b57f37fb 8075
b57f37fb 8076
b57f37fb 8077
042acc47
WP
8078case $host_os in
8079aix3*)
8080 # AIX sometimes has problems with the GCC collect2 program. For some
8081 # reason, if we set the COLLECT_NAMES environment variable, the problems
8082 # vanish in a puff of smoke.
8083 if test "X${COLLECT_NAMES+set}" != Xset; then
8084 COLLECT_NAMES=
8085 export COLLECT_NAMES
8086 fi
8087 ;;
8088esac
b57f37fb 8089
042acc47
WP
8090# Sed substitution that helps us do robust quoting. It backslashifies
8091# metacharacters that are still active within double-quoted strings.
8092sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
b57f37fb 8093
042acc47
WP
8094# Same as above, but do not quote variable references.
8095double_quote_subst='s/\(["`\\]\)/\\\1/g'
b57f37fb 8096
042acc47
WP
8097# Sed substitution to delay expansion of an escaped shell variable in a
8098# double_quote_subst'ed string.
8099delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
b57f37fb 8100
042acc47
WP
8101# Sed substitution to delay expansion of an escaped single quote.
8102delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
b57f37fb 8103
042acc47
WP
8104# Sed substitution to avoid accidental globbing in evaled expressions
8105no_glob_subst='s/\*/\\\*/g'
b57f37fb 8106
042acc47
WP
8107# Global variables:
8108ofile=libtool
8109can_build_shared=yes
b57f37fb 8110
042acc47
WP
8111# All known linkers require a `.a' archive for static linking (except MSVC,
8112# which needs '.lib').
8113libext=a
b57f37fb 8114
042acc47 8115with_gnu_ld="$lt_cv_prog_gnu_ld"
b57f37fb 8116
042acc47
WP
8117old_CC="$CC"
8118old_CFLAGS="$CFLAGS"
b57f37fb 8119
042acc47
WP
8120# Set sane defaults for various variables
8121test -z "$CC" && CC=cc
8122test -z "$LTCC" && LTCC=$CC
8123test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8124test -z "$LD" && LD=ld
8125test -z "$ac_objext" && ac_objext=o
b57f37fb 8126
042acc47
WP
8127for cc_temp in $compiler""; do
8128 case $cc_temp in
8129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8131 \-*) ;;
8132 *) break;;
8133 esac
8134done
8135cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
b57f37fb 8136
b57f37fb 8137
042acc47
WP
8138# Only perform the check for file, if the check method requires it
8139test -z "$MAGIC_CMD" && MAGIC_CMD=file
8140case $deplibs_check_method in
8141file_magic*)
8142 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8144$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12e39525 8145if ${lt_cv_path_MAGIC_CMD+:} false; then :
042acc47
WP
8146 $as_echo_n "(cached) " >&6
8147else
8148 case $MAGIC_CMD in
8149[\\/*] | ?:[\\/]*)
8150 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8151 ;;
8152*)
8153 lt_save_MAGIC_CMD="$MAGIC_CMD"
8154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8156 for ac_dir in $ac_dummy; do
8157 IFS="$lt_save_ifs"
8158 test -z "$ac_dir" && ac_dir=.
8159 if test -f $ac_dir/${ac_tool_prefix}file; then
8160 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8161 if test -n "$file_magic_test_file"; then
8162 case $deplibs_check_method in
8163 "file_magic "*)
8164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8167 $EGREP "$file_magic_regex" > /dev/null; then
8168 :
8169 else
8170 cat <<_LT_EOF 1>&2
b57f37fb 8171
042acc47
WP
8172*** Warning: the command libtool uses to detect shared libraries,
8173*** $file_magic_cmd, produces output that libtool cannot recognize.
8174*** The result is that libtool may fail to recognize shared libraries
8175*** as such. This will affect the creation of libtool libraries that
8176*** depend on shared libraries, but programs linked with such libtool
8177*** libraries will work regardless of this problem. Nevertheless, you
8178*** may want to report the problem to your system manager and/or to
8179*** bug-libtool@gnu.org
b57f37fb 8180
042acc47
WP
8181_LT_EOF
8182 fi ;;
b57f37fb 8183 esac
b57f37fb 8184 fi
042acc47
WP
8185 break
8186 fi
8187 done
8188 IFS="$lt_save_ifs"
8189 MAGIC_CMD="$lt_save_MAGIC_CMD"
8190 ;;
8191esac
8192fi
b57f37fb 8193
042acc47
WP
8194MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195if test -n "$MAGIC_CMD"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8197$as_echo "$MAGIC_CMD" >&6; }
8198else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
8201fi
b57f37fb 8202
b57f37fb 8203
b57f37fb 8204
042acc47
WP
8205
8206
8207if test -z "$lt_cv_path_MAGIC_CMD"; then
8208 if test -n "$ac_tool_prefix"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8210$as_echo_n "checking for file... " >&6; }
12e39525 8211if ${lt_cv_path_MAGIC_CMD+:} false; then :
042acc47 8212 $as_echo_n "(cached) " >&6
b57f37fb 8213else
042acc47
WP
8214 case $MAGIC_CMD in
8215[\\/*] | ?:[\\/]*)
8216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8217 ;;
8218*)
8219 lt_save_MAGIC_CMD="$MAGIC_CMD"
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir in $ac_dummy; do
8223 IFS="$lt_save_ifs"
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/file; then
8226 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8229 "file_magic "*)
8230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233 $EGREP "$file_magic_regex" > /dev/null; then
8234 :
8235 else
8236 cat <<_LT_EOF 1>&2
b57f37fb 8237
042acc47
WP
8238*** Warning: the command libtool uses to detect shared libraries,
8239*** $file_magic_cmd, produces output that libtool cannot recognize.
8240*** The result is that libtool may fail to recognize shared libraries
8241*** as such. This will affect the creation of libtool libraries that
8242*** depend on shared libraries, but programs linked with such libtool
8243*** libraries will work regardless of this problem. Nevertheless, you
8244*** may want to report the problem to your system manager and/or to
8245*** bug-libtool@gnu.org
b57f37fb 8246
042acc47
WP
8247_LT_EOF
8248 fi ;;
8249 esac
8250 fi
8251 break
8252 fi
8253 done
8254 IFS="$lt_save_ifs"
8255 MAGIC_CMD="$lt_save_MAGIC_CMD"
8256 ;;
8257esac
b57f37fb
WP
8258fi
8259
042acc47
WP
8260MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261if test -n "$MAGIC_CMD"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263$as_echo "$MAGIC_CMD" >&6; }
8264else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
8267fi
b57f37fb 8268
b57f37fb 8269
042acc47
WP
8270 else
8271 MAGIC_CMD=:
8272 fi
8273fi
b57f37fb 8274
042acc47
WP
8275 fi
8276 ;;
b57f37fb 8277esac
b57f37fb 8278
042acc47
WP
8279# Use C for the default configuration in the libtool script
8280
8281lt_save_CC="$CC"
8282ac_ext=c
8283ac_cpp='$CPP $CPPFLAGS'
8284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286ac_compiler_gnu=$ac_cv_c_compiler_gnu
8287
8288
8289# Source file extension for C test sources.
8290ac_ext=c
8291
8292# Object file extension for compiled C test sources.
8293objext=o
8294objext=$objext
8295
8296# Code to be used in simple compile tests
8297lt_simple_compile_test_code="int some_variable = 0;"
8298
8299# Code to be used in simple link tests
8300lt_simple_link_test_code='int main(){return(0);}'
8301
8302
8303
8304
8305
8306
8307
8308# If no C compiler was specified, use CC.
8309LTCC=${LTCC-"$CC"}
8310
8311# If no C compiler flags were specified, use CFLAGS.
8312LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8313
8314# Allow CC to be a program name with arguments.
8315compiler=$CC
8316
8317# Save the default compiler, since it gets overwritten when the other
8318# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8319compiler_DEFAULT=$CC
8320
8321# save warnings/boilerplate of simple test code
8322ac_outfile=conftest.$ac_objext
8323echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8324eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8325_lt_compiler_boilerplate=`cat conftest.err`
8326$RM conftest*
8327
8328ac_outfile=conftest.$ac_objext
8329echo "$lt_simple_link_test_code" >conftest.$ac_ext
8330eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8331_lt_linker_boilerplate=`cat conftest.err`
8332$RM -r conftest*
8333
8334
8335if test -n "$compiler"; then
8336
8337lt_prog_compiler_no_builtin_flag=
8338
8339if test "$GCC" = yes; then
8340 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8341
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8343$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12e39525 8344if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
042acc47 8345 $as_echo_n "(cached) " >&6
b57f37fb 8346else
042acc47
WP
8347 lt_cv_prog_compiler_rtti_exceptions=no
8348 ac_outfile=conftest.$ac_objext
8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350 lt_compiler_flag="-fno-rtti -fno-exceptions"
8351 # Insert the option either (1) after the last *FLAGS variable, or
8352 # (2) before a word containing "conftest.", or (3) at the end.
8353 # Note that $ac_compile itself does not contain backslashes and begins
8354 # with a dollar sign (not a hyphen), so the echo should work correctly.
8355 # The option is referenced via a variable to avoid confusing sed.
8356 lt_compile=`echo "$ac_compile" | $SED \
8357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359 -e 's:$: $lt_compiler_flag:'`
12e39525 8360 (eval echo "\"\$as_me:8360: $lt_compile\"" >&5)
042acc47
WP
8361 (eval "$lt_compile" 2>conftest.err)
8362 ac_status=$?
8363 cat conftest.err >&5
12e39525 8364 echo "$as_me:8364: \$? = $ac_status" >&5
042acc47
WP
8365 if (exit $ac_status) && test -s "$ac_outfile"; then
8366 # The compiler can only warn and ignore the option if not recognized
8367 # So say no if there are warnings other than the usual output.
8368 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8370 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8371 lt_cv_prog_compiler_rtti_exceptions=yes
8372 fi
8373 fi
8374 $RM conftest*
b57f37fb 8375
042acc47
WP
8376fi
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8378$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
b57f37fb 8379
042acc47
WP
8380if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8381 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8382else
8383 :
b57f37fb
WP
8384fi
8385
042acc47 8386fi
b57f37fb 8387
042acc47
WP
8388
8389
8390
8391
8392
8393 lt_prog_compiler_wl=
8394lt_prog_compiler_pic=
8395lt_prog_compiler_static=
8396
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8398$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8399
8400 if test "$GCC" = yes; then
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_static='-static'
8403
8404 case $host_os in
8405 aix*)
8406 # All AIX code is PIC.
8407 if test "$host_cpu" = ia64; then
8408 # AIX 5 now supports IA64 processor
8409 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
8410 fi
8411 ;;
8412
8413 amigaos*)
042acc47
WP
8414 case $host_cpu in
8415 powerpc)
8416 # see comment about AmigaOS4 .so support
8417 lt_prog_compiler_pic='-fPIC'
8418 ;;
8419 m68k)
8420 # FIXME: we need at least 68020 code to build shared libraries, but
8421 # adding the `-m68020' flag to GCC prevents building anything better,
8422 # like `-m68040'.
8423 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8424 ;;
8425 esac
b57f37fb
WP
8426 ;;
8427
042acc47
WP
8428 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8429 # PIC is the default for these OSes.
b57f37fb
WP
8430 ;;
8431
042acc47
WP
8432 mingw* | cygwin* | pw32* | os2* | cegcc*)
8433 # This hack is so that the source file can tell whether it is being
8434 # built for inclusion in a dll (and should export symbols for example).
8435 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8436 # (--disable-auto-import) libraries
8437 lt_prog_compiler_pic='-DDLL_EXPORT'
b57f37fb
WP
8438 ;;
8439
8440 darwin* | rhapsody*)
042acc47
WP
8441 # PIC is the default on this platform
8442 # Common symbols not allowed in MH_DYLIB files
8443 lt_prog_compiler_pic='-fno-common'
b57f37fb
WP
8444 ;;
8445
042acc47
WP
8446 hpux*)
8447 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8448 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8449 # sets the default TLS model and affects inlining.
8450 case $host_cpu in
8451 hppa*64*)
8452 # +Z the default
8453 ;;
8454 *)
8455 lt_prog_compiler_pic='-fPIC'
8456 ;;
8457 esac
b57f37fb
WP
8458 ;;
8459
042acc47
WP
8460 interix[3-9]*)
8461 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8462 # Instead, we relocate shared libraries at runtime.
b57f37fb
WP
8463 ;;
8464
042acc47
WP
8465 msdosdjgpp*)
8466 # Just because we use GCC doesn't mean we suddenly get shared libraries
8467 # on systems that don't support them.
8468 lt_prog_compiler_can_build_shared=no
8469 enable_shared=no
b57f37fb
WP
8470 ;;
8471
042acc47
WP
8472 *nto* | *qnx*)
8473 # QNX uses GNU C++, but need to define -shared option too, otherwise
8474 # it will coredump.
8475 lt_prog_compiler_pic='-fPIC -shared'
b57f37fb
WP
8476 ;;
8477
042acc47
WP
8478 sysv4*MP*)
8479 if test -d /usr/nec; then
8480 lt_prog_compiler_pic=-Kconform_pic
8481 fi
b57f37fb
WP
8482 ;;
8483
042acc47
WP
8484 *)
8485 lt_prog_compiler_pic='-fPIC'
8486 ;;
8487 esac
8488 else
8489 # PORTME Check for flag to pass linker flags through the system compiler.
8490 case $host_os in
8491 aix*)
8492 lt_prog_compiler_wl='-Wl,'
8493 if test "$host_cpu" = ia64; then
8494 # AIX 5 now supports IA64 processor
8495 lt_prog_compiler_static='-Bstatic'
b57f37fb 8496 else
042acc47 8497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
b57f37fb 8498 fi
b57f37fb
WP
8499 ;;
8500
042acc47
WP
8501 mingw* | cygwin* | pw32* | os2* | cegcc*)
8502 # This hack is so that the source file can tell whether it is being
8503 # built for inclusion in a dll (and should export symbols for example).
8504 lt_prog_compiler_pic='-DDLL_EXPORT'
8505 ;;
b57f37fb 8506
042acc47
WP
8507 hpux9* | hpux10* | hpux11*)
8508 lt_prog_compiler_wl='-Wl,'
8509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8510 # not for PA HP-UX.
8511 case $host_cpu in
8512 hppa*64*|ia64*)
8513 # +Z the default
8514 ;;
8515 *)
8516 lt_prog_compiler_pic='+Z'
8517 ;;
8518 esac
8519 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8520 lt_prog_compiler_static='${wl}-a ${wl}archive'
8521 ;;
b57f37fb 8522
042acc47
WP
8523 irix5* | irix6* | nonstopux*)
8524 lt_prog_compiler_wl='-Wl,'
8525 # PIC (with -KPIC) is the default.
8526 lt_prog_compiler_static='-non_shared'
b57f37fb
WP
8527 ;;
8528
042acc47
WP
8529 linux* | k*bsd*-gnu)
8530 case $cc_basename in
8531 # old Intel for x86_64 which still supported -KPIC.
8532 ecc*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-KPIC'
8535 lt_prog_compiler_static='-static'
8536 ;;
8537 # icc used to be incompatible with GCC.
8538 # ICC 10 doesn't accept -KPIC any more.
8539 icc* | ifort*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-fPIC'
8542 lt_prog_compiler_static='-static'
8543 ;;
8544 # Lahey Fortran 8.1.
8545 lf95*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='--shared'
8548 lt_prog_compiler_static='--static'
8549 ;;
8550 pgcc* | pgf77* | pgf90* | pgf95*)
8551 # Portland Group compilers (*not* the Pentium gcc compiler,
8552 # which looks to be a dead project)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-fpic'
8555 lt_prog_compiler_static='-Bstatic'
8556 ;;
8557 ccc*)
8558 lt_prog_compiler_wl='-Wl,'
8559 # All Alpha code is PIC.
8560 lt_prog_compiler_static='-non_shared'
8561 ;;
8562 xl*)
8563 # IBM XL C 8.0/Fortran 10.1 on PPC
8564 lt_prog_compiler_wl='-Wl,'
8565 lt_prog_compiler_pic='-qpic'
8566 lt_prog_compiler_static='-qstaticlink'
8567 ;;
8568 *)
8569 case `$CC -V 2>&1 | sed 5q` in
8570 *Sun\ C*)
8571 # Sun C 5.9
8572 lt_prog_compiler_pic='-KPIC'
8573 lt_prog_compiler_static='-Bstatic'
8574 lt_prog_compiler_wl='-Wl,'
b57f37fb 8575 ;;
042acc47
WP
8576 *Sun\ F*)
8577 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8578 lt_prog_compiler_pic='-KPIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 lt_prog_compiler_wl=''
b57f37fb
WP
8581 ;;
8582 esac
042acc47
WP
8583 ;;
8584 esac
8585 ;;
b57f37fb 8586
042acc47
WP
8587 newsos6)
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-Bstatic'
8590 ;;
b57f37fb 8591
042acc47
WP
8592 *nto* | *qnx*)
8593 # QNX uses GNU C++, but need to define -shared option too, otherwise
8594 # it will coredump.
8595 lt_prog_compiler_pic='-fPIC -shared'
b57f37fb
WP
8596 ;;
8597
042acc47
WP
8598 osf3* | osf4* | osf5*)
8599 lt_prog_compiler_wl='-Wl,'
8600 # All OSF/1 code is PIC.
8601 lt_prog_compiler_static='-non_shared'
b57f37fb
WP
8602 ;;
8603
042acc47
WP
8604 rdos*)
8605 lt_prog_compiler_static='-non_shared'
b57f37fb
WP
8606 ;;
8607
042acc47
WP
8608 solaris*)
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 case $cc_basename in
8612 f77* | f90* | f95*)
8613 lt_prog_compiler_wl='-Qoption ld ';;
8614 *)
8615 lt_prog_compiler_wl='-Wl,';;
8616 esac
b57f37fb
WP
8617 ;;
8618
042acc47
WP
8619 sunos4*)
8620 lt_prog_compiler_wl='-Qoption ld '
8621 lt_prog_compiler_pic='-PIC'
8622 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
8623 ;;
8624
042acc47
WP
8625 sysv4 | sysv4.2uw2* | sysv4.3*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
8629 ;;
8630
042acc47
WP
8631 sysv4*MP*)
8632 if test -d /usr/nec ;then
8633 lt_prog_compiler_pic='-Kconform_pic'
8634 lt_prog_compiler_static='-Bstatic'
b57f37fb 8635 fi
b57f37fb
WP
8636 ;;
8637
042acc47
WP
8638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-Bstatic'
8642 ;;
b57f37fb 8643
042acc47
WP
8644 unicos*)
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_can_build_shared=no
b57f37fb
WP
8647 ;;
8648
042acc47
WP
8649 uts4*)
8650 lt_prog_compiler_pic='-pic'
8651 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
8652 ;;
8653
042acc47
WP
8654 *)
8655 lt_prog_compiler_can_build_shared=no
b57f37fb 8656 ;;
042acc47
WP
8657 esac
8658 fi
b57f37fb 8659
042acc47
WP
8660case $host_os in
8661 # For platforms which do not support PIC, -DPIC is meaningless:
8662 *djgpp*)
8663 lt_prog_compiler_pic=
8664 ;;
8665 *)
8666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8667 ;;
8668esac
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8670$as_echo "$lt_prog_compiler_pic" >&6; }
b57f37fb 8671
b57f37fb 8672
b57f37fb 8673
b57f37fb 8674
b57f37fb 8675
b57f37fb 8676
042acc47
WP
8677#
8678# Check to make sure the PIC flag actually works.
8679#
8680if test -n "$lt_prog_compiler_pic"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8682$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12e39525 8683if ${lt_cv_prog_compiler_pic_works+:} false; then :
042acc47
WP
8684 $as_echo_n "(cached) " >&6
8685else
8686 lt_cv_prog_compiler_pic_works=no
8687 ac_outfile=conftest.$ac_objext
8688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8689 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8690 # Insert the option either (1) after the last *FLAGS variable, or
8691 # (2) before a word containing "conftest.", or (3) at the end.
8692 # Note that $ac_compile itself does not contain backslashes and begins
8693 # with a dollar sign (not a hyphen), so the echo should work correctly.
8694 # The option is referenced via a variable to avoid confusing sed.
8695 lt_compile=`echo "$ac_compile" | $SED \
8696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698 -e 's:$: $lt_compiler_flag:'`
12e39525 8699 (eval echo "\"\$as_me:8699: $lt_compile\"" >&5)
042acc47
WP
8700 (eval "$lt_compile" 2>conftest.err)
8701 ac_status=$?
8702 cat conftest.err >&5
12e39525 8703 echo "$as_me:8703: \$? = $ac_status" >&5
042acc47
WP
8704 if (exit $ac_status) && test -s "$ac_outfile"; then
8705 # The compiler can only warn and ignore the option if not recognized
8706 # So say no if there are warnings other than the usual output.
8707 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8710 lt_cv_prog_compiler_pic_works=yes
8711 fi
8712 fi
8713 $RM conftest*
8714
8715fi
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8717$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8718
8719if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8720 case $lt_prog_compiler_pic in
8721 "" | " "*) ;;
8722 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8723 esac
8724else
8725 lt_prog_compiler_pic=
8726 lt_prog_compiler_can_build_shared=no
8727fi
8728
8729fi
8730
8731
b57f37fb 8732
b57f37fb 8733
b57f37fb 8734
b57f37fb
WP
8735
8736#
042acc47 8737# Check to make sure the static flag actually works.
b57f37fb 8738#
042acc47
WP
8739wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8741$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12e39525 8742if ${lt_cv_prog_compiler_static_works+:} false; then :
042acc47
WP
8743 $as_echo_n "(cached) " >&6
8744else
8745 lt_cv_prog_compiler_static_works=no
8746 save_LDFLAGS="$LDFLAGS"
8747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8750 # The linker can only warn and ignore the option if not recognized
8751 # So say no if there are warnings
8752 if test -s conftest.err; then
8753 # Append any errors to the config.log.
8754 cat conftest.err 1>&5
8755 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8757 if diff conftest.exp conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_static_works=yes
8759 fi
8760 else
8761 lt_cv_prog_compiler_static_works=yes
8762 fi
8763 fi
8764 $RM -r conftest*
8765 LDFLAGS="$save_LDFLAGS"
b57f37fb 8766
042acc47
WP
8767fi
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8769$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
b57f37fb 8770
042acc47
WP
8771if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8772 :
8773else
8774 lt_prog_compiler_static=
8775fi
b57f37fb 8776
b57f37fb 8777
b57f37fb 8778
b57f37fb 8779
b57f37fb 8780
b57f37fb 8781
b57f37fb 8782
042acc47
WP
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8784$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12e39525 8785if ${lt_cv_prog_compiler_c_o+:} false; then :
042acc47
WP
8786 $as_echo_n "(cached) " >&6
8787else
8788 lt_cv_prog_compiler_c_o=no
8789 $RM -r conftest 2>/dev/null
8790 mkdir conftest
8791 cd conftest
8792 mkdir out
8793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b57f37fb 8794
042acc47
WP
8795 lt_compiler_flag="-o out/conftest2.$ac_objext"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 lt_compile=`echo "$ac_compile" | $SED \
8801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8803 -e 's:$: $lt_compiler_flag:'`
12e39525 8804 (eval echo "\"\$as_me:8804: $lt_compile\"" >&5)
042acc47
WP
8805 (eval "$lt_compile" 2>out/conftest.err)
8806 ac_status=$?
8807 cat out/conftest.err >&5
12e39525 8808 echo "$as_me:8808: \$? = $ac_status" >&5
042acc47
WP
8809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8810 then
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings
8813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_c_o=yes
8817 fi
8818 fi
8819 chmod u+w . 2>&5
8820 $RM conftest*
8821 # SGI C++ compiler will create directory out/ii_files/ for
8822 # template instantiation
8823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8824 $RM out/* && rmdir out
8825 cd ..
8826 $RM -r conftest
8827 $RM conftest*
b57f37fb 8828
042acc47
WP
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8831$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
b57f37fb 8832
b57f37fb 8833
b57f37fb 8834
b57f37fb 8835
b57f37fb 8836
b57f37fb 8837
042acc47
WP
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12e39525 8840if ${lt_cv_prog_compiler_c_o+:} false; then :
042acc47
WP
8841 $as_echo_n "(cached) " >&6
8842else
8843 lt_cv_prog_compiler_c_o=no
8844 $RM -r conftest 2>/dev/null
8845 mkdir conftest
8846 cd conftest
8847 mkdir out
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b57f37fb 8849
042acc47
WP
8850 lt_compiler_flag="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
12e39525 8859 (eval echo "\"\$as_me:8859: $lt_compile\"" >&5)
042acc47
WP
8860 (eval "$lt_compile" 2>out/conftest.err)
8861 ac_status=$?
8862 cat out/conftest.err >&5
12e39525 8863 echo "$as_me:8863: \$? = $ac_status" >&5
042acc47
WP
8864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 then
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler_c_o=yes
8872 fi
8873 fi
8874 chmod u+w . 2>&5
8875 $RM conftest*
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8879 $RM out/* && rmdir out
8880 cd ..
8881 $RM -r conftest
8882 $RM conftest*
b57f37fb 8883
042acc47
WP
8884fi
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8887
8888
8889
8890
8891hard_links="nottested"
8892if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8893 # do not overwrite the value of need_locks provided by the user
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8895$as_echo_n "checking if we can lock with hard links... " >&6; }
8896 hard_links=yes
8897 $RM conftest*
8898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899 touch conftest.a
8900 ln conftest.a conftest.b 2>&5 || hard_links=no
8901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8903$as_echo "$hard_links" >&6; }
8904 if test "$hard_links" = no; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8906$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8907 need_locks=warn
8908 fi
8909else
8910 need_locks=no
8911fi
8912
8913
8914
8915
8916
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8919$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8920
8921 runpath_var=
8922 allow_undefined_flag=
8923 always_export_symbols=no
8924 archive_cmds=
8925 archive_expsym_cmds=
8926 compiler_needs_object=no
8927 enable_shared_with_static_runtimes=no
8928 export_dynamic_flag_spec=
8929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8930 hardcode_automatic=no
8931 hardcode_direct=no
8932 hardcode_direct_absolute=no
8933 hardcode_libdir_flag_spec=
8934 hardcode_libdir_flag_spec_ld=
8935 hardcode_libdir_separator=
8936 hardcode_minus_L=no
8937 hardcode_shlibpath_var=unsupported
8938 inherit_rpath=no
8939 link_all_deplibs=unknown
8940 module_cmds=
8941 module_expsym_cmds=
8942 old_archive_from_new_cmds=
8943 old_archive_from_expsyms_cmds=
8944 thread_safe_flag_spec=
8945 whole_archive_flag_spec=
8946 # include_expsyms should be a list of space-separated symbols to be *always*
8947 # included in the symbol list
8948 include_expsyms=
8949 # exclude_expsyms can be an extended regexp of symbols to exclude
8950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8952 # as well as any symbol that contains `d'.
8953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8955 # platforms (ab)use it in PIC code, but their linkers get confused if
8956 # the symbol is explicitly referenced. Since portable code cannot
8957 # rely on this symbol name, it's probably fine to never include it in
8958 # preloaded symbol tables.
8959 # Exclude shared library initialization/finalization symbols.
8960 extract_expsyms_cmds=
b57f37fb 8961
b57f37fb 8962 case $host_os in
042acc47
WP
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 if test "$GCC" != yes; then
8968 with_gnu_ld=no
8969 fi
b57f37fb 8970 ;;
042acc47
WP
8971 interix*)
8972 # we just hope/assume this is gcc and not c89 (= MSVC++)
8973 with_gnu_ld=yes
b57f37fb 8974 ;;
042acc47
WP
8975 openbsd*)
8976 with_gnu_ld=no
b57f37fb 8977 ;;
b57f37fb 8978 esac
b57f37fb 8979
042acc47
WP
8980 ld_shlibs=yes
8981 if test "$with_gnu_ld" = yes; then
8982 # If archive_cmds runs LD, not CC, wlarc should be empty
8983 wlarc='${wl}'
b57f37fb 8984
042acc47
WP
8985 # Set some defaults for GNU ld with shared library support. These
8986 # are reset later if shared libraries are not supported. Putting them
8987 # here allows them to be overridden if necessary.
8988 runpath_var=LD_RUN_PATH
8989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8990 export_dynamic_flag_spec='${wl}--export-dynamic'
8991 # ancient GNU ld didn't support --whole-archive et. al.
8992 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8993 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
b57f37fb 8994 else
042acc47 8995 whole_archive_flag_spec=
b57f37fb 8996 fi
042acc47
WP
8997 supports_anon_versioning=no
8998 case `$LD -v 2>&1` in
8999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9002 *\ 2.11.*) ;; # other 2.11 versions
9003 *) supports_anon_versioning=yes ;;
b57f37fb 9004 esac
b57f37fb 9005
042acc47
WP
9006 # See if GNU ld supports shared libraries.
9007 case $host_os in
9008 aix[3-9]*)
9009 # On AIX/PPC, the GNU linker is very broken
9010 if test "$host_cpu" != ia64; then
9011 ld_shlibs=no
9012 cat <<_LT_EOF 1>&2
b57f37fb 9013
042acc47
WP
9014*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9015*** to be unable to reliably create shared libraries on AIX.
9016*** Therefore, libtool is disabling shared libraries support. If you
9017*** really care for shared libraries, you may want to modify your PATH
9018*** so that a non-GNU linker is found, and then restart.
b57f37fb 9019
042acc47
WP
9020_LT_EOF
9021 fi
9022 ;;
b57f37fb
WP
9023
9024 amigaos*)
042acc47
WP
9025 case $host_cpu in
9026 powerpc)
9027 # see comment about AmigaOS4 .so support
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds=''
9030 ;;
9031 m68k)
9032 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)'
9033 hardcode_libdir_flag_spec='-L$libdir'
9034 hardcode_minus_L=yes
9035 ;;
9036 esac
b57f37fb
WP
9037 ;;
9038
9039 beos*)
042acc47
WP
9040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9041 allow_undefined_flag=unsupported
b57f37fb
WP
9042 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9043 # support --undefined. This deserves some investigation. FIXME
042acc47 9044 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b57f37fb 9045 else
042acc47 9046 ld_shlibs=no
b57f37fb
WP
9047 fi
9048 ;;
9049
042acc47
WP
9050 cygwin* | mingw* | pw32* | cegcc*)
9051 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
b57f37fb 9052 # as there is no search path for DLLs.
042acc47
WP
9053 hardcode_libdir_flag_spec='-L$libdir'
9054 allow_undefined_flag=unsupported
9055 always_export_symbols=no
9056 enable_shared_with_static_runtimes=yes
9057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9058
9059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
b57f37fb
WP
9061 # If the export-symbols file already is a .def file (1st line
9062 # is EXPORTS), use it as is; otherwise, prepend...
042acc47 9063 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
b57f37fb
WP
9064 cp $export_symbols $output_objdir/$soname.def;
9065 else
9066 echo EXPORTS > $output_objdir/$soname.def;
9067 cat $export_symbols >> $output_objdir/$soname.def;
9068 fi~
9069 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9070 else
042acc47 9071 ld_shlibs=no
b57f37fb
WP
9072 fi
9073 ;;
9074
9075 interix[3-9]*)
042acc47
WP
9076 hardcode_direct=no
9077 hardcode_shlibpath_var=no
9078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9079 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9080 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9081 # Instead, shared libraries are loaded at an image base (0x10000000 by
9082 # default) and relocated if they conflict, which is a slow very memory
9083 # consuming and fragmenting process. To avoid this, we pick a random,
9084 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9085 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
042acc47
WP
9086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9087 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'
b57f37fb
WP
9088 ;;
9089
042acc47
WP
9090 gnu* | linux* | tpf* | k*bsd*-gnu)
9091 tmp_diet=no
9092 if test "$host_os" = linux-dietlibc; then
9093 case $cc_basename in
9094 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9095 esac
9096 fi
9097 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9098 && test "$tmp_diet" = no
9099 then
b57f37fb 9100 tmp_addflag=
042acc47 9101 tmp_sharedflag='-shared'
b57f37fb 9102 case $cc_basename,$host_cpu in
042acc47
WP
9103 pgcc*) # Portland Group C compiler
9104 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
b57f37fb
WP
9105 tmp_addflag=' $pic_flag'
9106 ;;
9107 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
042acc47 9108 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
b57f37fb 9109 tmp_addflag=' $pic_flag -Mnomain' ;;
042acc47 9110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
b57f37fb
WP
9111 tmp_addflag=' -i_dynamic' ;;
9112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9113 tmp_addflag=' -i_dynamic -nofor_main' ;;
9114 ifc* | ifort*) # Intel Fortran compiler
9115 tmp_addflag=' -nofor_main' ;;
042acc47
WP
9116 lf95*) # Lahey Fortran 8.1
9117 whole_archive_flag_spec=
9118 tmp_sharedflag='--shared' ;;
9119 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9120 tmp_sharedflag='-qmkshrobj'
9121 tmp_addflag= ;;
b57f37fb
WP
9122 esac
9123 case `$CC -V 2>&1 | sed 5q` in
9124 *Sun\ C*) # Sun C 5.9
042acc47
WP
9125 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9126 compiler_needs_object=yes
b57f37fb
WP
9127 tmp_sharedflag='-G' ;;
9128 *Sun\ F*) # Sun Fortran 8.3
9129 tmp_sharedflag='-G' ;;
b57f37fb 9130 esac
042acc47 9131 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b57f37fb 9132
042acc47
WP
9133 if test "x$supports_anon_versioning" = xyes; then
9134 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9136 echo "local: *; };" >> $output_objdir/$libname.ver~
9137 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9138 fi
9139
9140 case $cc_basename in
9141 xlf*)
9142 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9143 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9144 hardcode_libdir_flag_spec=
9145 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9146 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9147 if test "x$supports_anon_versioning" = xyes; then
9148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9150 echo "local: *; };" >> $output_objdir/$libname.ver~
9151 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9152 fi
9153 ;;
9154 esac
b57f37fb 9155 else
042acc47 9156 ld_shlibs=no
b57f37fb
WP
9157 fi
9158 ;;
9159
1800d973 9160 netbsd*)
042acc47
WP
9161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
b57f37fb
WP
9163 wlarc=
9164 else
042acc47
WP
9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb
WP
9167 fi
9168 ;;
9169
9170 solaris*)
042acc47
WP
9171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9172 ld_shlibs=no
9173 cat <<_LT_EOF 1>&2
b57f37fb
WP
9174
9175*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9176*** create shared libraries on Solaris systems. Therefore, libtool
9177*** is disabling shared libraries support. We urge you to upgrade GNU
9178*** binutils to release 2.9.1 or newer. Another option is to modify
9179*** your PATH or compiler configuration so that the native linker is
9180*** used, and then restart.
9181
042acc47
WP
9182_LT_EOF
9183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb 9186 else
042acc47 9187 ld_shlibs=no
b57f37fb
WP
9188 fi
9189 ;;
9190
9191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9192 case `$LD -v 2>&1` in
9193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
042acc47 9194 ld_shlibs=no
b57f37fb
WP
9195 cat <<_LT_EOF 1>&2
9196
9197*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9198*** reliably create shared libraries on SCO systems. Therefore, libtool
9199*** is disabling shared libraries support. We urge you to upgrade GNU
9200*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9201*** your PATH or compiler configuration so that the native linker is
9202*** used, and then restart.
9203
9204_LT_EOF
9205 ;;
9206 *)
042acc47
WP
9207 # For security reasons, it is highly recommended that you always
9208 # use absolute paths for naming shared libraries, and exclude the
9209 # DT_RUNPATH tag from executables and libraries. But doing so
9210 # requires that you compile everything twice, which is a pain.
9211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb 9215 else
042acc47 9216 ld_shlibs=no
b57f37fb
WP
9217 fi
9218 ;;
9219 esac
9220 ;;
9221
9222 sunos4*)
042acc47 9223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
b57f37fb 9224 wlarc=
042acc47
WP
9225 hardcode_direct=yes
9226 hardcode_shlibpath_var=no
b57f37fb
WP
9227 ;;
9228
9229 *)
042acc47
WP
9230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb 9233 else
042acc47 9234 ld_shlibs=no
b57f37fb
WP
9235 fi
9236 ;;
9237 esac
9238
042acc47 9239 if test "$ld_shlibs" = no; then
b57f37fb 9240 runpath_var=
042acc47
WP
9241 hardcode_libdir_flag_spec=
9242 export_dynamic_flag_spec=
9243 whole_archive_flag_spec=
b57f37fb
WP
9244 fi
9245 else
9246 # PORTME fill in a description of your system's linker (not GNU ld)
9247 case $host_os in
9248 aix3*)
042acc47
WP
9249 allow_undefined_flag=unsupported
9250 always_export_symbols=yes
9251 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'
b57f37fb
WP
9252 # Note: this linker hardcodes the directories in LIBPATH if there
9253 # are no directories specified by -L.
042acc47 9254 hardcode_minus_L=yes
b57f37fb
WP
9255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9256 # Neither direct hardcoding nor static linking is supported with a
9257 # broken collect2.
042acc47 9258 hardcode_direct=unsupported
b57f37fb
WP
9259 fi
9260 ;;
9261
56efe974 9262 aix[4-9]*)
b57f37fb
WP
9263 if test "$host_cpu" = ia64; then
9264 # On IA64, the linker does run time linking by default, so we don't
9265 # have to do anything special.
9266 aix_use_runtimelinking=no
9267 exp_sym_flag='-Bexport'
9268 no_entry_flag=""
9269 else
9270 # If we're using GNU nm, then we don't want the "-C" option.
9271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
042acc47
WP
9272 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9273 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
b57f37fb 9274 else
042acc47 9275 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'
b57f37fb
WP
9276 fi
9277 aix_use_runtimelinking=no
9278
9279 # Test if we are trying to use run time linking or normal
9280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9281 # need to do runtime linking.
56efe974 9282 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb 9283 for ld_flag in $LDFLAGS; do
042acc47
WP
9284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9285 aix_use_runtimelinking=yes
9286 break
9287 fi
b57f37fb
WP
9288 done
9289 ;;
9290 esac
9291
9292 exp_sym_flag='-bexport'
9293 no_entry_flag='-bnoentry'
9294 fi
9295
9296 # When large executables or shared objects are built, AIX ld can
9297 # have problems creating the table of contents. If linking a library
9298 # or program results in "error TOC overflow" add -mminimal-toc to
9299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9301
042acc47
WP
9302 archive_cmds=''
9303 hardcode_direct=yes
9304 hardcode_direct_absolute=yes
9305 hardcode_libdir_separator=':'
9306 link_all_deplibs=yes
9307 file_list_spec='${wl}-f,'
b57f37fb
WP
9308
9309 if test "$GCC" = yes; then
9310 case $host_os in aix4.[012]|aix4.[012].*)
9311 # We only want to do this on AIX 4.2 and lower, the check
9312 # below for broken collect2 doesn't work under 4.3+
9313 collect2name=`${CC} -print-prog-name=collect2`
042acc47
WP
9314 if test -f "$collect2name" &&
9315 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
b57f37fb 9316 then
042acc47
WP
9317 # We have reworked collect2
9318 :
b57f37fb 9319 else
042acc47
WP
9320 # We have old collect2
9321 hardcode_direct=unsupported
9322 # It fails to find uninstalled libraries when the uninstalled
9323 # path is not listed in the libpath. Setting hardcode_minus_L
9324 # to unsupported forces relinking
9325 hardcode_minus_L=yes
9326 hardcode_libdir_flag_spec='-L$libdir'
9327 hardcode_libdir_separator=
b57f37fb
WP
9328 fi
9329 ;;
9330 esac
9331 shared_flag='-shared'
9332 if test "$aix_use_runtimelinking" = yes; then
9333 shared_flag="$shared_flag "'${wl}-G'
9334 fi
9335 else
9336 # not using gcc
9337 if test "$host_cpu" = ia64; then
042acc47
WP
9338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9339 # chokes on -Wl,-G. The following line is correct:
b57f37fb
WP
9340 shared_flag='-G'
9341 else
9342 if test "$aix_use_runtimelinking" = yes; then
9343 shared_flag='${wl}-G'
9344 else
9345 shared_flag='${wl}-bM:SRE'
9346 fi
9347 fi
9348 fi
9349
042acc47 9350 export_dynamic_flag_spec='${wl}-bexpall'
b57f37fb
WP
9351 # It seems that -bexpall does not export symbols beginning with
9352 # underscore (_), so it is better to generate a list of symbols to export.
042acc47 9353 always_export_symbols=yes
b57f37fb
WP
9354 if test "$aix_use_runtimelinking" = yes; then
9355 # Warning - without using the other runtime loading flags (-brtl),
9356 # -berok will link without error, but may produce a broken library.
042acc47
WP
9357 allow_undefined_flag='-berok'
9358 # Determine the default libpath from the value encoded in an
9359 # empty executable.
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
9361/* end confdefs.h. */
9362
9363int
9364main ()
9365{
9366
9367 ;
9368 return 0;
9369}
9370_ACEOF
042acc47 9371if ac_fn_c_try_link "$LINENO"; then :
b57f37fb
WP
9372
9373lt_aix_libpath_sed='
9374 /Import File Strings/,/^$/ {
9375 /^0/ {
9376 s/^0 *\(.*\)$/\1/
9377 p
9378 }
9379 }'
9380aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9381# Check for a 64-bit object if we didn't find anything.
9382if test -z "$aix_libpath"; then
9383 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9384fi
b57f37fb 9385fi
042acc47
WP
9386rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
b57f37fb
WP
9388if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9389
042acc47
WP
9390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9391 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9392 else
b57f37fb 9393 if test "$host_cpu" = ia64; then
042acc47
WP
9394 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9395 allow_undefined_flag="-z nodefs"
9396 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"
b57f37fb 9397 else
042acc47
WP
9398 # Determine the default libpath from the value encoded in an
9399 # empty executable.
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
9401/* end confdefs.h. */
9402
9403int
9404main ()
9405{
9406
9407 ;
9408 return 0;
9409}
9410_ACEOF
042acc47 9411if ac_fn_c_try_link "$LINENO"; then :
b57f37fb
WP
9412
9413lt_aix_libpath_sed='
9414 /Import File Strings/,/^$/ {
9415 /^0/ {
9416 s/^0 *\(.*\)$/\1/
9417 p
9418 }
9419 }'
9420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421# Check for a 64-bit object if we didn't find anything.
9422if test -z "$aix_libpath"; then
9423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9424fi
b57f37fb 9425fi
042acc47
WP
9426rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
b57f37fb
WP
9428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9429
042acc47 9430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b57f37fb
WP
9431 # Warning - without using the other run time loading flags,
9432 # -berok will link without error, but may produce a broken library.
042acc47
WP
9433 no_undefined_flag=' ${wl}-bernotok'
9434 allow_undefined_flag=' ${wl}-berok'
b57f37fb 9435 # Exported symbols can be pulled into shared objects from archives
042acc47
WP
9436 whole_archive_flag_spec='$convenience'
9437 archive_cmds_need_lc=yes
b57f37fb 9438 # This is similar to how AIX traditionally builds its shared libraries.
042acc47 9439 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'
b57f37fb
WP
9440 fi
9441 fi
9442 ;;
9443
9444 amigaos*)
042acc47
WP
9445 case $host_cpu in
9446 powerpc)
9447 # see comment about AmigaOS4 .so support
9448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 archive_expsym_cmds=''
9450 ;;
9451 m68k)
9452 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)'
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_minus_L=yes
9455 ;;
9456 esac
b57f37fb
WP
9457 ;;
9458
9459 bsdi[45]*)
042acc47 9460 export_dynamic_flag_spec=-rdynamic
b57f37fb
WP
9461 ;;
9462
042acc47 9463 cygwin* | mingw* | pw32* | cegcc*)
b57f37fb
WP
9464 # When not using gcc, we currently assume that we are using
9465 # Microsoft Visual C++.
9466 # hardcode_libdir_flag_spec is actually meaningless, as there is
9467 # no search path for DLLs.
042acc47
WP
9468 hardcode_libdir_flag_spec=' '
9469 allow_undefined_flag=unsupported
b57f37fb
WP
9470 # Tell ltmain to make .lib files, not .a files.
9471 libext=lib
9472 # Tell ltmain to make .dll files, not .so files.
9473 shrext_cmds=".dll"
9474 # FIXME: Setting linknames here is a bad hack.
042acc47 9475 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
b57f37fb 9476 # The linker will automatically build a .lib file if we build a DLL.
042acc47 9477 old_archive_from_new_cmds='true'
b57f37fb 9478 # FIXME: Should let the user specify the lib program.
042acc47
WP
9479 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9480 fix_srcfile_path='`cygpath -w "$srcfile"`'
9481 enable_shared_with_static_runtimes=yes
b57f37fb
WP
9482 ;;
9483
042acc47
WP
9484 darwin* | rhapsody*)
9485
9486
9487 archive_cmds_need_lc=no
9488 hardcode_direct=no
9489 hardcode_automatic=yes
9490 hardcode_shlibpath_var=unsupported
9491 whole_archive_flag_spec=''
9492 link_all_deplibs=yes
9493 allow_undefined_flag="$_lt_dar_allow_undefined"
9494 case $cc_basename in
9495 ifort*) _lt_dar_can_shared=yes ;;
9496 *) _lt_dar_can_shared=$GCC ;;
9497 esac
9498 if test "$_lt_dar_can_shared" = "yes"; then
9499 output_verbose_link_cmd=echo
9500 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9501 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9502 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}"
9503 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}"
9504
9505 else
9506 ld_shlibs=no
9507 fi
9508
b57f37fb
WP
9509 ;;
9510
9511 dgux*)
042acc47
WP
9512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 hardcode_libdir_flag_spec='-L$libdir'
9514 hardcode_shlibpath_var=no
b57f37fb
WP
9515 ;;
9516
9517 freebsd1*)
042acc47 9518 ld_shlibs=no
b57f37fb
WP
9519 ;;
9520
9521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9522 # support. Future versions do this automatically, but an explicit c++rt0.o
9523 # does not break anything, and helps significantly (at the cost of a little
9524 # extra space).
9525 freebsd2.2*)
042acc47
WP
9526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9527 hardcode_libdir_flag_spec='-R$libdir'
9528 hardcode_direct=yes
9529 hardcode_shlibpath_var=no
b57f37fb
WP
9530 ;;
9531
9532 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9533 freebsd2*)
042acc47
WP
9534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_direct=yes
9536 hardcode_minus_L=yes
9537 hardcode_shlibpath_var=no
b57f37fb
WP
9538 ;;
9539
9540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9541 freebsd* | dragonfly*)
042acc47
WP
9542 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9543 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_direct=yes
9545 hardcode_shlibpath_var=no
b57f37fb
WP
9546 ;;
9547
9548 hpux9*)
9549 if test "$GCC" = yes; then
042acc47 9550 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
b57f37fb 9551 else
042acc47 9552 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'
b57f37fb 9553 fi
042acc47
WP
9554 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9555 hardcode_libdir_separator=:
9556 hardcode_direct=yes
b57f37fb
WP
9557
9558 # hardcode_minus_L: Not really in the search PATH,
9559 # but as the default location of the library.
042acc47
WP
9560 hardcode_minus_L=yes
9561 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9562 ;;
9563
9564 hpux10*)
9565 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
042acc47 9566 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 9567 else
042acc47 9568 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
b57f37fb
WP
9569 fi
9570 if test "$with_gnu_ld" = no; then
042acc47
WP
9571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9572 hardcode_libdir_flag_spec_ld='+b $libdir'
9573 hardcode_libdir_separator=:
9574 hardcode_direct=yes
9575 hardcode_direct_absolute=yes
9576 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9577 # hardcode_minus_L: Not really in the search PATH,
9578 # but as the default location of the library.
042acc47 9579 hardcode_minus_L=yes
b57f37fb
WP
9580 fi
9581 ;;
9582
9583 hpux11*)
9584 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9585 case $host_cpu in
9586 hppa*64*)
042acc47 9587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9588 ;;
9589 ia64*)
042acc47 9590 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9591 ;;
9592 *)
042acc47 9593 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9594 ;;
9595 esac
9596 else
9597 case $host_cpu in
9598 hppa*64*)
042acc47 9599 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9600 ;;
9601 ia64*)
042acc47 9602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9603 ;;
9604 *)
042acc47 9605 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9606 ;;
9607 esac
9608 fi
9609 if test "$with_gnu_ld" = no; then
042acc47
WP
9610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9611 hardcode_libdir_separator=:
b57f37fb
WP
9612
9613 case $host_cpu in
9614 hppa*64*|ia64*)
042acc47
WP
9615 hardcode_direct=no
9616 hardcode_shlibpath_var=no
b57f37fb
WP
9617 ;;
9618 *)
042acc47
WP
9619 hardcode_direct=yes
9620 hardcode_direct_absolute=yes
9621 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9622
9623 # hardcode_minus_L: Not really in the search PATH,
9624 # but as the default location of the library.
042acc47 9625 hardcode_minus_L=yes
b57f37fb
WP
9626 ;;
9627 esac
9628 fi
9629 ;;
9630
9631 irix5* | irix6* | nonstopux*)
9632 if test "$GCC" = yes; then
042acc47
WP
9633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9634 # Try to use the -exported_symbol ld option, if it does not
9635 # work, assume that -exports_file does not work either and
9636 # implicitly export all symbols.
9637 save_LDFLAGS="$LDFLAGS"
9638 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h. */
9641int foo(void) {}
9642_ACEOF
9643if ac_fn_c_try_link "$LINENO"; then :
9644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9645
9646fi
9647rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LDFLAGS="$save_LDFLAGS"
b57f37fb 9650 else
042acc47
WP
9651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
b57f37fb 9653 fi
042acc47
WP
9654 archive_cmds_need_lc='no'
9655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9656 hardcode_libdir_separator=:
9657 inherit_rpath=yes
9658 link_all_deplibs=yes
b57f37fb
WP
9659 ;;
9660
1800d973 9661 netbsd*)
042acc47
WP
9662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
b57f37fb 9664 else
042acc47 9665 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
b57f37fb 9666 fi
042acc47
WP
9667 hardcode_libdir_flag_spec='-R$libdir'
9668 hardcode_direct=yes
9669 hardcode_shlibpath_var=no
b57f37fb
WP
9670 ;;
9671
9672 newsos6)
042acc47
WP
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_direct=yes
9675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 hardcode_libdir_separator=:
9677 hardcode_shlibpath_var=no
9678 ;;
9679
9680 *nto* | *qnx*)
b57f37fb
WP
9681 ;;
9682
9683 openbsd*)
9684 if test -f /usr/libexec/ld.so; then
042acc47
WP
9685 hardcode_direct=yes
9686 hardcode_shlibpath_var=no
9687 hardcode_direct_absolute=yes
9688 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9692 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9693 else
9694 case $host_os in
9695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
042acc47
WP
9696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_libdir_flag_spec='-R$libdir'
b57f37fb
WP
9698 ;;
9699 *)
042acc47
WP
9700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b57f37fb
WP
9702 ;;
9703 esac
042acc47 9704 fi
b57f37fb 9705 else
042acc47 9706 ld_shlibs=no
b57f37fb
WP
9707 fi
9708 ;;
9709
9710 os2*)
042acc47
WP
9711 hardcode_libdir_flag_spec='-L$libdir'
9712 hardcode_minus_L=yes
9713 allow_undefined_flag=unsupported
9714 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'
9715 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
b57f37fb
WP
9716 ;;
9717
9718 osf3*)
9719 if test "$GCC" = yes; then
042acc47
WP
9720 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9721 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
b57f37fb 9722 else
042acc47
WP
9723 allow_undefined_flag=' -expect_unresolved \*'
9724 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
b57f37fb 9725 fi
042acc47
WP
9726 archive_cmds_need_lc='no'
9727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9728 hardcode_libdir_separator=:
b57f37fb
WP
9729 ;;
9730
9731 osf4* | osf5*) # as osf3* with the addition of -msym flag
9732 if test "$GCC" = yes; then
042acc47
WP
9733 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9734 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
b57f37fb 9736 else
042acc47
WP
9737 allow_undefined_flag=' -expect_unresolved \*'
9738 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9739 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~
9740 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
b57f37fb
WP
9741
9742 # Both c and cxx compiler support -rpath directly
042acc47 9743 hardcode_libdir_flag_spec='-rpath $libdir'
b57f37fb 9744 fi
042acc47
WP
9745 archive_cmds_need_lc='no'
9746 hardcode_libdir_separator=:
b57f37fb
WP
9747 ;;
9748
9749 solaris*)
042acc47 9750 no_undefined_flag=' -z defs'
b57f37fb
WP
9751 if test "$GCC" = yes; then
9752 wlarc='${wl}'
042acc47
WP
9753 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9755 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
b57f37fb 9756 else
042acc47
WP
9757 case `$CC -V 2>&1` in
9758 *"Compilers 5.0"*)
9759 wlarc=''
9760 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9763 ;;
9764 *)
9765 wlarc='${wl}'
9766 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9768 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9769 ;;
9770 esac
b57f37fb 9771 fi
042acc47
WP
9772 hardcode_libdir_flag_spec='-R$libdir'
9773 hardcode_shlibpath_var=no
b57f37fb
WP
9774 case $host_os in
9775 solaris2.[0-5] | solaris2.[0-5].*) ;;
9776 *)
9777 # The compiler driver will combine and reorder linker options,
9778 # but understands `-z linker_flag'. GCC discards it without `$wl',
9779 # but is careful enough not to reorder.
042acc47 9780 # Supported since Solaris 2.6 (maybe 2.5.1?)
b57f37fb 9781 if test "$GCC" = yes; then
042acc47 9782 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
b57f37fb 9783 else
042acc47 9784 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
b57f37fb
WP
9785 fi
9786 ;;
9787 esac
042acc47 9788 link_all_deplibs=yes
b57f37fb
WP
9789 ;;
9790
9791 sunos4*)
9792 if test "x$host_vendor" = xsequent; then
9793 # Use $CC to link under sequent, because it throws in some extra .o
9794 # files that make .init and .fini sections work.
042acc47 9795 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 9796 else
042acc47 9797 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
b57f37fb 9798 fi
042acc47
WP
9799 hardcode_libdir_flag_spec='-L$libdir'
9800 hardcode_direct=yes
9801 hardcode_minus_L=yes
9802 hardcode_shlibpath_var=no
b57f37fb
WP
9803 ;;
9804
9805 sysv4)
9806 case $host_vendor in
9807 sni)
042acc47
WP
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_direct=yes # is this really true???
b57f37fb
WP
9810 ;;
9811 siemens)
9812 ## LD is ld it makes a PLAMLIB
9813 ## CC just makes a GrossModule.
042acc47
WP
9814 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9815 reload_cmds='$CC -r -o $output$reload_objs'
9816 hardcode_direct=no
b57f37fb
WP
9817 ;;
9818 motorola)
042acc47
WP
9819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
b57f37fb
WP
9821 ;;
9822 esac
9823 runpath_var='LD_RUN_PATH'
042acc47 9824 hardcode_shlibpath_var=no
b57f37fb
WP
9825 ;;
9826
9827 sysv4.3*)
042acc47
WP
9828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_shlibpath_var=no
9830 export_dynamic_flag_spec='-Bexport'
b57f37fb
WP
9831 ;;
9832
9833 sysv4*MP*)
9834 if test -d /usr/nec; then
042acc47
WP
9835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_shlibpath_var=no
b57f37fb
WP
9837 runpath_var=LD_RUN_PATH
9838 hardcode_runpath_var=yes
042acc47 9839 ld_shlibs=yes
b57f37fb
WP
9840 fi
9841 ;;
9842
9843 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
042acc47
WP
9844 no_undefined_flag='${wl}-z,text'
9845 archive_cmds_need_lc=no
9846 hardcode_shlibpath_var=no
b57f37fb
WP
9847 runpath_var='LD_RUN_PATH'
9848
9849 if test "$GCC" = yes; then
042acc47
WP
9850 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 9852 else
042acc47
WP
9853 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9855 fi
9856 ;;
9857
9858 sysv5* | sco3.2v5* | sco5v6*)
9859 # Note: We can NOT use -z defs as we might desire, because we do not
9860 # link with -lc, and that would cause any symbols used from libc to
9861 # always be unresolved, which means just about no library would
9862 # ever link correctly. If we're not using GNU ld we use -z text
9863 # though, which does catch some bad symbols but isn't as heavy-handed
9864 # as -z defs.
042acc47
WP
9865 no_undefined_flag='${wl}-z,text'
9866 allow_undefined_flag='${wl}-z,nodefs'
9867 archive_cmds_need_lc=no
9868 hardcode_shlibpath_var=no
9869 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9870 hardcode_libdir_separator=':'
9871 link_all_deplibs=yes
9872 export_dynamic_flag_spec='${wl}-Bexport'
b57f37fb
WP
9873 runpath_var='LD_RUN_PATH'
9874
9875 if test "$GCC" = yes; then
042acc47
WP
9876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 9878 else
042acc47
WP
9879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9881 fi
9882 ;;
9883
9884 uts4*)
042acc47
WP
9885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 hardcode_libdir_flag_spec='-L$libdir'
9887 hardcode_shlibpath_var=no
b57f37fb
WP
9888 ;;
9889
9890 *)
042acc47 9891 ld_shlibs=no
b57f37fb
WP
9892 ;;
9893 esac
042acc47
WP
9894
9895 if test x$host_vendor = xsni; then
9896 case $host in
9897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9898 export_dynamic_flag_spec='${wl}-Blargedynsym'
9899 ;;
9900 esac
9901 fi
b57f37fb
WP
9902 fi
9903
042acc47
WP
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9905$as_echo "$ld_shlibs" >&6; }
9906test "$ld_shlibs" = no && can_build_shared=no
9907
9908with_gnu_ld=$with_gnu_ld
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
b57f37fb
WP
9923
9924#
9925# Do we need to explicitly link libc?
9926#
042acc47 9927case "x$archive_cmds_need_lc" in
b57f37fb
WP
9928x|xyes)
9929 # Assume -lc should be added
042acc47 9930 archive_cmds_need_lc=yes
b57f37fb
WP
9931
9932 if test "$enable_shared" = yes && test "$GCC" = yes; then
042acc47 9933 case $archive_cmds in
b57f37fb
WP
9934 *'~'*)
9935 # FIXME: we may have to deal with multi-command sequences.
9936 ;;
9937 '$CC '*)
9938 # Test whether the compiler implicitly links with -lc since on some
9939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9940 # to ld, don't add -lc before -lgcc.
042acc47 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
f030cae8 9942$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
042acc47 9943 $RM conftest*
b57f37fb
WP
9944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9945
042acc47 9946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b57f37fb
WP
9947 (eval $ac_compile) 2>&5
9948 ac_status=$?
042acc47
WP
9949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9950 test $ac_status = 0; } 2>conftest.err; then
b57f37fb
WP
9951 soname=conftest
9952 lib=conftest
9953 libobjs=conftest.$ac_objext
9954 deplibs=
042acc47
WP
9955 wl=$lt_prog_compiler_wl
9956 pic_flag=$lt_prog_compiler_pic
b57f37fb
WP
9957 compiler_flags=-v
9958 linker_flags=-v
9959 verstring=
9960 output_objdir=.
9961 libname=conftest
042acc47
WP
9962 lt_save_allow_undefined_flag=$allow_undefined_flag
9963 allow_undefined_flag=
9964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9965 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
b57f37fb 9966 ac_status=$?
042acc47
WP
9967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9968 test $ac_status = 0; }
b57f37fb 9969 then
042acc47 9970 archive_cmds_need_lc=no
b57f37fb 9971 else
042acc47 9972 archive_cmds_need_lc=yes
b57f37fb 9973 fi
042acc47 9974 allow_undefined_flag=$lt_save_allow_undefined_flag
b57f37fb
WP
9975 else
9976 cat conftest.err 1>&5
9977 fi
042acc47
WP
9978 $RM conftest*
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9980$as_echo "$archive_cmds_need_lc" >&6; }
b57f37fb
WP
9981 ;;
9982 esac
9983 fi
9984 ;;
9985esac
9986
b57f37fb 9987
b57f37fb 9988
b57f37fb 9989
b57f37fb 9990
b57f37fb 9991
b57f37fb 9992
b57f37fb 9993
b57f37fb 9994
b57f37fb 9995
b57f37fb 9996
b57f37fb 9997
b57f37fb 9998
b57f37fb 9999
b57f37fb 10000
b57f37fb 10001
b57f37fb 10002
b57f37fb 10003
b57f37fb 10004
b57f37fb 10005
b57f37fb 10006
b57f37fb 10007
b57f37fb 10008
b57f37fb 10009
b57f37fb 10010
b57f37fb 10011
b57f37fb 10012
b57f37fb 10013
b57f37fb 10014
b57f37fb 10015
b57f37fb 10016
b57f37fb 10017
b57f37fb 10018
b57f37fb 10019
b57f37fb 10020
b57f37fb 10021
b57f37fb 10022
b57f37fb 10023
b57f37fb 10024
b57f37fb 10025
b57f37fb 10026
b57f37fb 10027
56efe974 10028
56efe974 10029
56efe974 10030
b57f37fb 10031
b57f37fb 10032
b57f37fb 10033
b57f37fb
WP
10034
10035
b57f37fb 10036
b57f37fb 10037
b57f37fb 10038
b57f37fb 10039
b57f37fb 10040
b57f37fb 10041
b57f37fb 10042
b57f37fb 10043
b57f37fb 10044
b57f37fb 10045
b57f37fb 10046
b57f37fb 10047
b57f37fb 10048
b57f37fb 10049
b57f37fb 10050
b57f37fb 10051
b57f37fb 10052
b57f37fb 10053
b57f37fb 10054
b57f37fb 10055
b57f37fb 10056
b57f37fb 10057
b57f37fb 10058
b57f37fb 10059
b57f37fb 10060
b57f37fb 10061
b57f37fb 10062
b57f37fb 10063
b57f37fb 10064
b57f37fb 10065
b57f37fb 10066
b57f37fb 10067
b57f37fb 10068
b57f37fb 10069
b57f37fb 10070
b57f37fb 10071
b57f37fb 10072
b57f37fb 10073
b57f37fb 10074
b57f37fb 10075
b57f37fb 10076
b57f37fb 10077
b57f37fb 10078
b57f37fb 10079
b57f37fb 10080
b57f37fb 10081
b57f37fb 10082
b57f37fb 10083
b57f37fb 10084
b57f37fb 10085
b57f37fb 10086
b57f37fb 10087
b57f37fb 10088
b57f37fb 10089
b57f37fb 10090
b57f37fb 10091
b57f37fb 10092
b57f37fb 10093
b57f37fb 10094
b57f37fb 10095
b57f37fb 10096
b57f37fb 10097
b57f37fb 10098
56efe974 10099
b57f37fb 10100
b57f37fb 10101
b57f37fb 10102
b57f37fb 10103
b57f37fb 10104
b57f37fb 10105
b57f37fb 10106
b57f37fb 10107
b57f37fb 10108
b57f37fb 10109
b57f37fb 10110
b57f37fb 10111
b57f37fb 10112
b57f37fb 10113
b57f37fb 10114
b57f37fb 10115
b57f37fb 10116
b57f37fb 10117
b57f37fb 10118
b57f37fb 10119
b57f37fb 10120
b57f37fb 10121
b57f37fb 10122
b57f37fb 10123
b57f37fb 10124
b57f37fb 10125
b57f37fb 10126
b57f37fb 10127
b57f37fb 10128
b57f37fb 10129
b57f37fb 10130
b57f37fb 10131
b57f37fb 10132
b57f37fb
WP
10133
10134
042acc47
WP
10135
10136
10137
10138
10139
10140
10141
10142
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10144$as_echo_n "checking dynamic linker characteristics... " >&6; }
10145
10146if test "$GCC" = yes; then
10147 case $host_os in
10148 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10149 *) lt_awk_arg="/^libraries:/" ;;
10150 esac
10151 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10152 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10153 # if the path contains ";" then we assume it to be the separator
10154 # otherwise default to the standard path separator (i.e. ":") - it is
10155 # assumed that no part of a normal pathname contains ";" but that should
10156 # okay in the real world where ";" in dirpaths is itself problematic.
10157 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10158 else
10159 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10160 fi
10161 # Ok, now we have the path, separated by spaces, we can step through it
10162 # and add multilib dir if necessary.
10163 lt_tmp_lt_search_path_spec=
10164 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10165 for lt_sys_path in $lt_search_path_spec; do
10166 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10167 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10168 else
10169 test -d "$lt_sys_path" && \
10170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10171 fi
10172 done
10173 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10174BEGIN {RS=" "; FS="/|\n";} {
10175 lt_foo="";
10176 lt_count=0;
10177 for (lt_i = NF; lt_i > 0; lt_i--) {
10178 if ($lt_i != "" && $lt_i != ".") {
10179 if ($lt_i == "..") {
10180 lt_count++;
10181 } else {
10182 if (lt_count == 0) {
10183 lt_foo="/" $lt_i lt_foo;
10184 } else {
10185 lt_count--;
10186 }
10187 }
10188 }
10189 }
10190 if (lt_foo != "") { lt_freq[lt_foo]++; }
10191 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10192}'`
10193 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10194else
10195 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10196fi
10197library_names_spec=
10198libname_spec='lib$name'
10199soname_spec=
10200shrext_cmds=".so"
10201postinstall_cmds=
10202postuninstall_cmds=
10203finish_cmds=
10204finish_eval=
10205shlibpath_var=
10206shlibpath_overrides_runpath=unknown
10207version_type=none
10208dynamic_linker="$host_os ld.so"
10209sys_lib_dlsearch_path_spec="/lib /usr/lib"
10210need_lib_prefix=unknown
10211hardcode_into_libs=no
10212
10213# when you set need_version to no, make sure it does not cause -set_version
10214# flags to be left without arguments
10215need_version=unknown
10216
10217case $host_os in
10218aix3*)
10219 version_type=linux
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10221 shlibpath_var=LIBPATH
10222
10223 # AIX 3 has no versioning support, so we append a major version to the name.
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 ;;
10226
10227aix[4-9]*)
10228 version_type=linux
10229 need_lib_prefix=no
10230 need_version=no
10231 hardcode_into_libs=yes
10232 if test "$host_cpu" = ia64; then
10233 # AIX 5 supports IA64
10234 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 else
10237 # With GCC up to 2.95.x, collect2 would create an import file
10238 # for dependence libraries. The import file would start with
10239 # the line `#! .'. This would cause the generated library to
10240 # depend on `.', always an invalid library. This was fixed in
10241 # development snapshots of GCC prior to 3.0.
10242 case $host_os in
10243 aix4 | aix4.[01] | aix4.[01].*)
10244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10245 echo ' yes '
10246 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10247 :
10248 else
10249 can_build_shared=no
10250 fi
10251 ;;
10252 esac
10253 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10254 # soname into executable. Probably we can add versioning support to
10255 # collect2, so additional links can be useful in future.
10256 if test "$aix_use_runtimelinking" = yes; then
10257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10258 # instead of lib<name>.a to let people know that these are not
10259 # typical AIX shared libraries.
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 else
10262 # We preserve .a as extension for shared libraries through AIX4.2
10263 # and later when we are not doing run time linking.
10264 library_names_spec='${libname}${release}.a $libname.a'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 fi
10267 shlibpath_var=LIBPATH
10268 fi
10269 ;;
10270
10271amigaos*)
10272 case $host_cpu in
10273 powerpc)
10274 # Since July 2007 AmigaOS4 officially supports .so libraries.
10275 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 ;;
10278 m68k)
10279 library_names_spec='$libname.ixlibrary $libname.a'
10280 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10281 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10282 ;;
10283 esac
10284 ;;
10285
10286beos*)
10287 library_names_spec='${libname}${shared_ext}'
10288 dynamic_linker="$host_os ld.so"
10289 shlibpath_var=LIBRARY_PATH
10290 ;;
10291
10292bsdi[45]*)
10293 version_type=linux
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10300 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10301 # the default ld.so.conf also contains /usr/contrib/lib and
10302 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10303 # libtool to hard-code these into programs
10304 ;;
10305
10306cygwin* | mingw* | pw32* | cegcc*)
10307 version_type=windows
10308 shrext_cmds=".dll"
10309 need_version=no
10310 need_lib_prefix=no
10311
10312 case $GCC,$host_os in
10313 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10314 library_names_spec='$libname.dll.a'
10315 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10316 postinstall_cmds='base_file=`basename \${file}`~
10317 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10318 dldir=$destdir/`dirname \$dlpath`~
10319 test -d \$dldir || mkdir -p \$dldir~
10320 $install_prog $dir/$dlname \$dldir/$dlname~
10321 chmod a+x \$dldir/$dlname~
10322 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10323 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10324 fi'
10325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10326 dlpath=$dir/\$dldll~
10327 $RM \$dlpath'
10328 shlibpath_overrides_runpath=yes
10329
10330 case $host_os in
10331 cygwin*)
10332 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10334 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10335 ;;
10336 mingw* | cegcc*)
10337 # MinGW DLLs use traditional 'lib' prefix
10338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10339 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10340 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10341 # It is most probably a Windows format PATH printed by
10342 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10343 # path with ; separators, and with drive letters. We can handle the
10344 # drive letters (cygwin fileutils understands them), so leave them,
10345 # especially as we might pass files found there to a mingw objdump,
10346 # which wouldn't understand a cygwinified path. Ahh.
10347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10348 else
10349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10350 fi
10351 ;;
10352 pw32*)
10353 # pw32 DLLs use 'pw' prefix rather than 'lib'
10354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10355 ;;
10356 esac
10357 ;;
10358
10359 *)
10360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10361 ;;
10362 esac
10363 dynamic_linker='Win32 ld.exe'
10364 # FIXME: first we should search . and the directory the executable is in
10365 shlibpath_var=PATH
10366 ;;
10367
10368darwin* | rhapsody*)
10369 dynamic_linker="$host_os dyld"
10370 version_type=darwin
10371 need_lib_prefix=no
10372 need_version=no
10373 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10374 soname_spec='${libname}${release}${major}$shared_ext'
10375 shlibpath_overrides_runpath=yes
10376 shlibpath_var=DYLD_LIBRARY_PATH
10377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10378
10379 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10380 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10381 ;;
10382
10383dgux*)
10384 version_type=linux
10385 need_lib_prefix=no
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 ;;
10391
10392freebsd1*)
10393 dynamic_linker=no
10394 ;;
10395
10396freebsd* | dragonfly*)
10397 # DragonFly does not have aout. When/if they implement a new
10398 # versioning mechanism, adjust this.
10399 if test -x /usr/bin/objformat; then
10400 objformat=`/usr/bin/objformat`
10401 else
10402 case $host_os in
10403 freebsd[123]*) objformat=aout ;;
10404 *) objformat=elf ;;
10405 esac
b57f37fb 10406 fi
1800d973
WP
10407 # Handle Gentoo/FreeBSD as it was Linux
10408 case $host_vendor in
10409 gentoo)
10410 version_type=linux ;;
10411 *)
10412 version_type=freebsd-$objformat ;;
10413 esac
10414
042acc47
WP
10415 case $version_type in
10416 freebsd-elf*)
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10418 need_version=no
10419 need_lib_prefix=no
10420 ;;
10421 freebsd-*)
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10423 need_version=yes
10424 ;;
1800d973
WP
10425 linux)
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 need_lib_prefix=no
10429 need_version=no
10430 ;;
042acc47
WP
10431 esac
10432 shlibpath_var=LD_LIBRARY_PATH
10433 case $host_os in
10434 freebsd2*)
10435 shlibpath_overrides_runpath=yes
10436 ;;
10437 freebsd3.[01]* | freebsdelf3.[01]*)
10438 shlibpath_overrides_runpath=yes
10439 hardcode_into_libs=yes
10440 ;;
10441 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10442 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10443 shlibpath_overrides_runpath=no
10444 hardcode_into_libs=yes
10445 ;;
10446 *) # from 4.6 on, and DragonFly
10447 shlibpath_overrides_runpath=yes
10448 hardcode_into_libs=yes
10449 ;;
10450 esac
10451 ;;
b57f37fb 10452
042acc47
WP
10453gnu*)
10454 version_type=linux
10455 need_lib_prefix=no
10456 need_version=no
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 hardcode_into_libs=yes
10461 ;;
b57f37fb 10462
042acc47
WP
10463hpux9* | hpux10* | hpux11*)
10464 # Give a soname corresponding to the major version so that dld.sl refuses to
10465 # link against other versions.
10466 version_type=sunos
10467 need_lib_prefix=no
10468 need_version=no
10469 case $host_cpu in
10470 ia64*)
10471 shrext_cmds='.so'
10472 hardcode_into_libs=yes
10473 dynamic_linker="$host_os dld.so"
10474 shlibpath_var=LD_LIBRARY_PATH
10475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10477 soname_spec='${libname}${release}${shared_ext}$major'
10478 if test "X$HPUX_IA64_MODE" = X32; then
10479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10480 else
10481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10482 fi
10483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10484 ;;
10485 hppa*64*)
10486 shrext_cmds='.sl'
10487 hardcode_into_libs=yes
10488 dynamic_linker="$host_os dld.sl"
10489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10495 ;;
10496 *)
10497 shrext_cmds='.sl'
10498 dynamic_linker="$host_os dld.sl"
10499 shlibpath_var=SHLIB_PATH
10500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 soname_spec='${libname}${release}${shared_ext}$major'
10503 ;;
10504 esac
10505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10506 postinstall_cmds='chmod 555 $lib'
10507 ;;
b57f37fb 10508
042acc47
WP
10509interix[3-9]*)
10510 version_type=linux
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=no
10518 hardcode_into_libs=yes
10519 ;;
b57f37fb 10520
042acc47
WP
10521irix5* | irix6* | nonstopux*)
10522 case $host_os in
10523 nonstopux*) version_type=nonstopux ;;
10524 *)
10525 if test "$lt_cv_prog_gnu_ld" = yes; then
10526 version_type=linux
b57f37fb 10527 else
042acc47
WP
10528 version_type=irix
10529 fi ;;
10530 esac
10531 need_lib_prefix=no
10532 need_version=no
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10535 case $host_os in
10536 irix5* | nonstopux*)
10537 libsuff= shlibsuff=
10538 ;;
10539 *)
10540 case $LD in # libtool.m4 will add one of these switches to LD
10541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10542 libsuff= shlibsuff= libmagic=32-bit;;
10543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10544 libsuff=32 shlibsuff=N32 libmagic=N32;;
10545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10547 *) libsuff= shlibsuff= libmagic=never-match;;
10548 esac
10549 ;;
10550 esac
10551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10552 shlibpath_overrides_runpath=no
10553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10555 hardcode_into_libs=yes
10556 ;;
b57f37fb 10557
042acc47
WP
10558# No shared lib support for Linux oldld, aout, or coff.
10559linux*oldld* | linux*aout* | linux*coff*)
10560 dynamic_linker=no
10561 ;;
b57f37fb 10562
042acc47
WP
10563# This must be Linux ELF.
10564linux* | k*bsd*-gnu)
10565 version_type=linux
10566 need_lib_prefix=no
10567 need_version=no
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 shlibpath_overrides_runpath=no
10573 # Some binutils ld are patched to set DT_RUNPATH
10574 save_LDFLAGS=$LDFLAGS
10575 save_libdir=$libdir
10576 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10577 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579/* end confdefs.h. */
b57f37fb 10580
042acc47
WP
10581int
10582main ()
10583{
b57f37fb 10584
042acc47
WP
10585 ;
10586 return 0;
10587}
10588_ACEOF
10589if ac_fn_c_try_link "$LINENO"; then :
10590 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10591 shlibpath_overrides_runpath=yes
10592fi
10593fi
10594rm -f core conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10596 LDFLAGS=$save_LDFLAGS
10597 libdir=$save_libdir
b57f37fb 10598
042acc47
WP
10599 # This implies no fast_install, which is unacceptable.
10600 # Some rework will be needed to allow for fast_install
10601 # before this can be enabled.
10602 hardcode_into_libs=yes
b57f37fb 10603
042acc47
WP
10604 # Append ld.so.conf contents to the search path
10605 if test -f /etc/ld.so.conf; then
10606 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
b57f37fb 10608 fi
b57f37fb 10609
042acc47
WP
10610 # We used to test for /lib/ld.so.1 and disable shared libraries on
10611 # powerpc, because MkLinux only supported shared libraries with the
10612 # GNU dynamic linker. Since this was broken with cross compilers,
10613 # most powerpc-linux boxes support dynamic linking these days and
10614 # people can always --disable-shared, the test was removed, and we
10615 # assume the GNU/Linux dynamic linker is in use.
10616 dynamic_linker='GNU/Linux ld.so'
10617 ;;
10618
042acc47
WP
10619netbsd*)
10620 version_type=sunos
10621 need_lib_prefix=no
10622 need_version=no
10623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10626 dynamic_linker='NetBSD (a.out) ld.so'
10627 else
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 dynamic_linker='NetBSD ld.elf_so'
10631 fi
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10634 hardcode_into_libs=yes
10635 ;;
b57f37fb 10636
042acc47
WP
10637newsos6)
10638 version_type=linux
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=yes
10642 ;;
b57f37fb 10643
042acc47
WP
10644*nto* | *qnx*)
10645 version_type=qnx
10646 need_lib_prefix=no
10647 need_version=no
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 shlibpath_overrides_runpath=no
10652 hardcode_into_libs=yes
10653 dynamic_linker='ldqnx.so'
10654 ;;
b57f37fb 10655
042acc47
WP
10656openbsd*)
10657 version_type=sunos
10658 sys_lib_dlsearch_path_spec="/usr/lib"
10659 need_lib_prefix=no
10660 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10661 case $host_os in
10662 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10663 *) need_version=no ;;
10664 esac
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10669 case $host_os in
10670 openbsd2.[89] | openbsd2.[89].*)
10671 shlibpath_overrides_runpath=no
10672 ;;
10673 *)
10674 shlibpath_overrides_runpath=yes
10675 ;;
10676 esac
10677 else
10678 shlibpath_overrides_runpath=yes
10679 fi
10680 ;;
b57f37fb 10681
042acc47
WP
10682os2*)
10683 libname_spec='$name'
10684 shrext_cmds=".dll"
10685 need_lib_prefix=no
10686 library_names_spec='$libname${shared_ext} $libname.a'
10687 dynamic_linker='OS/2 ld.exe'
10688 shlibpath_var=LIBPATH
10689 ;;
b57f37fb 10690
042acc47
WP
10691osf3* | osf4* | osf5*)
10692 version_type=osf
10693 need_lib_prefix=no
10694 need_version=no
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10699 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10700 ;;
b57f37fb 10701
042acc47
WP
10702rdos*)
10703 dynamic_linker=no
10704 ;;
b57f37fb 10705
042acc47
WP
10706solaris*)
10707 version_type=linux
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath=yes
10714 hardcode_into_libs=yes
10715 # ldd complains unless libraries are executable
10716 postinstall_cmds='chmod +x $lib'
10717 ;;
b57f37fb 10718
042acc47
WP
10719sunos4*)
10720 version_type=sunos
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10722 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10723 shlibpath_var=LD_LIBRARY_PATH
10724 shlibpath_overrides_runpath=yes
10725 if test "$with_gnu_ld" = yes; then
10726 need_lib_prefix=no
10727 fi
10728 need_version=yes
10729 ;;
b57f37fb 10730
042acc47
WP
10731sysv4 | sysv4.3*)
10732 version_type=linux
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 case $host_vendor in
10737 sni)
10738 shlibpath_overrides_runpath=no
10739 need_lib_prefix=no
10740 runpath_var=LD_RUN_PATH
10741 ;;
10742 siemens)
10743 need_lib_prefix=no
10744 ;;
10745 motorola)
10746 need_lib_prefix=no
10747 need_version=no
10748 shlibpath_overrides_runpath=no
10749 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10750 ;;
10751 esac
10752 ;;
b57f37fb 10753
042acc47
WP
10754sysv4*MP*)
10755 if test -d /usr/nec ;then
10756 version_type=linux
10757 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10758 soname_spec='$libname${shared_ext}.$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 fi
10761 ;;
b57f37fb 10762
042acc47
WP
10763sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10764 version_type=freebsd-elf
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 shlibpath_overrides_runpath=yes
10771 hardcode_into_libs=yes
10772 if test "$with_gnu_ld" = yes; then
10773 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10774 else
10775 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10776 case $host_os in
10777 sco3.2v5*)
10778 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10779 ;;
10780 esac
10781 fi
10782 sys_lib_dlsearch_path_spec='/usr/lib'
10783 ;;
b57f37fb 10784
042acc47
WP
10785tpf*)
10786 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10787 version_type=linux
10788 need_lib_prefix=no
10789 need_version=no
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 shlibpath_var=LD_LIBRARY_PATH
10792 shlibpath_overrides_runpath=no
10793 hardcode_into_libs=yes
10794 ;;
b57f37fb 10795
042acc47
WP
10796uts4*)
10797 version_type=linux
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 ;;
b57f37fb 10802
042acc47
WP
10803*)
10804 dynamic_linker=no
10805 ;;
10806esac
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10808$as_echo "$dynamic_linker" >&6; }
10809test "$dynamic_linker" = no && can_build_shared=no
b57f37fb 10810
042acc47
WP
10811variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10812if test "$GCC" = yes; then
10813 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10814fi
b57f37fb 10815
042acc47
WP
10816if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10817 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10818fi
10819if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10820 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10821fi
b57f37fb 10822
b57f37fb 10823
b57f37fb 10824
b57f37fb 10825
b57f37fb 10826
b57f37fb 10827
b57f37fb 10828
b57f37fb 10829
b57f37fb 10830
b57f37fb 10831
b57f37fb 10832
b57f37fb 10833
b57f37fb 10834
b57f37fb 10835
b57f37fb 10836
b57f37fb 10837
b57f37fb 10838
b57f37fb 10839
b57f37fb 10840
b57f37fb 10841
b57f37fb 10842
b57f37fb 10843
b57f37fb 10844
b57f37fb 10845
b57f37fb 10846
b57f37fb 10847
b57f37fb 10848
b57f37fb 10849
b57f37fb 10850
b57f37fb 10851
b57f37fb 10852
b57f37fb 10853
b57f37fb 10854
b57f37fb 10855
b57f37fb 10856
b57f37fb 10857
b57f37fb 10858
b57f37fb 10859
b57f37fb 10860
b57f37fb 10861
b57f37fb 10862
b57f37fb 10863
b57f37fb 10864
b57f37fb 10865
b57f37fb 10866
56efe974 10867
b57f37fb 10868
b57f37fb 10869
b57f37fb 10870
b57f37fb 10871
b57f37fb 10872
b57f37fb 10873
b57f37fb 10874
b57f37fb 10875
b57f37fb 10876
b57f37fb 10877
b57f37fb 10878
b57f37fb 10879
b57f37fb 10880
b57f37fb 10881
b57f37fb 10882
b57f37fb 10883
b57f37fb 10884
b57f37fb 10885
b57f37fb 10886
b57f37fb 10887
b57f37fb 10888
b57f37fb 10889
b57f37fb 10890
b57f37fb 10891
b57f37fb 10892
b57f37fb 10893
b57f37fb 10894
b57f37fb 10895
b57f37fb 10896
b57f37fb 10897
b57f37fb 10898
b57f37fb 10899
b57f37fb 10900
b57f37fb
WP
10901
10902
b57f37fb
WP
10903
10904
b57f37fb 10905
b57f37fb 10906
b57f37fb 10907
b57f37fb 10908
042acc47
WP
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10910$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10911hardcode_action=
10912if test -n "$hardcode_libdir_flag_spec" ||
10913 test -n "$runpath_var" ||
10914 test "X$hardcode_automatic" = "Xyes" ; then
b57f37fb 10915
042acc47
WP
10916 # We can hardcode non-existent directories.
10917 if test "$hardcode_direct" != no &&
10918 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10919 # have to relink, otherwise we might link with an installed library
10920 # when we should be linking with a yet-to-be-installed one
10921 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10922 test "$hardcode_minus_L" != no; then
10923 # Linking always hardcodes the temporary library directory.
10924 hardcode_action=relink
b57f37fb 10925 else
042acc47
WP
10926 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10927 hardcode_action=immediate
b57f37fb 10928 fi
042acc47
WP
10929else
10930 # We cannot hardcode anything, or else we can only hardcode existing
10931 # directories.
10932 hardcode_action=unsupported
10933fi
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10935$as_echo "$hardcode_action" >&6; }
10936
10937if test "$hardcode_action" = relink ||
10938 test "$inherit_rpath" = yes; then
10939 # Fast installation is not supported
10940 enable_fast_install=no
10941elif test "$shlibpath_overrides_runpath" = yes ||
10942 test "$enable_shared" = no; then
10943 # Fast installation is not necessary
10944 enable_fast_install=needless
b57f37fb
WP
10945fi
10946
10947
10948
b57f37fb 10949
b57f37fb 10950
b57f37fb 10951
042acc47
WP
10952 if test "x$enable_dlopen" != xyes; then
10953 enable_dlopen=unknown
10954 enable_dlopen_self=unknown
10955 enable_dlopen_self_static=unknown
10956else
10957 lt_cv_dlopen=no
10958 lt_cv_dlopen_libs=
b57f37fb 10959
042acc47
WP
10960 case $host_os in
10961 beos*)
10962 lt_cv_dlopen="load_add_on"
10963 lt_cv_dlopen_libs=
10964 lt_cv_dlopen_self=yes
10965 ;;
b57f37fb 10966
042acc47
WP
10967 mingw* | pw32* | cegcc*)
10968 lt_cv_dlopen="LoadLibrary"
10969 lt_cv_dlopen_libs=
10970 ;;
b57f37fb 10971
042acc47
WP
10972 cygwin*)
10973 lt_cv_dlopen="dlopen"
10974 lt_cv_dlopen_libs=
10975 ;;
b57f37fb 10976
042acc47
WP
10977 darwin*)
10978 # if libdl is installed we need to link against it
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10980$as_echo_n "checking for dlopen in -ldl... " >&6; }
12e39525 10981if ${ac_cv_lib_dl_dlopen+:} false; then :
042acc47
WP
10982 $as_echo_n "(cached) " >&6
10983else
10984 ac_check_lib_save_LIBS=$LIBS
10985LIBS="-ldl $LIBS"
10986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987/* end confdefs.h. */
b57f37fb 10988
042acc47
WP
10989/* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
10992#ifdef __cplusplus
10993extern "C"
10994#endif
10995char dlopen ();
10996int
10997main ()
10998{
10999return dlopen ();
11000 ;
11001 return 0;
11002}
11003_ACEOF
11004if ac_fn_c_try_link "$LINENO"; then :
11005 ac_cv_lib_dl_dlopen=yes
11006else
11007 ac_cv_lib_dl_dlopen=no
11008fi
11009rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011LIBS=$ac_check_lib_save_LIBS
11012fi
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11014$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12e39525 11015if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
042acc47
WP
11016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11017else
b57f37fb 11018
042acc47
WP
11019 lt_cv_dlopen="dyld"
11020 lt_cv_dlopen_libs=
11021 lt_cv_dlopen_self=yes
b57f37fb 11022
042acc47 11023fi
b57f37fb 11024
042acc47 11025 ;;
b57f37fb 11026
042acc47
WP
11027 *)
11028 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12e39525 11029if test "x$ac_cv_func_shl_load" = xyes; then :
042acc47
WP
11030 lt_cv_dlopen="shl_load"
11031else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11033$as_echo_n "checking for shl_load in -ldld... " >&6; }
12e39525 11034if ${ac_cv_lib_dld_shl_load+:} false; then :
042acc47
WP
11035 $as_echo_n "(cached) " >&6
11036else
11037 ac_check_lib_save_LIBS=$LIBS
11038LIBS="-ldld $LIBS"
11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040/* end confdefs.h. */
b57f37fb 11041
042acc47
WP
11042/* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11045#ifdef __cplusplus
11046extern "C"
11047#endif
11048char shl_load ();
11049int
11050main ()
11051{
11052return shl_load ();
11053 ;
11054 return 0;
11055}
11056_ACEOF
11057if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_lib_dld_shl_load=yes
11059else
11060 ac_cv_lib_dld_shl_load=no
11061fi
11062rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064LIBS=$ac_check_lib_save_LIBS
11065fi
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11067$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12e39525 11068if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
042acc47
WP
11069 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11070else
11071 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12e39525 11072if test "x$ac_cv_func_dlopen" = xyes; then :
042acc47
WP
11073 lt_cv_dlopen="dlopen"
11074else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11076$as_echo_n "checking for dlopen in -ldl... " >&6; }
12e39525 11077if ${ac_cv_lib_dl_dlopen+:} false; then :
042acc47
WP
11078 $as_echo_n "(cached) " >&6
11079else
11080 ac_check_lib_save_LIBS=$LIBS
11081LIBS="-ldl $LIBS"
11082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083/* end confdefs.h. */
b57f37fb 11084
042acc47
WP
11085/* Override any GCC internal prototype to avoid an error.
11086 Use char because int might match the return type of a GCC
11087 builtin and then its argument prototype would still apply. */
11088#ifdef __cplusplus
11089extern "C"
11090#endif
11091char dlopen ();
11092int
11093main ()
11094{
11095return dlopen ();
11096 ;
11097 return 0;
11098}
11099_ACEOF
11100if ac_fn_c_try_link "$LINENO"; then :
11101 ac_cv_lib_dl_dlopen=yes
11102else
11103 ac_cv_lib_dl_dlopen=no
11104fi
11105rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107LIBS=$ac_check_lib_save_LIBS
11108fi
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11110$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12e39525 11111if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
042acc47
WP
11112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11113else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11115$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12e39525 11116if ${ac_cv_lib_svld_dlopen+:} false; then :
042acc47
WP
11117 $as_echo_n "(cached) " >&6
11118else
11119 ac_check_lib_save_LIBS=$LIBS
11120LIBS="-lsvld $LIBS"
11121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122/* end confdefs.h. */
b57f37fb 11123
042acc47
WP
11124/* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11127#ifdef __cplusplus
11128extern "C"
11129#endif
11130char dlopen ();
11131int
11132main ()
11133{
11134return dlopen ();
11135 ;
11136 return 0;
11137}
11138_ACEOF
11139if ac_fn_c_try_link "$LINENO"; then :
11140 ac_cv_lib_svld_dlopen=yes
11141else
11142 ac_cv_lib_svld_dlopen=no
11143fi
11144rm -f core conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
11146LIBS=$ac_check_lib_save_LIBS
11147fi
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11149$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12e39525 11150if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
042acc47
WP
11151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11152else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11154$as_echo_n "checking for dld_link in -ldld... " >&6; }
12e39525 11155if ${ac_cv_lib_dld_dld_link+:} false; then :
042acc47
WP
11156 $as_echo_n "(cached) " >&6
11157else
11158 ac_check_lib_save_LIBS=$LIBS
11159LIBS="-ldld $LIBS"
11160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161/* end confdefs.h. */
b57f37fb 11162
042acc47
WP
11163/* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
11165 builtin and then its argument prototype would still apply. */
11166#ifdef __cplusplus
11167extern "C"
11168#endif
11169char dld_link ();
11170int
11171main ()
11172{
11173return dld_link ();
11174 ;
11175 return 0;
11176}
11177_ACEOF
11178if ac_fn_c_try_link "$LINENO"; then :
11179 ac_cv_lib_dld_dld_link=yes
11180else
11181 ac_cv_lib_dld_dld_link=no
11182fi
11183rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185LIBS=$ac_check_lib_save_LIBS
11186fi
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11188$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12e39525 11189if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
042acc47
WP
11190 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11191fi
b57f37fb
WP
11192
11193
042acc47 11194fi
b57f37fb
WP
11195
11196
042acc47 11197fi
b57f37fb
WP
11198
11199
042acc47 11200fi
b57f37fb 11201
b57f37fb 11202
042acc47 11203fi
b57f37fb 11204
b57f37fb 11205
042acc47 11206fi
b57f37fb 11207
042acc47
WP
11208 ;;
11209 esac
b57f37fb 11210
042acc47
WP
11211 if test "x$lt_cv_dlopen" != xno; then
11212 enable_dlopen=yes
11213 else
11214 enable_dlopen=no
11215 fi
b57f37fb 11216
042acc47
WP
11217 case $lt_cv_dlopen in
11218 dlopen)
11219 save_CPPFLAGS="$CPPFLAGS"
11220 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
b57f37fb 11221
042acc47
WP
11222 save_LDFLAGS="$LDFLAGS"
11223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b57f37fb 11224
042acc47
WP
11225 save_LIBS="$LIBS"
11226 LIBS="$lt_cv_dlopen_libs $LIBS"
b57f37fb 11227
042acc47
WP
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11229$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12e39525 11230if ${lt_cv_dlopen_self+:} false; then :
f030cae8 11231 $as_echo_n "(cached) " >&6
b57f37fb 11232else
042acc47
WP
11233 if test "$cross_compiling" = yes; then :
11234 lt_cv_dlopen_self=cross
b57f37fb 11235else
042acc47
WP
11236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11237 lt_status=$lt_dlunknown
11238 cat > conftest.$ac_ext <<_LT_EOF
12e39525 11239#line 11239 "configure"
042acc47 11240#include "confdefs.h"
b57f37fb 11241
042acc47
WP
11242#if HAVE_DLFCN_H
11243#include <dlfcn.h>
11244#endif
b57f37fb 11245
042acc47 11246#include <stdio.h>
b57f37fb 11247
042acc47
WP
11248#ifdef RTLD_GLOBAL
11249# define LT_DLGLOBAL RTLD_GLOBAL
11250#else
11251# ifdef DL_GLOBAL
11252# define LT_DLGLOBAL DL_GLOBAL
11253# else
11254# define LT_DLGLOBAL 0
11255# endif
11256#endif
b57f37fb 11257
042acc47
WP
11258/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11259 find out it does not work in some platform. */
11260#ifndef LT_DLLAZY_OR_NOW
11261# ifdef RTLD_LAZY
11262# define LT_DLLAZY_OR_NOW RTLD_LAZY
11263# else
11264# ifdef DL_LAZY
11265# define LT_DLLAZY_OR_NOW DL_LAZY
11266# else
11267# ifdef RTLD_NOW
11268# define LT_DLLAZY_OR_NOW RTLD_NOW
11269# else
11270# ifdef DL_NOW
11271# define LT_DLLAZY_OR_NOW DL_NOW
11272# else
11273# define LT_DLLAZY_OR_NOW 0
11274# endif
11275# endif
11276# endif
11277# endif
11278#endif
b57f37fb 11279
042acc47
WP
11280void fnord() { int i=42;}
11281int main ()
11282{
11283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11284 int status = $lt_dlunknown;
b57f37fb 11285
042acc47
WP
11286 if (self)
11287 {
11288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11289 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11290 /* dlclose (self); */
11291 }
11292 else
11293 puts (dlerror ());
b57f37fb 11294
042acc47
WP
11295 return status;
11296}
11297_LT_EOF
11298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11299 (eval $ac_link) 2>&5
11300 ac_status=$?
11301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11302 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11303 (./conftest; exit; ) >&5 2>/dev/null
11304 lt_status=$?
11305 case x$lt_status in
11306 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11307 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11308 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11309 esac
11310 else :
11311 # compilation failed
11312 lt_cv_dlopen_self=no
11313 fi
b57f37fb 11314fi
042acc47 11315rm -fr conftest*
b57f37fb 11316
b57f37fb 11317
042acc47
WP
11318fi
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11320$as_echo "$lt_cv_dlopen_self" >&6; }
b57f37fb 11321
042acc47
WP
11322 if test "x$lt_cv_dlopen_self" = xyes; then
11323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11325$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12e39525 11326if ${lt_cv_dlopen_self_static+:} false; then :
f030cae8 11327 $as_echo_n "(cached) " >&6
b57f37fb 11328else
042acc47
WP
11329 if test "$cross_compiling" = yes; then :
11330 lt_cv_dlopen_self_static=cross
b57f37fb 11331else
042acc47
WP
11332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11333 lt_status=$lt_dlunknown
11334 cat > conftest.$ac_ext <<_LT_EOF
12e39525 11335#line 11335 "configure"
042acc47 11336#include "confdefs.h"
b57f37fb 11337
042acc47
WP
11338#if HAVE_DLFCN_H
11339#include <dlfcn.h>
11340#endif
b57f37fb 11341
042acc47 11342#include <stdio.h>
b57f37fb 11343
042acc47
WP
11344#ifdef RTLD_GLOBAL
11345# define LT_DLGLOBAL RTLD_GLOBAL
11346#else
11347# ifdef DL_GLOBAL
11348# define LT_DLGLOBAL DL_GLOBAL
11349# else
11350# define LT_DLGLOBAL 0
11351# endif
11352#endif
b57f37fb 11353
042acc47
WP
11354/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11355 find out it does not work in some platform. */
11356#ifndef LT_DLLAZY_OR_NOW
11357# ifdef RTLD_LAZY
11358# define LT_DLLAZY_OR_NOW RTLD_LAZY
11359# else
11360# ifdef DL_LAZY
11361# define LT_DLLAZY_OR_NOW DL_LAZY
11362# else
11363# ifdef RTLD_NOW
11364# define LT_DLLAZY_OR_NOW RTLD_NOW
11365# else
11366# ifdef DL_NOW
11367# define LT_DLLAZY_OR_NOW DL_NOW
11368# else
11369# define LT_DLLAZY_OR_NOW 0
11370# endif
11371# endif
11372# endif
11373# endif
11374#endif
b57f37fb 11375
042acc47
WP
11376void fnord() { int i=42;}
11377int main ()
11378{
11379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11380 int status = $lt_dlunknown;
b57f37fb 11381
042acc47
WP
11382 if (self)
11383 {
11384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11385 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11386 /* dlclose (self); */
11387 }
11388 else
11389 puts (dlerror ());
b57f37fb 11390
042acc47
WP
11391 return status;
11392}
11393_LT_EOF
11394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11395 (eval $ac_link) 2>&5
11396 ac_status=$?
11397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11398 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11399 (./conftest; exit; ) >&5 2>/dev/null
11400 lt_status=$?
11401 case x$lt_status in
11402 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11403 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11404 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11405 esac
11406 else :
11407 # compilation failed
11408 lt_cv_dlopen_self_static=no
11409 fi
b57f37fb 11410fi
042acc47 11411rm -fr conftest*
94b4fbf9 11412
b57f37fb 11413
b57f37fb 11414fi
042acc47
WP
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11416$as_echo "$lt_cv_dlopen_self_static" >&6; }
11417 fi
b57f37fb 11418
042acc47
WP
11419 CPPFLAGS="$save_CPPFLAGS"
11420 LDFLAGS="$save_LDFLAGS"
11421 LIBS="$save_LIBS"
11422 ;;
11423 esac
b57f37fb 11424
042acc47
WP
11425 case $lt_cv_dlopen_self in
11426 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11427 *) enable_dlopen_self=unknown ;;
11428 esac
b57f37fb 11429
042acc47
WP
11430 case $lt_cv_dlopen_self_static in
11431 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11432 *) enable_dlopen_self_static=unknown ;;
11433 esac
b57f37fb
WP
11434fi
11435
b57f37fb 11436
b57f37fb 11437
f030cae8
VY
11438
11439
f030cae8 11440
b57f37fb 11441
b57f37fb 11442
b57f37fb 11443
f030cae8 11444
f030cae8 11445
b57f37fb 11446
f030cae8 11447
b57f37fb 11448
b57f37fb 11449
b57f37fb 11450
b57f37fb 11451
042acc47
WP
11452striplib=
11453old_striplib=
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11455$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11456if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11457 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11458 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11460$as_echo "yes" >&6; }
f030cae8 11461else
042acc47
WP
11462# FIXME - insert some real tests, host_os isn't really good enough
11463 case $host_os in
11464 darwin*)
11465 if test -n "$STRIP" ; then
11466 striplib="$STRIP -x"
11467 old_striplib="$STRIP -S"
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469$as_echo "yes" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472$as_echo "no" >&6; }
11473 fi
11474 ;;
11475 *)
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477$as_echo "no" >&6; }
11478 ;;
11479 esac
f030cae8
VY
11480fi
11481
b57f37fb 11482
f030cae8 11483
b57f37fb 11484
b57f37fb 11485
b57f37fb 11486
b57f37fb 11487
b57f37fb 11488
b57f37fb 11489
b57f37fb 11490
b57f37fb
WP
11491
11492
042acc47
WP
11493 # Report which library types will actually be built
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11495$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11497$as_echo "$can_build_shared" >&6; }
b57f37fb 11498
042acc47
WP
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11500$as_echo_n "checking whether to build shared libraries... " >&6; }
11501 test "$can_build_shared" = "no" && enable_shared=no
b57f37fb 11502
042acc47
WP
11503 # On AIX, shared libraries and static libraries use the same namespace, and
11504 # are all built from PIC.
11505 case $host_os in
11506 aix3*)
11507 test "$enable_shared" = yes && enable_static=no
11508 if test -n "$RANLIB"; then
11509 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11510 postinstall_cmds='$RANLIB $lib'
11511 fi
11512 ;;
b57f37fb 11513
042acc47
WP
11514 aix[4-9]*)
11515 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11516 test "$enable_shared" = yes && enable_static=no
11517 fi
11518 ;;
11519 esac
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11521$as_echo "$enable_shared" >&6; }
11522
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11524$as_echo_n "checking whether to build static libraries... " >&6; }
11525 # Make sure either enable_shared or enable_static is yes.
11526 test "$enable_shared" = yes || enable_static=yes
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11528$as_echo "$enable_static" >&6; }
b57f37fb 11529
b57f37fb 11530
b57f37fb 11531
b57f37fb 11532
b57f37fb 11533fi
042acc47
WP
11534ac_ext=c
11535ac_cpp='$CPP $CPPFLAGS'
11536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538ac_compiler_gnu=$ac_cv_c_compiler_gnu
b57f37fb 11539
042acc47 11540CC="$lt_save_CC"
b57f37fb 11541
b57f37fb 11542
b57f37fb 11543
b57f37fb 11544
b57f37fb 11545
b57f37fb 11546
b57f37fb 11547
b57f37fb 11548
b57f37fb 11549
b57f37fb
WP
11550
11551
b57f37fb 11552
b57f37fb 11553
042acc47 11554 ac_config_commands="$ac_config_commands libtool"
b57f37fb
WP
11555
11556
11557
11558
042acc47 11559# Only expand once:
b57f37fb
WP
11560
11561
11562
042acc47 11563LIBTOOL="$LIBTOOL --silent"
b57f37fb 11564
042acc47
WP
11565case "$host_os" in
11566*cygwin*)
b57f37fb 11567
042acc47
WP
11568cat >>confdefs.h <<_ACEOF
11569#define CYGWIN 1
11570_ACEOF
b57f37fb
WP
11571
11572
042acc47
WP
11573cat >>confdefs.h <<_ACEOF
11574#define WINDOWS 1
11575_ACEOF
b57f37fb 11576
042acc47
WP
11577 ;;
11578*mingw*)
b57f37fb 11579
042acc47
WP
11580cat >>confdefs.h <<_ACEOF
11581#define MINGW 1
11582_ACEOF
b57f37fb
WP
11583
11584
042acc47
WP
11585cat >>confdefs.h <<_ACEOF
11586#define WINDOWS 1
11587_ACEOF
b57f37fb 11588
042acc47 11589 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12e39525 11590if test "x$ac_cv_header_windows_h" = xyes; then :
b57f37fb 11591
042acc47 11592else
12e39525 11593 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
042acc47 11594fi
b57f37fb
WP
11595
11596
042acc47 11597 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12e39525 11598if test "x$ac_cv_header_winsock2_h" = xyes; then :
b57f37fb 11599
042acc47 11600else
12e39525 11601 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
042acc47 11602fi
b57f37fb 11603
94b4fbf9 11604
042acc47
WP
11605
11606cat >>confdefs.h <<_ACEOF
11607#define HAVE_WINSOCK2_H 1
b57f37fb 11608_ACEOF
042acc47
WP
11609
11610
11611cat >>confdefs.h <<_ACEOF
11612#define HAVE_WINSOCK_H 1
b57f37fb 11613_ACEOF
042acc47
WP
11614
11615 LIBS="$LIBS -lws2_32 -liphlpapi"
11616 is_mingw="yes"
11617 ;;
11618*interix*)
11619 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
11620 ;;
11621*solaris*)
11622 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
11623 ;;
11624*)
11625 ;;
b57f37fb 11626esac
b57f37fb 11627
042acc47
WP
11628 if test "$is_mingw" = "yes"; then
11629 MINGW_TRUE=
11630 MINGW_FALSE='#'
11631else
11632 MINGW_TRUE='#'
11633 MINGW_FALSE=
b57f37fb
WP
11634fi
11635
b57f37fb 11636
b57f37fb 11637
042acc47
WP
11638# backwards support for IRC_CFLAGS
11639CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
11640
11641if test "$libexecdir" = '${exec_prefix}/libexec' &&
11642 test "$localstatedir" = '${prefix}/var'; then
11643 libexecdir='${bindir}'
11644 localstatedir='${prefix}'
b57f37fb
WP
11645fi
11646
042acc47 11647ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12e39525 11648if test "x$ac_cv_type_pid_t" = xyes; then :
b57f37fb 11649
b57f37fb 11650else
042acc47
WP
11651
11652cat >>confdefs.h <<_ACEOF
11653#define pid_t int
11654_ACEOF
b57f37fb
WP
11655
11656fi
042acc47
WP
11657
11658ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12e39525 11659if test "x$ac_cv_type_size_t" = xyes; then :
042acc47
WP
11660
11661else
11662
11663cat >>confdefs.h <<_ACEOF
11664#define size_t unsigned int
b57f37fb
WP
11665_ACEOF
11666
11667fi
11668
042acc47 11669ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12e39525 11670if test "x$ac_cv_type_ssize_t" = xyes; then :
b57f37fb 11671
b57f37fb 11672else
042acc47
WP
11673
11674cat >>confdefs.h <<_ACEOF
11675#define ssize_t int
b57f37fb 11676_ACEOF
042acc47
WP
11677
11678fi
11679
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11681$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12e39525 11682if ${ac_cv_type_uid_t+:} false; then :
042acc47
WP
11683 $as_echo_n "(cached) " >&6
11684else
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
11686/* end confdefs.h. */
11687#include <sys/types.h>
b57f37fb 11688
b57f37fb 11689_ACEOF
042acc47
WP
11690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11691 $EGREP "uid_t" >/dev/null 2>&1; then :
11692 ac_cv_type_uid_t=yes
b57f37fb 11693else
042acc47 11694 ac_cv_type_uid_t=no
b57f37fb 11695fi
042acc47 11696rm -f conftest*
b57f37fb 11697
b57f37fb 11698fi
042acc47
WP
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11700$as_echo "$ac_cv_type_uid_t" >&6; }
11701if test $ac_cv_type_uid_t = no; then
b57f37fb 11702
042acc47
WP
11703$as_echo "#define uid_t int" >>confdefs.h
11704
11705
11706$as_echo "#define gid_t int" >>confdefs.h
b57f37fb
WP
11707
11708fi
11709
11710
11711
042acc47
WP
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11713$as_echo_n "checking for ANSI C header files... " >&6; }
12e39525 11714if ${ac_cv_header_stdc+:} false; then :
f030cae8 11715 $as_echo_n "(cached) " >&6
b57f37fb 11716else
042acc47 11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 11718/* end confdefs.h. */
042acc47
WP
11719#include <stdlib.h>
11720#include <stdarg.h>
11721#include <string.h>
11722#include <float.h>
b57f37fb 11723
b57f37fb
WP
11724int
11725main ()
11726{
042acc47 11727
b57f37fb
WP
11728 ;
11729 return 0;
11730}
11731_ACEOF
042acc47
WP
11732if ac_fn_c_try_compile "$LINENO"; then :
11733 ac_cv_header_stdc=yes
b57f37fb 11734else
042acc47
WP
11735 ac_cv_header_stdc=no
11736fi
11737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b57f37fb 11738
042acc47
WP
11739if test $ac_cv_header_stdc = yes; then
11740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742/* end confdefs.h. */
11743#include <string.h>
b57f37fb 11744
042acc47
WP
11745_ACEOF
11746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11747 $EGREP "memchr" >/dev/null 2>&1; then :
b57f37fb 11748
b57f37fb 11749else
042acc47 11750 ac_cv_header_stdc=no
b57f37fb 11751fi
042acc47 11752rm -f conftest*
b57f37fb
WP
11753
11754fi
11755
042acc47
WP
11756if test $ac_cv_header_stdc = yes; then
11757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759/* end confdefs.h. */
11760#include <stdlib.h>
b57f37fb 11761
b57f37fb 11762_ACEOF
042acc47
WP
11763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11764 $EGREP "free" >/dev/null 2>&1; then :
b57f37fb 11765
042acc47
WP
11766else
11767 ac_cv_header_stdc=no
11768fi
11769rm -f conftest*
b57f37fb 11770
042acc47 11771fi
b57f37fb 11772
042acc47
WP
11773if test $ac_cv_header_stdc = yes; then
11774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11775 if test "$cross_compiling" = yes; then :
11776 :
b57f37fb 11777else
042acc47 11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 11779/* end confdefs.h. */
042acc47
WP
11780#include <ctype.h>
11781#include <stdlib.h>
11782#if ((' ' & 0x0FF) == 0x020)
11783# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11784# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11785#else
11786# define ISLOWER(c) \
11787 (('a' <= (c) && (c) <= 'i') \
11788 || ('j' <= (c) && (c) <= 'r') \
11789 || ('s' <= (c) && (c) <= 'z'))
11790# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
b57f37fb
WP
11791#endif
11792
042acc47 11793#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b57f37fb
WP
11794int
11795main ()
11796{
042acc47
WP
11797 int i;
11798 for (i = 0; i < 256; i++)
11799 if (XOR (islower (i), ISLOWER (i))
11800 || toupper (i) != TOUPPER (i))
11801 return 2;
b57f37fb
WP
11802 return 0;
11803}
11804_ACEOF
042acc47 11805if ac_fn_c_try_run "$LINENO"; then :
b57f37fb 11806
042acc47
WP
11807else
11808 ac_cv_header_stdc=no
11809fi
11810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11811 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
11812fi
11813
b57f37fb 11814fi
042acc47
WP
11815fi
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11817$as_echo "$ac_cv_header_stdc" >&6; }
11818if test $ac_cv_header_stdc = yes; then
11819
11820$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b57f37fb 11821
b57f37fb 11822fi
b57f37fb 11823
042acc47
WP
11824
11825for 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
11826do :
11827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11828ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12e39525 11829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
042acc47
WP
11830 cat >>confdefs.h <<_ACEOF
11831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b57f37fb
WP
11832_ACEOF
11833
11834fi
11835
042acc47 11836done
b57f37fb 11837
042acc47
WP
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11839$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12e39525 11840if ${ac_cv_header_time+:} false; then :
f030cae8 11841 $as_echo_n "(cached) " >&6
b57f37fb 11842else
042acc47 11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 11844/* end confdefs.h. */
b57f37fb 11845#include <sys/types.h>
042acc47
WP
11846#include <sys/time.h>
11847#include <time.h>
b57f37fb 11848
b57f37fb
WP
11849int
11850main ()
11851{
042acc47
WP
11852if ((struct tm *) 0)
11853return 0;
f030cae8 11854 ;
b57f37fb 11855 return 0;
042acc47 11856}
f030cae8 11857_ACEOF
042acc47
WP
11858if ac_fn_c_try_compile "$LINENO"; then :
11859 ac_cv_header_time=yes
11860else
11861 ac_cv_header_time=no
11862fi
11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864fi
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11866$as_echo "$ac_cv_header_time" >&6; }
11867if test $ac_cv_header_time = yes; then
11868
11869$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11870
11871fi
11872
11873
11874
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11876$as_echo_n "checking for library containing socket... " >&6; }
12e39525 11877if ${ac_cv_search_socket+:} false; then :
042acc47
WP
11878 $as_echo_n "(cached) " >&6
11879else
11880 ac_func_search_save_LIBS=$LIBS
11881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8 11882/* end confdefs.h. */
f030cae8 11883
042acc47
WP
11884/* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887#ifdef __cplusplus
11888extern "C"
11889#endif
11890char socket ();
f030cae8
VY
11891int
11892main ()
11893{
042acc47 11894return socket ();
b57f37fb
WP
11895 ;
11896 return 0;
11897}
11898_ACEOF
042acc47
WP
11899for ac_lib in '' socket; do
11900 if test -z "$ac_lib"; then
11901 ac_res="none required"
11902 else
11903 ac_res=-l$ac_lib
11904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11905 fi
11906 if ac_fn_c_try_link "$LINENO"; then :
11907 ac_cv_search_socket=$ac_res
11908fi
11909rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext
12e39525 11911 if ${ac_cv_search_socket+:} false; then :
042acc47
WP
11912 break
11913fi
11914done
12e39525 11915if ${ac_cv_search_socket+:} false; then :
042acc47 11916
b57f37fb 11917else
042acc47
WP
11918 ac_cv_search_socket=no
11919fi
11920rm conftest.$ac_ext
11921LIBS=$ac_func_search_save_LIBS
11922fi
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11924$as_echo "$ac_cv_search_socket" >&6; }
11925ac_res=$ac_cv_search_socket
11926if test "$ac_res" != no; then :
11927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b57f37fb 11928
b57f37fb
WP
11929fi
11930
f030cae8
VY
11931
11932
042acc47
WP
11933ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11934#ifdef HAVE_SYS_TYPES_H
11935#include <sys/types.h>
11936#endif
11937#ifdef HAVE_SYS_SOCKET_H
11938#include <sys/socket.h>
11939#endif
11940#ifdef HAVE_WINSOCK2_H
11941#include <winsock2.h>
11942#endif
11943
11944"
12e39525 11945if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
042acc47
WP
11946
11947$as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
f030cae8 11948
f030cae8 11949fi
042acc47
WP
11950
11951
11952ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11953#include <sys/socket.h>
11954"
12e39525 11955if test "x$ac_cv_type_socklen_t" = xyes; then :
f030cae8 11956 rb_cv_socklen_t=socklen_t
b57f37fb
WP
11957else
11958
042acc47 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
f030cae8 11960$as_echo_n "checking for socklen_t equivalent... " >&6; }
12e39525 11961 if ${rb_cv_socklen_t+:} false; then :
f030cae8 11962 $as_echo_n "(cached) " >&6
4414eb3c
VY
11963else
11964
11965 # Systems have either "struct sockaddr *" or
11966 # "void *" as the second argument to getpeername
f030cae8 11967 rb_cv_socklen_t=
4414eb3c
VY
11968 for arg2 in "struct sockaddr" void; do
11969 for t in int size_t unsigned long "unsigned long"; do
042acc47 11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414eb3c
VY
11971/* end confdefs.h. */
11972
94b4fbf9 11973#ifdef HAVE_SYS_TYPES_H
4414eb3c 11974#include <sys/types.h>
94b4fbf9
VY
11975#endif
11976#ifdef HAVE_SYS_SOCKET_H
4414eb3c 11977#include <sys/socket.h>
94b4fbf9
VY
11978#endif
11979#ifdef HAVE_WINSOCK2_H
11980#include <winsock2.h>
11981#endif
4414eb3c
VY
11982int getpeername (int, $arg2 *, $t *);
11983
11984int
11985main ()
11986{
11987
11988$t len;
11989getpeername(0,0,&len);
11990
11991 ;
11992 return 0;
11993}
b57f37fb 11994_ACEOF
042acc47 11995if ac_fn_c_try_compile "$LINENO"; then :
4414eb3c 11996
f030cae8 11997 rb_cv_socklen_t="$t"
4414eb3c
VY
11998 break
11999
4414eb3c 12000fi
4414eb3c
VY
12001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002 done
12003 done
12004
f030cae8 12005 if test "x$rb_cv_socklen_t" = x; then
042acc47 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
f030cae8
VY
12007$as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
12008 rb_cv_socklen_t=int
4414eb3c
VY
12009 fi
12010
12011fi
12012
042acc47
WP
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
12014$as_echo "$rb_cv_socklen_t" >&6; }
12015fi
12016
12017
12018rb_socklen_t=$rb_cv_socklen_t
12019
12020
12021
12022
12023
12024# Check whether --enable-ipv6 was given.
12025if test "${enable_ipv6+set}" = set; then :
12026 enableval=$enable_ipv6; ipv6=$enableval
12027else
12028 ipv6=yes
12029fi
12030
12031
12032if test x$ipv6 != xyes; then
12033 have_v6="no"
12034else
12035
12036have_v6=yes
12037
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
12039$as_echo_n "checking for INET6 protocol support... " >&6; }
12e39525 12040if ${rb_cv_proto_inet6+:} false; then :
042acc47
WP
12041 $as_echo_n "(cached) " >&6
12042else
12043
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045/* end confdefs.h. */
12046
12047#include <sys/types.h>
12048#include <sys/socket.h>
12049
12050#ifndef PF_INET6
12051#error Missing PF_INET6
12052#endif
12053#ifndef AF_INET6
12054#error Mlssing AF_INET6
12055#endif
12056
12057_ACEOF
12058if ac_fn_c_try_cpp "$LINENO"; then :
12059
12060 rb_cv_proto_inet6=yes
12061
12062else
12063
12064 rb_cv_proto_inet6=no
12065
12066fi
12e39525 12067rm -f conftest.err conftest.i conftest.$ac_ext
042acc47
WP
12068
12069fi
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
12071$as_echo "$rb_cv_proto_inet6" >&6; }
12072
12073 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
12074
12075 else :
12076
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
12078$as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
12079 have_v6=no
12080
12081 fi
12082
12083
12084 if test "X$have_v6" = "Xyes"; then
12085
12086 rb_have_sockaddr_in6=
12087 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
12088#include <sys/types.h>
12089#include <sys/socket.h>
12090#include <netinet/in.h>
12091
12092"
12e39525 12093if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
042acc47
WP
12094
12095cat >>confdefs.h <<_ACEOF
12096#define HAVE_STRUCT_SOCKADDR_IN6 1
12097_ACEOF
12098
12099
12100 rb_have_sockaddr_in6=yes
12101
12102else
12103
12104 rb_have_sockaddr_in6=no
12105
12106fi
12107
12108
12109 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
12110
12111 else :
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
12114$as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
12115 have_v6=no
12116
12117 fi
12118
12119 fi
12120
12121fi
12122
12123ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12124 #include <sys/types.h>
12125 #include <sys/socket.h>
12126
12127"
12e39525 12128if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
042acc47
WP
12129
12130cat >>confdefs.h <<_ACEOF
12131#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12132_ACEOF
12133
12134
12135 rb_have_sockaddr_storage=yes
12136
12137fi
12138
12139
12140
042acc47 12141ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12e39525 12142if test "x$ac_cv_header_stdarg_h" = xyes; then :
b57f37fb 12143
042acc47 12144else
12e39525 12145 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
042acc47 12146fi
b57f37fb 12147
b57f37fb 12148
b57f37fb 12149
042acc47
WP
12150ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
12151#include <sys/socket.h>
12152"
12e39525 12153if test "x$ac_cv_type_sa_family_t" = xyes; then :
b57f37fb
WP
12154
12155else
b57f37fb 12156
042acc47 12157$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
b57f37fb
WP
12158
12159fi
b57f37fb 12160
b57f37fb 12161
b57f37fb 12162
042acc47
WP
12163for 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
12164do :
12165 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12166ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12e39525 12167if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
042acc47
WP
12168 cat >>confdefs.h <<_ACEOF
12169#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12170_ACEOF
b57f37fb 12171
042acc47
WP
12172fi
12173done
b57f37fb 12174
b57f37fb 12175
042acc47
WP
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12177$as_echo_n "checking for library containing nanosleep... " >&6; }
12e39525 12178if ${ac_cv_search_nanosleep+:} false; then :
f030cae8 12179 $as_echo_n "(cached) " >&6
b57f37fb 12180else
042acc47
WP
12181 ac_func_search_save_LIBS=$LIBS
12182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
12183/* end confdefs.h. */
12184
042acc47
WP
12185/* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12188#ifdef __cplusplus
12189extern "C"
12190#endif
12191char nanosleep ();
b57f37fb
WP
12192int
12193main ()
12194{
042acc47 12195return nanosleep ();
f030cae8 12196 ;
b57f37fb 12197 return 0;
f030cae8
VY
12198}
12199_ACEOF
042acc47
WP
12200for ac_lib in '' rt posix4; do
12201 if test -z "$ac_lib"; then
12202 ac_res="none required"
12203 else
12204 ac_res=-l$ac_lib
12205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12206 fi
12207 if ac_fn_c_try_link "$LINENO"; then :
12208 ac_cv_search_nanosleep=$ac_res
12209fi
12210rm -f core conftest.err conftest.$ac_objext \
12211 conftest$ac_exeext
12e39525 12212 if ${ac_cv_search_nanosleep+:} false; then :
042acc47
WP
12213 break
12214fi
12215done
12e39525 12216if ${ac_cv_search_nanosleep+:} false; then :
f030cae8 12217
042acc47
WP
12218else
12219 ac_cv_search_nanosleep=no
12220fi
12221rm conftest.$ac_ext
12222LIBS=$ac_func_search_save_LIBS
12223fi
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12225$as_echo "$ac_cv_search_nanosleep" >&6; }
12226ac_res=$ac_cv_search_nanosleep
12227if test "$ac_res" != no; then :
12228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
f030cae8 12229
042acc47
WP
12230$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
12231
12232fi
12233
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
12235$as_echo_n "checking for library containing timer_create... " >&6; }
12e39525 12236if ${ac_cv_search_timer_create+:} false; then :
042acc47
WP
12237 $as_echo_n "(cached) " >&6
12238else
12239 ac_func_search_save_LIBS=$LIBS
12240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241/* end confdefs.h. */
f030cae8 12242
042acc47
WP
12243/* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12246#ifdef __cplusplus
12247extern "C"
12248#endif
12249char timer_create ();
f030cae8
VY
12250int
12251main ()
12252{
042acc47 12253return timer_create ();
b57f37fb
WP
12254 ;
12255 return 0;
12256}
12257_ACEOF
042acc47
WP
12258for ac_lib in '' rt; do
12259 if test -z "$ac_lib"; then
12260 ac_res="none required"
12261 else
12262 ac_res=-l$ac_lib
12263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12264 fi
12265 if ac_fn_c_try_link "$LINENO"; then :
12266 ac_cv_search_timer_create=$ac_res
12267fi
12268rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext
12e39525 12270 if ${ac_cv_search_timer_create+:} false; then :
042acc47 12271 break
f030cae8 12272fi
042acc47 12273done
12e39525 12274if ${ac_cv_search_timer_create+:} false; then :
f030cae8 12275
b57f37fb 12276else
042acc47 12277 ac_cv_search_timer_create=no
b57f37fb 12278fi
042acc47
WP
12279rm conftest.$ac_ext
12280LIBS=$ac_func_search_save_LIBS
b57f37fb 12281fi
042acc47
WP
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
12283$as_echo "$ac_cv_search_timer_create" >&6; }
12284ac_res=$ac_cv_search_timer_create
12285if test "$ac_res" != no; then :
12286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b57f37fb 12287
042acc47 12288$as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
b57f37fb 12289
042acc47 12290fi
b57f37fb 12291
042acc47
WP
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
12293$as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
12e39525 12294if ${rb__cv_timer_create_works+:} false; then :
042acc47
WP
12295 $as_echo_n "(cached) " >&6
12296else
12297 if test "$cross_compiling" = yes; then :
12298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
12300as_fn_error $? "cannot run test program while cross compiling
12301See \`config.log' for more details" "$LINENO" 5; }
b57f37fb 12302else
042acc47
WP
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304/* end confdefs.h. */
b57f37fb 12305
042acc47
WP
12306#ifdef HAVE_TIME_H
12307#include <time.h>
12308#endif
12309#ifdef HAVE_SIGNAL_H
12310#include <signal.h>
12311#endif
12312#ifdef HAVE_UNISTD_H
12313#include <unistd.h>
12314#endif
12315int main(int argc, char *argv[])
12316{
12317#if HAVE_TIMER_CREATE
12318 struct sigevent ev;
12319 timer_t timer;
12320 ev.sigev_notify = SIGEV_SIGNAL;
12321 ev.sigev_signo = SIGVTALRM;
12322 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
12323 return 1;
12324 }
12325#else
12326 return 1;
12327#endif
12328 return 0;
12329}
b57f37fb 12330
042acc47
WP
12331_ACEOF
12332if ac_fn_c_try_run "$LINENO"; then :
12333 rb__cv_timer_create_works=yes
12334else
12335 rb__cv_timer_create_works=no
12336fi
12337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12338 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
12339fi
12340
12341
042acc47
WP
12342fi
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
12344$as_echo "$rb__cv_timer_create_works" >&6; }
12345case $rb__cv_timer_create_works in
12346 yes)
12347$as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
12348;;
12349esac
b57f37fb 12350
042acc47
WP
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
12352$as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
12e39525 12353if ${rb__cv_timerfd_create_works+:} false; then :
042acc47
WP
12354 $as_echo_n "(cached) " >&6
12355else
12356 if test "$cross_compiling" = yes; then :
12357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12e39525
JH
12359as_fn_error $? "cannot run test program while cross compiling
12360See \`config.log' for more details" "$LINENO" 5; }
042acc47
WP
12361else
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363/* end confdefs.h. */
b57f37fb 12364
042acc47
WP
12365#ifdef HAVE_TIME_H
12366#include <time.h>
12367#endif
12368#ifdef HAVE_SIGNAL_H
12369#include <signal.h>
12370#endif
12371#ifdef HAVE_UNISTD_H
12372#include <unistd.h>
12373#endif
12374#ifdef HAVE_SYS_TIMERFD_H
12375#include <sys/timerfd.h>
12376#endif
12377int main(int argc, char *argv[])
12378{
12379#if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
12380 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
12381 return 1;
12382 }
12383#else
12384 return 1;
12385#endif
12386 return 0;
12387}
b57f37fb 12388
042acc47
WP
12389_ACEOF
12390if ac_fn_c_try_run "$LINENO"; then :
12391 rb__cv_timerfd_create_works=yes
12392else
12393 rb__cv_timerfd_create_works=no
12394fi
12395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12396 conftest.$ac_objext conftest.beam conftest.$ac_ext
12397fi
b57f37fb 12398
b57f37fb
WP
12399
12400fi
042acc47
WP
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
12402$as_echo "$rb__cv_timerfd_create_works" >&6; }
12403case $rb__cv_timerfd_create_works in
12404 yes)
12405$as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
12406;;
12407esac
b57f37fb 12408
042acc47
WP
12409
12410# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12411# for constant arguments. Useless!
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12413$as_echo_n "checking for working alloca.h... " >&6; }
12e39525 12414if ${ac_cv_working_alloca_h+:} false; then :
f030cae8 12415 $as_echo_n "(cached) " >&6
b57f37fb 12416else
042acc47 12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8 12418/* end confdefs.h. */
042acc47 12419#include <alloca.h>
f030cae8
VY
12420int
12421main ()
12422{
042acc47
WP
12423char *p = (char *) alloca (2 * sizeof (int));
12424 if (p) return 0;
b57f37fb
WP
12425 ;
12426 return 0;
12427}
12428_ACEOF
042acc47
WP
12429if ac_fn_c_try_link "$LINENO"; then :
12430 ac_cv_working_alloca_h=yes
f030cae8 12431else
042acc47 12432 ac_cv_working_alloca_h=no
b57f37fb 12433fi
042acc47
WP
12434rm -f core conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
f030cae8 12436fi
042acc47
WP
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12438$as_echo "$ac_cv_working_alloca_h" >&6; }
12439if test $ac_cv_working_alloca_h = yes; then
b57f37fb 12440
042acc47 12441$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
b57f37fb
WP
12442
12443fi
12444
042acc47
WP
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12446$as_echo_n "checking for alloca... " >&6; }
12e39525 12447if ${ac_cv_func_alloca_works+:} false; then :
f030cae8 12448 $as_echo_n "(cached) " >&6
b57f37fb 12449else
042acc47 12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12451/* end confdefs.h. */
042acc47
WP
12452#ifdef __GNUC__
12453# define alloca __builtin_alloca
12454#else
12455# ifdef _MSC_VER
12456# include <malloc.h>
12457# define alloca _alloca
12458# else
12459# ifdef HAVE_ALLOCA_H
12460# include <alloca.h>
12461# else
12462# ifdef _AIX
12463 #pragma alloca
12464# else
12465# ifndef alloca /* predefined by HP cc +Olibcalls */
12e39525 12466void *alloca (size_t);
042acc47
WP
12467# endif
12468# endif
12469# endif
12470# endif
b57f37fb 12471#endif
042acc47 12472
b57f37fb
WP
12473int
12474main ()
12475{
042acc47
WP
12476char *p = (char *) alloca (1);
12477 if (p) return 0;
b57f37fb
WP
12478 ;
12479 return 0;
12480}
12481_ACEOF
042acc47
WP
12482if ac_fn_c_try_link "$LINENO"; then :
12483 ac_cv_func_alloca_works=yes
b57f37fb 12484else
042acc47 12485 ac_cv_func_alloca_works=no
b57f37fb 12486fi
042acc47
WP
12487rm -f core conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
b57f37fb 12489fi
042acc47
WP
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12491$as_echo "$ac_cv_func_alloca_works" >&6; }
b57f37fb 12492
042acc47 12493if test $ac_cv_func_alloca_works = yes; then
b57f37fb 12494
042acc47 12495$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
b57f37fb 12496
b57f37fb 12497else
042acc47
WP
12498 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12499# that cause trouble. Some versions do not even contain alloca or
12500# contain a buggy version. If you still want to use their alloca,
12501# use ar to extract alloca.o from them instead of compiling alloca.c.
b57f37fb 12502
042acc47 12503ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b57f37fb 12504
042acc47 12505$as_echo "#define C_ALLOCA 1" >>confdefs.h
b57f37fb
WP
12506
12507
042acc47
WP
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12509$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12e39525 12510if ${ac_cv_os_cray+:} false; then :
f030cae8 12511 $as_echo_n "(cached) " >&6
b57f37fb 12512else
042acc47 12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12514/* end confdefs.h. */
042acc47
WP
12515#if defined CRAY && ! defined CRAY2
12516webecray
12517#else
12518wenotbecray
12519#endif
b57f37fb 12520
b57f37fb 12521_ACEOF
042acc47
WP
12522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12523 $EGREP "webecray" >/dev/null 2>&1; then :
12524 ac_cv_os_cray=yes
b57f37fb 12525else
042acc47 12526 ac_cv_os_cray=no
b57f37fb 12527fi
042acc47 12528rm -f conftest*
b57f37fb 12529
b57f37fb 12530fi
042acc47
WP
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12532$as_echo "$ac_cv_os_cray" >&6; }
12533if test $ac_cv_os_cray = yes; then
12534 for ac_func in _getb67 GETB67 getb67; do
12535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12536ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12e39525 12537if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b57f37fb 12538
042acc47
WP
12539cat >>confdefs.h <<_ACEOF
12540#define CRAY_STACKSEG_END $ac_func
12541_ACEOF
b57f37fb 12542
042acc47
WP
12543 break
12544fi
b57f37fb 12545
042acc47
WP
12546 done
12547fi
b57f37fb 12548
042acc47
WP
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12550$as_echo_n "checking stack direction for C alloca... " >&6; }
12e39525 12551if ${ac_cv_c_stack_direction+:} false; then :
f030cae8 12552 $as_echo_n "(cached) " >&6
b57f37fb 12553else
042acc47
WP
12554 if test "$cross_compiling" = yes; then :
12555 ac_cv_c_stack_direction=0
12556else
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12558/* end confdefs.h. */
042acc47 12559$ac_includes_default
b57f37fb 12560int
042acc47 12561find_stack_direction ()
b57f37fb 12562{
042acc47
WP
12563 static char *addr = 0;
12564 auto char dummy;
12565 if (addr == 0)
12566 {
12567 addr = &dummy;
12568 return find_stack_direction ();
12569 }
12570 else
12571 return (&dummy > addr) ? 1 : -1;
f030cae8 12572}
f030cae8
VY
12573
12574int
12575main ()
12576{
042acc47 12577 return find_stack_direction () < 0;
b57f37fb
WP
12578}
12579_ACEOF
042acc47
WP
12580if ac_fn_c_try_run "$LINENO"; then :
12581 ac_cv_c_stack_direction=1
f030cae8 12582else
042acc47 12583 ac_cv_c_stack_direction=-1
f030cae8 12584fi
042acc47
WP
12585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12586 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
12587fi
12588
b57f37fb 12589fi
042acc47
WP
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12591$as_echo "$ac_cv_c_stack_direction" >&6; }
12592cat >>confdefs.h <<_ACEOF
12593#define STACK_DIRECTION $ac_cv_c_stack_direction
b57f37fb
WP
12594_ACEOF
12595
b57f37fb 12596
042acc47 12597fi
b57f37fb 12598
042acc47
WP
12599for ac_header in vfork.h
12600do :
12601 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12e39525 12602if test "x$ac_cv_header_vfork_h" = xyes; then :
042acc47
WP
12603 cat >>confdefs.h <<_ACEOF
12604#define HAVE_VFORK_H 1
12605_ACEOF
b57f37fb 12606
042acc47 12607fi
b57f37fb 12608
042acc47 12609done
4414eb3c 12610
042acc47
WP
12611for ac_func in fork vfork
12612do :
12613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12614ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12e39525 12615if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
042acc47
WP
12616 cat >>confdefs.h <<_ACEOF
12617#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12618_ACEOF
4414eb3c 12619
042acc47
WP
12620fi
12621done
94b4fbf9 12622
042acc47
WP
12623if test "x$ac_cv_func_fork" = xyes; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12625$as_echo_n "checking for working fork... " >&6; }
12e39525 12626if ${ac_cv_func_fork_works+:} false; then :
f030cae8 12627 $as_echo_n "(cached) " >&6
b57f37fb 12628else
042acc47
WP
12629 if test "$cross_compiling" = yes; then :
12630 ac_cv_func_fork_works=cross
12631else
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12633/* end confdefs.h. */
042acc47 12634$ac_includes_default
b57f37fb
WP
12635int
12636main ()
12637{
042acc47
WP
12638
12639 /* By Ruediger Kuhlmann. */
12640 return fork () < 0;
12641
b57f37fb
WP
12642 ;
12643 return 0;
12644}
12645_ACEOF
042acc47
WP
12646if ac_fn_c_try_run "$LINENO"; then :
12647 ac_cv_func_fork_works=yes
b57f37fb 12648else
042acc47 12649 ac_cv_func_fork_works=no
b57f37fb 12650fi
042acc47
WP
12651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12652 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb 12653fi
b57f37fb
WP
12654
12655fi
042acc47
WP
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12657$as_echo "$ac_cv_func_fork_works" >&6; }
b57f37fb 12658
042acc47
WP
12659else
12660 ac_cv_func_fork_works=$ac_cv_func_fork
12661fi
12662if test "x$ac_cv_func_fork_works" = xcross; then
12663 case $host in
12664 *-*-amigaos* | *-*-msdosdjgpp*)
12665 # Override, as these systems have only a dummy fork() stub
12666 ac_cv_func_fork_works=no
12667 ;;
12668 *)
12669 ac_cv_func_fork_works=yes
12670 ;;
12671 esac
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12673$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12674fi
12675ac_cv_func_vfork_works=$ac_cv_func_vfork
12676if test "x$ac_cv_func_vfork" = xyes; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12678$as_echo_n "checking for working vfork... " >&6; }
12e39525 12679if ${ac_cv_func_vfork_works+:} false; then :
f030cae8 12680 $as_echo_n "(cached) " >&6
b57f37fb 12681else
042acc47
WP
12682 if test "$cross_compiling" = yes; then :
12683 ac_cv_func_vfork_works=cross
12684else
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12686/* end confdefs.h. */
042acc47
WP
12687/* Thanks to Paul Eggert for this test. */
12688$ac_includes_default
12689#include <sys/wait.h>
12690#ifdef HAVE_VFORK_H
12691# include <vfork.h>
12692#endif
12693/* On some sparc systems, changes by the child to local and incoming
12694 argument registers are propagated back to the parent. The compiler
12695 is told about this with #include <vfork.h>, but some compilers
12696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12697 static variable whose address is put into a register that is
12698 clobbered by the vfork. */
12699static void
b57f37fb 12700#ifdef __cplusplus
042acc47
WP
12701sparc_address_test (int arg)
12702# else
12703sparc_address_test (arg) int arg;
b57f37fb 12704#endif
042acc47
WP
12705{
12706 static pid_t child;
12707 if (!child) {
12708 child = vfork ();
12709 if (child < 0) {
12710 perror ("vfork");
12711 _exit(2);
12712 }
12713 if (!child) {
12714 arg = getpid();
12715 write(-1, "", 0);
12716 _exit (arg);
12717 }
12718 }
12719}
12720
b57f37fb
WP
12721int
12722main ()
12723{
042acc47
WP
12724 pid_t parent = getpid ();
12725 pid_t child;
12726
12727 sparc_address_test (0);
12728
12729 child = vfork ();
12730
12731 if (child == 0) {
12732 /* Here is another test for sparc vfork register problems. This
12733 test uses lots of local variables, at least as many local
12734 variables as main has allocated so far including compiler
12735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12737 reuse the register of parent for one of the local variables,
12738 since it will think that parent can't possibly be used any more
12739 in this routine. Assigning to the local variable will thus
12740 munge parent in the parent process. */
12741 pid_t
12742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12744 /* Convince the compiler that p..p7 are live; otherwise, it might
12745 use the same hardware register for all 8 local variables. */
12746 if (p != p1 || p != p2 || p != p3 || p != p4
12747 || p != p5 || p != p6 || p != p7)
12748 _exit(1);
b57f37fb 12749
042acc47
WP
12750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12751 from child file descriptors. If the child closes a descriptor
12752 before it execs or exits, this munges the parent's descriptor
12753 as well. Test for this by closing stdout in the child. */
12754 _exit(close(fileno(stdout)) != 0);
12755 } else {
12756 int status;
12757 struct stat st;
b57f37fb 12758
042acc47
WP
12759 while (wait(&status) != child)
12760 ;
12761 return (
12762 /* Was there some problem with vforking? */
12763 child < 0
b57f37fb 12764
042acc47
WP
12765 /* Did the child fail? (This shouldn't happen.) */
12766 || status
12767
12768 /* Did the vfork/compiler bug occur? */
12769 || parent != getpid()
12770
12771 /* Did the file descriptor bug occur? */
12772 || fstat(fileno(stdout), &st) != 0
12773 );
12774 }
12775}
12776_ACEOF
12777if ac_fn_c_try_run "$LINENO"; then :
12778 ac_cv_func_vfork_works=yes
b57f37fb 12779else
042acc47 12780 ac_cv_func_vfork_works=no
b57f37fb 12781fi
042acc47
WP
12782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12783 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb 12784fi
b57f37fb 12785
042acc47
WP
12786fi
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12788$as_echo "$ac_cv_func_vfork_works" >&6; }
b57f37fb 12789
042acc47
WP
12790fi;
12791if test "x$ac_cv_func_fork_works" = xcross; then
12792 ac_cv_func_vfork_works=$ac_cv_func_vfork
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12794$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
b57f37fb
WP
12795fi
12796
042acc47
WP
12797if test "x$ac_cv_func_vfork_works" = xyes; then
12798
12799$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
b57f37fb 12800
b57f37fb 12801else
b57f37fb 12802
042acc47 12803$as_echo "#define vfork fork" >>confdefs.h
b57f37fb
WP
12804
12805fi
042acc47
WP
12806if test "x$ac_cv_func_fork_works" = xyes; then
12807
12808$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
b57f37fb 12809
b57f37fb 12810fi
042acc47 12811
1800d973
WP
12812
12813
12814
12815 for ac_header in $ac_header_list
042acc47
WP
12816do :
12817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1800d973
WP
12818ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12819"
12e39525 12820if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
042acc47
WP
12821 cat >>confdefs.h <<_ACEOF
12822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12823_ACEOF
12824
b57f37fb 12825fi
b57f37fb 12826
042acc47
WP
12827done
12828
1800d973
WP
12829
12830
12831
12832
12833
12834
12835
042acc47
WP
12836for ac_func in getpagesize
12837do :
12838 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12e39525 12839if test "x$ac_cv_func_getpagesize" = xyes; then :
042acc47
WP
12840 cat >>confdefs.h <<_ACEOF
12841#define HAVE_GETPAGESIZE 1
b57f37fb
WP
12842_ACEOF
12843
12844fi
042acc47 12845done
b57f37fb 12846
042acc47
WP
12847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12848$as_echo_n "checking for working mmap... " >&6; }
12e39525 12849if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
f030cae8 12850 $as_echo_n "(cached) " >&6
b57f37fb 12851else
042acc47
WP
12852 if test "$cross_compiling" = yes; then :
12853 ac_cv_func_mmap_fixed_mapped=no
12854else
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12856/* end confdefs.h. */
042acc47
WP
12857$ac_includes_default
12858/* malloc might have been renamed as rpl_malloc. */
12859#undef malloc
b57f37fb 12860
042acc47
WP
12861/* Thanks to Mike Haertel and Jim Avera for this test.
12862 Here is a matrix of mmap possibilities:
12863 mmap private not fixed
12864 mmap private fixed at somewhere currently unmapped
12865 mmap private fixed at somewhere already mapped
12866 mmap shared not fixed
12867 mmap shared fixed at somewhere currently unmapped
12868 mmap shared fixed at somewhere already mapped
12869 For private mappings, we should verify that changes cannot be read()
12870 back from the file, nor mmap's back from the file at a different
12871 address. (There have been systems where private was not correctly
12872 implemented like the infamous i386 svr4.0, and systems where the
12873 VM page cache was not coherent with the file system buffer cache
12874 like early versions of FreeBSD and possibly contemporary NetBSD.)
12875 For shared mappings, we should conversely verify that changes get
12876 propagated back to all the places they're supposed to be.
12877
12878 Grep wants private fixed already mapped.
12879 The main things grep needs to know about mmap are:
12880 * does it exist and is it safe to write into the mmap'd area
12881 * how to use it (BSD variants) */
12882
12883#include <fcntl.h>
12884#include <sys/mman.h>
12885
12886#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12887char *malloc ();
b57f37fb 12888#endif
042acc47
WP
12889
12890/* This mess was copied from the GNU getpagesize.h. */
12891#ifndef HAVE_GETPAGESIZE
042acc47
WP
12892# ifdef _SC_PAGESIZE
12893# define getpagesize() sysconf(_SC_PAGESIZE)
12894# else /* no _SC_PAGESIZE */
12895# ifdef HAVE_SYS_PARAM_H
12896# include <sys/param.h>
12897# ifdef EXEC_PAGESIZE
12898# define getpagesize() EXEC_PAGESIZE
12899# else /* no EXEC_PAGESIZE */
12900# ifdef NBPG
12901# define getpagesize() NBPG * CLSIZE
12902# ifndef CLSIZE
12903# define CLSIZE 1
12904# endif /* no CLSIZE */
12905# else /* no NBPG */
12906# ifdef NBPC
12907# define getpagesize() NBPC
12908# else /* no NBPC */
12909# ifdef PAGESIZE
12910# define getpagesize() PAGESIZE
12911# endif /* PAGESIZE */
12912# endif /* no NBPC */
12913# endif /* no NBPG */
12914# endif /* no EXEC_PAGESIZE */
12915# else /* no HAVE_SYS_PARAM_H */
12916# define getpagesize() 8192 /* punt totally */
12917# endif /* no HAVE_SYS_PARAM_H */
12918# endif /* no _SC_PAGESIZE */
12919
12920#endif /* no HAVE_GETPAGESIZE */
12921
12922int
12923main ()
b57f37fb 12924{
042acc47 12925 char *data, *data2, *data3;
12e39525 12926 const char *cdata2;
042acc47 12927 int i, pagesize;
1800d973 12928 int fd, fd2;
042acc47
WP
12929
12930 pagesize = getpagesize ();
12931
12932 /* First, make a file with some known garbage in it. */
12933 data = (char *) malloc (pagesize);
12934 if (!data)
12935 return 1;
12936 for (i = 0; i < pagesize; ++i)
12937 *(data + i) = rand ();
12938 umask (0);
12939 fd = creat ("conftest.mmap", 0600);
12940 if (fd < 0)
1800d973 12941 return 2;
042acc47 12942 if (write (fd, data, pagesize) != pagesize)
1800d973 12943 return 3;
042acc47
WP
12944 close (fd);
12945
1800d973
WP
12946 /* Next, check that the tail of a page is zero-filled. File must have
12947 non-zero length, otherwise we risk SIGBUS for entire page. */
12948 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12949 if (fd2 < 0)
12950 return 4;
12e39525
JH
12951 cdata2 = "";
12952 if (write (fd2, cdata2, 1) != 1)
1800d973 12953 return 5;
12e39525 12954 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
1800d973
WP
12955 if (data2 == MAP_FAILED)
12956 return 6;
12957 for (i = 0; i < pagesize; ++i)
12958 if (*(data2 + i))
12959 return 7;
12960 close (fd2);
12961 if (munmap (data2, pagesize))
12962 return 8;
12963
042acc47
WP
12964 /* Next, try to mmap the file at a fixed address which already has
12965 something else allocated at it. If we can, also make sure that
12966 we see the same garbage. */
12967 fd = open ("conftest.mmap", O_RDWR);
12968 if (fd < 0)
1800d973 12969 return 9;
042acc47
WP
12970 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12971 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1800d973 12972 return 10;
042acc47
WP
12973 for (i = 0; i < pagesize; ++i)
12974 if (*(data + i) != *(data2 + i))
1800d973 12975 return 11;
042acc47
WP
12976
12977 /* Finally, make sure that changes to the mapped area do not
12978 percolate back to the file as seen by read(). (This is a bug on
12979 some variants of i386 svr4.0.) */
12980 for (i = 0; i < pagesize; ++i)
12981 *(data2 + i) = *(data2 + i) + 1;
12982 data3 = (char *) malloc (pagesize);
12983 if (!data3)
1800d973 12984 return 12;
042acc47 12985 if (read (fd, data3, pagesize) != pagesize)
1800d973 12986 return 13;
042acc47
WP
12987 for (i = 0; i < pagesize; ++i)
12988 if (*(data + i) != *(data3 + i))
1800d973 12989 return 14;
042acc47
WP
12990 close (fd);
12991 return 0;
b57f37fb 12992}
b57f37fb 12993_ACEOF
042acc47
WP
12994if ac_fn_c_try_run "$LINENO"; then :
12995 ac_cv_func_mmap_fixed_mapped=yes
b57f37fb 12996else
042acc47 12997 ac_cv_func_mmap_fixed_mapped=no
b57f37fb 12998fi
042acc47
WP
12999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13000 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
13001fi
13002
042acc47
WP
13003fi
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13005$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13006if test $ac_cv_func_mmap_fixed_mapped = yes; then
b57f37fb 13007
042acc47 13008$as_echo "#define HAVE_MMAP 1" >>confdefs.h
b57f37fb
WP
13009
13010fi
1800d973 13011rm -f conftest.mmap conftest.txt
b57f37fb 13012
94b4fbf9 13013
042acc47
WP
13014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
13015$as_echo_n "checking for /dev/poll... " >&6; }
13016if test -c "/dev/poll"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13018$as_echo "yes" >&6; }
94b4fbf9 13019
042acc47 13020$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
94b4fbf9 13021
042acc47
WP
13022else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024$as_echo "no" >&6; }
94b4fbf9
VY
13025fi
13026
13027
042acc47
WP
13028if test "$is_mingw" = "yes"; then
13029
13030$as_echo "#define HAVE_WIN32 1" >>confdefs.h
94b4fbf9
VY
13031
13032fi
94b4fbf9 13033
b57f37fb 13034
042acc47
WP
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13036$as_echo_n "checking for OpenSSL... " >&6; }
13037# Check whether --enable-openssl was given.
13038if test "${enable_openssl+set}" = set; then :
13039 enableval=$enable_openssl; cf_enable_openssl=$enableval
b57f37fb 13040else
042acc47 13041 cf_enable_openssl="auto"
b57f37fb
WP
13042fi
13043
b57f37fb 13044
042acc47
WP
13045if test "$cf_enable_openssl" != "no" ; then
13046 cf_openssl_basedir=""
13047 if test "$cf_enable_openssl" != "auto" &&
13048 test "$cf_enable_openssl" != "yes" ; then
13049 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
13050 else
13051 for dirs in /usr/local/ssl /usr/pkg /usr/local \
13052 /usr/local/openssl ; do
13053 if test -f "${dirs}/include/openssl/opensslv.h" ; then
13054 cf_openssl_basedir="${dirs}"
13055 break
13056 fi
13057 done
13058 unset dirs
13059 fi
13060 if test ! -z "$cf_openssl_basedir"; then
13061 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
13062 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
13063 SSL_LIBS="-L${cf_openssl_basedir}/lib"
13064 else
13065 cf_openssl_basedir=""
13066 fi
13067 else
13068 if test -f "/usr/include/openssl/opensslv.h" ; then
13069 cf_openssl_basedir="/usr"
13070 fi
13071 fi
b57f37fb 13072
042acc47
WP
13073 if test ! -z "$cf_openssl_basedir"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13075$as_echo "$cf_openssl_basedir" >&6; }
13076 cf_enable_openssl="yes"
13077 else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
13079$as_echo "not found. Specify a correct path?" >&6; }
13080 cf_enable_openssl="no"
13081 fi
13082 unset cf_openssl_basedir
13083else
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13085$as_echo "disabled" >&6; }
b57f37fb
WP
13086fi
13087
042acc47
WP
13088save_CPPFLAGS="$CPPFLAGS"
13089CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
13090save_LIBS="$LIBS"
13091LIBS="$LIBS $SSL_LIBS"
13092if test "$cf_enable_openssl" != no; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13094$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13095 if test "$cross_compiling" = yes; then :
13096 cf_enable_openssl=no
b57f37fb 13097else
042acc47 13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13099/* end confdefs.h. */
042acc47
WP
13100#include <openssl/opensslv.h>
13101 #include <stdlib.h>
b57f37fb
WP
13102int
13103main ()
13104{
042acc47
WP
13105if (OPENSSL_VERSION_NUMBER >= 0x00907000)
13106 exit(0); else exit(1);
13107 ;
13108 return 0;
13109}
b57f37fb 13110_ACEOF
042acc47
WP
13111if ac_fn_c_try_run "$LINENO"; then :
13112 cf_enable_openssl=yes
13113else
13114 cf_enable_openssl=no
13115fi
13116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13117 conftest.$ac_objext conftest.beam conftest.$ac_ext
13118fi
b57f37fb
WP
13119
13120
042acc47
WP
13121 if test "$cf_enable_openssl" != no; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13123$as_echo "found" >&6; }
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13126$as_echo "no - OpenSSL support disabled" >&6; }
13127 fi
b57f37fb 13128
b57f37fb 13129fi
b57f37fb 13130
042acc47
WP
13131
13132if test "$cf_enable_openssl" != no; then
13133 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
13135$as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
12e39525 13136if ${ac_cv_lib_crypto_RAND_status+:} false; then :
f030cae8 13137 $as_echo_n "(cached) " >&6
b57f37fb 13138else
042acc47
WP
13139 ac_check_lib_save_LIBS=$LIBS
13140LIBS="-lcrypto $LIBS"
13141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13142/* end confdefs.h. */
b57f37fb
WP
13143
13144/* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13147#ifdef __cplusplus
13148extern "C"
13149#endif
042acc47 13150char RAND_status ();
b57f37fb
WP
13151int
13152main ()
13153{
042acc47 13154return RAND_status ();
b57f37fb
WP
13155 ;
13156 return 0;
13157}
13158_ACEOF
042acc47
WP
13159if ac_fn_c_try_link "$LINENO"; then :
13160 ac_cv_lib_crypto_RAND_status=yes
b57f37fb 13161else
042acc47 13162 ac_cv_lib_crypto_RAND_status=no
b57f37fb 13163fi
042acc47
WP
13164rm -f core conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13166LIBS=$ac_check_lib_save_LIBS
b57f37fb 13167fi
042acc47
WP
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
13169$as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
12e39525 13170if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
042acc47
WP
13171 cf_enable_openssl=yes
13172else
13173 cf_enable_openssl=no
b57f37fb
WP
13174fi
13175
b57f37fb
WP
13176fi
13177
042acc47
WP
13178if test "$cf_enable_openssl" != no; then
13179 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
13181$as_echo_n "checking for SSL_read in -lssl... " >&6; }
12e39525 13182if ${ac_cv_lib_ssl_SSL_read+:} false; then :
f030cae8 13183 $as_echo_n "(cached) " >&6
b57f37fb 13184else
042acc47
WP
13185 ac_check_lib_save_LIBS=$LIBS
13186LIBS="-lssl -lcrypto $LIBS"
13187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13188/* end confdefs.h. */
b57f37fb 13189
042acc47
WP
13190/* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13193#ifdef __cplusplus
13194extern "C"
13195#endif
13196char SSL_read ();
b57f37fb
WP
13197int
13198main ()
13199{
042acc47
WP
13200return SSL_read ();
13201 ;
13202 return 0;
b57f37fb
WP
13203}
13204_ACEOF
042acc47
WP
13205if ac_fn_c_try_link "$LINENO"; then :
13206 ac_cv_lib_ssl_SSL_read=yes
b57f37fb 13207else
042acc47 13208 ac_cv_lib_ssl_SSL_read=no
b57f37fb 13209fi
042acc47
WP
13210rm -f core conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212LIBS=$ac_check_lib_save_LIBS
13213fi
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
13215$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
12e39525 13216if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
042acc47
WP
13217 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
13218else
13219 cf_enable_openssl=no
b57f37fb 13220fi
b57f37fb
WP
13221
13222fi
b57f37fb 13223
b57f37fb
WP
13224
13225
042acc47
WP
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
13227$as_echo_n "checking for GnuTLS... " >&6; }
13228# Check whether --enable-gnutls was given.
13229if test "${enable_gnutls+set}" = set; then :
13230 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
13231else
13232 cf_enable_gnutls="auto"
b57f37fb
WP
13233fi
13234
13235
042acc47
WP
13236if test "$cf_enable_gnutls" != no; then
13237
13238
13239if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13240 if test -n "$ac_tool_prefix"; then
13241 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13242set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244$as_echo_n "checking for $ac_word... " >&6; }
12e39525 13245if ${ac_cv_path_PKG_CONFIG+:} false; then :
f030cae8 13246 $as_echo_n "(cached) " >&6
b57f37fb 13247else
042acc47
WP
13248 case $PKG_CONFIG in
13249 [\\/]* | ?:[\\/]*)
13250 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13251 ;;
13252 *)
13253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254for as_dir in $PATH
13255do
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
13259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13260 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13263 fi
13264done
13265 done
13266IFS=$as_save_IFS
13267
13268 ;;
b57f37fb 13269esac
042acc47
WP
13270fi
13271PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13272if test -n "$PKG_CONFIG"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13274$as_echo "$PKG_CONFIG" >&6; }
b57f37fb 13275else
042acc47
WP
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277$as_echo "no" >&6; }
13278fi
13279
b57f37fb 13280
b57f37fb 13281fi
042acc47
WP
13282if test -z "$ac_cv_path_PKG_CONFIG"; then
13283 ac_pt_PKG_CONFIG=$PKG_CONFIG
13284 # Extract the first word of "pkg-config", so it can be a program name with args.
13285set dummy pkg-config; ac_word=$2
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13287$as_echo_n "checking for $ac_word... " >&6; }
12e39525 13288if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
042acc47
WP
13289 $as_echo_n "(cached) " >&6
13290else
13291 case $ac_pt_PKG_CONFIG in
13292 [\\/]* | ?:[\\/]*)
13293 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13294 ;;
13295 *)
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297for as_dir in $PATH
13298do
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13303 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13305 break 2
13306 fi
13307done
13308 done
13309IFS=$as_save_IFS
b57f37fb 13310
042acc47
WP
13311 ;;
13312esac
13313fi
13314ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13315if test -n "$ac_pt_PKG_CONFIG"; then
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13317$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13318else
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320$as_echo "no" >&6; }
13321fi
b57f37fb 13322
042acc47
WP
13323 if test "x$ac_pt_PKG_CONFIG" = x; then
13324 PKG_CONFIG=""
13325 else
13326 case $cross_compiling:$ac_tool_warned in
13327yes:)
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13330ac_tool_warned=yes ;;
b57f37fb 13331esac
042acc47
WP
13332 PKG_CONFIG=$ac_pt_PKG_CONFIG
13333 fi
b57f37fb 13334else
042acc47
WP
13335 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13336fi
b57f37fb 13337
b57f37fb 13338fi
042acc47
WP
13339if test -n "$PKG_CONFIG"; then
13340 _pkg_min_version=0.9.0
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13342$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13343 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13345$as_echo "yes" >&6; }
13346 else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348$as_echo "no" >&6; }
13349 PKG_CONFIG=""
13350 fi
b57f37fb 13351
042acc47 13352fi
b57f37fb 13353
042acc47
WP
13354pkg_failed=no
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13356$as_echo_n "checking for GNUTLS... " >&6; }
b57f37fb 13357
1800d973
WP
13358if test -n "$GNUTLS_CFLAGS"; then
13359 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13360 elif test -n "$PKG_CONFIG"; then
13361 if test -n "$PKG_CONFIG" && \
042acc47
WP
13362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13363 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13364 ac_status=$?
13365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366 test $ac_status = 0; }; then
13367 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
b57f37fb 13368else
042acc47 13369 pkg_failed=yes
b57f37fb 13370fi
1800d973
WP
13371 else
13372 pkg_failed=untried
b57f37fb 13373fi
1800d973
WP
13374if test -n "$GNUTLS_LIBS"; then
13375 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13376 elif test -n "$PKG_CONFIG"; then
13377 if test -n "$PKG_CONFIG" && \
042acc47
WP
13378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13379 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13380 ac_status=$?
13381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13382 test $ac_status = 0; }; then
13383 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13384else
13385 pkg_failed=yes
13386fi
1800d973
WP
13387 else
13388 pkg_failed=untried
b57f37fb
WP
13389fi
13390
b57f37fb
WP
13391
13392
042acc47 13393if test $pkg_failed = yes; then
b57f37fb 13394
042acc47
WP
13395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13396 _pkg_short_errors_supported=yes
b57f37fb 13397else
042acc47
WP
13398 _pkg_short_errors_supported=no
13399fi
13400 if test $_pkg_short_errors_supported = yes; then
1800d973 13401 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1`
042acc47 13402 else
1800d973 13403 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls" 2>&1`
042acc47
WP
13404 fi
13405 # Put the nasty error message in config.log where it belongs
13406 echo "$GNUTLS_PKG_ERRORS" >&5
b57f37fb 13407
042acc47
WP
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409$as_echo "no" >&6; }
13410 cf_enable_gnutls="no"
13411elif test $pkg_failed = untried; then
13412 cf_enable_gnutls="no"
13413else
13414 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13415 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13417$as_echo "yes" >&6; }
b57f37fb 13418
042acc47 13419 cf_enable_gnutls="yes"
b57f37fb 13420
042acc47
WP
13421fi
13422fi
b57f37fb 13423
042acc47
WP
13424if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
13425 cf_enable_gnutls="no"
13426fi
b57f37fb 13427
042acc47 13428if test x"$cf_enable_openssl" != xno; then
b57f37fb 13429
042acc47 13430$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
b57f37fb 13431
042acc47
WP
13432 GNUTLS_CFLAGS=""
13433 GNUTLS_LIBS=""
13434 SSL_TYPE="openssl"
13435elif test x"$cf_enable_gnutls" != xno; then
13436
13437$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
b57f37fb 13438
042acc47
WP
13439 SSL_LIBS=""
13440 SSL_CFLAGS=""
13441 SSL_TYPE="gnutls"
b57f37fb 13442fi
b57f37fb 13443
b57f37fb 13444
b57f37fb 13445
b57f37fb 13446
042acc47
WP
13447CPPFLAGS="$save_CPPFLAGS"
13448LIBS="$save_LIBS"
13449
13450
b57f37fb
WP
13451
13452
b57f37fb 13453
b57f37fb 13454
042acc47
WP
13455# Check whether --enable-assert was given.
13456if test "${enable_assert+set}" = set; then :
13457 enableval=$enable_assert; assert=$enableval
13458else
13459 assert=no
13460fi
b57f37fb 13461
b57f37fb 13462
042acc47 13463if test "$assert" = no; then
b57f37fb 13464
042acc47 13465$as_echo "#define NDEBUG 1" >>confdefs.h
b57f37fb 13466
042acc47 13467elif test "$assert" = soft; then
b57f37fb 13468
042acc47 13469$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
b57f37fb 13470
b57f37fb 13471
042acc47 13472$as_echo "#define NDEBUG 1" >>confdefs.h
b57f37fb 13473
042acc47
WP
13474elif test "$assert" = yes; then
13475 assert = "hard";
13476fi
13477
13478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
13479$as_echo_n "checking if you want to do a profile build... " >&6; }
13480# Check whether --enable-profile was given.
13481if test "${enable_profile+set}" = set; then :
13482 enableval=$enable_profile; profile=$enableval
b57f37fb 13483else
042acc47
WP
13484 profile=no
13485fi
13486
13487
13488if test "$profile" = yes; then
13489 if test "$ac_cv_c_compiler_gnu" = yes; then
13490 CFLAGS="$CFLAGS -pg -static"
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
13492$as_echo "yes, adding -pg -static" >&6; }
b57f37fb 13493
042acc47
WP
13494$as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
13495
13496 else
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
13498$as_echo "no, profile builds only work with gcc" >&6; }
13499 fi
13500else
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502$as_echo "no" >&6; }
b57f37fb 13503fi
042acc47
WP
13504
13505# Check whether --enable-balloc was given.
13506if test "${enable_balloc+set}" = set; then :
13507 enableval=$enable_balloc; balloc=$enableval
13508else
13509 balloc=yes
b57f37fb
WP
13510fi
13511
13512
042acc47
WP
13513if test "$balloc" = no; then
13514
13515$as_echo "#define NOBALLOC 1" >>confdefs.h
13516
b57f37fb 13517fi
b57f37fb 13518
042acc47
WP
13519# Check whether --enable-warnings was given.
13520if test "${enable_warnings+set}" = set; then :
13521 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"
b57f37fb
WP
13522fi
13523
b57f37fb 13524
b57f37fb 13525
b57f37fb 13526
b57f37fb 13527
b57f37fb 13528
b57f37fb 13529
b57f37fb
WP
13530
13531
13532
042acc47
WP
13533
13534if test "$prefix" = "NONE"; then
13535
13536cat >>confdefs.h <<_ACEOF
13537#define RB_PREFIX "$ac_default_prefix"
b57f37fb 13538_ACEOF
042acc47
WP
13539
13540
b57f37fb 13541else
b57f37fb 13542
b57f37fb 13543
042acc47 13544 prefix=`echo $prefix | sed 's/\/$//'`
b57f37fb 13545
042acc47
WP
13546cat >>confdefs.h <<_ACEOF
13547#define RB_PREFIX "$prefix"
b57f37fb 13548_ACEOF
b57f37fb 13549
042acc47 13550
b57f37fb
WP
13551fi
13552
b57f37fb 13553
b57f37fb 13554
042acc47 13555ac_config_commands="$ac_config_commands include/librb-config.h"
b57f37fb 13556
b57f37fb 13557
b57f37fb 13558
042acc47 13559ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
b57f37fb
WP
13560
13561
042acc47
WP
13562cat >confcache <<\_ACEOF
13563# This file is a shell script that caches the results of configure
13564# tests run on this system so they can be shared between configure
13565# scripts and configure runs, see configure's option --config-cache.
13566# It is not useful on other systems. If it contains results you don't
13567# want to keep, you may remove or edit it.
13568#
13569# config.status only pays attention to the cache file if you give it
13570# the --recheck option to rerun configure.
13571#
13572# `ac_cv_env_foo' variables (set or unset) will be overridden when
13573# loading this file, other *unset* `ac_cv_foo' will be assigned the
13574# following values.
13575
b57f37fb 13576_ACEOF
b57f37fb 13577
042acc47
WP
13578# The following way of writing the cache mishandles newlines in values,
13579# but we know of no workaround that is simple, portable, and efficient.
13580# So, we kill variables containing newlines.
13581# Ultrix sh set writes to stderr and can't be redirected directly,
13582# and sets the high bit in the cache file unless we assign to the vars.
13583(
13584 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13585 eval ac_val=\$$ac_var
13586 case $ac_val in #(
13587 *${as_nl}*)
13588 case $ac_var in #(
13589 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13590$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13591 esac
13592 case $ac_var in #(
13593 _ | IFS | as_nl) ;; #(
13594 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13595 *) { eval $ac_var=; unset $ac_var;} ;;
13596 esac ;;
13597 esac
13598 done
13599
13600 (set) 2>&1 |
13601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13602 *${as_nl}ac_space=\ *)
13603 # `set' does not quote correctly, so add quotes: double-quote
13604 # substitution turns \\\\ into \\, and sed turns \\ into \.
13605 sed -n \
13606 "s/'/'\\\\''/g;
13607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13608 ;; #(
13609 *)
13610 # `set' quotes correctly as required by POSIX, so do not add quotes.
13611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13612 ;;
13613 esac |
13614 sort
13615) |
13616 sed '
13617 /^ac_cv_env_/b end
13618 t clear
13619 :clear
13620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13621 t end
13622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13623 :end' >>confcache
13624if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13625 if test -w "$cache_file"; then
12e39525 13626 if test "x$cache_file" != "x/dev/null"; then
042acc47
WP
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13628$as_echo "$as_me: updating cache $cache_file" >&6;}
12e39525
JH
13629 if test ! -f "$cache_file" || test -h "$cache_file"; then
13630 cat confcache >"$cache_file"
13631 else
13632 case $cache_file in #(
13633 */* | ?:*)
13634 mv -f confcache "$cache_file"$$ &&
13635 mv -f "$cache_file"$$ "$cache_file" ;; #(
13636 *)
13637 mv -f confcache "$cache_file" ;;
13638 esac
13639 fi
13640 fi
042acc47
WP
13641 else
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13643$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13644 fi
13645fi
13646rm -f confcache
13647
13648test "x$prefix" = xNONE && prefix=$ac_default_prefix
13649# Let make expand exec_prefix.
13650test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b57f37fb 13651
042acc47 13652DEFS=-DHAVE_CONFIG_H
b57f37fb 13653
042acc47
WP
13654ac_libobjs=
13655ac_ltlibobjs=
12e39525 13656U=
042acc47
WP
13657for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13658 # 1. Remove the extension, and $U if already installed.
13659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13660 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13662 # will be set to the directory where LIBOBJS objects are built.
13663 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13664 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13665done
13666LIBOBJS=$ac_libobjs
b57f37fb 13667
042acc47 13668LTLIBOBJS=$ac_ltlibobjs
b57f37fb 13669
b57f37fb 13670
042acc47
WP
13671 if test -n "$EXEEXT"; then
13672 am__EXEEXT_TRUE=
13673 am__EXEEXT_FALSE='#'
13674else
13675 am__EXEEXT_TRUE='#'
13676 am__EXEEXT_FALSE=
b57f37fb
WP
13677fi
13678
042acc47 13679if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12e39525 13680 as_fn_error $? "conditional \"AMDEP\" was never defined.
042acc47 13681Usually this means the macro was only invoked conditionally." "$LINENO" 5
b57f37fb 13682fi
042acc47 13683if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12e39525 13684 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
042acc47
WP
13685Usually this means the macro was only invoked conditionally." "$LINENO" 5
13686fi
13687if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12e39525 13688 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
042acc47
WP
13689Usually this means the macro was only invoked conditionally." "$LINENO" 5
13690fi
13691if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
12e39525 13692 as_fn_error $? "conditional \"MINGW\" was never defined.
042acc47 13693Usually this means the macro was only invoked conditionally." "$LINENO" 5
b57f37fb 13694fi
b57f37fb 13695
12e39525 13696: "${CONFIG_STATUS=./config.status}"
042acc47
WP
13697ac_write_fail=0
13698ac_clean_files_save=$ac_clean_files
13699ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13701$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13702as_write_fail=0
13703cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13704#! $SHELL
13705# Generated by $as_me.
13706# Run this file to recreate the current configuration.
13707# Compiler output produced by configure, useful for debugging
13708# configure, is in config.log if it exists.
b57f37fb 13709
042acc47
WP
13710debug=false
13711ac_cs_recheck=false
13712ac_cs_silent=false
b57f37fb 13713
042acc47
WP
13714SHELL=\${CONFIG_SHELL-$SHELL}
13715export SHELL
13716_ASEOF
13717cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13718## -------------------- ##
13719## M4sh Initialization. ##
13720## -------------------- ##
b57f37fb 13721
042acc47
WP
13722# Be more Bourne compatible
13723DUALCASE=1; export DUALCASE # for MKS sh
13724if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13725 emulate sh
13726 NULLCMD=:
13727 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13728 # is contrary to our usage. Disable this feature.
13729 alias -g '${1+"$@"}'='"$@"'
13730 setopt NO_GLOB_SUBST
13731else
13732 case `(set -o) 2>/dev/null` in #(
13733 *posix*) :
13734 set -o posix ;; #(
13735 *) :
13736 ;;
13737esac
13738fi
b57f37fb 13739
b57f37fb 13740
042acc47
WP
13741as_nl='
13742'
13743export as_nl
13744# Printing a long string crashes Solaris 7 /usr/bin/printf.
13745as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13746as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13747as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13748# Prefer a ksh shell builtin over an external printf program on Solaris,
13749# but without wasting forks for bash or zsh.
13750if test -z "$BASH_VERSION$ZSH_VERSION" \
13751 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13752 as_echo='print -r --'
13753 as_echo_n='print -rn --'
13754elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13755 as_echo='printf %s\n'
13756 as_echo_n='printf %s'
b57f37fb 13757else
042acc47
WP
13758 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13759 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13760 as_echo_n='/usr/ucb/echo -n'
13761 else
13762 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13763 as_echo_n_body='eval
13764 arg=$1;
13765 case $arg in #(
13766 *"$as_nl"*)
13767 expr "X$arg" : "X\\(.*\\)$as_nl";
13768 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13769 esac;
13770 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13771 '
13772 export as_echo_n_body
13773 as_echo_n='sh -c $as_echo_n_body as_echo'
13774 fi
13775 export as_echo_body
13776 as_echo='sh -c $as_echo_body as_echo'
b57f37fb 13777fi
042acc47
WP
13778
13779# The user is always right.
13780if test "${PATH_SEPARATOR+set}" != set; then
13781 PATH_SEPARATOR=:
13782 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13783 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13784 PATH_SEPARATOR=';'
13785 }
b57f37fb
WP
13786fi
13787
13788
042acc47
WP
13789# IFS
13790# We need space, tab and new line, in precisely that order. Quoting is
13791# there to prevent editors from complaining about space-tab.
13792# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13793# splitting by setting IFS to empty value.)
13794IFS=" "" $as_nl"
b57f37fb 13795
042acc47 13796# Find who we are. Look in the path if we contain no directory separator.
12e39525 13797as_myself=
042acc47
WP
13798case $0 in #((
13799 *[\\/]* ) as_myself=$0 ;;
13800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801for as_dir in $PATH
13802do
13803 IFS=$as_save_IFS
13804 test -z "$as_dir" && as_dir=.
13805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13806 done
13807IFS=$as_save_IFS
b57f37fb 13808
042acc47
WP
13809 ;;
13810esac
13811# We did not find ourselves, most probably we were run as `sh COMMAND'
13812# in which case we are not to be found in the path.
13813if test "x$as_myself" = x; then
13814 as_myself=$0
13815fi
13816if test ! -f "$as_myself"; then
13817 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13818 exit 1
b57f37fb 13819fi
b57f37fb 13820
042acc47
WP
13821# Unset variables that we do not need and which cause bugs (e.g. in
13822# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13823# suppresses any "Segmentation fault" message there. '((' could
13824# trigger a bug in pdksh 5.2.14.
13825for as_var in BASH_ENV ENV MAIL MAILPATH
13826do eval test x\${$as_var+set} = xset \
13827 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13828done
13829PS1='$ '
13830PS2='> '
13831PS4='+ '
b57f37fb 13832
042acc47
WP
13833# NLS nuisances.
13834LC_ALL=C
13835export LC_ALL
13836LANGUAGE=C
13837export LANGUAGE
b57f37fb 13838
042acc47
WP
13839# CDPATH.
13840(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
b57f37fb 13841
b57f37fb 13842
12e39525
JH
13843# as_fn_error STATUS ERROR [LINENO LOG_FD]
13844# ----------------------------------------
042acc47
WP
13845# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13846# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12e39525 13847# script with STATUS, using 1 if that was 0.
042acc47
WP
13848as_fn_error ()
13849{
12e39525
JH
13850 as_status=$1; test $as_status -eq 0 && as_status=1
13851 if test "$4"; then
13852 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13853 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
042acc47 13854 fi
12e39525 13855 $as_echo "$as_me: error: $2" >&2
042acc47
WP
13856 as_fn_exit $as_status
13857} # as_fn_error
b57f37fb 13858
b57f37fb 13859
042acc47
WP
13860# as_fn_set_status STATUS
13861# -----------------------
13862# Set $? to STATUS, without forking.
13863as_fn_set_status ()
13864{
13865 return $1
13866} # as_fn_set_status
13867
13868# as_fn_exit STATUS
13869# -----------------
13870# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13871as_fn_exit ()
13872{
13873 set +e
13874 as_fn_set_status $1
13875 exit $1
13876} # as_fn_exit
13877
13878# as_fn_unset VAR
13879# ---------------
13880# Portably unset VAR.
13881as_fn_unset ()
13882{
13883 { eval $1=; unset $1;}
13884}
13885as_unset=as_fn_unset
13886# as_fn_append VAR VALUE
13887# ----------------------
13888# Append the text in VALUE to the end of the definition contained in VAR. Take
13889# advantage of any shell optimizations that allow amortized linear growth over
13890# repeated appends, instead of the typical quadratic growth present in naive
13891# implementations.
13892if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13893 eval 'as_fn_append ()
13894 {
13895 eval $1+=\$2
13896 }'
13897else
13898 as_fn_append ()
13899 {
13900 eval $1=\$$1\$2
13901 }
13902fi # as_fn_append
13903
13904# as_fn_arith ARG...
13905# ------------------
13906# Perform arithmetic evaluation on the ARGs, and store the result in the
13907# global $as_val. Take advantage of shells that can avoid forks. The arguments
13908# must be portable across $(()) and expr.
13909if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13910 eval 'as_fn_arith ()
13911 {
13912 as_val=$(( $* ))
13913 }'
13914else
13915 as_fn_arith ()
13916 {
13917 as_val=`expr "$@" || test $? -eq 1`
13918 }
13919fi # as_fn_arith
13920
b57f37fb 13921
042acc47
WP
13922if expr a : '\(a\)' >/dev/null 2>&1 &&
13923 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13924 as_expr=expr
13925else
13926 as_expr=false
b57f37fb
WP
13927fi
13928
042acc47
WP
13929if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13930 as_basename=basename
13931else
13932 as_basename=false
13933fi
b57f37fb 13934
042acc47
WP
13935if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13936 as_dirname=dirname
b57f37fb 13937else
042acc47 13938 as_dirname=false
b57f37fb
WP
13939fi
13940
042acc47
WP
13941as_me=`$as_basename -- "$0" ||
13942$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13943 X"$0" : 'X\(//\)$' \| \
13944 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13945$as_echo X/"$0" |
13946 sed '/^.*\/\([^/][^/]*\)\/*$/{
13947 s//\1/
13948 q
13949 }
13950 /^X\/\(\/\/\)$/{
13951 s//\1/
13952 q
13953 }
13954 /^X\/\(\/\).*/{
13955 s//\1/
13956 q
13957 }
13958 s/.*/./; q'`
b57f37fb 13959
042acc47
WP
13960# Avoid depending upon Character Ranges.
13961as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13962as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13963as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13964as_cr_digits='0123456789'
13965as_cr_alnum=$as_cr_Letters$as_cr_digits
b57f37fb 13966
042acc47
WP
13967ECHO_C= ECHO_N= ECHO_T=
13968case `echo -n x` in #(((((
13969-n*)
13970 case `echo 'xy\c'` in
13971 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13972 xy) ECHO_C='\c';;
13973 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13974 ECHO_T=' ';;
13975 esac;;
13976*)
13977 ECHO_N='-n';;
13978esac
13979
13980rm -f conf$$ conf$$.exe conf$$.file
13981if test -d conf$$.dir; then
13982 rm -f conf$$.dir/conf$$.file
b57f37fb 13983else
042acc47
WP
13984 rm -f conf$$.dir
13985 mkdir conf$$.dir 2>/dev/null
b57f37fb 13986fi
042acc47
WP
13987if (echo >conf$$.file) 2>/dev/null; then
13988 if ln -s conf$$.file conf$$ 2>/dev/null; then
13989 as_ln_s='ln -s'
13990 # ... but there are two gotchas:
13991 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13992 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13993 # In both cases, we have to default to `cp -p'.
13994 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13995 as_ln_s='cp -p'
13996 elif ln conf$$.file conf$$ 2>/dev/null; then
13997 as_ln_s=ln
13998 else
13999 as_ln_s='cp -p'
14000 fi
b57f37fb 14001else
042acc47
WP
14002 as_ln_s='cp -p'
14003fi
14004rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14005rmdir conf$$.dir 2>/dev/null
14006
14007
14008# as_fn_mkdir_p
14009# -------------
14010# Create "$as_dir" as a directory, including parents if necessary.
14011as_fn_mkdir_p ()
b57f37fb 14012{
b57f37fb 14013
042acc47
WP
14014 case $as_dir in #(
14015 -*) as_dir=./$as_dir;;
14016 esac
14017 test -d "$as_dir" || eval $as_mkdir_p || {
14018 as_dirs=
14019 while :; do
14020 case $as_dir in #(
14021 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14022 *) as_qdir=$as_dir;;
14023 esac
14024 as_dirs="'$as_qdir' $as_dirs"
14025 as_dir=`$as_dirname -- "$as_dir" ||
14026$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14027 X"$as_dir" : 'X\(//\)[^/]' \| \
14028 X"$as_dir" : 'X\(//\)$' \| \
14029 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14030$as_echo X"$as_dir" |
14031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14032 s//\1/
14033 q
14034 }
14035 /^X\(\/\/\)[^/].*/{
14036 s//\1/
14037 q
14038 }
14039 /^X\(\/\/\)$/{
14040 s//\1/
14041 q
14042 }
14043 /^X\(\/\).*/{
14044 s//\1/
14045 q
14046 }
14047 s/.*/./; q'`
14048 test -d "$as_dir" && break
14049 done
14050 test -z "$as_dirs" || eval "mkdir $as_dirs"
12e39525 14051 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
042acc47
WP
14052
14053
14054} # as_fn_mkdir_p
14055if mkdir -p . 2>/dev/null; then
14056 as_mkdir_p='mkdir -p "$as_dir"'
14057else
14058 test -d ./-p && rmdir ./-p
14059 as_mkdir_p=false
b57f37fb 14060fi
042acc47
WP
14061
14062if test -x / >/dev/null 2>&1; then
14063 as_test_x='test -x'
14064else
14065 if ls -dL / >/dev/null 2>&1; then
14066 as_ls_L_option=L
14067 else
14068 as_ls_L_option=
14069 fi
14070 as_test_x='
14071 eval sh -c '\''
14072 if test -d "$1"; then
14073 test -d "$1/.";
14074 else
14075 case $1 in #(
14076 -*)set "./$1";;
14077 esac;
14078 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14079 ???[sx]*):;;*)false;;esac;fi
14080 '\'' sh
14081 '
b57f37fb 14082fi
042acc47 14083as_executable_p=$as_test_x
b57f37fb 14084
042acc47
WP
14085# Sed expression to map a string onto a valid CPP name.
14086as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb 14087
042acc47
WP
14088# Sed expression to map a string onto a valid variable name.
14089as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb 14090
b57f37fb 14091
042acc47
WP
14092exec 6>&1
14093## ----------------------------------- ##
14094## Main body of $CONFIG_STATUS script. ##
14095## ----------------------------------- ##
14096_ASEOF
14097test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b57f37fb 14098
042acc47
WP
14099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14100# Save the log message, to keep $0 and so on meaningful, and to
14101# report actual input values of CONFIG_FILES etc. instead of their
14102# values after options handling.
14103ac_log="
14104This file was extended by libratbox $as_me devel, which was
12e39525 14105generated by GNU Autoconf 2.68. Invocation command line was
b57f37fb 14106
042acc47
WP
14107 CONFIG_FILES = $CONFIG_FILES
14108 CONFIG_HEADERS = $CONFIG_HEADERS
14109 CONFIG_LINKS = $CONFIG_LINKS
14110 CONFIG_COMMANDS = $CONFIG_COMMANDS
14111 $ $0 $@
14112
14113on `(hostname || uname -n) 2>/dev/null | sed 1q`
14114"
b57f37fb 14115
b57f37fb 14116_ACEOF
042acc47
WP
14117
14118case $ac_config_files in *"
14119"*) set x $ac_config_files; shift; ac_config_files=$*;;
b57f37fb 14120esac
b57f37fb 14121
042acc47
WP
14122case $ac_config_headers in *"
14123"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14124esac
b57f37fb 14125
b57f37fb 14126
042acc47
WP
14127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128# Files that config.status was made for.
14129config_files="$ac_config_files"
14130config_headers="$ac_config_headers"
14131config_commands="$ac_config_commands"
b57f37fb 14132
b57f37fb 14133_ACEOF
b57f37fb 14134
042acc47
WP
14135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136ac_cs_usage="\
14137\`$as_me' instantiates files and other configuration actions
14138from templates according to the current configuration. Unless the files
14139and actions are specified as TAGs, all are instantiated by default.
14140
14141Usage: $0 [OPTION]... [TAG]...
14142
14143 -h, --help print this help, then exit
14144 -V, --version print version number and configuration settings, then exit
1800d973 14145 --config print configuration, then exit
042acc47
WP
14146 -q, --quiet, --silent
14147 do not print progress messages
14148 -d, --debug don't remove temporary files
14149 --recheck update $as_me by reconfiguring in the same conditions
14150 --file=FILE[:TEMPLATE]
14151 instantiate the configuration file FILE
14152 --header=FILE[:TEMPLATE]
14153 instantiate the configuration header FILE
14154
14155Configuration files:
14156$config_files
14157
14158Configuration headers:
14159$config_headers
14160
14161Configuration commands:
14162$config_commands
14163
14164Report bugs to the package provider."
14165
b57f37fb 14166_ACEOF
042acc47 14167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1800d973 14168ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
042acc47
WP
14169ac_cs_version="\\
14170libratbox config.status devel
12e39525 14171configured by $0, generated by GNU Autoconf 2.68,
1800d973 14172 with options \\"\$ac_cs_config\\"
b57f37fb 14173
12e39525 14174Copyright (C) 2010 Free Software Foundation, Inc.
042acc47
WP
14175This config.status script is free software; the Free Software Foundation
14176gives unlimited permission to copy, distribute and modify it."
b57f37fb 14177
042acc47
WP
14178ac_pwd='$ac_pwd'
14179srcdir='$srcdir'
14180INSTALL='$INSTALL'
14181MKDIR_P='$MKDIR_P'
14182AWK='$AWK'
14183test -n "\$AWK" || AWK=awk
14184_ACEOF
b57f37fb 14185
042acc47
WP
14186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14187# The default lists apply if the user does not specify any file.
14188ac_need_defaults=:
14189while test $# != 0
14190do
14191 case $1 in
12e39525 14192 --*=?*)
042acc47
WP
14193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14194 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14195 ac_shift=:
14196 ;;
12e39525
JH
14197 --*=)
14198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14199 ac_optarg=
14200 ac_shift=:
14201 ;;
042acc47
WP
14202 *)
14203 ac_option=$1
14204 ac_optarg=$2
14205 ac_shift=shift
14206 ;;
14207 esac
14208
14209 case $ac_option in
14210 # Handling of the options.
14211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14212 ac_cs_recheck=: ;;
14213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14214 $as_echo "$ac_cs_version"; exit ;;
1800d973
WP
14215 --config | --confi | --conf | --con | --co | --c )
14216 $as_echo "$ac_cs_config"; exit ;;
042acc47
WP
14217 --debug | --debu | --deb | --de | --d | -d )
14218 debug=: ;;
14219 --file | --fil | --fi | --f )
14220 $ac_shift
14221 case $ac_optarg in
14222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12e39525 14223 '') as_fn_error $? "missing file argument" ;;
042acc47
WP
14224 esac
14225 as_fn_append CONFIG_FILES " '$ac_optarg'"
14226 ac_need_defaults=false;;
14227 --header | --heade | --head | --hea )
14228 $ac_shift
14229 case $ac_optarg in
14230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14231 esac
14232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14233 ac_need_defaults=false;;
14234 --he | --h)
14235 # Conflict between --help and --header
12e39525 14236 as_fn_error $? "ambiguous option: \`$1'
042acc47
WP
14237Try \`$0 --help' for more information.";;
14238 --help | --hel | -h )
14239 $as_echo "$ac_cs_usage"; exit ;;
14240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14242 ac_cs_silent=: ;;
14243
14244 # This is an error.
12e39525 14245 -*) as_fn_error $? "unrecognized option: \`$1'
042acc47
WP
14246Try \`$0 --help' for more information." ;;
14247
14248 *) as_fn_append ac_config_targets " $1"
14249 ac_need_defaults=false ;;
14250
14251 esac
14252 shift
14253done
b57f37fb 14254
042acc47 14255ac_configure_extra_args=
033be687 14256
042acc47
WP
14257if $ac_cs_silent; then
14258 exec 6>/dev/null
14259 ac_configure_extra_args="$ac_configure_extra_args --silent"
14260fi
033be687 14261
042acc47
WP
14262_ACEOF
14263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14264if \$ac_cs_recheck; then
14265 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14266 shift
14267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14268 CONFIG_SHELL='$SHELL'
14269 export CONFIG_SHELL
14270 exec "\$@"
033be687
VY
14271fi
14272
042acc47
WP
14273_ACEOF
14274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14275exec 5>>config.log
14276{
14277 echo
14278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14279## Running $as_me. ##
14280_ASBOX
14281 $as_echo "$ac_log"
14282} >&5
033be687 14283
042acc47
WP
14284_ACEOF
14285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14286#
14287# INIT-COMMANDS
14288#
14289AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
033be687
VY
14290
14291
042acc47
WP
14292# The HP-UX ksh and POSIX shell print the target directory to stdout
14293# if CDPATH is set.
14294(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14295
14296sed_quote_subst='$sed_quote_subst'
14297double_quote_subst='$double_quote_subst'
14298delay_variable_subst='$delay_variable_subst'
14299enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14300enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14301macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14302macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14303pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14304enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14305host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14306host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14307host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14308build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14309build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14310build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14311SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14312Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14313GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14314EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14315FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14316LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14317NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14318LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14319max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14320ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14321exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14322lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14323lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14324lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14325reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14326reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14327OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14328deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14329file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14330AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14331AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14332STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14333RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14334old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14335old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14336old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14337CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14338CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14339compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14340GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14341lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14342lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14343lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14344lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14345objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14346SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14347ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14348MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14349lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14350lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14351lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14352lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14353lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14354need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14355DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14356NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14357LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14358OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14359OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14360libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14361shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14362extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14363archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14364enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14365export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14366whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14367compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14368old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14369old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14370archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14371archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14372module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14373module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14374with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14375allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14376no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14377hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14378hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14379hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14380hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14381hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14382hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14383hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14384hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14385inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14386link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14387fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14388always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14389export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14390exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14391include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14392prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14393file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14394variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14395need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14396need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14397version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14398runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14399shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14400shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14401libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14402library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14403soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14404postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14405postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14406finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14407finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14408hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14409sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14410sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14411hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14412enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14413enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14414enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14415old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14416striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14417
14418LTCC='$LTCC'
14419LTCFLAGS='$LTCFLAGS'
14420compiler='$compiler_DEFAULT'
14421
14422# Quote evaled strings.
14423for var in SED \
14424GREP \
14425EGREP \
14426FGREP \
14427LD \
14428NM \
14429LN_S \
14430lt_SP2NL \
14431lt_NL2SP \
14432reload_flag \
14433OBJDUMP \
14434deplibs_check_method \
14435file_magic_cmd \
14436AR \
14437AR_FLAGS \
14438STRIP \
14439RANLIB \
14440CC \
14441CFLAGS \
14442compiler \
14443lt_cv_sys_global_symbol_pipe \
14444lt_cv_sys_global_symbol_to_cdecl \
14445lt_cv_sys_global_symbol_to_c_name_address \
14446lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14447SHELL \
14448ECHO \
14449lt_prog_compiler_no_builtin_flag \
14450lt_prog_compiler_wl \
14451lt_prog_compiler_pic \
14452lt_prog_compiler_static \
14453lt_cv_prog_compiler_c_o \
14454need_locks \
14455DSYMUTIL \
14456NMEDIT \
14457LIPO \
14458OTOOL \
14459OTOOL64 \
14460shrext_cmds \
14461export_dynamic_flag_spec \
14462whole_archive_flag_spec \
14463compiler_needs_object \
14464with_gnu_ld \
14465allow_undefined_flag \
14466no_undefined_flag \
14467hardcode_libdir_flag_spec \
14468hardcode_libdir_flag_spec_ld \
14469hardcode_libdir_separator \
14470fix_srcfile_path \
14471exclude_expsyms \
14472include_expsyms \
14473file_list_spec \
14474variables_saved_for_relink \
14475libname_spec \
14476library_names_spec \
14477soname_spec \
14478finish_eval \
14479old_striplib \
14480striplib; do
14481 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14482 *[\\\\\\\`\\"\\\$]*)
14483 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14484 ;;
14485 *)
14486 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14487 ;;
14488 esac
033be687 14489done
042acc47
WP
14490
14491# Double-quote double-evaled strings.
14492for var in reload_cmds \
14493old_postinstall_cmds \
14494old_postuninstall_cmds \
14495old_archive_cmds \
14496extract_expsyms_cmds \
14497old_archive_from_new_cmds \
14498old_archive_from_expsyms_cmds \
14499archive_cmds \
14500archive_expsym_cmds \
14501module_cmds \
14502module_expsym_cmds \
14503export_symbols_cmds \
14504prelink_cmds \
14505postinstall_cmds \
14506postuninstall_cmds \
14507finish_cmds \
14508sys_lib_search_path_spec \
14509sys_lib_dlsearch_path_spec; do
14510 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14511 *[\\\\\\\`\\"\\\$]*)
14512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14513 ;;
14514 *)
14515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14516 ;;
14517 esac
033be687 14518done
033be687 14519
042acc47
WP
14520# Fix-up fallback echo if it was mangled by the above quoting rules.
14521case \$lt_ECHO in
14522*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
033be687
VY
14523 ;;
14524esac
033be687 14525
042acc47
WP
14526ac_aux_dir='$ac_aux_dir'
14527xsi_shell='$xsi_shell'
14528lt_shell_append='$lt_shell_append'
033be687 14529
042acc47
WP
14530# See if we are running on zsh, and set the options which allow our
14531# commands through without removal of \ escapes INIT.
14532if test -n "\${ZSH_VERSION+set}" ; then
14533 setopt NO_GLOB_SUBST
033be687 14534fi
033be687 14535
033be687 14536
042acc47
WP
14537 PACKAGE='$PACKAGE'
14538 VERSION='$VERSION'
14539 TIMESTAMP='$TIMESTAMP'
14540 RM='$RM'
14541 ofile='$ofile'
033be687 14542
033be687 14543
033be687 14544
033be687 14545
042acc47
WP
14546 if test x$ac_cv_header_stdc = xyes; then
14547 rb_header_stdc=yes
14548 fi
14549 if test x$ac_cv_header_stdlib_h = xyes; then
14550 rb_header_stdlib_h=yes
14551 fi
14552 if test x$ac_cv_header_string_h = xyes; then
14553 rb_header_string_h=yes
14554 fi
14555 if test x$ac_cv_header_memory_h = xyes; then
14556 rb_header_memory_h=yes
14557 fi
14558 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
14559 rb_alloca_h="$ac_cv_working_alloca_h"
14560 else
14561 rb_alloc_h="$ac_cv_header_alloca_h"
14562 fi
14563 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
14564 rb_sockaddr_sa_len=yes
14565 fi
14566 if test x$ac_cv_header_sys_socket_h = xyes; then
14567 rb_sys_socket_h=yes
14568 fi
14569 if test x$ac_cv_header_sys_types_h = xyes; then
14570 rb_sys_types_h=yes
14571 fi
14572 if test x$ac_cv_header_sys_stat_h = xyes; then
14573 rb_sys_stat_h=yes
14574 fi
14575 if test x$ac_cv_header_sys_time_h = xyes; then
14576 rb_sys_time_h=yes
14577 fi
14578 if test x$ac_cv_header_time = xyes; then
14579 rb_time_h=yes
14580 fi
033be687 14581
042acc47
WP
14582 if test x$ac_cv_header_stdint_h = xyes; then
14583 rb_stdint_h=yes
14584 fi
14585 if test x$ac_cv_header_inttypes_h = xyes; then
14586 rb_inttypes_h=yes
14587 fi
14588 if test x$ac_cv_header_netinet_in_h = xyes; then
14589 rb_netinet_in_h=yes
14590 fi
033be687 14591
042acc47
WP
14592 if test x$ac_cv_header_crypt_h = xyes; then
14593 rb_crypt_h=yes
14594 fi
14595 if test x$ac_cv_header_errno_h = xyes; then
14596 rb_errno_h=yes
14597 fi
14598 if test x$ac_cv_header_unistd_h = xyes; then
14599 rb_unistd_h=yes
14600 fi
14601 if test x$ac_cv_header_windows_h = xyes; then
14602 rb_windows_h=yes
14603 fi
14604 if test x$ac_cv_header_winsock2_h = xyes; then
14605 rb_winsock2_h=yes
14606 fi
033be687 14607
042acc47 14608 rb_socklen_t=$rb_socklen_t
033be687 14609
042acc47
WP
14610 if test "x$rb_have_sockaddr_storage" = "xyes"; then
14611 rb_sockaddr_storage="yes"
14612 else
14613 rb_sockaddr_storage="no"
14614 fi
033be687 14615
042acc47 14616 rb_have_ipv6="$have_v6"
033be687 14617
042acc47
WP
14618 rb_mv="$MV"
14619 rb_rm="$RM"
033be687 14620
033be687 14621
033be687 14622
b57f37fb 14623
b57f37fb 14624
033be687 14625
033be687
VY
14626_ACEOF
14627
042acc47 14628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b57f37fb 14629
042acc47
WP
14630# Handling of arguments.
14631for ac_config_target in $ac_config_targets
14632do
14633 case $ac_config_target in
14634 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
14635 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14636 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14637 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
14638 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14639 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14640 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
033be687 14641
12e39525 14642 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
042acc47
WP
14643 esac
14644done
033be687 14645
b57f37fb 14646
042acc47
WP
14647# If the user did not use the arguments to specify the items to instantiate,
14648# then the envvar interface is used. Set only those that are not.
14649# We use the long form for the default assignment because of an extremely
14650# bizarre bug on SunOS 4.1.3.
14651if $ac_need_defaults; then
14652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14655fi
b57f37fb 14656
042acc47
WP
14657# Have a temporary directory for convenience. Make it in the build tree
14658# simply because there is no reason against having it here, and in addition,
14659# creating and moving files from /tmp can sometimes cause problems.
14660# Hook for its removal unless debugging.
14661# Note that there is a small window in which the directory will not be cleaned:
14662# after its creation but before its name has been assigned to `$tmp'.
14663$debug ||
14664{
12e39525 14665 tmp= ac_tmp=
042acc47 14666 trap 'exit_status=$?
12e39525
JH
14667 : "${ac_tmp:=$tmp}"
14668 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
042acc47
WP
14669' 0
14670 trap 'as_fn_exit 1' 1 2 13 15
14671}
14672# Create a (secure) tmp directory for tmp files.
b57f37fb 14673
042acc47
WP
14674{
14675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12e39525 14676 test -d "$tmp"
042acc47
WP
14677} ||
14678{
14679 tmp=./conf$$-$RANDOM
14680 (umask 077 && mkdir "$tmp")
12e39525
JH
14681} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14682ac_tmp=$tmp
b57f37fb 14683
042acc47
WP
14684# Set up the scripts for CONFIG_FILES section.
14685# No need to generate them if there are no CONFIG_FILES.
14686# This happens for instance with `./config.status config.h'.
14687if test -n "$CONFIG_FILES"; then
b57f37fb
WP
14688
14689
042acc47
WP
14690ac_cr=`echo X | tr X '\015'`
14691# On cygwin, bash can eat \r inside `` if the user requested igncr.
14692# But we know of no other shell where ac_cr would be empty at this
14693# point, so we can use a bashism as a fallback.
14694if test "x$ac_cr" = x; then
14695 eval ac_cr=\$\'\\r\'
14696fi
14697ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14698if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12e39525 14699 ac_cs_awk_cr='\\r'
b57f37fb 14700else
042acc47 14701 ac_cs_awk_cr=$ac_cr
b57f37fb
WP
14702fi
14703
12e39525 14704echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b57f37fb
WP
14705_ACEOF
14706
b57f37fb 14707
042acc47
WP
14708{
14709 echo "cat >conf$$subs.awk <<_ACEOF" &&
14710 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14711 echo "_ACEOF"
14712} >conf$$subs.sh ||
12e39525
JH
14713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14714ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
042acc47
WP
14715ac_delim='%!_!# '
14716for ac_last_try in false false false false false :; do
14717 . ./conf$$subs.sh ||
12e39525 14718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b57f37fb 14719
042acc47
WP
14720 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14721 if test $ac_delim_n = $ac_delim_num; then
14722 break
14723 elif $ac_last_try; then
12e39525 14724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
042acc47
WP
14725 else
14726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14727 fi
14728done
14729rm -f conf$$subs.sh
b57f37fb 14730
042acc47 14731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12e39525 14732cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b57f37fb 14733_ACEOF
042acc47
WP
14734sed -n '
14735h
14736s/^/S["/; s/!.*/"]=/
14737p
14738g
14739s/^[^!]*!//
14740:repl
14741t repl
14742s/'"$ac_delim"'$//
14743t delim
14744:nl
14745h
1800d973 14746s/\(.\{148\}\)..*/\1/
042acc47
WP
14747t more1
14748s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14749p
14750n
14751b repl
14752:more1
14753s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14754p
14755g
14756s/.\{148\}//
14757t nl
14758:delim
14759h
1800d973 14760s/\(.\{148\}\)..*/\1/
042acc47
WP
14761t more2
14762s/["\\]/\\&/g; s/^/"/; s/$/"/
14763p
14764b
14765:more2
14766s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14767p
14768g
14769s/.\{148\}//
14770t delim
14771' <conf$$subs.awk | sed '
14772/^[^""]/{
14773 N
14774 s/\n//
14775}
14776' >>$CONFIG_STATUS || ac_write_fail=1
14777rm -f conf$$subs.awk
14778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14779_ACAWK
12e39525 14780cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
042acc47
WP
14781 for (key in S) S_is_set[key] = 1
14782 FS = "\a"
b57f37fb 14783
042acc47
WP
14784}
14785{
14786 line = $ 0
14787 nfields = split(line, field, "@")
14788 substed = 0
14789 len = length(field[1])
14790 for (i = 2; i < nfields; i++) {
14791 key = field[i]
14792 keylen = length(key)
14793 if (S_is_set[key]) {
14794 value = S[key]
14795 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14796 len += length(value) + length(field[++i])
14797 substed = 1
14798 } else
14799 len += 1 + keylen
14800 }
b57f37fb 14801
042acc47
WP
14802 print line
14803}
14804
14805_ACAWK
14806_ACEOF
14807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14808if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14809 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b57f37fb 14810else
042acc47 14811 cat
12e39525
JH
14812fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14813 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
042acc47 14814_ACEOF
b57f37fb 14815
12e39525
JH
14816# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14817# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
042acc47
WP
14818# trailing colons and then remove the whole line if VPATH becomes empty
14819# (actually we leave an empty line to preserve line numbers).
14820if test "x$srcdir" = x.; then
12e39525
JH
14821 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14822h
14823s///
14824s/^/:/
14825s/[ ]*$/:/
14826s/:\$(srcdir):/:/g
14827s/:\${srcdir}:/:/g
14828s/:@srcdir@:/:/g
14829s/^:*//
042acc47 14830s/:*$//
12e39525
JH
14831x
14832s/\(=[ ]*\).*/\1/
14833G
14834s/\n//
042acc47
WP
14835s/^[^=]*=[ ]*$//
14836}'
14837fi
b57f37fb 14838
042acc47
WP
14839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14840fi # test -n "$CONFIG_FILES"
b57f37fb 14841
042acc47
WP
14842# Set up the scripts for CONFIG_HEADERS section.
14843# No need to generate them if there are no CONFIG_HEADERS.
14844# This happens for instance with `./config.status Makefile'.
14845if test -n "$CONFIG_HEADERS"; then
12e39525 14846cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
042acc47 14847BEGIN {
b57f37fb
WP
14848_ACEOF
14849
042acc47
WP
14850# Transform confdefs.h into an awk script `defines.awk', embedded as
14851# here-document in config.status, that substitutes the proper values into
14852# config.h.in to produce config.h.
b57f37fb 14853
042acc47
WP
14854# Create a delimiter string that does not exist in confdefs.h, to ease
14855# handling of long lines.
14856ac_delim='%!_!# '
14857for ac_last_try in false false :; do
12e39525
JH
14858 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14859 if test -z "$ac_tt"; then
042acc47
WP
14860 break
14861 elif $ac_last_try; then
12e39525 14862 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
042acc47
WP
14863 else
14864 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14865 fi
14866done
b57f37fb 14867
042acc47
WP
14868# For the awk script, D is an array of macro values keyed by name,
14869# likewise P contains macro parameters if any. Preserve backslash
14870# newline sequences.
b57f37fb 14871
042acc47
WP
14872ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14873sed -n '
14874s/.\{148\}/&'"$ac_delim"'/g
14875t rset
14876:rset
14877s/^[ ]*#[ ]*define[ ][ ]*/ /
14878t def
14879d
14880:def
14881s/\\$//
14882t bsnl
14883s/["\\]/\\&/g
14884s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14885D["\1"]=" \3"/p
14886s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14887d
14888:bsnl
14889s/["\\]/\\&/g
14890s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14891D["\1"]=" \3\\\\\\n"\\/p
14892t cont
14893s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14894t cont
14895d
14896:cont
14897n
14898s/.\{148\}/&'"$ac_delim"'/g
14899t clear
14900:clear
14901s/\\$//
14902t bsnlc
14903s/["\\]/\\&/g; s/^/"/; s/$/"/p
14904d
14905:bsnlc
14906s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14907b cont
14908' <confdefs.h | sed '
14909s/'"$ac_delim"'/"\\\
14910"/g' >>$CONFIG_STATUS || ac_write_fail=1
b57f37fb 14911
042acc47
WP
14912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14913 for (key in D) D_is_set[key] = 1
14914 FS = "\a"
14915}
14916/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14917 line = \$ 0
14918 split(line, arg, " ")
14919 if (arg[1] == "#") {
14920 defundef = arg[2]
14921 mac1 = arg[3]
14922 } else {
14923 defundef = substr(arg[1], 2)
14924 mac1 = arg[2]
14925 }
14926 split(mac1, mac2, "(") #)
14927 macro = mac2[1]
14928 prefix = substr(line, 1, index(line, defundef) - 1)
14929 if (D_is_set[macro]) {
14930 # Preserve the white space surrounding the "#".
14931 print prefix "define", macro P[macro] D[macro]
14932 next
14933 } else {
14934 # Replace #undef with comments. This is necessary, for example,
14935 # in the case of _POSIX_SOURCE, which is predefined and required
14936 # on some systems where configure will not decide to define it.
14937 if (defundef == "undef") {
14938 print "/*", prefix defundef, macro, "*/"
14939 next
14940 }
14941 }
14942}
14943{ print }
14944_ACAWK
b57f37fb 14945_ACEOF
042acc47 14946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12e39525 14947 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
042acc47 14948fi # test -n "$CONFIG_HEADERS"
b57f37fb
WP
14949
14950
042acc47
WP
14951eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14952shift
14953for ac_tag
14954do
14955 case $ac_tag in
14956 :[FHLC]) ac_mode=$ac_tag; continue;;
14957 esac
14958 case $ac_mode$ac_tag in
14959 :[FHL]*:*);;
12e39525 14960 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
042acc47
WP
14961 :[FH]-) ac_tag=-:-;;
14962 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14963 esac
14964 ac_save_IFS=$IFS
14965 IFS=:
14966 set x $ac_tag
14967 IFS=$ac_save_IFS
14968 shift
14969 ac_file=$1
14970 shift
b57f37fb 14971
042acc47
WP
14972 case $ac_mode in
14973 :L) ac_source=$1;;
14974 :[FH])
14975 ac_file_inputs=
14976 for ac_f
14977 do
14978 case $ac_f in
12e39525 14979 -) ac_f="$ac_tmp/stdin";;
042acc47
WP
14980 *) # Look for the file first in the build tree, then in the source tree
14981 # (if the path is not absolute). The absolute path cannot be DOS-style,
14982 # because $ac_f cannot contain `:'.
14983 test -f "$ac_f" ||
14984 case $ac_f in
14985 [\\/$]*) false;;
14986 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14987 esac ||
12e39525 14988 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
042acc47
WP
14989 esac
14990 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14991 as_fn_append ac_file_inputs " '$ac_f'"
14992 done
b57f37fb 14993
042acc47
WP
14994 # Let's still pretend it is `configure' which instantiates (i.e., don't
14995 # use $as_me), people would be surprised to read:
14996 # /* config.h. Generated by config.status. */
14997 configure_input='Generated from '`
14998 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14999 `' by configure.'
15000 if test x"$ac_file" != x-; then
15001 configure_input="$ac_file. $configure_input"
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15003$as_echo "$as_me: creating $ac_file" >&6;}
15004 fi
15005 # Neutralize special characters interpreted by sed in replacement strings.
15006 case $configure_input in #(
15007 *\&* | *\|* | *\\* )
15008 ac_sed_conf_input=`$as_echo "$configure_input" |
15009 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15010 *) ac_sed_conf_input=$configure_input;;
15011 esac
b57f37fb 15012
042acc47 15013 case $ac_tag in
12e39525
JH
15014 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
042acc47
WP
15016 esac
15017 ;;
15018 esac
b57f37fb 15019
042acc47
WP
15020 ac_dir=`$as_dirname -- "$ac_file" ||
15021$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15022 X"$ac_file" : 'X\(//\)[^/]' \| \
15023 X"$ac_file" : 'X\(//\)$' \| \
15024 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15025$as_echo X"$ac_file" |
15026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15027 s//\1/
15028 q
15029 }
15030 /^X\(\/\/\)[^/].*/{
15031 s//\1/
15032 q
15033 }
15034 /^X\(\/\/\)$/{
15035 s//\1/
15036 q
15037 }
15038 /^X\(\/\).*/{
15039 s//\1/
15040 q
15041 }
15042 s/.*/./; q'`
15043 as_dir="$ac_dir"; as_fn_mkdir_p
15044 ac_builddir=.
b57f37fb 15045
042acc47
WP
15046case "$ac_dir" in
15047.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15048*)
15049 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15050 # A ".." for each directory in $ac_dir_suffix.
15051 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15052 case $ac_top_builddir_sub in
15053 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15054 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15055 esac ;;
15056esac
15057ac_abs_top_builddir=$ac_pwd
15058ac_abs_builddir=$ac_pwd$ac_dir_suffix
15059# for backward compatibility:
15060ac_top_builddir=$ac_top_build_prefix
b57f37fb 15061
042acc47
WP
15062case $srcdir in
15063 .) # We are building in place.
15064 ac_srcdir=.
15065 ac_top_srcdir=$ac_top_builddir_sub
15066 ac_abs_top_srcdir=$ac_pwd ;;
15067 [\\/]* | ?:[\\/]* ) # Absolute name.
15068 ac_srcdir=$srcdir$ac_dir_suffix;
15069 ac_top_srcdir=$srcdir
15070 ac_abs_top_srcdir=$srcdir ;;
15071 *) # Relative name.
15072 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15073 ac_top_srcdir=$ac_top_build_prefix$srcdir
15074 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15075esac
15076ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b57f37fb 15077
033be687 15078
042acc47
WP
15079 case $ac_mode in
15080 :F)
15081 #
15082 # CONFIG_FILE
15083 #
b57f37fb 15084
042acc47
WP
15085 case $INSTALL in
15086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15087 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15088 esac
15089 ac_MKDIR_P=$MKDIR_P
15090 case $MKDIR_P in
15091 [\\/$]* | ?:[\\/]* ) ;;
15092 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15093 esac
b57f37fb
WP
15094_ACEOF
15095
042acc47
WP
15096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15097# If the template does not know about datarootdir, expand it.
15098# FIXME: This hack should be removed a few years after 2.60.
15099ac_datarootdir_hack=; ac_datarootdir_seen=
15100ac_sed_dataroot='
15101/datarootdir/ {
15102 p
15103 q
15104}
15105/@datadir@/p
15106/@docdir@/p
15107/@infodir@/p
15108/@localedir@/p
15109/@mandir@/p'
15110case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15111*datarootdir*) ac_datarootdir_seen=yes;;
15112*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15114$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15115_ACEOF
15116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15117 ac_datarootdir_hack='
15118 s&@datadir@&$datadir&g
15119 s&@docdir@&$docdir&g
15120 s&@infodir@&$infodir&g
15121 s&@localedir@&$localedir&g
15122 s&@mandir@&$mandir&g
15123 s&\\\${datarootdir}&$datarootdir&g' ;;
15124esac
b57f37fb
WP
15125_ACEOF
15126
042acc47
WP
15127# Neutralize VPATH when `$srcdir' = `.'.
15128# Shell code in configure.ac might set extrasub.
15129# FIXME: do we really want to maintain this feature?
15130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15131ac_sed_extra="$ac_vpsub
15132$extrasub
15133_ACEOF
15134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15135:t
15136/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15137s|@configure_input@|$ac_sed_conf_input|;t t
15138s&@top_builddir@&$ac_top_builddir_sub&;t t
15139s&@top_build_prefix@&$ac_top_build_prefix&;t t
15140s&@srcdir@&$ac_srcdir&;t t
15141s&@abs_srcdir@&$ac_abs_srcdir&;t t
15142s&@top_srcdir@&$ac_top_srcdir&;t t
15143s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15144s&@builddir@&$ac_builddir&;t t
15145s&@abs_builddir@&$ac_abs_builddir&;t t
15146s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15147s&@INSTALL@&$ac_INSTALL&;t t
15148s&@MKDIR_P@&$ac_MKDIR_P&;t t
15149$ac_datarootdir_hack
15150"
12e39525
JH
15151eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15152 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b57f37fb 15153
042acc47 15154test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12e39525
JH
15155 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15156 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15157 "$ac_tmp/out"`; test -z "$ac_out"; } &&
042acc47 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12e39525 15159which seems to be undefined. Please make sure it is defined" >&5
042acc47 15160$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12e39525 15161which seems to be undefined. Please make sure it is defined" >&2;}
b57f37fb 15162
12e39525 15163 rm -f "$ac_tmp/stdin"
042acc47 15164 case $ac_file in
12e39525
JH
15165 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15166 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
042acc47 15167 esac \
12e39525 15168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
042acc47
WP
15169 ;;
15170 :H)
15171 #
15172 # CONFIG_HEADER
15173 #
15174 if test x"$ac_file" != x-; then
15175 {
15176 $as_echo "/* $configure_input */" \
12e39525
JH
15177 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15178 } >"$ac_tmp/config.h" \
15179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15180 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
042acc47
WP
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15182$as_echo "$as_me: $ac_file is unchanged" >&6;}
15183 else
15184 rm -f "$ac_file"
12e39525
JH
15185 mv "$ac_tmp/config.h" "$ac_file" \
15186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
042acc47
WP
15187 fi
15188 else
15189 $as_echo "/* $configure_input */" \
12e39525
JH
15190 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15191 || as_fn_error $? "could not create -" "$LINENO" 5
042acc47
WP
15192 fi
15193# Compute "$ac_file"'s index in $config_headers.
15194_am_arg="$ac_file"
15195_am_stamp_count=1
15196for _am_header in $config_headers :; do
15197 case $_am_header in
15198 $_am_arg | $_am_arg:* )
15199 break ;;
15200 * )
15201 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15202 esac
15203done
15204echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15205$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15206 X"$_am_arg" : 'X\(//\)[^/]' \| \
15207 X"$_am_arg" : 'X\(//\)$' \| \
15208 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15209$as_echo X"$_am_arg" |
15210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15211 s//\1/
15212 q
15213 }
15214 /^X\(\/\/\)[^/].*/{
15215 s//\1/
15216 q
15217 }
15218 /^X\(\/\/\)$/{
15219 s//\1/
15220 q
15221 }
15222 /^X\(\/\).*/{
15223 s//\1/
15224 q
15225 }
15226 s/.*/./; q'`/stamp-h$_am_stamp_count
15227 ;;
b57f37fb 15228
042acc47
WP
15229 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15230$as_echo "$as_me: executing $ac_file commands" >&6;}
15231 ;;
15232 esac
b57f37fb 15233
b57f37fb 15234
042acc47
WP
15235 case $ac_file$ac_mode in
15236 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15237 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15238 # are listed without --file. Let's play safe and only enable the eval
15239 # if we detect the quoting.
15240 case $CONFIG_FILES in
15241 *\'*) eval set x "$CONFIG_FILES" ;;
15242 *) set x $CONFIG_FILES ;;
15243 esac
15244 shift
15245 for mf
15246 do
15247 # Strip MF so we end up with the name of the file.
15248 mf=`echo "$mf" | sed -e 's/:.*$//'`
15249 # Check whether this is an Automake generated Makefile or not.
15250 # We used to match only the files named `Makefile.in', but
15251 # some people rename them; so instead we look at the file content.
15252 # Grep'ing the first line is not enough: some people post-process
15253 # each Makefile.in and add a new line on top of each file to say so.
15254 # Grep'ing the whole file is not good either: AIX grep has a line
15255 # limit of 2048, but all sed's we know have understand at least 4000.
15256 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15257 dirpart=`$as_dirname -- "$mf" ||
15258$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15259 X"$mf" : 'X\(//\)[^/]' \| \
15260 X"$mf" : 'X\(//\)$' \| \
15261 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15262$as_echo X"$mf" |
15263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15264 s//\1/
15265 q
15266 }
15267 /^X\(\/\/\)[^/].*/{
15268 s//\1/
15269 q
15270 }
15271 /^X\(\/\/\)$/{
15272 s//\1/
15273 q
15274 }
15275 /^X\(\/\).*/{
15276 s//\1/
15277 q
15278 }
15279 s/.*/./; q'`
15280 else
15281 continue
15282 fi
15283 # Extract the definition of DEPDIR, am__include, and am__quote
15284 # from the Makefile without running `make'.
15285 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15286 test -z "$DEPDIR" && continue
15287 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15288 test -z "am__include" && continue
15289 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15290 # When using ansi2knr, U may be empty or an underscore; expand it
15291 U=`sed -n 's/^U = //p' < "$mf"`
15292 # Find all dependency output files, they are included files with
15293 # $(DEPDIR) in their names. We invoke sed twice because it is the
15294 # simplest approach to changing $(DEPDIR) to its actual value in the
15295 # expansion.
15296 for file in `sed -n "
15297 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15298 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15299 # Make sure the directory exists.
15300 test -f "$dirpart/$file" && continue
15301 fdir=`$as_dirname -- "$file" ||
15302$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15303 X"$file" : 'X\(//\)[^/]' \| \
15304 X"$file" : 'X\(//\)$' \| \
15305 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15306$as_echo X"$file" |
15307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15308 s//\1/
15309 q
15310 }
15311 /^X\(\/\/\)[^/].*/{
15312 s//\1/
15313 q
15314 }
15315 /^X\(\/\/\)$/{
15316 s//\1/
15317 q
15318 }
15319 /^X\(\/\).*/{
15320 s//\1/
15321 q
15322 }
15323 s/.*/./; q'`
15324 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15325 # echo "creating $dirpart/$file"
15326 echo '# dummy' > "$dirpart/$file"
15327 done
15328 done
15329}
15330 ;;
15331 "libtool":C)
b57f37fb 15332
042acc47
WP
15333 # See if we are running on zsh, and set the options which allow our
15334 # commands through without removal of \ escapes.
15335 if test -n "${ZSH_VERSION+set}" ; then
15336 setopt NO_GLOB_SUBST
15337 fi
033be687 15338
042acc47
WP
15339 cfgfile="${ofile}T"
15340 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15341 $RM "$cfgfile"
b57f37fb 15342
042acc47
WP
15343 cat <<_LT_EOF >> "$cfgfile"
15344#! $SHELL
b57f37fb 15345
042acc47
WP
15346# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15347# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15348# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15349# NOTE: Changes made to this file will be lost: look at ltmain.sh.
b57f37fb 15350#
042acc47
WP
15351# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15352# 2006, 2007, 2008 Free Software Foundation, Inc.
15353# Written by Gordon Matzigkeit, 1996
b57f37fb 15354#
042acc47
WP
15355# This file is part of GNU Libtool.
15356#
15357# GNU Libtool is free software; you can redistribute it and/or
15358# modify it under the terms of the GNU General Public License as
15359# published by the Free Software Foundation; either version 2 of
15360# the License, or (at your option) any later version.
15361#
15362# As a special exception to the GNU General Public License,
15363# if you distribute this file as part of a program or library that
15364# is built using GNU Libtool, you may include this file under the
15365# same distribution terms that you use for the rest of that program.
15366#
15367# GNU Libtool is distributed in the hope that it will be useful,
15368# but WITHOUT ANY WARRANTY; without even the implied warranty of
15369# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15370# GNU General Public License for more details.
15371#
15372# You should have received a copy of the GNU General Public License
15373# along with GNU Libtool; see the file COPYING. If not, a copy
15374# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15375# obtained by writing to the Free Software Foundation, Inc.,
15376# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
b57f37fb 15377
b57f37fb 15378
042acc47
WP
15379# The names of the tagged configurations supported by this script.
15380available_tags=""
b57f37fb 15381
042acc47 15382# ### BEGIN LIBTOOL CONFIG
b57f37fb 15383
042acc47
WP
15384# Whether or not to build static libraries.
15385build_old_libs=$enable_static
b57f37fb 15386
042acc47
WP
15387# Whether or not to build shared libraries.
15388build_libtool_libs=$enable_shared
b57f37fb 15389
042acc47
WP
15390# Which release of libtool.m4 was used?
15391macro_version=$macro_version
15392macro_revision=$macro_revision
b57f37fb 15393
042acc47
WP
15394# What type of objects to build.
15395pic_mode=$pic_mode
b57f37fb 15396
042acc47
WP
15397# Whether or not to optimize for fast installation.
15398fast_install=$enable_fast_install
b57f37fb 15399
042acc47
WP
15400# The host system.
15401host_alias=$host_alias
15402host=$host
15403host_os=$host_os
b57f37fb 15404
042acc47
WP
15405# The build system.
15406build_alias=$build_alias
15407build=$build
15408build_os=$build_os
b57f37fb 15409
042acc47
WP
15410# A sed program that does not truncate output.
15411SED=$lt_SED
b57f37fb 15412
042acc47
WP
15413# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15414Xsed="\$SED -e 1s/^X//"
b57f37fb 15415
042acc47
WP
15416# A grep program that handles long lines.
15417GREP=$lt_GREP
b57f37fb 15418
042acc47
WP
15419# An ERE matcher.
15420EGREP=$lt_EGREP
b57f37fb 15421
042acc47
WP
15422# A literal string matcher.
15423FGREP=$lt_FGREP
b57f37fb 15424
042acc47
WP
15425# A BSD- or MS-compatible name lister.
15426NM=$lt_NM
f030cae8 15427
042acc47
WP
15428# Whether we need soft or hard links.
15429LN_S=$lt_LN_S
b57f37fb 15430
042acc47
WP
15431# What is the maximum length of a command?
15432max_cmd_len=$max_cmd_len
b57f37fb 15433
042acc47
WP
15434# Object file suffix (normally "o").
15435objext=$ac_objext
b57f37fb 15436
042acc47
WP
15437# Executable file suffix (normally "").
15438exeext=$exeext
b57f37fb 15439
042acc47
WP
15440# whether the shell understands "unset".
15441lt_unset=$lt_unset
b57f37fb 15442
042acc47
WP
15443# turn spaces into newlines.
15444SP2NL=$lt_lt_SP2NL
b57f37fb 15445
042acc47
WP
15446# turn newlines into spaces.
15447NL2SP=$lt_lt_NL2SP
b57f37fb 15448
042acc47
WP
15449# How to create reloadable object files.
15450reload_flag=$lt_reload_flag
15451reload_cmds=$lt_reload_cmds
b57f37fb 15452
042acc47
WP
15453# An object symbol dumper.
15454OBJDUMP=$lt_OBJDUMP
b57f37fb 15455
042acc47
WP
15456# Method to check whether dependent libraries are shared objects.
15457deplibs_check_method=$lt_deplibs_check_method
b57f37fb 15458
042acc47
WP
15459# Command to use when deplibs_check_method == "file_magic".
15460file_magic_cmd=$lt_file_magic_cmd
b57f37fb 15461
042acc47
WP
15462# The archiver.
15463AR=$lt_AR
15464AR_FLAGS=$lt_AR_FLAGS
b57f37fb 15465
042acc47
WP
15466# A symbol stripping program.
15467STRIP=$lt_STRIP
b57f37fb 15468
042acc47
WP
15469# Commands used to install an old-style archive.
15470RANLIB=$lt_RANLIB
15471old_postinstall_cmds=$lt_old_postinstall_cmds
15472old_postuninstall_cmds=$lt_old_postuninstall_cmds
b57f37fb 15473
042acc47
WP
15474# A C compiler.
15475LTCC=$lt_CC
b57f37fb 15476
042acc47
WP
15477# LTCC compiler flags.
15478LTCFLAGS=$lt_CFLAGS
b57f37fb 15479
042acc47
WP
15480# Take the output of nm and produce a listing of raw symbols and C names.
15481global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
b57f37fb 15482
042acc47
WP
15483# Transform the output of nm in a proper C declaration.
15484global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
b57f37fb 15485
042acc47
WP
15486# Transform the output of nm in a C name address pair.
15487global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
b57f37fb 15488
042acc47
WP
15489# Transform the output of nm in a C name address pair when lib prefix is needed.
15490global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
b57f37fb 15491
042acc47
WP
15492# The name of the directory that contains temporary libtool files.
15493objdir=$objdir
b57f37fb 15494
042acc47
WP
15495# Shell to use when invoking shell scripts.
15496SHELL=$lt_SHELL
b57f37fb 15497
042acc47
WP
15498# An echo program that does not interpret backslashes.
15499ECHO=$lt_ECHO
b57f37fb 15500
042acc47
WP
15501# Used to examine libraries when file_magic_cmd begins with "file".
15502MAGIC_CMD=$MAGIC_CMD
15503
15504# Must we lock files when doing compilation?
15505need_locks=$lt_need_locks
b57f37fb 15506
042acc47
WP
15507# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15508DSYMUTIL=$lt_DSYMUTIL
b57f37fb 15509
042acc47
WP
15510# Tool to change global to local symbols on Mac OS X.
15511NMEDIT=$lt_NMEDIT
b57f37fb 15512
042acc47
WP
15513# Tool to manipulate fat objects and archives on Mac OS X.
15514LIPO=$lt_LIPO
b57f37fb 15515
042acc47
WP
15516# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15517OTOOL=$lt_OTOOL
b57f37fb 15518
042acc47
WP
15519# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15520OTOOL64=$lt_OTOOL64
b57f37fb 15521
042acc47
WP
15522# Old archive suffix (normally "a").
15523libext=$libext
b57f37fb 15524
042acc47
WP
15525# Shared library suffix (normally ".so").
15526shrext_cmds=$lt_shrext_cmds
b57f37fb 15527
042acc47
WP
15528# The commands to extract the exported symbol list from a shared archive.
15529extract_expsyms_cmds=$lt_extract_expsyms_cmds
b57f37fb 15530
042acc47
WP
15531# Variables whose values should be saved in libtool wrapper scripts and
15532# restored at link time.
15533variables_saved_for_relink=$lt_variables_saved_for_relink
f030cae8 15534
042acc47
WP
15535# Do we need the "lib" prefix for modules?
15536need_lib_prefix=$need_lib_prefix
f030cae8 15537
042acc47
WP
15538# Do we need a version for libraries?
15539need_version=$need_version
f030cae8 15540
042acc47
WP
15541# Library versioning type.
15542version_type=$version_type
b57f37fb 15543
042acc47
WP
15544# Shared library runtime path variable.
15545runpath_var=$runpath_var
b57f37fb 15546
042acc47
WP
15547# Shared library path variable.
15548shlibpath_var=$shlibpath_var
b57f37fb 15549
042acc47
WP
15550# Is shlibpath searched before the hard-coded library search path?
15551shlibpath_overrides_runpath=$shlibpath_overrides_runpath
b57f37fb 15552
042acc47
WP
15553# Format of library name prefix.
15554libname_spec=$lt_libname_spec
b57f37fb 15555
042acc47
WP
15556# List of archive names. First name is the real one, the rest are links.
15557# The last name is the one that the linker finds with -lNAME
15558library_names_spec=$lt_library_names_spec
b57f37fb 15559
042acc47
WP
15560# The coded name of the library, if different from the real name.
15561soname_spec=$lt_soname_spec
b57f37fb 15562
042acc47
WP
15563# Command to use after installation of a shared archive.
15564postinstall_cmds=$lt_postinstall_cmds
b57f37fb 15565
042acc47
WP
15566# Command to use after uninstallation of a shared archive.
15567postuninstall_cmds=$lt_postuninstall_cmds
b57f37fb 15568
042acc47
WP
15569# Commands used to finish a libtool library installation in a directory.
15570finish_cmds=$lt_finish_cmds
b57f37fb 15571
042acc47
WP
15572# As "finish_cmds", except a single script fragment to be evaled but
15573# not shown.
15574finish_eval=$lt_finish_eval
b57f37fb 15575
042acc47
WP
15576# Whether we should hardcode library paths into libraries.
15577hardcode_into_libs=$hardcode_into_libs
b57f37fb 15578
042acc47
WP
15579# Compile-time system search path for libraries.
15580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
b57f37fb 15581
042acc47
WP
15582# Run-time system search path for libraries.
15583sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
b57f37fb 15584
042acc47
WP
15585# Whether dlopen is supported.
15586dlopen_support=$enable_dlopen
b57f37fb 15587
042acc47
WP
15588# Whether dlopen of programs is supported.
15589dlopen_self=$enable_dlopen_self
b57f37fb 15590
042acc47
WP
15591# Whether dlopen of statically linked programs is supported.
15592dlopen_self_static=$enable_dlopen_self_static
b57f37fb 15593
042acc47
WP
15594# Commands to strip libraries.
15595old_striplib=$lt_old_striplib
15596striplib=$lt_striplib
b57f37fb 15597
b57f37fb 15598
042acc47
WP
15599# The linker used to build libraries.
15600LD=$lt_LD
b57f37fb 15601
042acc47
WP
15602# Commands used to build an old-style archive.
15603old_archive_cmds=$lt_old_archive_cmds
b57f37fb 15604
042acc47
WP
15605# A language specific compiler.
15606CC=$lt_compiler
b57f37fb 15607
042acc47
WP
15608# Is the compiler the GNU compiler?
15609with_gcc=$GCC
b57f37fb 15610
042acc47
WP
15611# Compiler flag to turn off builtin functions.
15612no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
b57f37fb 15613
042acc47
WP
15614# How to pass a linker flag through the compiler.
15615wl=$lt_lt_prog_compiler_wl
15616
15617# Additional compiler flags for building library objects.
15618pic_flag=$lt_lt_prog_compiler_pic
15619
15620# Compiler flag to prevent dynamic linking.
15621link_static_flag=$lt_lt_prog_compiler_static
15622
15623# Does compiler simultaneously support -c and -o options?
15624compiler_c_o=$lt_lt_cv_prog_compiler_c_o
4414eb3c 15625
042acc47
WP
15626# Whether or not to add -lc for building shared libraries.
15627build_libtool_need_lc=$archive_cmds_need_lc
4414eb3c 15628
042acc47
WP
15629# Whether or not to disallow shared libs when runtime libs are static.
15630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
b57f37fb 15631
042acc47
WP
15632# Compiler flag to allow reflexive dlopens.
15633export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
b57f37fb 15634
042acc47
WP
15635# Compiler flag to generate shared objects directly from archives.
15636whole_archive_flag_spec=$lt_whole_archive_flag_spec
b57f37fb 15637
042acc47
WP
15638# Whether the compiler copes with passing no objects directly.
15639compiler_needs_object=$lt_compiler_needs_object
b57f37fb 15640
042acc47
WP
15641# Create an old-style archive from a shared archive.
15642old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
b57f37fb 15643
042acc47
WP
15644# Create a temporary old-style archive to link instead of a shared archive.
15645old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
b57f37fb 15646
042acc47
WP
15647# Commands used to build a shared archive.
15648archive_cmds=$lt_archive_cmds
15649archive_expsym_cmds=$lt_archive_expsym_cmds
b57f37fb 15650
042acc47
WP
15651# Commands used to build a loadable module if different from building
15652# a shared archive.
15653module_cmds=$lt_module_cmds
15654module_expsym_cmds=$lt_module_expsym_cmds
b57f37fb 15655
042acc47
WP
15656# Whether we are building with GNU ld or not.
15657with_gnu_ld=$lt_with_gnu_ld
b57f37fb 15658
042acc47
WP
15659# Flag that allows shared libraries with undefined symbols to be built.
15660allow_undefined_flag=$lt_allow_undefined_flag
b57f37fb 15661
042acc47
WP
15662# Flag that enforces no undefined symbols.
15663no_undefined_flag=$lt_no_undefined_flag
b57f37fb 15664
042acc47
WP
15665# Flag to hardcode \$libdir into a binary during linking.
15666# This must work even if \$libdir does not exist
15667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
b57f37fb 15668
042acc47
WP
15669# If ld is used when linking, flag to hardcode \$libdir into a binary
15670# during linking. This must work even if \$libdir does not exist.
15671hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
b57f37fb 15672
042acc47
WP
15673# Whether we need a single "-rpath" flag with a separated argument.
15674hardcode_libdir_separator=$lt_hardcode_libdir_separator
b57f37fb 15675
042acc47
WP
15676# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15677# DIR into the resulting binary.
15678hardcode_direct=$hardcode_direct
b57f37fb 15679
042acc47
WP
15680# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15681# DIR into the resulting binary and the resulting library dependency is
15682# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15683# library is relocated.
15684hardcode_direct_absolute=$hardcode_direct_absolute
b57f37fb 15685
042acc47
WP
15686# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15687# into the resulting binary.
15688hardcode_minus_L=$hardcode_minus_L
b57f37fb 15689
042acc47
WP
15690# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15691# into the resulting binary.
15692hardcode_shlibpath_var=$hardcode_shlibpath_var
b57f37fb 15693
042acc47
WP
15694# Set to "yes" if building a shared library automatically hardcodes DIR
15695# into the library and all subsequent libraries and executables linked
15696# against it.
15697hardcode_automatic=$hardcode_automatic
b57f37fb 15698
042acc47
WP
15699# Set to yes if linker adds runtime paths of dependent libraries
15700# to runtime path list.
15701inherit_rpath=$inherit_rpath
b57f37fb 15702
042acc47
WP
15703# Whether libtool must link a program against all its dependency libraries.
15704link_all_deplibs=$link_all_deplibs
b57f37fb 15705
042acc47
WP
15706# Fix the shell variable \$srcfile for the compiler.
15707fix_srcfile_path=$lt_fix_srcfile_path
f030cae8 15708
042acc47
WP
15709# Set to "yes" if exported symbols are required.
15710always_export_symbols=$always_export_symbols
f030cae8 15711
042acc47
WP
15712# The commands to list exported symbols.
15713export_symbols_cmds=$lt_export_symbols_cmds
b57f37fb 15714
042acc47
WP
15715# Symbols that should not be listed in the preloaded symbols.
15716exclude_expsyms=$lt_exclude_expsyms
f030cae8 15717
042acc47
WP
15718# Symbols that must always be exported.
15719include_expsyms=$lt_include_expsyms
b57f37fb 15720
042acc47
WP
15721# Commands necessary for linking programs (against libraries) with templates.
15722prelink_cmds=$lt_prelink_cmds
b57f37fb 15723
042acc47
WP
15724# Specify filename containing input files.
15725file_list_spec=$lt_file_list_spec
b57f37fb 15726
042acc47
WP
15727# How to hardcode a shared library path into an executable.
15728hardcode_action=$hardcode_action
b57f37fb 15729
042acc47 15730# ### END LIBTOOL CONFIG
f030cae8 15731
042acc47
WP
15732_LT_EOF
15733
15734 case $host_os in
15735 aix3*)
15736 cat <<\_LT_EOF >> "$cfgfile"
15737# AIX sometimes has problems with the GCC collect2 program. For some
15738# reason, if we set the COLLECT_NAMES environment variable, the problems
15739# vanish in a puff of smoke.
15740if test "X${COLLECT_NAMES+set}" != Xset; then
15741 COLLECT_NAMES=
15742 export COLLECT_NAMES
15743fi
15744_LT_EOF
15745 ;;
15746 esac
f030cae8 15747
f030cae8 15748
042acc47 15749ltmain="$ac_aux_dir/ltmain.sh"
f030cae8 15750
f030cae8 15751
042acc47
WP
15752 # We use sed instead of cat because bash on DJGPP gets confused if
15753 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15754 # text mode, it properly converts lines to CR/LF. This bash problem
15755 # is reportedly fixed, but why not run on old versions too?
15756 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15757 || (rm -f "$cfgfile"; exit 1)
f030cae8 15758
042acc47
WP
15759 case $xsi_shell in
15760 yes)
15761 cat << \_LT_EOF >> "$cfgfile"
b57f37fb 15762
042acc47
WP
15763# func_dirname file append nondir_replacement
15764# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15765# otherwise set result to NONDIR_REPLACEMENT.
15766func_dirname ()
15767{
15768 case ${1} in
15769 */*) func_dirname_result="${1%/*}${2}" ;;
15770 * ) func_dirname_result="${3}" ;;
b57f37fb 15771 esac
042acc47
WP
15772}
15773
15774# func_basename file
15775func_basename ()
15776{
15777 func_basename_result="${1##*/}"
15778}
15779
15780# func_dirname_and_basename file append nondir_replacement
15781# perform func_basename and func_dirname in a single function
15782# call:
15783# dirname: Compute the dirname of FILE. If nonempty,
15784# add APPEND to the result, otherwise set result
15785# to NONDIR_REPLACEMENT.
15786# value returned in "$func_dirname_result"
15787# basename: Compute filename of FILE.
15788# value retuned in "$func_basename_result"
15789# Implementation must be kept synchronized with func_dirname
15790# and func_basename. For efficiency, we do not delegate to
15791# those functions but instead duplicate the functionality here.
15792func_dirname_and_basename ()
15793{
15794 case ${1} in
15795 */*) func_dirname_result="${1%/*}${2}" ;;
15796 * ) func_dirname_result="${3}" ;;
b57f37fb 15797 esac
042acc47
WP
15798 func_basename_result="${1##*/}"
15799}
b57f37fb 15800
042acc47
WP
15801# func_stripname prefix suffix name
15802# strip PREFIX and SUFFIX off of NAME.
15803# PREFIX and SUFFIX must not contain globbing or regex special
15804# characters, hashes, percent signs, but SUFFIX may contain a leading
15805# dot (in which case that matches only a dot).
15806func_stripname ()
15807{
15808 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15809 # positional parameters, so assign one to ordinary parameter first.
15810 func_stripname_result=${3}
15811 func_stripname_result=${func_stripname_result#"${1}"}
15812 func_stripname_result=${func_stripname_result%"${2}"}
15813}
b57f37fb 15814
042acc47
WP
15815# func_opt_split
15816func_opt_split ()
15817{
15818 func_opt_split_opt=${1%%=*}
15819 func_opt_split_arg=${1#*=}
15820}
b57f37fb 15821
042acc47
WP
15822# func_lo2o object
15823func_lo2o ()
15824{
15825 case ${1} in
15826 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15827 *) func_lo2o_result=${1} ;;
b57f37fb 15828 esac
042acc47 15829}
b57f37fb 15830
042acc47
WP
15831# func_xform libobj-or-source
15832func_xform ()
15833{
15834 func_xform_result=${1%.*}.lo
15835}
b57f37fb 15836
042acc47
WP
15837# func_arith arithmetic-term...
15838func_arith ()
15839{
15840 func_arith_result=$(( $* ))
15841}
b57f37fb 15842
042acc47
WP
15843# func_len string
15844# STRING may not start with a hyphen.
15845func_len ()
15846{
15847 func_len_result=${#1}
15848}
15849
15850_LT_EOF
15851 ;;
15852 *) # Bourne compatible functions.
15853 cat << \_LT_EOF >> "$cfgfile"
15854
15855# func_dirname file append nondir_replacement
15856# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15857# otherwise set result to NONDIR_REPLACEMENT.
15858func_dirname ()
15859{
15860 # Extract subdirectory from the argument.
15861 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15862 if test "X$func_dirname_result" = "X${1}"; then
15863 func_dirname_result="${3}"
15864 else
15865 func_dirname_result="$func_dirname_result${2}"
15866 fi
15867}
b57f37fb 15868
042acc47
WP
15869# func_basename file
15870func_basename ()
15871{
15872 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15873}
b57f37fb 15874
b57f37fb 15875
042acc47
WP
15876# func_stripname prefix suffix name
15877# strip PREFIX and SUFFIX off of NAME.
15878# PREFIX and SUFFIX must not contain globbing or regex special
15879# characters, hashes, percent signs, but SUFFIX may contain a leading
15880# dot (in which case that matches only a dot).
15881# func_strip_suffix prefix name
15882func_stripname ()
15883{
15884 case ${2} in
15885 .*) func_stripname_result=`$ECHO "X${3}" \
15886 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15887 *) func_stripname_result=`$ECHO "X${3}" \
15888 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
b57f37fb 15889 esac
042acc47 15890}
b57f37fb 15891
042acc47
WP
15892# sed scripts:
15893my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15894my_sed_long_arg='1s/^-[^=]*=//'
b57f37fb 15895
042acc47
WP
15896# func_opt_split
15897func_opt_split ()
15898{
15899 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15900 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
b57f37fb 15901}
042acc47
WP
15902
15903# func_lo2o object
15904func_lo2o ()
15905{
15906 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15907}
15908
15909# func_xform libobj-or-source
15910func_xform ()
15911{
15912 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15913}
15914
15915# func_arith arithmetic-term...
15916func_arith ()
15917{
15918 func_arith_result=`expr "$@"`
15919}
15920
15921# func_len string
15922# STRING may not start with a hyphen.
15923func_len ()
15924{
15925 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15926}
15927
15928_LT_EOF
b57f37fb 15929esac
b57f37fb 15930
042acc47
WP
15931case $lt_shell_append in
15932 yes)
15933 cat << \_LT_EOF >> "$cfgfile"
b57f37fb 15934
042acc47
WP
15935# func_append var value
15936# Append VALUE to the end of shell variable VAR.
15937func_append ()
15938{
15939 eval "$1+=\$2"
15940}
15941_LT_EOF
15942 ;;
15943 *)
15944 cat << \_LT_EOF >> "$cfgfile"
b57f37fb 15945
042acc47
WP
15946# func_append var value
15947# Append VALUE to the end of shell variable VAR.
15948func_append ()
15949{
15950 eval "$1=\$$1\$2"
15951}
b57f37fb 15952
042acc47
WP
15953_LT_EOF
15954 ;;
b57f37fb
WP
15955 esac
15956
15957
042acc47
WP
15958 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15959 || (rm -f "$cfgfile"; exit 1)
15960
15961 mv -f "$cfgfile" "$ofile" ||
15962 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15963 chmod +x "$ofile"
15964
b57f37fb
WP
15965 ;;
15966 "include/librb-config.h":C)
15967 outfile=include/librb-config.h.tmp
15968 cat > $outfile <<\_______EOF
15969/*
15970 * librb-config.h: libratbox config file. Please modify configure.ac
15971 */
15972
15973#ifndef __LIBRB_CONFIG_H
15974#define __LIBRB_CONFIG_H
15975
15976_______EOF
15977
15978if test "x$rb_have_ipv6" = "xyes"; then
15979 echo "#define RB_IPV6 1" >> $outfile
15980fi
15981
15982if test "x$rb_windows_h" = "xyes"; then
15983 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
15984 echo '#include <windows.h>' >> $outfile
15985 echo '#include <winsock2.h>' >> $outfile
15986 echo '#include <iphlpapi.h>' >> $outfile
15987fi
15988
15989if test "x$rb_alloca_h" = "xyes"; then
15990 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
15991fi
15992
15993if test "x$rb_header_stdc" = "xyes"; then
15994 echo '#include <stdlib.h>' >> $outfile
15995 echo '#include <stddef.h>' >> $outfile
15996elif test "x$rb_header_stdlib" = "xyes"; then
15997 echo '#include <stdlib.h>' >> $outfile
15998fi
15999
16000if test "x$rb_header_string_h" = "xyes"; then
16001 echo '#include <string.h>' >> $outfile
16002fi
16003
16004if test "x$rb_stdint_h" = "xyes"; then
16005 echo '#include <stdint.h>' >> $outfile
16006fi
16007
16008if test "x$rb_inttypes_h" = "xyes"; then
16009 echo '#include <inttypes.h>' >> $outfile
16010fi
16011
16012if test "x$rb_sys_types_h" = "xyes"; then
16013 echo '#include <sys/types.h>' >> $outfile
16014fi
16015if test "x$rb_sys_time_h" = "xyes"; then
16016 echo '#include <sys/time.h>' >> $outfile
16017fi
16018if test "x$rb_sys_stat_h" = "xyes"; then
16019 echo '#include <sys/stat.h>' >> $outfile
16020fi
16021if test "x$rb_time_h" = "xyes"; then
16022 echo '#include <time.h>' >> $outfile
16023fi
16024
16025if test "x$rb_sys_socket_h" = "xyes"; then
16026 echo '#include <sys/socket.h>' >> $outfile
16027fi
16028
16029if test "x$rb_netinet_in_h" = "xyes"; then
16030 echo '#include <netinet/in.h>' >> $outfile
16031fi
16032
16033if test "x$rb_arpa_inet_h" = "xyes"; then
16034 echo '#include <arpa/inet.h>' >> $outfile
16035fi
16036
16037if test "x$rb_unistd_h" = "xyes"; then
16038 echo '#include <unistd.h>' >> $outfile
16039fi
16040
16041if test "x$rb_crypt_h" = "xyes"; then
16042 echo '#include <crypt.h>' >> $outfile
16043fi
16044
16045if test "x$rb_errno_h" = "xyes"; then
16046 echo '#include <errno.h>' >> $outfile
16047fi
16048
4414eb3c
VY
16049echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
16050
16051
b57f37fb
WP
16052if test "x$rb_sockaddr_sa_len" = "xyes"; then
16053 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
16054fi
16055
b57f37fb
WP
16056if test "x$rb_sockaddr_storage" = "xyes"; then
16057 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
16058else
94b4fbf9 16059 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
b57f37fb
WP
16060fi
16061
16062cat >> $outfile <<\_______EOF
16063#endif /* __LIBRB_CONFIG_H */
16064_______EOF
16065
16066if cmp -s $outfile include/librb-config.h; then
042acc47 16067 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
f030cae8 16068$as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
b57f37fb
WP
16069 ${rb_rm} -f $outfile
16070else
16071 ${rb_mv} $outfile include/librb-config.h
16072fi
16073
16074 ;;
16075
16076 esac
16077done # for ac_tag
16078
16079
042acc47 16080as_fn_exit 0
b57f37fb 16081_ACEOF
b57f37fb
WP
16082ac_clean_files=$ac_clean_files_save
16083
f030cae8 16084test $ac_write_fail = 0 ||
12e39525 16085 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
f030cae8 16086
b57f37fb
WP
16087
16088# configure is writing to config.log, and then calls config.status.
16089# config.status does its own redirection, appending to config.log.
16090# Unfortunately, on DOS this fails, as config.log is still kept open
16091# by configure, so config.status won't be able to write to it; its
16092# output is simply discarded. So we exec the FD to /dev/null,
16093# effectively closing config.log, so it can be properly (re)opened and
16094# appended to by config.status. When coming back to configure, we
16095# need to make the FD available again.
16096if test "$no_create" != yes; then
16097 ac_cs_success=:
16098 ac_config_status_args=
16099 test "$silent" = yes &&
16100 ac_config_status_args="$ac_config_status_args --quiet"
16101 exec 5>/dev/null
16102 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16103 exec 5>>config.log
16104 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16105 # would make configure fail if this is the last instruction.
12e39525 16106 $ac_cs_success || as_fn_exit 1
b57f37fb 16107fi
f030cae8 16108if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
042acc47 16109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
f030cae8
VY
16110$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16111fi
b57f37fb 16112
b57f37fb
WP
16113
16114
16115echo
16116echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
16117echo
16118
16119echo "Installing into: $prefix"
16120
16121echo "IPv6 support ................... $have_v6"
16122echo "Assert debugging ............... $assert"
16123echo "Block allocator ................ $balloc"
033be687 16124echo "SSL Type........................ $SSL_TYPE"
b57f37fb
WP
16125echo
16126