]> jfr.im git - irc/rqf/shadowircd.git/blame - libratbox/configure
testline/testgecos: Send "not an oper" message if appropriate.
[irc/rqf/shadowircd.git] / libratbox / configure
CommitLineData
b57f37fb
WP
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
042acc47 3# Generated by GNU Autoconf 2.64 for libratbox devel.
b57f37fb 4#
f030cae8 5# $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
b57f37fb
WP
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
042acc47
WP
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
b57f37fb
WP
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
042acc47
WP
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
b57f37fb
WP
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
042acc47 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b57f37fb
WP
20 emulate sh
21 NULLCMD=:
f030cae8 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b57f37fb
WP
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
042acc47
WP
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
b57f37fb 32esac
b57f37fb
WP
33fi
34
35
f030cae8
VY
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
042acc47
WP
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
f030cae8
VY
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
b57f37fb 56 else
f030cae8
VY
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
042acc47 60 case $arg in #(
f030cae8
VY
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
b57f37fb 69 fi
f030cae8
VY
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
b57f37fb
WP
81fi
82
b57f37fb
WP
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
b57f37fb
WP
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
042acc47 92case $0 in #((
b57f37fb
WP
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
042acc47
WP
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
b57f37fb
WP
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
f030cae8 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
042acc47 112 exit 1
b57f37fb
WP
113fi
114
042acc47
WP
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
b57f37fb
WP
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
f030cae8
VY
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
b57f37fb 132
042acc47
WP
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
b57f37fb
WP
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
042acc47
WP
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
b57f37fb 393
b57f37fb
WP
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 398$as_echo X/"$0" |
b57f37fb
WP
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
042acc47
WP
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
b57f37fb
WP
419
420
042acc47
WP
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b57f37fb 443
042acc47
WP
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
b57f37fb
WP
450}
451
042acc47
WP
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
b57f37fb 464
042acc47
WP
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
b57f37fb 471fi
042acc47
WP
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
b57f37fb 486else
042acc47 487 as_ln_s='cp -p'
b57f37fb 488fi
042acc47
WP
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
b57f37fb 491
042acc47
WP
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
b57f37fb
WP
497fi
498
042acc47
WP
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
b57f37fb 501else
042acc47
WP
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
b57f37fb 519fi
042acc47 520as_executable_p=$as_test_x
b57f37fb 521
042acc47
WP
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb 524
042acc47
WP
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb
WP
527
528
529
530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
042acc47 533case X$lt_ECHO in
b57f37fb
WP
534X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
042acc47 536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
b57f37fb
WP
537 ;;
538esac
539
042acc47 540ECHO=${lt_ECHO-echo}
b57f37fb
WP
541if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
042acc47
WP
547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
b57f37fb
WP
549 :
550else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
042acc47 558 cat <<_LT_EOF
b57f37fb 559$*
042acc47 560_LT_EOF
b57f37fb
WP
561 exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
042acc47
WP
568if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
b57f37fb 580
042acc47
WP
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
b57f37fb 591
042acc47
WP
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
b57f37fb 603 IFS="$lt_save_ifs"
b57f37fb 604
042acc47
WP
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
b57f37fb 620 else
042acc47
WP
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
b57f37fb 645
042acc47
WP
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
b57f37fb 653
042acc47
WP
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
b57f37fb
WP
663 fi
664 fi
665 fi
666fi
b57f37fb
WP
667
668# Copy echo and quote the copy suitably for passing to libtool from
669# the Makefile, instead of quoting the original, which is used later.
042acc47
WP
670lt_ECHO=$ECHO
671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
b57f37fb
WP
673fi
674
675
676
677
b57f37fb
WP
678exec 7<&0 </dev/null 6>&1
679
680# Name of the host.
681# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
682# so uname gets run too.
683ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
684
685#
686# Initializations.
687#
688ac_default_prefix=/usr/local
689ac_clean_files=
690ac_config_libobj_dir=.
691LIBOBJS=
692cross_compiling=no
693subdirs=
694MFLAGS=
695MAKEFLAGS=
b57f37fb
WP
696
697# Identity of this package.
698PACKAGE_NAME='libratbox'
699PACKAGE_TARNAME='libratbox'
700PACKAGE_VERSION='devel'
701PACKAGE_STRING='libratbox devel'
702PACKAGE_BUGREPORT=''
042acc47 703PACKAGE_URL=''
b57f37fb
WP
704
705ac_default_prefix=/usr/local/libratbox
706# Factoring default headers for most tests.
707ac_includes_default="\
708#include <stdio.h>
709#ifdef HAVE_SYS_TYPES_H
710# include <sys/types.h>
711#endif
712#ifdef HAVE_SYS_STAT_H
713# include <sys/stat.h>
714#endif
715#ifdef STDC_HEADERS
716# include <stdlib.h>
717# include <stddef.h>
718#else
719# ifdef HAVE_STDLIB_H
720# include <stdlib.h>
721# endif
722#endif
723#ifdef HAVE_STRING_H
724# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725# include <memory.h>
726# endif
727# include <string.h>
728#endif
729#ifdef HAVE_STRINGS_H
730# include <strings.h>
731#endif
732#ifdef HAVE_INTTYPES_H
733# include <inttypes.h>
734#endif
735#ifdef HAVE_STDINT_H
736# include <stdint.h>
737#endif
738#ifdef HAVE_UNISTD_H
739# include <unistd.h>
740#endif"
741
042acc47
WP
742ac_subst_vars='am__EXEEXT_FALSE
743am__EXEEXT_TRUE
744LTLIBOBJS
f030cae8
VY
745LIBOBJS
746RB_PREFIX
747SSL_LIBS
748SSL_CFLAGS
749SEDOBJ
750PICFLAGS
751GNUTLS_LIBS
752GNUTLS_CFLAGS
753PKG_CONFIG
754ALLOCA
755CRYPT_LIB
756NEED_CRYPT_FALSE
757NEED_CRYPT_TRUE
758MINGW_FALSE
759MINGW_TRUE
042acc47
WP
760OTOOL64
761OTOOL
762LIPO
f030cae8
VY
763NMEDIT
764DSYMUTIL
042acc47 765lt_ECHO
f030cae8
VY
766RANLIB
767AR
042acc47 768OBJDUMP
f030cae8 769LN_S
042acc47
WP
770NM
771ac_ct_DUMPBIN
772DUMPBIN
773LD
774FGREP
f030cae8
VY
775host_os
776host_vendor
777host_cpu
778host
779build_os
780build_vendor
781build_cpu
782build
042acc47 783LIBTOOL
f030cae8
VY
784TOUCH
785LN
786MV
787CP
788RM
789AS
790MAINT
791MAINTAINER_MODE_FALSE
792MAINTAINER_MODE_TRUE
793SED
794EGREP
795GREP
796CPP
797am__fastdepCC_FALSE
798am__fastdepCC_TRUE
799CCDEPMODE
800AMDEPBACKSLASH
801AMDEP_FALSE
802AMDEP_TRUE
803am__quote
804am__include
805DEPDIR
806OBJEXT
807EXEEXT
808ac_ct_CC
809CPPFLAGS
810LDFLAGS
811CFLAGS
812CC
813am__untar
814am__tar
815AMTAR
816am__leading_dot
817SET_MAKE
818AWK
819mkdir_p
820MKDIR_P
821INSTALL_STRIP_PROGRAM
822STRIP
823install_sh
824MAKEINFO
825AUTOHEADER
826AUTOMAKE
827AUTOCONF
828ACLOCAL
829VERSION
830PACKAGE
831CYGPATH_W
832am__isrc
833INSTALL_DATA
834INSTALL_SCRIPT
835INSTALL_PROGRAM
836target_alias
837host_alias
b57f37fb 838build_alias
f030cae8
VY
839LIBS
840ECHO_T
841ECHO_N
842ECHO_C
843DEFS
844mandir
845localedir
846libdir
847psdir
848pdfdir
849dvidir
850htmldir
851infodir
852docdir
853oldincludedir
854includedir
855localstatedir
856sharedstatedir
857sysconfdir
858datadir
859datarootdir
860libexecdir
861sbindir
862bindir
863program_transform_name
864prefix
865exec_prefix
042acc47 866PACKAGE_URL
f030cae8
VY
867PACKAGE_BUGREPORT
868PACKAGE_STRING
869PACKAGE_VERSION
870PACKAGE_TARNAME
871PACKAGE_NAME
872PATH_SEPARATOR
873SHELL'
874ac_subst_files=''
875ac_user_opts='
876enable_option_checking
877enable_dependency_tracking
878enable_static
879enable_shared
880enable_maintainer_mode
042acc47 881with_pic
f030cae8
VY
882enable_fast_install
883with_gnu_ld
884enable_libtool_lock
f030cae8
VY
885enable_ipv6
886enable_openssl
887enable_gnutls
888enable_assert
889enable_profile
890enable_balloc
891enable_warnings
892'
893 ac_precious_vars='build_alias
b57f37fb
WP
894host_alias
895target_alias
b57f37fb
WP
896CC
897CFLAGS
898LDFLAGS
f030cae8 899LIBS
b57f37fb 900CPPFLAGS
b57f37fb 901CPP
dd910409
WP
902PKG_CONFIG
903GNUTLS_CFLAGS
904GNUTLS_LIBS'
94b4fbf9 905
b57f37fb
WP
906
907# Initialize some variables set by options.
908ac_init_help=
909ac_init_version=false
f030cae8
VY
910ac_unrecognized_opts=
911ac_unrecognized_sep=
b57f37fb
WP
912# The variables have the same names as the options, with
913# dashes changed to underlines.
914cache_file=/dev/null
915exec_prefix=NONE
916no_create=
917no_recursion=
918prefix=NONE
919program_prefix=NONE
920program_suffix=NONE
921program_transform_name=s,x,x,
922silent=
923site=
924srcdir=
925verbose=
926x_includes=NONE
927x_libraries=NONE
928
929# Installation directory options.
930# These are left unexpanded so users can "make install exec_prefix=/foo"
931# and all the variables that are supposed to be based on exec_prefix
932# by default will actually change.
933# Use braces instead of parens because sh, perl, etc. also accept them.
934# (The list follows the same order as the GNU Coding Standards.)
935bindir='${exec_prefix}/bin'
936sbindir='${exec_prefix}/sbin'
937libexecdir='${exec_prefix}/libexec'
938datarootdir='${prefix}/share'
939datadir='${datarootdir}'
940sysconfdir='${prefix}/etc'
941sharedstatedir='${prefix}/com'
942localstatedir='${prefix}/var'
943includedir='${prefix}/include'
944oldincludedir='/usr/include'
945docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946infodir='${datarootdir}/info'
947htmldir='${docdir}'
948dvidir='${docdir}'
949pdfdir='${docdir}'
950psdir='${docdir}'
951libdir='${exec_prefix}/lib'
952localedir='${datarootdir}/locale'
953mandir='${datarootdir}/man'
954
955ac_prev=
956ac_dashdash=
957for ac_option
958do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *) ac_optarg=yes ;;
969 esac
970
971 # Accept the important Cygnus configure options, so we can diagnose typos.
972
973 case $ac_dashdash$ac_option in
974 --)
975 ac_dashdash=yes ;;
976
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 bindir=$ac_optarg ;;
981
982 -build | --build | --buil | --bui | --bu)
983 ac_prev=build_alias ;;
984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985 build_alias=$ac_optarg ;;
986
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992 cache_file=$ac_optarg ;;
993
994 --config-cache | -C)
995 cache_file=config.cache ;;
996
997 -datadir | --datadir | --datadi | --datad)
998 ac_prev=datadir ;;
999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000 datadir=$ac_optarg ;;
1001
1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1008
1009 -disable-* | --disable-*)
f030cae8 1010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b57f37fb 1011 # Reject names that are not valid shell variable names.
f030cae8 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
042acc47 1013 as_fn_error "invalid feature name: $ac_useropt"
f030cae8
VY
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=no ;;
b57f37fb
WP
1024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
1034
1035 -enable-* | --enable-*)
f030cae8 1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b57f37fb 1037 # Reject names that are not valid shell variable names.
f030cae8 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
042acc47 1039 as_fn_error "invalid feature name: $ac_useropt"
f030cae8
VY
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044"enable_$ac_useropt"
1045"*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=\$ac_optarg ;;
b57f37fb
WP
1050
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
1058 exec_prefix=$ac_optarg ;;
1059
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1063
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
1070
1071 -host | --host | --hos | --ho)
1072 ac_prev=host_alias ;;
1073 -host=* | --host=* | --hos=* | --ho=*)
1074 host_alias=$ac_optarg ;;
1075
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1081
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
1087 includedir=$ac_optarg ;;
1088
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092 infodir=$ac_optarg ;;
1093
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097 libdir=$ac_optarg ;;
1098
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
1104 libexecdir=$ac_optarg ;;
1105
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1110
1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
1112 | --localstate | --localstat | --localsta | --localst | --locals)
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116 localstatedir=$ac_optarg ;;
1117
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121 mandir=$ac_optarg ;;
1122
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1126
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128 | --no-cr | --no-c | -n)
1129 no_create=yes ;;
1130
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1134
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142 oldincludedir=$ac_optarg ;;
1143
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147 prefix=$ac_optarg ;;
1148
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154 program_prefix=$ac_optarg ;;
1155
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161 program_suffix=$ac_optarg ;;
1162
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
1178 program_transform_name=$ac_optarg ;;
1179
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1184
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1189
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1193
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
1198 sbindir=$ac_optarg ;;
1199
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
1209 sharedstatedir=$ac_optarg ;;
1210
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
1214 site=$ac_optarg ;;
1215
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219 srcdir=$ac_optarg ;;
1220
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226 sysconfdir=$ac_optarg ;;
1227
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1229 ac_prev=target_alias ;;
1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231 target_alias=$ac_optarg ;;
1232
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1235
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
1238
1239 -with-* | --with-*)
f030cae8 1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b57f37fb 1241 # Reject names that are not valid shell variable names.
f030cae8 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
042acc47 1243 as_fn_error "invalid package name: $ac_useropt"
f030cae8
VY
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248"with_$ac_useropt"
1249"*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=\$ac_optarg ;;
b57f37fb
WP
1254
1255 -without-* | --without-*)
f030cae8 1256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b57f37fb 1257 # Reject names that are not valid shell variable names.
f030cae8 1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
042acc47 1259 as_fn_error "invalid package name: $ac_useropt"
f030cae8
VY
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264"with_$ac_useropt"
1265"*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=no ;;
b57f37fb
WP
1270
1271 --x)
1272 # Obsolete; use --with-x.
1273 with_x=yes ;;
1274
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280 x_includes=$ac_optarg ;;
1281
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287 x_libraries=$ac_optarg ;;
1288
042acc47
WP
1289 -*) as_fn_error "unrecognized option: \`$ac_option'
1290Try \`$0 --help' for more information."
b57f37fb
WP
1291 ;;
1292
1293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
042acc47
WP
1296 case $ac_envvar in #(
1297 '' | [0-9]* | *[!_$as_cr_alnum]* )
1298 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1299 esac
b57f37fb
WP
1300 eval $ac_envvar=\$ac_optarg
1301 export $ac_envvar ;;
1302
1303 *)
1304 # FIXME: should be removed in autoconf 3.0.
f030cae8 1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b57f37fb 1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f030cae8 1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b57f37fb
WP
1308 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309 ;;
1310
1311 esac
1312done
1313
1314if test -n "$ac_prev"; then
1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
042acc47 1316 as_fn_error "missing argument to $ac_option"
b57f37fb
WP
1317fi
1318
f030cae8
VY
1319if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
042acc47 1322 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
f030cae8
VY
1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 esac
1325fi
1326
1327# Check all directory arguments for consistency.
b57f37fb
WP
1328for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
1332do
1333 eval ac_val=\$$ac_var
f030cae8
VY
1334 # Remove trailing slashes.
1335 case $ac_val in
1336 */ )
1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\$ac_val;;
1339 esac
1340 # Be sure to have absolute directory names.
b57f37fb
WP
1341 case $ac_val in
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344 esac
042acc47 1345 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
b57f37fb
WP
1346done
1347
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
1354
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
f030cae8 1359 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b57f37fb
WP
1360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364fi
1365
1366ac_tool_prefix=
1367test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369test "$silent" = yes && exec 6>/dev/null
1370
1371
1372ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373ac_ls_di=`ls -di .` &&
1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
042acc47 1375 as_fn_error "working directory cannot be determined"
b57f37fb 1376test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
042acc47 1377 as_fn_error "pwd does not report name of working directory"
b57f37fb
WP
1378
1379
1380# Find the source files, if location was not specified.
1381if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
f030cae8
VY
1384 ac_confdir=`$as_dirname -- "$as_myself" ||
1385$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389$as_echo X"$as_myself" |
b57f37fb
WP
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\).*/{
1403 s//\1/
1404 q
1405 }
1406 s/.*/./; q'`
1407 srcdir=$ac_confdir
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 srcdir=..
1410 fi
1411else
1412 ac_srcdir_defaulted=no
1413fi
1414if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
042acc47 1416 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
b57f37fb
WP
1417fi
1418ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419ac_abs_confdir=`(
042acc47 1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
b57f37fb
WP
1421 pwd)`
1422# When building in place, set srcdir=.
1423if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 srcdir=.
1425fi
1426# Remove unnecessary trailing slashes from srcdir.
1427# Double slashes in file names in object file debugging info
1428# mess up M-x gdb in Emacs.
1429case $srcdir in
1430*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431esac
1432for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437done
1438
1439#
1440# Report the --help message.
1441#
1442if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
1446\`configure' configures libratbox devel to adapt to many kinds of systems.
1447
1448Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451VAR=VALUE. See below for descriptions of some of the useful variables.
1452
1453Defaults for the options are specified in brackets.
1454
1455Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465
1466Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
f030cae8 1468 [$ac_default_prefix]
b57f37fb 1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
f030cae8 1470 [PREFIX]
b57f37fb
WP
1471
1472By default, \`make install' will install all the files in
1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475for instance \`--prefix=\$HOME'.
1476
1477For better control, use the options below.
1478
1479Fine tuning of the installation directories:
f030cae8
VY
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
b57f37fb
WP
1499_ACEOF
1500
1501 cat <<\_ACEOF
1502
1503Program names:
1504 --program-prefix=PREFIX prepend PREFIX to installed program names
1505 --program-suffix=SUFFIX append SUFFIX to installed program names
1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1507
1508System types:
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515 case $ac_init_help in
1516 short | recursive ) echo "Configuration of libratbox devel:";;
1517 esac
1518 cat <<\_ACEOF
1519
1520Optional Features:
f030cae8 1521 --disable-option-checking ignore unrecognized --enable/--with options
b57f37fb
WP
1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1524 --disable-dependency-tracking speeds up one-time build
1525 --enable-dependency-tracking do not reject slow dependency extractors
1526 --enable-static[=PKGS] build static libraries [default=no]
1527 --enable-shared[=PKGS] build shared libraries [default=yes]
1528 --enable-maintainer-mode enable make rules and dependencies not useful
1529 (and sometimes confusing) to the casual installer
1530 --enable-fast-install[=PKGS]
1531 optimize for fast installation [default=yes]
1532 --disable-libtool-lock avoid locking (might break parallel builds)
1533 --disable-ipv6 Disable IPv6 support
1534 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1535 --disable-openssl Disable OpenSSL support.
033be687
VY
1536 --enable-gnutls Enable GnuTLS support.
1537 --disable-gnutls Disable GnuTLS support.
b57f37fb
WP
1538 --enable-assert Enable assert(). Choose between soft(warnings) and
1539 hard(aborts the daemon)
1540 --enable-profile Enable profiling
1541 --disable-balloc Disable the block allocator.
1542 --enable-warnings Enable all sorts of warnings for debugging.
1543
1544Optional Packages:
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b57f37fb
WP
1547 --with-pic try to use only PIC/non-PIC objects [default=use
1548 both]
042acc47 1549 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b57f37fb
WP
1550
1551Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 CPP C preprocessor
dd910409
WP
1560 PKG_CONFIG path to pkg-config utility
1561 GNUTLS_CFLAGS
1562 C compiler flags for GNUTLS, overriding pkg-config
1563 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
b57f37fb
WP
1564
1565Use these variables to override the choices made by `configure' or to help
1566it to find libraries and programs with nonstandard names/locations.
1567
042acc47 1568Report bugs to the package provider.
b57f37fb
WP
1569_ACEOF
1570ac_status=$?
1571fi
1572
1573if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
f030cae8
VY
1576 test -d "$ac_dir" ||
1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578 continue
b57f37fb
WP
1579 ac_builddir=.
1580
1581case "$ac_dir" in
1582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583*)
f030cae8 1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b57f37fb 1585 # A ".." for each directory in $ac_dir_suffix.
f030cae8 1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b57f37fb
WP
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590 esac ;;
1591esac
1592ac_abs_top_builddir=$ac_pwd
1593ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594# for backward compatibility:
1595ac_top_builddir=$ac_top_build_prefix
1596
1597case $srcdir in
1598 .) # We are building in place.
1599 ac_srcdir=.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1606 *) # Relative name.
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610esac
1611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1621 else
f030cae8 1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b57f37fb
WP
1623 fi || ac_status=$?
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1625 done
1626fi
1627
1628test -n "$ac_init_help" && exit $ac_status
1629if $ac_init_version; then
1630 cat <<\_ACEOF
1631libratbox configure devel
042acc47 1632generated by GNU Autoconf 2.64
b57f37fb 1633
042acc47 1634Copyright (C) 2009 Free Software Foundation, Inc.
b57f37fb
WP
1635This configure script is free software; the Free Software Foundation
1636gives unlimited permission to copy, distribute and modify it.
1637
f030cae8 1638$Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
b57f37fb
WP
1639_ACEOF
1640 exit
1641fi
042acc47
WP
1642
1643## ------------------------ ##
1644## Autoconf initialization. ##
1645## ------------------------ ##
1646
1647# ac_fn_c_try_compile LINENO
1648# --------------------------
1649# Try to compile conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_compile ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
1655case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1673 ac_retval=0
1674else
1675 $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679fi
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 return $ac_retval
1682
1683} # ac_fn_c_try_compile
1684
1685# ac_fn_c_try_cpp LINENO
1686# ----------------------
1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_cpp ()
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } >/dev/null && {
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 }; then :
1710 ac_retval=0
1711else
1712 $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716fi
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 return $ac_retval
1719
1720} # ac_fn_c_try_cpp
1721
1722# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723# -------------------------------------------------------
1724# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725# the include files in INCLUDES and setting the cache variable VAR
1726# accordingly.
1727ac_fn_c_check_header_mongrel ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735fi
1736eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
1739else
1740 # Is the header compilable?
1741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742$as_echo_n "checking $2 usability... " >&6; }
1743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h. */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1750else
1751 ac_header_compiler=no
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755$as_echo "$ac_header_compiler" >&6; }
1756
1757# Is the header present?
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759$as_echo_n "checking $2 presence... " >&6; }
1760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h. */
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1766else
1767 ac_header_preproc=no
1768fi
1769rm -f conftest.err conftest.$ac_ext
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771$as_echo "$ac_header_preproc" >&6; }
1772
1773# So? What about this header?
1774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 yes:no: )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ;;
1781 no:yes:* )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 ;;
1793esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798else
1799 eval "$3=\$ac_header_compiler"
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807} # ac_fn_c_check_header_mongrel
1808
1809# ac_fn_c_try_run LINENO
1810# ----------------------
1811# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812# that executables *can* be run.
1813ac_fn_c_try_run ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($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_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=$ac_status
1844fi
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1848
1849} # ac_fn_c_try_run
1850
1851# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists and can be compiled using the include files in
1854# INCLUDES, setting the cache variable VAR accordingly.
1855ac_fn_c_check_header_compile ()
1856{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1862else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865$4
1866#include <$2>
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"; then :
1869 eval "$3=yes"
1870else
1871 eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880} # ac_fn_c_check_header_compile
1881
1882# ac_fn_c_try_link LINENO
1883# -----------------------
1884# Try to link conftest.$ac_ext, and return whether this succeeded.
1885ac_fn_c_try_link ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext conftest$ac_exeext
1889 if { { ac_try="$ac_link"
1890case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895$as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1902 fi
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest$ac_exeext && {
1908 test "$cross_compiling" = yes ||
1909 $as_test_x conftest$ac_exeext
1910 }; then :
1911 ac_retval=0
1912else
1913 $as_echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=1
1917fi
1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920 # interfere with the next link command; also delete a directory that is
1921 # left behind by Apple's compiler. We do this before executing the actions.
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
1925
1926} # ac_fn_c_try_link
1927
1928# ac_fn_c_check_func LINENO FUNC VAR
1929# ----------------------------------
1930# Tests whether FUNC exists, setting the cache variable VAR accordingly
1931ac_fn_c_check_func ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
1936if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 $as_echo_n "(cached) " >&6
1938else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943#define $2 innocuous_$2
1944
1945/* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1949
1950#ifdef __STDC__
1951# include <limits.h>
1952#else
1953# include <assert.h>
1954#endif
1955
1956#undef $2
1957
1958/* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 ();
1965/* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main ()
1974{
1975return $2 ();
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982else
1983 eval "$3=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992
1993} # ac_fn_c_check_func
1994
1995# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996# -------------------------------------------
1997# Tests whether TYPE exists after having included INCLUDES, setting cache
1998# variable VAR accordingly.
1999ac_fn_c_check_type ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2006else
2007 eval "$3=no"
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h. */
2010$4
2011int
2012main ()
2013{
2014if (sizeof ($2))
2015 return 0;
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h. */
2023$4
2024int
2025main ()
2026{
2027if (sizeof (($2)))
2028 return 0;
2029 ;
2030 return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"; then :
2034
2035else
2036 eval "$3=yes"
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046
2047} # ac_fn_c_check_type
2048
2049# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2050# ----------------------------------------------------
2051# Tries to find if the field MEMBER exists in type AGGR, after including
2052# INCLUDES, setting cache variable VAR accordingly.
2053ac_fn_c_check_member ()
2054{
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2057$as_echo_n "checking for $2.$3... " >&6; }
2058if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2059 $as_echo_n "(cached) " >&6
2060else
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h. */
2063$5
2064int
2065main ()
2066{
2067static $2 ac_aggr;
2068if (ac_aggr.$3)
2069return 0;
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075 eval "$4=yes"
2076else
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$5
2080int
2081main ()
2082{
2083static $2 ac_aggr;
2084if (sizeof ac_aggr.$3)
2085return 0;
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091 eval "$4=yes"
2092else
2093 eval "$4=no"
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098fi
2099eval ac_res=\$$4
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101$as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103
2104} # ac_fn_c_check_member
b57f37fb
WP
2105cat >config.log <<_ACEOF
2106This file contains any messages produced by compilers while
2107running configure, to aid debugging if configure makes a mistake.
2108
2109It was created by libratbox $as_me devel, which was
042acc47 2110generated by GNU Autoconf 2.64. Invocation command line was
b57f37fb
WP
2111
2112 $ $0 $@
2113
2114_ACEOF
2115exec 5>>config.log
2116{
2117cat <<_ASUNAME
2118## --------- ##
2119## Platform. ##
2120## --------- ##
2121
2122hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127
2128/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130
2131/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2135/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138
2139_ASUNAME
2140
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
042acc47
WP
2146 $as_echo "PATH: $as_dir"
2147 done
b57f37fb
WP
2148IFS=$as_save_IFS
2149
2150} >&5
2151
2152cat >&5 <<_ACEOF
2153
2154
2155## ----------- ##
2156## Core tests. ##
2157## ----------- ##
2158
2159_ACEOF
2160
2161
2162# Keep a trace of the command line.
2163# Strip out --no-create and --no-recursion so they do not pile up.
2164# Strip out --silent because we don't want to record it for future runs.
2165# Also quote any args containing shell meta-characters.
2166# Make two passes to allow for proper duplicate-argument suppression.
2167ac_configure_args=
2168ac_configure_args0=
2169ac_configure_args1=
2170ac_must_keep_next=false
2171for ac_pass in 1 2
2172do
2173 for ac_arg
2174 do
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
2180 *\'*)
f030cae8 2181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b57f37fb
WP
2182 esac
2183 case $ac_pass in
042acc47 2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b57f37fb 2185 2)
042acc47 2186 as_fn_append ac_configure_args1 " '$ac_arg'"
b57f37fb
WP
2187 if test $ac_must_keep_next = true; then
2188 ac_must_keep_next=false # Got value, back to normal.
2189 else
2190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2198 ;;
2199 -* ) ac_must_keep_next=true ;;
2200 esac
2201 fi
042acc47 2202 as_fn_append ac_configure_args " '$ac_arg'"
b57f37fb
WP
2203 ;;
2204 esac
2205 done
2206done
042acc47
WP
2207{ ac_configure_args0=; unset ac_configure_args0;}
2208{ ac_configure_args1=; unset ac_configure_args1;}
b57f37fb
WP
2209
2210# When interrupted or exit'd, cleanup temporary files, and complete
2211# config.log. We remove comments because anyway the quotes in there
2212# would cause problems or look ugly.
2213# WARNING: Use '\'' to represent an apostrophe within the trap.
2214# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
2217 {
2218 echo
2219
2220 cat <<\_ASBOX
2221## ---------------- ##
2222## Cache variables. ##
2223## ---------------- ##
2224_ASBOX
2225 echo
2226 # The following way of writing the cache mishandles newlines in values,
2227(
2228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in #(
2231 *${as_nl}*)
2232 case $ac_var in #(
042acc47 2233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
f030cae8 2234$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
b57f37fb
WP
2235 esac
2236 case $ac_var in #(
2237 _ | IFS | as_nl) ;; #(
f030cae8 2238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
042acc47 2239 *) { eval $ac_var=; unset $ac_var;} ;;
b57f37fb
WP
2240 esac ;;
2241 esac
2242 done
2243 (set) 2>&1 |
2244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245 *${as_nl}ac_space=\ *)
2246 sed -n \
2247 "s/'\''/'\''\\\\'\'''\''/g;
2248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 ;; #(
2250 *)
2251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 ;;
2253 esac |
2254 sort
2255)
2256 echo
2257
2258 cat <<\_ASBOX
2259## ----------------- ##
2260## Output variables. ##
2261## ----------------- ##
2262_ASBOX
2263 echo
2264 for ac_var in $ac_subst_vars
2265 do
2266 eval ac_val=\$$ac_var
2267 case $ac_val in
f030cae8 2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b57f37fb 2269 esac
f030cae8 2270 $as_echo "$ac_var='\''$ac_val'\''"
b57f37fb
WP
2271 done | sort
2272 echo
2273
2274 if test -n "$ac_subst_files"; then
2275 cat <<\_ASBOX
2276## ------------------- ##
2277## File substitutions. ##
2278## ------------------- ##
2279_ASBOX
2280 echo
2281 for ac_var in $ac_subst_files
2282 do
2283 eval ac_val=\$$ac_var
2284 case $ac_val in
f030cae8 2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b57f37fb 2286 esac
f030cae8 2287 $as_echo "$ac_var='\''$ac_val'\''"
b57f37fb
WP
2288 done | sort
2289 echo
2290 fi
2291
2292 if test -s confdefs.h; then
2293 cat <<\_ASBOX
2294## ----------- ##
2295## confdefs.h. ##
2296## ----------- ##
2297_ASBOX
2298 echo
2299 cat confdefs.h
2300 echo
2301 fi
2302 test "$ac_signal" != 0 &&
f030cae8
VY
2303 $as_echo "$as_me: caught signal $ac_signal"
2304 $as_echo "$as_me: exit $exit_status"
b57f37fb
WP
2305 } >&5
2306 rm -f core *.core core.conftest.* &&
2307 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2308 exit $exit_status
2309' 0
2310for ac_signal in 1 2 13 15; do
042acc47 2311 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b57f37fb
WP
2312done
2313ac_signal=0
2314
2315# confdefs.h avoids OS command line length limits that DEFS can exceed.
2316rm -f -r conftest* confdefs.h
2317
042acc47
WP
2318$as_echo "/* confdefs.h */" > confdefs.h
2319
b57f37fb
WP
2320# Predefined preprocessor variables.
2321
2322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_NAME "$PACKAGE_NAME"
2324_ACEOF
2325
b57f37fb
WP
2326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2328_ACEOF
2329
b57f37fb
WP
2330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_VERSION "$PACKAGE_VERSION"
2332_ACEOF
2333
b57f37fb
WP
2334cat >>confdefs.h <<_ACEOF
2335#define PACKAGE_STRING "$PACKAGE_STRING"
2336_ACEOF
2337
b57f37fb
WP
2338cat >>confdefs.h <<_ACEOF
2339#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2340_ACEOF
2341
042acc47
WP
2342cat >>confdefs.h <<_ACEOF
2343#define PACKAGE_URL "$PACKAGE_URL"
2344_ACEOF
2345
b57f37fb
WP
2346
2347# Let the site file select an alternate cache file if it wants to.
f030cae8
VY
2348# Prefer an explicitly selected file to automatically selected ones.
2349ac_site_file1=NONE
2350ac_site_file2=NONE
b57f37fb 2351if test -n "$CONFIG_SITE"; then
f030cae8 2352 ac_site_file1=$CONFIG_SITE
b57f37fb 2353elif test "x$prefix" != xNONE; then
f030cae8
VY
2354 ac_site_file1=$prefix/share/config.site
2355 ac_site_file2=$prefix/etc/config.site
b57f37fb 2356else
f030cae8
VY
2357 ac_site_file1=$ac_default_prefix/share/config.site
2358 ac_site_file2=$ac_default_prefix/etc/config.site
b57f37fb 2359fi
f030cae8 2360for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b57f37fb 2361do
f030cae8 2362 test "x$ac_site_file" = xNONE && continue
b57f37fb 2363 if test -r "$ac_site_file"; then
042acc47 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
f030cae8 2365$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b57f37fb
WP
2366 sed 's/^/| /' "$ac_site_file" >&5
2367 . "$ac_site_file"
2368 fi
2369done
2370
2371if test -r "$cache_file"; then
2372 # Some versions of bash will fail to source /dev/null (special
2373 # files actually), so we avoid doing that.
2374 if test -f "$cache_file"; then
042acc47 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
f030cae8 2376$as_echo "$as_me: loading cache $cache_file" >&6;}
b57f37fb
WP
2377 case $cache_file in
2378 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2379 *) . "./$cache_file";;
2380 esac
2381 fi
2382else
042acc47 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
f030cae8 2384$as_echo "$as_me: creating cache $cache_file" >&6;}
b57f37fb
WP
2385 >$cache_file
2386fi
2387
2388# Check that the precious variables saved in the cache have kept the same
2389# value.
2390ac_cache_corrupted=false
2391for ac_var in $ac_precious_vars; do
2392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2393 eval ac_new_set=\$ac_env_${ac_var}_set
2394 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2395 eval ac_new_val=\$ac_env_${ac_var}_value
2396 case $ac_old_set,$ac_new_set in
2397 set,)
042acc47 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f030cae8 2399$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b57f37fb
WP
2400 ac_cache_corrupted=: ;;
2401 ,set)
042acc47 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
f030cae8 2403$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b57f37fb
WP
2404 ac_cache_corrupted=: ;;
2405 ,);;
2406 *)
2407 if test "x$ac_old_val" != "x$ac_new_val"; then
f030cae8
VY
2408 # differences in whitespace do not lead to failure.
2409 ac_old_val_w=`echo x $ac_old_val`
2410 ac_new_val_w=`echo x $ac_new_val`
2411 if test "$ac_old_val_w" != "$ac_new_val_w"; then
042acc47 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
f030cae8
VY
2413$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2414 ac_cache_corrupted=:
2415 else
042acc47 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
f030cae8
VY
2417$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2418 eval $ac_var=\$ac_old_val
2419 fi
042acc47 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
f030cae8 2421$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
042acc47 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
f030cae8 2423$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b57f37fb
WP
2424 fi;;
2425 esac
2426 # Pass precious variables to config.status.
2427 if test "$ac_new_set" = set; then
2428 case $ac_new_val in
f030cae8 2429 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b57f37fb
WP
2430 *) ac_arg=$ac_var=$ac_new_val ;;
2431 esac
2432 case " $ac_configure_args " in
2433 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
042acc47 2434 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b57f37fb
WP
2435 esac
2436 fi
2437done
2438if $ac_cache_corrupted; then
042acc47 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 2440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
042acc47 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
f030cae8 2442$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
042acc47 2443 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b57f37fb 2444fi
042acc47
WP
2445## -------------------- ##
2446## Main body of script. ##
2447## -------------------- ##
b57f37fb 2448
042acc47
WP
2449ac_ext=c
2450ac_cpp='$CPP $CPPFLAGS'
2451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453ac_compiler_gnu=$ac_cv_c_compiler_gnu
b57f37fb
WP
2454
2455
042acc47 2456am__api_version='1.11'
b57f37fb 2457
042acc47
WP
2458ac_aux_dir=
2459for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2460 for ac_t in install-sh install.sh shtool; do
2461 if test -f "$ac_dir/$ac_t"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/$ac_t -c"
2464 break 2
2465 fi
2466 done
2467done
2468if test -z "$ac_aux_dir"; then
2469 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2470fi
b57f37fb 2471
042acc47
WP
2472# These three variables are undocumented and unsupported,
2473# and are intended to be withdrawn in a future Autoconf release.
2474# They can cause serious problems if a builder's source tree is in a directory
2475# whose full name contains unusual characters.
2476ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2477ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2478ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
b57f37fb
WP
2479
2480
2481# Find a good install program. We prefer a C program (faster),
2482# so one script is as good as another. But avoid the broken or
2483# incompatible versions:
2484# SysV /etc/install, /usr/sbin/install
2485# SunOS /usr/etc/install
2486# IRIX /sbin/install
2487# AIX /bin/install
2488# AmigaOS /C/install, which installs bootblocks on floppy discs
2489# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2492# OS/2's system install, which has a completely different semantic
2493# ./install, which can be erroneously created by make from ./install.sh.
f030cae8 2494# Reject install programs that cannot install multiple files.
042acc47 2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
f030cae8 2496$as_echo_n "checking for a BSD-compatible install... " >&6; }
b57f37fb 2497if test -z "$INSTALL"; then
042acc47 2498if test "${ac_cv_path_install+set}" = set; then :
f030cae8 2499 $as_echo_n "(cached) " >&6
b57f37fb
WP
2500else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
042acc47
WP
2506 # Account for people who put trailing slashes in PATH elements.
2507case $as_dir/ in #((
2508 ./ | .// | /[cC]/* | \
b57f37fb 2509 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
042acc47 2510 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b57f37fb
WP
2511 /usr/ucb/* ) ;;
2512 *)
2513 # OSF1 and SCO ODT 3.0 have their own names for install.
2514 # Don't use installbsd from OSF since it installs stuff as root
2515 # by default.
2516 for ac_prog in ginstall scoinst install; do
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2519 if test $ac_prog = install &&
2520 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521 # AIX install. It has an incompatible calling convention.
2522 :
2523 elif test $ac_prog = install &&
2524 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # program-specific install script used by HP pwplus--don't use.
2526 :
2527 else
f030cae8
VY
2528 rm -rf conftest.one conftest.two conftest.dir
2529 echo one > conftest.one
2530 echo two > conftest.two
2531 mkdir conftest.dir
2532 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2533 test -s conftest.one && test -s conftest.two &&
2534 test -s conftest.dir/conftest.one &&
2535 test -s conftest.dir/conftest.two
2536 then
2537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538 break 3
2539 fi
b57f37fb
WP
2540 fi
2541 fi
2542 done
2543 done
2544 ;;
2545esac
f030cae8 2546
042acc47 2547 done
b57f37fb
WP
2548IFS=$as_save_IFS
2549
f030cae8 2550rm -rf conftest.one conftest.two conftest.dir
b57f37fb
WP
2551
2552fi
2553 if test "${ac_cv_path_install+set}" = set; then
2554 INSTALL=$ac_cv_path_install
2555 else
2556 # As a last resort, use the slow shell script. Don't cache a
2557 # value for INSTALL within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the value is a relative name.
2560 INSTALL=$ac_install_sh
2561 fi
2562fi
042acc47 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
f030cae8 2564$as_echo "$INSTALL" >&6; }
b57f37fb
WP
2565
2566# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567# It thinks the first close brace ends the variable substitution.
2568test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569
2570test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2571
2572test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573
042acc47 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
f030cae8 2575$as_echo_n "checking whether build environment is sane... " >&6; }
b57f37fb
WP
2576# Just in case
2577sleep 1
2578echo timestamp > conftest.file
042acc47
WP
2579# Reject unsafe characters in $srcdir or the absolute working directory
2580# name. Accept space and tab only in the latter.
2581am_lf='
2582'
2583case `pwd` in
2584 *[\\\"\#\$\&\'\`$am_lf]*)
2585 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2586esac
2587case $srcdir in
2588 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2589 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2590esac
2591
b57f37fb
WP
2592# Do `set' in a subshell so we don't clobber the current shell's
2593# arguments. Must try -L first in case configure is actually a
2594# symlink; some systems play weird games with the mod time of symlinks
2595# (eg FreeBSD returns the mod time of the symlink's containing
2596# directory).
2597if (
042acc47 2598 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
b57f37fb
WP
2599 if test "$*" = "X"; then
2600 # -L didn't work.
042acc47 2601 set X `ls -t "$srcdir/configure" conftest.file`
b57f37fb
WP
2602 fi
2603 rm -f conftest.file
2604 if test "$*" != "X $srcdir/configure conftest.file" \
2605 && test "$*" != "X conftest.file $srcdir/configure"; then
2606
2607 # If neither matched, then we have a broken ls. This can happen
2608 # if, for instance, CONFIG_SHELL is bash and it inherits a
2609 # broken ls alias from the environment. This has actually
2610 # happened. Such a system could not be considered "sane".
042acc47
WP
2611 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2612alias in your environment" "$LINENO" 5
b57f37fb
WP
2613 fi
2614
2615 test "$2" = conftest.file
2616 )
2617then
2618 # Ok.
2619 :
2620else
042acc47
WP
2621 as_fn_error "newly created file is older than distributed files!
2622Check your system clock" "$LINENO" 5
b57f37fb 2623fi
042acc47 2624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f030cae8 2625$as_echo "yes" >&6; }
b57f37fb
WP
2626test "$program_prefix" != NONE &&
2627 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2628# Use a double $ so make ignores it.
2629test "$program_suffix" != NONE &&
2630 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
f030cae8 2631# Double any \ or $.
b57f37fb 2632# By default was `s,x,x', remove it if useless.
f030cae8
VY
2633ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2634program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b57f37fb
WP
2635
2636# expand $ac_aux_dir to an absolute path
2637am_aux_dir=`cd $ac_aux_dir && pwd`
2638
042acc47
WP
2639if test x"${MISSING+set}" != xset; then
2640 case $am_aux_dir in
2641 *\ * | *\ *)
2642 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2643 *)
2644 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2645 esac
2646fi
b57f37fb
WP
2647# Use eval to expand $SHELL
2648if eval "$MISSING --run true"; then
2649 am_missing_run="$MISSING --run "
2650else
2651 am_missing_run=
042acc47 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
f030cae8 2653$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
b57f37fb
WP
2654fi
2655
042acc47
WP
2656if test x"${install_sh}" != xset; then
2657 case $am_aux_dir in
2658 *\ * | *\ *)
2659 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2660 *)
2661 install_sh="\${SHELL} $am_aux_dir/install-sh"
2662 esac
2663fi
2664
2665# Installed binaries are usually stripped using `strip' when the user
2666# run `make install-strip'. However `strip' might not be the right
2667# tool to use in cross-compilation environments, therefore Automake
2668# will honor the `STRIP' environment variable to overrule this program.
2669if test "$cross_compiling" != no; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2672set dummy ${ac_tool_prefix}strip; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if test "${ac_cv_prog_STRIP+set}" = set; then :
2676 $as_echo_n "(cached) " >&6
2677else
2678 if test -n "$STRIP"; then
2679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692done
2693 done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698STRIP=$ac_cv_prog_STRIP
2699if test -n "$STRIP"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2701$as_echo "$STRIP" >&6; }
2702else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708fi
2709if test -z "$ac_cv_prog_STRIP"; then
2710 ac_ct_STRIP=$STRIP
2711 # Extract the first word of "strip", so it can be a program name with args.
2712set dummy strip; ac_word=$2
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
2715if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2717else
2718 if test -n "$ac_ct_STRIP"; then
2719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_ac_ct_STRIP="strip"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732done
2733 done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2739if test -n "$ac_ct_STRIP"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2741$as_echo "$ac_ct_STRIP" >&6; }
2742else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747 if test "x$ac_ct_STRIP" = x; then
2748 STRIP=":"
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751yes:)
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756 STRIP=$ac_ct_STRIP
2757 fi
2758else
2759 STRIP="$ac_cv_prog_STRIP"
2760fi
2761
2762fi
2763INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2764
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
f030cae8 2766$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
b57f37fb 2767if test -z "$MKDIR_P"; then
042acc47 2768 if test "${ac_cv_path_mkdir+set}" = set; then :
f030cae8 2769 $as_echo_n "(cached) " >&6
b57f37fb
WP
2770else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2773do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
042acc47 2776 for ac_prog in mkdir gmkdir; do
b57f37fb
WP
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2779 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2780 'mkdir (GNU coreutils) '* | \
2781 'mkdir (coreutils) '* | \
2782 'mkdir (fileutils) '4.1*)
2783 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2784 break 3;;
2785 esac
2786 done
2787 done
042acc47 2788 done
b57f37fb
WP
2789IFS=$as_save_IFS
2790
2791fi
2792
2793 if test "${ac_cv_path_mkdir+set}" = set; then
2794 MKDIR_P="$ac_cv_path_mkdir -p"
2795 else
2796 # As a last resort, use the slow shell script. Don't cache a
2797 # value for MKDIR_P within a source directory, because that will
2798 # break other packages using the cache if that directory is
2799 # removed, or if the value is a relative name.
2800 test -d ./--version && rmdir ./--version
2801 MKDIR_P="$ac_install_sh -d"
2802 fi
2803fi
042acc47 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
f030cae8 2805$as_echo "$MKDIR_P" >&6; }
b57f37fb
WP
2806
2807mkdir_p="$MKDIR_P"
2808case $mkdir_p in
2809 [\\/$]* | ?:[\\/]*) ;;
2810 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2811esac
2812
2813for ac_prog in gawk mawk nawk awk
2814do
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816set dummy $ac_prog; ac_word=$2
042acc47 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 2818$as_echo_n "checking for $ac_word... " >&6; }
042acc47 2819if test "${ac_cv_prog_AWK+set}" = set; then :
f030cae8 2820 $as_echo_n "(cached) " >&6
b57f37fb
WP
2821else
2822 if test -n "$AWK"; then
2823 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
042acc47 2830 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_AWK="$ac_prog"
042acc47 2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2834 break 2
2835 fi
2836done
042acc47 2837 done
b57f37fb
WP
2838IFS=$as_save_IFS
2839
2840fi
2841fi
2842AWK=$ac_cv_prog_AWK
2843if test -n "$AWK"; then
042acc47 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
f030cae8 2845$as_echo "$AWK" >&6; }
b57f37fb 2846else
042acc47 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 2848$as_echo "no" >&6; }
b57f37fb
WP
2849fi
2850
2851
2852 test -n "$AWK" && break
2853done
2854
042acc47 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
f030cae8
VY
2856$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2857set x ${MAKE-make}
2858ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
042acc47 2859if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
f030cae8 2860 $as_echo_n "(cached) " >&6
b57f37fb
WP
2861else
2862 cat >conftest.make <<\_ACEOF
2863SHELL = /bin/sh
2864all:
2865 @echo '@@@%%%=$(MAKE)=@@@%%%'
2866_ACEOF
2867# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2868case `${MAKE-make} -f conftest.make 2>/dev/null` in
2869 *@@@%%%=?*=@@@%%%*)
2870 eval ac_cv_prog_make_${ac_make}_set=yes;;
2871 *)
2872 eval ac_cv_prog_make_${ac_make}_set=no;;
2873esac
2874rm -f conftest.make
2875fi
2876if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
042acc47 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f030cae8 2878$as_echo "yes" >&6; }
b57f37fb
WP
2879 SET_MAKE=
2880else
042acc47 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 2882$as_echo "no" >&6; }
b57f37fb
WP
2883 SET_MAKE="MAKE=${MAKE-make}"
2884fi
2885
2886rm -rf .tst 2>/dev/null
2887mkdir .tst 2>/dev/null
2888if test -d .tst; then
2889 am__leading_dot=.
2890else
2891 am__leading_dot=_
2892fi
2893rmdir .tst 2>/dev/null
2894
2895if test "`cd $srcdir && pwd`" != "`pwd`"; then
2896 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2897 # is not polluted with repeated "-I."
2898 am__isrc=' -I$(srcdir)'
2899 # test to see if srcdir already configured
2900 if test -f $srcdir/config.status; then
042acc47 2901 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
b57f37fb
WP
2902 fi
2903fi
2904
2905# test whether we have cygpath
2906if test -z "$CYGPATH_W"; then
2907 if (cygpath --version) >/dev/null 2>/dev/null; then
2908 CYGPATH_W='cygpath -w'
2909 else
2910 CYGPATH_W=echo
2911 fi
2912fi
2913
2914
2915# Define the identity of the package.
2916 PACKAGE=libratbox
2917 VERSION=devel
2918
2919
2920# Some tools Automake needs.
2921
2922ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2923
2924
2925AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2926
2927
2928AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2929
2930
2931AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2932
2933
2934MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2935
b57f37fb
WP
2936# We need awk for the "check" target. The system "awk" is bad on
2937# some platforms.
2938# Always define AMTAR for backward compatibility.
2939
2940AMTAR=${AMTAR-"${am_missing_run}tar"}
2941
2942am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2943
2944
2945
2946
2947
2948
2949ac_config_headers="$ac_config_headers include/libratbox_config.h"
2950
2951
2952
b57f37fb
WP
2953DEPDIR="${am__leading_dot}deps"
2954
2955ac_config_commands="$ac_config_commands depfiles"
2956
2957
2958am_make=${MAKE-make}
2959cat > confinc << 'END'
2960am__doit:
042acc47 2961 @echo this is the am__doit target
b57f37fb
WP
2962.PHONY: am__doit
2963END
2964# If we don't find an include directive, just comment out the code.
042acc47 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
f030cae8 2966$as_echo_n "checking for style of include used by $am_make... " >&6; }
b57f37fb
WP
2967am__include="#"
2968am__quote=
2969_am_result=none
2970# First try GNU make style include.
2971echo "include confinc" > confmf
042acc47
WP
2972# Ignore all kinds of additional output from `make'.
2973case `$am_make -s -f confmf 2> /dev/null` in #(
2974*the\ am__doit\ target*)
2975 am__include=include
2976 am__quote=
2977 _am_result=GNU
2978 ;;
2979esac
b57f37fb
WP
2980# Now try BSD make style include.
2981if test "$am__include" = "#"; then
2982 echo '.include "confinc"' > confmf
042acc47
WP
2983 case `$am_make -s -f confmf 2> /dev/null` in #(
2984 *the\ am__doit\ target*)
2985 am__include=.include
2986 am__quote="\""
2987 _am_result=BSD
2988 ;;
2989 esac
b57f37fb
WP
2990fi
2991
2992
042acc47 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
f030cae8 2994$as_echo "$_am_result" >&6; }
b57f37fb
WP
2995rm -f confinc confmf
2996
2997# Check whether --enable-dependency-tracking was given.
042acc47 2998if test "${enable_dependency_tracking+set}" = set; then :
b57f37fb
WP
2999 enableval=$enable_dependency_tracking;
3000fi
3001
3002if test "x$enable_dependency_tracking" != xno; then
3003 am_depcomp="$ac_aux_dir/depcomp"
3004 AMDEPBACKSLASH='\'
3005fi
3006 if test "x$enable_dependency_tracking" != xno; then
3007 AMDEP_TRUE=
3008 AMDEP_FALSE='#'
3009else
3010 AMDEP_TRUE='#'
3011 AMDEP_FALSE=
3012fi
3013
3014
3015ac_ext=c
3016ac_cpp='$CPP $CPPFLAGS'
3017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3022set dummy ${ac_tool_prefix}gcc; ac_word=$2
042acc47 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3024$as_echo_n "checking for $ac_word... " >&6; }
042acc47 3025if test "${ac_cv_prog_CC+set}" = set; then :
f030cae8 3026 $as_echo_n "(cached) " >&6
b57f37fb
WP
3027else
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3030else
3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
042acc47 3036 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
042acc47 3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3040 break 2
3041 fi
3042done
042acc47 3043 done
b57f37fb
WP
3044IFS=$as_save_IFS
3045
3046fi
3047fi
3048CC=$ac_cv_prog_CC
3049if test -n "$CC"; then
042acc47 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3051$as_echo "$CC" >&6; }
b57f37fb 3052else
042acc47 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3054$as_echo "no" >&6; }
b57f37fb
WP
3055fi
3056
3057
3058fi
3059if test -z "$ac_cv_prog_CC"; then
3060 ac_ct_CC=$CC
3061 # Extract the first word of "gcc", so it can be a program name with args.
3062set dummy gcc; ac_word=$2
042acc47 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3064$as_echo_n "checking for $ac_word... " >&6; }
042acc47 3065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
f030cae8 3066 $as_echo_n "(cached) " >&6
b57f37fb
WP
3067else
3068 if test -n "$ac_ct_CC"; then
3069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
042acc47 3076 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3078 ac_cv_prog_ac_ct_CC="gcc"
042acc47 3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3080 break 2
3081 fi
3082done
042acc47 3083 done
b57f37fb
WP
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089if test -n "$ac_ct_CC"; then
042acc47 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
f030cae8 3091$as_echo "$ac_ct_CC" >&6; }
b57f37fb 3092else
042acc47 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3094$as_echo "no" >&6; }
b57f37fb
WP
3095fi
3096
3097 if test "x$ac_ct_CC" = x; then
3098 CC=""
3099 else
3100 case $cross_compiling:$ac_tool_warned in
3101yes:)
042acc47 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 3103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
3104ac_tool_warned=yes ;;
3105esac
3106 CC=$ac_ct_CC
3107 fi
3108else
3109 CC="$ac_cv_prog_CC"
3110fi
3111
3112if test -z "$CC"; then
3113 if test -n "$ac_tool_prefix"; then
3114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3115set dummy ${ac_tool_prefix}cc; ac_word=$2
042acc47 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3117$as_echo_n "checking for $ac_word... " >&6; }
042acc47 3118if test "${ac_cv_prog_CC+set}" = set; then :
f030cae8 3119 $as_echo_n "(cached) " >&6
b57f37fb
WP
3120else
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3123else
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
042acc47 3129 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_CC="${ac_tool_prefix}cc"
042acc47 3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3133 break 2
3134 fi
3135done
042acc47 3136 done
b57f37fb
WP
3137IFS=$as_save_IFS
3138
3139fi
3140fi
3141CC=$ac_cv_prog_CC
3142if test -n "$CC"; then
042acc47 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3144$as_echo "$CC" >&6; }
b57f37fb 3145else
042acc47 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3147$as_echo "no" >&6; }
b57f37fb
WP
3148fi
3149
3150
3151 fi
3152fi
3153if test -z "$CC"; then
3154 # Extract the first word of "cc", so it can be a program name with args.
3155set dummy cc; ac_word=$2
042acc47 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3157$as_echo_n "checking for $ac_word... " >&6; }
042acc47 3158if test "${ac_cv_prog_CC+set}" = set; then :
f030cae8 3159 $as_echo_n "(cached) " >&6
b57f37fb
WP
3160else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163else
3164 ac_prog_rejected=no
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
042acc47 3170 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3173 ac_prog_rejected=yes
3174 continue
3175 fi
3176 ac_cv_prog_CC="cc"
042acc47 3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3178 break 2
3179 fi
3180done
042acc47 3181 done
b57f37fb
WP
3182IFS=$as_save_IFS
3183
3184if test $ac_prog_rejected = yes; then
3185 # We found a bogon in the path, so make sure we never use it.
3186 set dummy $ac_cv_prog_CC
3187 shift
3188 if test $# != 0; then
3189 # We chose a different compiler from the bogus one.
3190 # However, it has the same basename, so the bogon will be chosen
3191 # first if we set CC to just the basename; use the full file name.
3192 shift
3193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3194 fi
3195fi
3196fi
3197fi
3198CC=$ac_cv_prog_CC
3199if test -n "$CC"; then
042acc47 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3201$as_echo "$CC" >&6; }
b57f37fb 3202else
042acc47 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3204$as_echo "no" >&6; }
b57f37fb
WP
3205fi
3206
3207
3208fi
3209if test -z "$CC"; then
3210 if test -n "$ac_tool_prefix"; then
3211 for ac_prog in cl.exe
3212 do
3213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214set dummy $ac_tool_prefix$ac_prog; ac_word=$2
042acc47 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3216$as_echo_n "checking for $ac_word... " >&6; }
042acc47 3217if test "${ac_cv_prog_CC+set}" = set; then :
f030cae8 3218 $as_echo_n "(cached) " >&6
b57f37fb
WP
3219else
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3222else
3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH
3225do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
042acc47 3228 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
042acc47 3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3232 break 2
3233 fi
3234done
042acc47 3235 done
b57f37fb
WP
3236IFS=$as_save_IFS
3237
3238fi
3239fi
3240CC=$ac_cv_prog_CC
3241if test -n "$CC"; then
042acc47 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
f030cae8 3243$as_echo "$CC" >&6; }
b57f37fb 3244else
042acc47 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3246$as_echo "no" >&6; }
b57f37fb
WP
3247fi
3248
3249
3250 test -n "$CC" && break
3251 done
3252fi
3253if test -z "$CC"; then
3254 ac_ct_CC=$CC
3255 for ac_prog in cl.exe
3256do
3257 # Extract the first word of "$ac_prog", so it can be a program name with args.
3258set dummy $ac_prog; ac_word=$2
042acc47 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 3260$as_echo_n "checking for $ac_word... " >&6; }
042acc47 3261if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
f030cae8 3262 $as_echo_n "(cached) " >&6
b57f37fb
WP
3263else
3264 if test -n "$ac_ct_CC"; then
3265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266else
3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268for as_dir in $PATH
3269do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
042acc47 3272 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb
WP
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_prog_ac_ct_CC="$ac_prog"
042acc47 3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
3276 break 2
3277 fi
3278done
042acc47 3279 done
b57f37fb
WP
3280IFS=$as_save_IFS
3281
3282fi
3283fi
3284ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285if test -n "$ac_ct_CC"; then
042acc47 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
f030cae8 3287$as_echo "$ac_ct_CC" >&6; }
b57f37fb 3288else
042acc47 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 3290$as_echo "no" >&6; }
b57f37fb
WP
3291fi
3292
3293
3294 test -n "$ac_ct_CC" && break
3295done
3296
3297 if test "x$ac_ct_CC" = x; then
3298 CC=""
3299 else
3300 case $cross_compiling:$ac_tool_warned in
3301yes:)
042acc47 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 3303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
3304ac_tool_warned=yes ;;
3305esac
3306 CC=$ac_ct_CC
3307 fi
3308fi
3309
3310fi
3311
3312
042acc47 3313test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
042acc47
WP
3315as_fn_error "no acceptable C compiler found in \$PATH
3316See \`config.log' for more details." "$LINENO" 5; }
b57f37fb
WP
3317
3318# Provide some information about the compiler.
042acc47 3319$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
f030cae8
VY
3320set X $ac_compile
3321ac_compiler=$2
042acc47
WP
3322for ac_option in --version -v -V -qversion; do
3323 { { ac_try="$ac_compiler $ac_option >&5"
b57f37fb
WP
3324case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
042acc47
WP
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b57f37fb 3331 ac_status=$?
042acc47
WP
3332 if test -s conftest.err; then
3333 sed '10a\
3334... rest of stderr output deleted ...
3335 10q' conftest.err >conftest.er1
3336 cat conftest.er1 >&5
3337 rm -f conftest.er1 conftest.err
3338 fi
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341done
b57f37fb 3342
042acc47 3343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 3344/* end confdefs.h. */
042acc47 3345#include <stdio.h>
b57f37fb
WP
3346int
3347main ()
3348{
042acc47
WP
3349FILE *f = fopen ("conftest.out", "w");
3350 return ferror (f) || fclose (f) != 0;
b57f37fb
WP
3351
3352 ;
3353 return 0;
3354}
3355_ACEOF
3356ac_clean_files_save=$ac_clean_files
042acc47 3357ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b57f37fb
WP
3358# Try to create an executable without -o first, disregard a.out.
3359# It will help us diagnose broken compilers, and finding out an intuition
3360# of exeext.
042acc47 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
f030cae8
VY
3362$as_echo_n "checking for C compiler default output file name... " >&6; }
3363ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3364
3365# The possible output files:
3366ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3367
b57f37fb
WP
3368ac_rmfiles=
3369for ac_file in $ac_files
3370do
3371 case $ac_file in
f030cae8 3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b57f37fb
WP
3373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3374 esac
3375done
3376rm -f $ac_rmfiles
3377
042acc47 3378if { { ac_try="$ac_link_default"
b57f37fb
WP
3379case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
042acc47
WP
3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384$as_echo "$ac_try_echo"; } >&5
b57f37fb
WP
3385 (eval "$ac_link_default") 2>&5
3386 ac_status=$?
042acc47
WP
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }; then :
b57f37fb
WP
3389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3390# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3391# in a Makefile. We should not override ac_cv_exeext if it was cached,
3392# so that the user can short-circuit this test for compilers unknown to
3393# Autoconf.
3394for ac_file in $ac_files ''
3395do
3396 test -f "$ac_file" || continue
3397 case $ac_file in
f030cae8 3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b57f37fb
WP
3399 ;;
3400 [ab].out )
3401 # We found the default executable, but exeext='' is most
3402 # certainly right.
3403 break;;
3404 *.* )
042acc47 3405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
b57f37fb
WP
3406 then :; else
3407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408 fi
3409 # We set ac_cv_exeext here because the later test for it is not
3410 # safe: cross compilers may not add the suffix if given an `-o'
3411 # argument, so we may need to know it at that point already.
3412 # Even if this section looks crufty: it has the advantage of
3413 # actually working.
3414 break;;
3415 * )
3416 break;;
3417 esac
3418done
3419test "$ac_cv_exeext" = no && ac_cv_exeext=
3420
3421else
3422 ac_file=''
3423fi
042acc47 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
f030cae8 3425$as_echo "$ac_file" >&6; }
042acc47 3426if test -z "$ac_file"; then :
f030cae8 3427 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
042acc47 3430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
042acc47
WP
3432{ as_fn_set_status 77
3433as_fn_error "C compiler cannot create executables
3434See \`config.log' for more details." "$LINENO" 5; }; }
b57f37fb 3435fi
b57f37fb
WP
3436ac_exeext=$ac_cv_exeext
3437
3438# Check that the compiler produces executables we can run. If not, either
3439# the compiler is broken, or we cross compile.
042acc47 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
f030cae8 3441$as_echo_n "checking whether the C compiler works... " >&6; }
b57f37fb
WP
3442# If not cross compiling, check that we can run a simple program.
3443if test "$cross_compiling" != yes; then
3444 if { ac_try='./$ac_file'
042acc47 3445 { { case "(($ac_try" in
b57f37fb
WP
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
042acc47
WP
3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450$as_echo "$ac_try_echo"; } >&5
b57f37fb
WP
3451 (eval "$ac_try") 2>&5
3452 ac_status=$?
042acc47
WP
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; }; then
b57f37fb
WP
3455 cross_compiling=no
3456 else
3457 if test "$cross_compiling" = maybe; then
3458 cross_compiling=yes
3459 else
042acc47 3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
042acc47 3462as_fn_error "cannot run C compiled programs.
b57f37fb 3463If you meant to cross compile, use \`--host'.
042acc47 3464See \`config.log' for more details." "$LINENO" 5; }
b57f37fb
WP
3465 fi
3466 fi
3467fi
042acc47 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f030cae8 3469$as_echo "yes" >&6; }
b57f37fb 3470
042acc47 3471rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b57f37fb
WP
3472ac_clean_files=$ac_clean_files_save
3473# Check that the compiler produces executables we can run. If not, either
3474# the compiler is broken, or we cross compile.
042acc47 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
f030cae8 3476$as_echo_n "checking whether we are cross compiling... " >&6; }
042acc47 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
f030cae8 3478$as_echo "$cross_compiling" >&6; }
b57f37fb 3479
042acc47 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
f030cae8 3481$as_echo_n "checking for suffix of executables... " >&6; }
042acc47 3482if { { ac_try="$ac_link"
b57f37fb
WP
3483case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486esac
042acc47
WP
3487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488$as_echo "$ac_try_echo"; } >&5
b57f37fb
WP
3489 (eval "$ac_link") 2>&5
3490 ac_status=$?
042acc47
WP
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }; then :
b57f37fb
WP
3493 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3494# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3495# work properly (i.e., refer to `conftest.exe'), while it won't with
3496# `rm'.
3497for ac_file in conftest.exe conftest conftest.*; do
3498 test -f "$ac_file" || continue
3499 case $ac_file in
f030cae8 3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b57f37fb
WP
3501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3502 break;;
3503 * ) break;;
3504 esac
3505done
3506else
042acc47 3507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
042acc47
WP
3509as_fn_error "cannot compute suffix of executables: cannot compile and link
3510See \`config.log' for more details." "$LINENO" 5; }
b57f37fb 3511fi
b57f37fb 3512rm -f conftest$ac_cv_exeext
042acc47 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
f030cae8 3514$as_echo "$ac_cv_exeext" >&6; }
b57f37fb
WP
3515
3516rm -f conftest.$ac_ext
3517EXEEXT=$ac_cv_exeext
3518ac_exeext=$EXEEXT
042acc47 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
f030cae8 3520$as_echo_n "checking for suffix of object files... " >&6; }
042acc47 3521if test "${ac_cv_objext+set}" = set; then :
f030cae8 3522 $as_echo_n "(cached) " >&6
b57f37fb 3523else
042acc47 3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3525/* end confdefs.h. */
3526
3527int
3528main ()
3529{
3530
3531 ;
3532 return 0;
3533}
3534_ACEOF
3535rm -f conftest.o conftest.obj
042acc47 3536if { { ac_try="$ac_compile"
b57f37fb
WP
3537case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540esac
042acc47
WP
3541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542$as_echo "$ac_try_echo"; } >&5
b57f37fb
WP
3543 (eval "$ac_compile") 2>&5
3544 ac_status=$?
042acc47
WP
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; then :
b57f37fb
WP
3547 for ac_file in conftest.o conftest.obj conftest.*; do
3548 test -f "$ac_file" || continue;
3549 case $ac_file in
f030cae8 3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b57f37fb
WP
3551 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3552 break;;
3553 esac
3554done
3555else
f030cae8 3556 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
042acc47 3559{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 3560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
042acc47
WP
3561as_fn_error "cannot compute suffix of object files: cannot compile
3562See \`config.log' for more details." "$LINENO" 5; }
b57f37fb 3563fi
b57f37fb
WP
3564rm -f conftest.$ac_cv_objext conftest.$ac_ext
3565fi
042acc47 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
f030cae8 3567$as_echo "$ac_cv_objext" >&6; }
b57f37fb
WP
3568OBJEXT=$ac_cv_objext
3569ac_objext=$OBJEXT
042acc47 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
f030cae8 3571$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
042acc47 3572if test "${ac_cv_c_compiler_gnu+set}" = set; then :
f030cae8 3573 $as_echo_n "(cached) " >&6
b57f37fb 3574else
042acc47 3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3576/* end confdefs.h. */
3577
3578int
3579main ()
3580{
3581#ifndef __GNUC__
3582 choke me
3583#endif
3584
3585 ;
3586 return 0;
3587}
3588_ACEOF
042acc47 3589if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb
WP
3590 ac_compiler_gnu=yes
3591else
042acc47 3592 ac_compiler_gnu=no
b57f37fb 3593fi
b57f37fb
WP
3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595ac_cv_c_compiler_gnu=$ac_compiler_gnu
3596
3597fi
042acc47 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
f030cae8
VY
3599$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3600if test $ac_compiler_gnu = yes; then
3601 GCC=yes
3602else
3603 GCC=
3604fi
b57f37fb
WP
3605ac_test_CFLAGS=${CFLAGS+set}
3606ac_save_CFLAGS=$CFLAGS
042acc47 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
f030cae8 3608$as_echo_n "checking whether $CC accepts -g... " >&6; }
042acc47 3609if test "${ac_cv_prog_cc_g+set}" = set; then :
f030cae8 3610 $as_echo_n "(cached) " >&6
b57f37fb
WP
3611else
3612 ac_save_c_werror_flag=$ac_c_werror_flag
3613 ac_c_werror_flag=yes
3614 ac_cv_prog_cc_g=no
3615 CFLAGS="-g"
042acc47 3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3617/* end confdefs.h. */
3618
3619int
3620main ()
3621{
3622
3623 ;
3624 return 0;
3625}
3626_ACEOF
042acc47 3627if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb
WP
3628 ac_cv_prog_cc_g=yes
3629else
042acc47
WP
3630 CFLAGS=""
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3632/* end confdefs.h. */
3633
3634int
3635main ()
3636{
3637
3638 ;
3639 return 0;
3640}
3641_ACEOF
042acc47 3642if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb 3643
042acc47
WP
3644else
3645 ac_c_werror_flag=$ac_save_c_werror_flag
b57f37fb 3646 CFLAGS="-g"
042acc47 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3648/* end confdefs.h. */
3649
3650int
3651main ()
3652{
3653
3654 ;
3655 return 0;
3656}
3657_ACEOF
042acc47 3658if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb 3659 ac_cv_prog_cc_g=yes
b57f37fb 3660fi
b57f37fb
WP
3661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662fi
b57f37fb
WP
3663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664fi
b57f37fb
WP
3665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_c_werror_flag=$ac_save_c_werror_flag
3667fi
042acc47 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
f030cae8 3669$as_echo "$ac_cv_prog_cc_g" >&6; }
b57f37fb
WP
3670if test "$ac_test_CFLAGS" = set; then
3671 CFLAGS=$ac_save_CFLAGS
3672elif test $ac_cv_prog_cc_g = yes; then
3673 if test "$GCC" = yes; then
3674 CFLAGS="-g -O2"
3675 else
3676 CFLAGS="-g"
3677 fi
3678else
3679 if test "$GCC" = yes; then
3680 CFLAGS="-O2"
3681 else
3682 CFLAGS=
3683 fi
3684fi
042acc47 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
f030cae8 3686$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
042acc47 3687if test "${ac_cv_prog_cc_c89+set}" = set; then :
f030cae8 3688 $as_echo_n "(cached) " >&6
b57f37fb
WP
3689else
3690 ac_cv_prog_cc_c89=no
3691ac_save_CC=$CC
042acc47 3692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
3693/* end confdefs.h. */
3694#include <stdarg.h>
3695#include <stdio.h>
3696#include <sys/types.h>
3697#include <sys/stat.h>
3698/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3699struct buf { int x; };
3700FILE * (*rcsopen) (struct buf *, struct stat *, int);
3701static char *e (p, i)
3702 char **p;
3703 int i;
3704{
3705 return p[i];
3706}
3707static char *f (char * (*g) (char **, int), char **p, ...)
3708{
3709 char *s;
3710 va_list v;
3711 va_start (v,p);
3712 s = g (p, va_arg (v,int));
3713 va_end (v);
3714 return s;
3715}
3716
3717/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3718 function prototypes and stuff, but not '\xHH' hex character constants.
3719 These don't provoke an error unfortunately, instead are silently treated
3720 as 'x'. The following induces an error, until -std is added to get
3721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3722 array size at least. It's necessary to write '\x00'==0 to get something
3723 that's true only with -std. */
3724int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3725
3726/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3727 inside strings and character constants. */
3728#define FOO(x) 'x'
3729int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3730
3731int test (int i, double x);
3732struct s1 {int (*f) (int a);};
3733struct s2 {int (*f) (double a);};
3734int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3735int argc;
3736char **argv;
3737int
3738main ()
3739{
3740return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3741 ;
3742 return 0;
3743}
3744_ACEOF
3745for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3746 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3747do
3748 CC="$ac_save_CC $ac_arg"
042acc47 3749 if ac_fn_c_try_compile "$LINENO"; then :
b57f37fb 3750 ac_cv_prog_cc_c89=$ac_arg
b57f37fb 3751fi
b57f37fb
WP
3752rm -f core conftest.err conftest.$ac_objext
3753 test "x$ac_cv_prog_cc_c89" != "xno" && break
3754done
3755rm -f conftest.$ac_ext
3756CC=$ac_save_CC
3757
3758fi
3759# AC_CACHE_VAL
3760case "x$ac_cv_prog_cc_c89" in
3761 x)
042acc47 3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
f030cae8 3763$as_echo "none needed" >&6; } ;;
b57f37fb 3764 xno)
042acc47 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
f030cae8 3766$as_echo "unsupported" >&6; } ;;
b57f37fb
WP
3767 *)
3768 CC="$CC $ac_cv_prog_cc_c89"
042acc47 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
f030cae8 3770$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b57f37fb 3771esac
042acc47 3772if test "x$ac_cv_prog_cc_c89" != xno; then :
b57f37fb 3773
042acc47 3774fi
b57f37fb
WP
3775
3776ac_ext=c
3777ac_cpp='$CPP $CPPFLAGS'
3778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781
3782depcc="$CC" am_compiler_list=
3783
042acc47 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
f030cae8 3785$as_echo_n "checking dependency style of $depcc... " >&6; }
042acc47 3786if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
f030cae8 3787 $as_echo_n "(cached) " >&6
b57f37fb
WP
3788else
3789 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3790 # We make a subdir and do the tests there. Otherwise we can end up
3791 # making bogus files that we don't know about and never remove. For
3792 # instance it was reported that on HP-UX the gcc test will end up
3793 # making a dummy file named `D' -- because `-MD' means `put the output
3794 # in D'.
3795 mkdir conftest.dir
3796 # Copy depcomp to subdir because otherwise we won't find it if we're
3797 # using a relative directory.
3798 cp "$am_depcomp" conftest.dir
3799 cd conftest.dir
3800 # We will build objects and dependencies in a subdirectory because
3801 # it helps to detect inapplicable dependency modes. For instance
3802 # both Tru64's cc and ICC support -MD to output dependencies as a
3803 # side effect of compilation, but ICC will put the dependencies in
3804 # the current directory while Tru64 will put them in the object
3805 # directory.
3806 mkdir sub
3807
3808 am_cv_CC_dependencies_compiler_type=none
3809 if test "$am_compiler_list" = ""; then
3810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3811 fi
042acc47
WP
3812 am__universal=false
3813 case " $depcc " in #(
3814 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3815 esac
3816
b57f37fb
WP
3817 for depmode in $am_compiler_list; do
3818 # Setup a source with many dependencies, because some compilers
3819 # like to wrap large dependency lists on column 80 (with \), and
3820 # we should not choose a depcomp mode which is confused by this.
3821 #
3822 # We need to recreate these files for each test, as the compiler may
3823 # overwrite some of them when testing with obscure command lines.
3824 # This happens at least with the AIX C compiler.
3825 : > sub/conftest.c
3826 for i in 1 2 3 4 5 6; do
3827 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3828 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3829 # Solaris 8's {/usr,}/bin/sh.
3830 touch sub/conftst$i.h
3831 done
3832 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3833
042acc47
WP
3834 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3835 # mode. It turns out that the SunPro C++ compiler does not properly
3836 # handle `-M -o', and we need to detect this. Also, some Intel
3837 # versions had trouble with output in subdirs
3838 am__obj=sub/conftest.${OBJEXT-o}
3839 am__minus_obj="-o $am__obj"
b57f37fb 3840 case $depmode in
042acc47
WP
3841 gcc)
3842 # This depmode causes a compiler race in universal mode.
3843 test "$am__universal" = false || continue
3844 ;;
b57f37fb
WP
3845 nosideeffect)
3846 # after this tag, mechanisms are not by side-effect, so they'll
3847 # only be used when explicitly requested
3848 if test "x$enable_dependency_tracking" = xyes; then
3849 continue
3850 else
3851 break
3852 fi
3853 ;;
042acc47
WP
3854 msvisualcpp | msvcmsys)
3855 # This compiler won't grok `-c -o', but also, the minuso test has
3856 # not run yet. These depmodes are late enough in the game, and
3857 # so weak that their functioning should not be impacted.
3858 am__obj=conftest.${OBJEXT-o}
3859 am__minus_obj=
3860 ;;
b57f37fb
WP
3861 none) break ;;
3862 esac
b57f37fb 3863 if depmode=$depmode \
042acc47 3864 source=sub/conftest.c object=$am__obj \
b57f37fb 3865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
042acc47 3866 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
b57f37fb
WP
3867 >/dev/null 2>conftest.err &&
3868 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3869 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
042acc47 3870 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
b57f37fb
WP
3871 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3872 # icc doesn't choke on unknown options, it will just issue warnings
3873 # or remarks (even with -Werror). So we grep stderr for any message
3874 # that says an option was ignored or not supported.
3875 # When given -MP, icc 7.0 and 7.1 complain thusly:
3876 # icc: Command line warning: ignoring option '-M'; no argument required
3877 # The diagnosis changed in icc 8.0:
3878 # icc: Command line remark: option '-MP' not supported
3879 if (grep 'ignoring option' conftest.err ||
3880 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3881 am_cv_CC_dependencies_compiler_type=$depmode
3882 break
3883 fi
3884 fi
3885 done
3886
3887 cd ..
3888 rm -rf conftest.dir
3889else
3890 am_cv_CC_dependencies_compiler_type=none
3891fi
3892
3893fi
042acc47 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
f030cae8 3895$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
b57f37fb
WP
3896CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3897
3898 if
3899 test "x$enable_dependency_tracking" != xno \
3900 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3901 am__fastdepCC_TRUE=
3902 am__fastdepCC_FALSE='#'
3903else
3904 am__fastdepCC_TRUE='#'
3905 am__fastdepCC_FALSE=
3906fi
3907
3908
f030cae8
VY
3909
3910ac_ext=c
3911ac_cpp='$CPP $CPPFLAGS'
3912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914ac_compiler_gnu=$ac_cv_c_compiler_gnu
042acc47 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
f030cae8
VY
3916$as_echo_n "checking how to run the C preprocessor... " >&6; }
3917# On Suns, sometimes $CPP names a directory.
3918if test -n "$CPP" && test -d "$CPP"; then
3919 CPP=
3920fi
3921if test -z "$CPP"; then
042acc47 3922 if test "${ac_cv_prog_CPP+set}" = set; then :
f030cae8 3923 $as_echo_n "(cached) " >&6
b57f37fb 3924else
f030cae8
VY
3925 # Double quotes because CPP needs to be expanded
3926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3927 do
3928 ac_preproc_ok=false
3929for ac_c_preproc_warn_flag in '' yes
3930do
3931 # Use a header file that comes with gcc, so configuring glibc
3932 # with a fresh cross-compiler works.
3933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3934 # <limits.h> exists even on freestanding compilers.
3935 # On the NeXT, cc -E runs the code through the compiler's parser,
3936 # not just through cpp. "Syntax error" is here to catch this case.
042acc47 3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 3938/* end confdefs.h. */
f030cae8
VY
3939#ifdef __STDC__
3940# include <limits.h>
b57f37fb 3941#else
f030cae8 3942# include <assert.h>
b57f37fb 3943#endif
f030cae8 3944 Syntax error
b57f37fb 3945_ACEOF
042acc47 3946if ac_fn_c_try_cpp "$LINENO"; then :
b57f37fb 3947
042acc47 3948else
f030cae8
VY
3949 # Broken: fails on valid input.
3950continue
b57f37fb 3951fi
f030cae8 3952rm -f conftest.err conftest.$ac_ext
b57f37fb 3953
f030cae8
VY
3954 # OK, works on sane cases. Now check whether nonexistent headers
3955 # can be detected and how.
042acc47 3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
3957/* end confdefs.h. */
3958#include <ac_nonexistent.h>
3959_ACEOF
042acc47 3960if ac_fn_c_try_cpp "$LINENO"; then :
f030cae8
VY
3961 # Broken: success on invalid input.
3962continue
3963else
f030cae8
VY
3964 # Passes both tests.
3965ac_preproc_ok=:
3966break
3967fi
f030cae8 3968rm -f conftest.err conftest.$ac_ext
b57f37fb 3969
f030cae8
VY
3970done
3971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3972rm -f conftest.err conftest.$ac_ext
042acc47 3973if $ac_preproc_ok; then :
f030cae8 3974 break
b57f37fb
WP
3975fi
3976
f030cae8
VY
3977 done
3978 ac_cv_prog_CPP=$CPP
b57f37fb 3979
f030cae8
VY
3980fi
3981 CPP=$ac_cv_prog_CPP
b57f37fb 3982else
f030cae8
VY
3983 ac_cv_prog_CPP=$CPP
3984fi
042acc47 3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
f030cae8
VY
3986$as_echo "$CPP" >&6; }
3987ac_preproc_ok=false
3988for ac_c_preproc_warn_flag in '' yes
b57f37fb 3989do
f030cae8
VY
3990 # Use a header file that comes with gcc, so configuring glibc
3991 # with a fresh cross-compiler works.
3992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 # <limits.h> exists even on freestanding compilers.
3994 # On the NeXT, cc -E runs the code through the compiler's parser,
3995 # not just through cpp. "Syntax error" is here to catch this case.
042acc47 3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
3997/* end confdefs.h. */
3998#ifdef __STDC__
3999# include <limits.h>
4000#else
4001# include <assert.h>
4002#endif
4003 Syntax error
4004_ACEOF
042acc47 4005if ac_fn_c_try_cpp "$LINENO"; then :
b57f37fb 4006
042acc47 4007else
f030cae8
VY
4008 # Broken: fails on valid input.
4009continue
b57f37fb 4010fi
f030cae8 4011rm -f conftest.err conftest.$ac_ext
b57f37fb 4012
f030cae8
VY
4013 # OK, works on sane cases. Now check whether nonexistent headers
4014 # can be detected and how.
042acc47 4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4016/* end confdefs.h. */
4017#include <ac_nonexistent.h>
4018_ACEOF
042acc47 4019if ac_fn_c_try_cpp "$LINENO"; then :
f030cae8
VY
4020 # Broken: success on invalid input.
4021continue
4022else
f030cae8
VY
4023 # Passes both tests.
4024ac_preproc_ok=:
4025break
4026fi
f030cae8
VY
4027rm -f conftest.err conftest.$ac_ext
4028
4029done
4030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031rm -f conftest.err conftest.$ac_ext
042acc47
WP
4032if $ac_preproc_ok; then :
4033
b57f37fb 4034else
042acc47 4035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
f030cae8 4036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
042acc47
WP
4037as_fn_error "C preprocessor \"$CPP\" fails sanity check
4038See \`config.log' for more details." "$LINENO" 5; }
f030cae8
VY
4039fi
4040
4041ac_ext=c
4042ac_cpp='$CPP $CPPFLAGS'
4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046
4047
042acc47 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
f030cae8 4049$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
042acc47 4050if test "${ac_cv_path_GREP+set}" = set; then :
f030cae8 4051 $as_echo_n "(cached) " >&6
b57f37fb 4052else
f030cae8 4053 if test -z "$GREP"; then
b57f37fb 4054 ac_path_GREP_found=false
f030cae8
VY
4055 # Loop through the user's path and test for each of PROGNAME-LIST
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b57f37fb
WP
4057for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058do
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
042acc47 4061 for ac_prog in grep ggrep; do
f030cae8
VY
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4064 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4065# Check for GNU ac_path_GREP and select it if it is found.
b57f37fb
WP
4066 # Check for GNU $ac_path_GREP
4067case `"$ac_path_GREP" --version 2>&1` in
4068*GNU*)
4069 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4070*)
4071 ac_count=0
f030cae8 4072 $as_echo_n 0123456789 >"conftest.in"
b57f37fb
WP
4073 while :
4074 do
4075 cat "conftest.in" "conftest.in" >"conftest.tmp"
4076 mv "conftest.tmp" "conftest.in"
4077 cp "conftest.in" "conftest.nl"
f030cae8 4078 $as_echo 'GREP' >> "conftest.nl"
b57f37fb
WP
4079 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4081 as_fn_arith $ac_count + 1 && ac_count=$as_val
b57f37fb
WP
4082 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4083 # Best one so far, save it but keep looking for a better one
4084 ac_cv_path_GREP="$ac_path_GREP"
4085 ac_path_GREP_max=$ac_count
4086 fi
4087 # 10*(2^10) chars as input seems more than enough
4088 test $ac_count -gt 10 && break
4089 done
4090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091esac
4092
f030cae8
VY
4093 $ac_path_GREP_found && break 3
4094 done
b57f37fb 4095 done
042acc47 4096 done
b57f37fb 4097IFS=$as_save_IFS
f030cae8 4098 if test -z "$ac_cv_path_GREP"; then
042acc47 4099 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f030cae8 4100 fi
b57f37fb
WP
4101else
4102 ac_cv_path_GREP=$GREP
4103fi
4104
b57f37fb 4105fi
042acc47 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
f030cae8 4107$as_echo "$ac_cv_path_GREP" >&6; }
b57f37fb
WP
4108 GREP="$ac_cv_path_GREP"
4109
4110
042acc47 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
f030cae8 4112$as_echo_n "checking for egrep... " >&6; }
042acc47 4113if test "${ac_cv_path_EGREP+set}" = set; then :
f030cae8 4114 $as_echo_n "(cached) " >&6
b57f37fb
WP
4115else
4116 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4117 then ac_cv_path_EGREP="$GREP -E"
4118 else
f030cae8 4119 if test -z "$EGREP"; then
b57f37fb 4120 ac_path_EGREP_found=false
f030cae8
VY
4121 # Loop through the user's path and test for each of PROGNAME-LIST
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b57f37fb
WP
4123for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4124do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
042acc47 4127 for ac_prog in egrep; do
f030cae8
VY
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4130 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4131# Check for GNU ac_path_EGREP and select it if it is found.
b57f37fb
WP
4132 # Check for GNU $ac_path_EGREP
4133case `"$ac_path_EGREP" --version 2>&1` in
4134*GNU*)
4135 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4136*)
4137 ac_count=0
f030cae8 4138 $as_echo_n 0123456789 >"conftest.in"
b57f37fb
WP
4139 while :
4140 do
4141 cat "conftest.in" "conftest.in" >"conftest.tmp"
4142 mv "conftest.tmp" "conftest.in"
4143 cp "conftest.in" "conftest.nl"
f030cae8 4144 $as_echo 'EGREP' >> "conftest.nl"
b57f37fb
WP
4145 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4147 as_fn_arith $ac_count + 1 && ac_count=$as_val
b57f37fb
WP
4148 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4149 # Best one so far, save it but keep looking for a better one
4150 ac_cv_path_EGREP="$ac_path_EGREP"
4151 ac_path_EGREP_max=$ac_count
4152 fi
4153 # 10*(2^10) chars as input seems more than enough
4154 test $ac_count -gt 10 && break
4155 done
4156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4157esac
4158
f030cae8
VY
4159 $ac_path_EGREP_found && break 3
4160 done
b57f37fb 4161 done
042acc47 4162 done
b57f37fb 4163IFS=$as_save_IFS
f030cae8 4164 if test -z "$ac_cv_path_EGREP"; then
042acc47 4165 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f030cae8 4166 fi
b57f37fb
WP
4167else
4168 ac_cv_path_EGREP=$EGREP
4169fi
4170
b57f37fb
WP
4171 fi
4172fi
042acc47 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
f030cae8 4174$as_echo "$ac_cv_path_EGREP" >&6; }
b57f37fb
WP
4175 EGREP="$ac_cv_path_EGREP"
4176
4177
042acc47 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
f030cae8 4179$as_echo_n "checking for ANSI C header files... " >&6; }
042acc47 4180if test "${ac_cv_header_stdc+set}" = set; then :
f030cae8 4181 $as_echo_n "(cached) " >&6
b57f37fb 4182else
042acc47 4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 4184/* end confdefs.h. */
f030cae8
VY
4185#include <stdlib.h>
4186#include <stdarg.h>
4187#include <string.h>
4188#include <float.h>
b57f37fb 4189
b57f37fb
WP
4190int
4191main ()
4192{
f030cae8 4193
b57f37fb
WP
4194 ;
4195 return 0;
4196}
4197_ACEOF
042acc47 4198if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4199 ac_cv_header_stdc=yes
b57f37fb 4200else
042acc47 4201 ac_cv_header_stdc=no
b57f37fb 4202fi
f030cae8
VY
4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204
4205if test $ac_cv_header_stdc = yes; then
4206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
042acc47 4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4208/* end confdefs.h. */
4209#include <string.h>
4210
4211_ACEOF
4212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
042acc47
WP
4213 $EGREP "memchr" >/dev/null 2>&1; then :
4214
b57f37fb 4215else
f030cae8 4216 ac_cv_header_stdc=no
b57f37fb 4217fi
f030cae8 4218rm -f conftest*
b57f37fb
WP
4219
4220fi
4221
f030cae8
VY
4222if test $ac_cv_header_stdc = yes; then
4223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
042acc47 4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 4225/* end confdefs.h. */
f030cae8 4226#include <stdlib.h>
b57f37fb
WP
4227
4228_ACEOF
f030cae8 4229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
042acc47
WP
4230 $EGREP "free" >/dev/null 2>&1; then :
4231
b57f37fb 4232else
f030cae8 4233 ac_cv_header_stdc=no
b57f37fb 4234fi
f030cae8 4235rm -f conftest*
b57f37fb
WP
4236
4237fi
b57f37fb 4238
f030cae8
VY
4239if test $ac_cv_header_stdc = yes; then
4240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
042acc47 4241 if test "$cross_compiling" = yes; then :
f030cae8 4242 :
b57f37fb 4243else
042acc47 4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 4245/* end confdefs.h. */
f030cae8
VY
4246#include <ctype.h>
4247#include <stdlib.h>
4248#if ((' ' & 0x0FF) == 0x020)
4249# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4250# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4251#else
4252# define ISLOWER(c) \
4253 (('a' <= (c) && (c) <= 'i') \
4254 || ('j' <= (c) && (c) <= 'r') \
4255 || ('s' <= (c) && (c) <= 'z'))
4256# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
b57f37fb
WP
4257#endif
4258
f030cae8
VY
4259#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4260int
4261main ()
4262{
4263 int i;
4264 for (i = 0; i < 256; i++)
4265 if (XOR (islower (i), ISLOWER (i))
4266 || toupper (i) != TOUPPER (i))
4267 return 2;
b57f37fb
WP
4268 return 0;
4269}
4270_ACEOF
042acc47 4271if ac_fn_c_try_run "$LINENO"; then :
f030cae8 4272
042acc47
WP
4273else
4274 ac_cv_header_stdc=no
f030cae8 4275fi
042acc47
WP
4276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4277 conftest.$ac_objext conftest.beam conftest.$ac_ext
f030cae8
VY
4278fi
4279
f030cae8
VY
4280fi
4281fi
042acc47 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
f030cae8
VY
4283$as_echo "$ac_cv_header_stdc" >&6; }
4284if test $ac_cv_header_stdc = yes; then
4285
042acc47 4286$as_echo "#define STDC_HEADERS 1" >>confdefs.h
f030cae8
VY
4287
4288fi
4289
4290# On IRIX 5.3, sys/types and inttypes.h are conflicting.
042acc47
WP
4291for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4292 inttypes.h stdint.h unistd.h
4293do :
4294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4295ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4296"
4297eval as_val=\$$as_ac_Header
4298 if test "x$as_val" = x""yes; then :
4299 cat >>confdefs.h <<_ACEOF
4300#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4301_ACEOF
f030cae8 4302
042acc47 4303fi
f030cae8 4304
042acc47 4305done
f030cae8
VY
4306
4307
4308
042acc47
WP
4309 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4310if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4311 MINIX=yes
4312else
4313 MINIX=
4314fi
f030cae8
VY
4315
4316
042acc47 4317 if test "$MINIX" = yes; then
f030cae8 4318
042acc47 4319$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
f030cae8 4320
b57f37fb 4321
042acc47 4322$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
b57f37fb 4323
b57f37fb 4324
042acc47 4325$as_echo "#define _MINIX 1" >>confdefs.h
f030cae8 4326
042acc47 4327 fi
f030cae8
VY
4328
4329
042acc47 4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
f030cae8 4331$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
042acc47 4332if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
f030cae8 4333 $as_echo_n "(cached) " >&6
b57f37fb 4334else
042acc47 4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8 4336/* end confdefs.h. */
b57f37fb 4337
f030cae8
VY
4338# define __EXTENSIONS__ 1
4339 $ac_includes_default
4340int
4341main ()
4342{
4343
4344 ;
4345 return 0;
4346}
4347_ACEOF
042acc47 4348if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4349 ac_cv_safe_to_define___extensions__=yes
b57f37fb 4350else
042acc47 4351 ac_cv_safe_to_define___extensions__=no
b57f37fb 4352fi
f030cae8
VY
4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354fi
042acc47 4355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
f030cae8
VY
4356$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4357 test $ac_cv_safe_to_define___extensions__ = yes &&
042acc47 4358 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
b57f37fb 4359
042acc47 4360 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
f030cae8 4361
042acc47 4362 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
f030cae8 4363
042acc47
WP
4364 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4365
4366 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
f030cae8 4367
f030cae8
VY
4368
4369
4370
042acc47 4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
f030cae8 4372$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
042acc47 4373if test "${ac_cv_prog_cc_c99+set}" = set; then :
f030cae8 4374 $as_echo_n "(cached) " >&6
b57f37fb 4375else
f030cae8
VY
4376 ac_cv_prog_cc_c99=no
4377ac_save_CC=$CC
042acc47 4378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4379/* end confdefs.h. */
4380#include <stdarg.h>
4381#include <stdbool.h>
4382#include <stdlib.h>
4383#include <wchar.h>
4384#include <stdio.h>
b57f37fb 4385
f030cae8
VY
4386// Check varargs macros. These examples are taken from C99 6.10.3.5.
4387#define debug(...) fprintf (stderr, __VA_ARGS__)
4388#define showlist(...) puts (#__VA_ARGS__)
4389#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4390static void
4391test_varargs_macros (void)
4392{
4393 int x = 1234;
4394 int y = 5678;
4395 debug ("Flag");
4396 debug ("X = %d\n", x);
4397 showlist (The first, second, and third items.);
4398 report (x>y, "x is %d but y is %d", x, y);
4399}
b57f37fb 4400
f030cae8
VY
4401// Check long long types.
4402#define BIG64 18446744073709551615ull
4403#define BIG32 4294967295ul
4404#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4405#if !BIG_OK
4406 your preprocessor is broken;
4407#endif
4408#if BIG_OK
4409#else
4410 your preprocessor is broken;
4411#endif
4412static long long int bignum = -9223372036854775807LL;
4413static unsigned long long int ubignum = BIG64;
b57f37fb 4414
f030cae8
VY
4415struct incomplete_array
4416{
4417 int datasize;
4418 double data[];
4419};
b57f37fb 4420
f030cae8
VY
4421struct named_init {
4422 int number;
4423 const wchar_t *name;
4424 double average;
4425};
b57f37fb 4426
f030cae8 4427typedef const char *ccp;
b57f37fb 4428
f030cae8
VY
4429static inline int
4430test_restrict (ccp restrict text)
4431{
4432 // See if C++-style comments work.
4433 // Iterate through items via the restricted pointer.
4434 // Also check for declarations in for loops.
4435 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4436 continue;
4437 return 0;
4438}
b57f37fb 4439
f030cae8
VY
4440// Check varargs and va_copy.
4441static void
4442test_varargs (const char *format, ...)
4443{
4444 va_list args;
4445 va_start (args, format);
4446 va_list args_copy;
4447 va_copy (args_copy, args);
b57f37fb 4448
f030cae8
VY
4449 const char *str;
4450 int number;
4451 float fnumber;
b57f37fb 4452
f030cae8
VY
4453 while (*format)
4454 {
4455 switch (*format++)
4456 {
4457 case 's': // string
4458 str = va_arg (args_copy, const char *);
4459 break;
4460 case 'd': // int
4461 number = va_arg (args_copy, int);
4462 break;
4463 case 'f': // float
4464 fnumber = va_arg (args_copy, double);
4465 break;
4466 default:
4467 break;
4468 }
4469 }
4470 va_end (args_copy);
4471 va_end (args);
4472}
b57f37fb 4473
f030cae8
VY
4474int
4475main ()
4476{
b57f37fb 4477
f030cae8
VY
4478 // Check bool.
4479 _Bool success = false;
b57f37fb 4480
f030cae8
VY
4481 // Check restrict.
4482 if (test_restrict ("String literal") == 0)
4483 success = true;
4484 char *restrict newvar = "Another string";
b57f37fb 4485
f030cae8
VY
4486 // Check varargs.
4487 test_varargs ("s, d' f .", "string", 65, 34.234);
4488 test_varargs_macros ();
b57f37fb 4489
f030cae8
VY
4490 // Check flexible array members.
4491 struct incomplete_array *ia =
4492 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4493 ia->datasize = 10;
4494 for (int i = 0; i < ia->datasize; ++i)
4495 ia->data[i] = i * 1.234;
b57f37fb 4496
f030cae8
VY
4497 // Check named initializers.
4498 struct named_init ni = {
4499 .number = 34,
4500 .name = L"Test wide string",
4501 .average = 543.34343,
4502 };
b57f37fb 4503
f030cae8 4504 ni.number = 58;
b57f37fb 4505
f030cae8
VY
4506 int dynamic_array[ni.number];
4507 dynamic_array[ni.number - 1] = 543;
4508
4509 // work around unused variable warnings
4510 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4511 || dynamic_array[ni.number - 1] != 543);
4512
4513 ;
4514 return 0;
4515}
4516_ACEOF
4517for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4518do
4519 CC="$ac_save_CC $ac_arg"
042acc47 4520 if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4521 ac_cv_prog_cc_c99=$ac_arg
b57f37fb 4522fi
f030cae8
VY
4523rm -f core conftest.err conftest.$ac_objext
4524 test "x$ac_cv_prog_cc_c99" != "xno" && break
4525done
4526rm -f conftest.$ac_ext
4527CC=$ac_save_CC
4528
b57f37fb 4529fi
f030cae8
VY
4530# AC_CACHE_VAL
4531case "x$ac_cv_prog_cc_c99" in
4532 x)
042acc47 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
f030cae8
VY
4534$as_echo "none needed" >&6; } ;;
4535 xno)
042acc47 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
f030cae8
VY
4537$as_echo "unsupported" >&6; } ;;
4538 *)
4539 CC="$CC $ac_cv_prog_cc_c99"
042acc47 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
f030cae8 4541$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
b57f37fb 4542esac
042acc47 4543if test "x$ac_cv_prog_cc_c99" != xno; then :
b57f37fb 4544
f030cae8
VY
4545fi
4546
4547
f030cae8 4548
042acc47
WP
4549if test x"$ac_cv_prog_cc_c99" = "xno"; then
4550 as_fn_error "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
f030cae8 4551fi
b57f37fb 4552
b57f37fb
WP
4553
4554
042acc47 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
f030cae8 4556$as_echo_n "checking for egrep... " >&6; }
042acc47 4557if test "${ac_cv_path_EGREP+set}" = set; then :
f030cae8 4558 $as_echo_n "(cached) " >&6
b57f37fb 4559else
f030cae8
VY
4560 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4561 then ac_cv_path_EGREP="$GREP -E"
4562 else
4563 if test -z "$EGREP"; then
4564 ac_path_EGREP_found=false
4565 # Loop through the user's path and test for each of PROGNAME-LIST
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4568do
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
042acc47 4571 for ac_prog in egrep; do
f030cae8
VY
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4574 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4575# Check for GNU ac_path_EGREP and select it if it is found.
4576 # Check for GNU $ac_path_EGREP
4577case `"$ac_path_EGREP" --version 2>&1` in
4578*GNU*)
4579 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4580*)
4581 ac_count=0
4582 $as_echo_n 0123456789 >"conftest.in"
4583 while :
4584 do
4585 cat "conftest.in" "conftest.in" >"conftest.tmp"
4586 mv "conftest.tmp" "conftest.in"
4587 cp "conftest.in" "conftest.nl"
4588 $as_echo 'EGREP' >> "conftest.nl"
4589 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4591 as_fn_arith $ac_count + 1 && ac_count=$as_val
f030cae8
VY
4592 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4593 # Best one so far, save it but keep looking for a better one
4594 ac_cv_path_EGREP="$ac_path_EGREP"
4595 ac_path_EGREP_max=$ac_count
4596 fi
4597 # 10*(2^10) chars as input seems more than enough
4598 test $ac_count -gt 10 && break
4599 done
4600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4601esac
b57f37fb 4602
f030cae8
VY
4603 $ac_path_EGREP_found && break 3
4604 done
4605 done
042acc47 4606 done
f030cae8
VY
4607IFS=$as_save_IFS
4608 if test -z "$ac_cv_path_EGREP"; then
042acc47 4609 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f030cae8 4610 fi
b57f37fb 4611else
f030cae8 4612 ac_cv_path_EGREP=$EGREP
b57f37fb 4613fi
f030cae8
VY
4614
4615 fi
4616fi
042acc47 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
f030cae8
VY
4618$as_echo "$ac_cv_path_EGREP" >&6; }
4619 EGREP="$ac_cv_path_EGREP"
4620
4621
042acc47 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
f030cae8 4623$as_echo_n "checking for a sed that does not truncate output... " >&6; }
042acc47 4624if test "${ac_cv_path_SED+set}" = set; then :
f030cae8
VY
4625 $as_echo_n "(cached) " >&6
4626else
4627 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4628 for ac_i in 1 2 3 4 5 6 7; do
4629 ac_script="$ac_script$as_nl$ac_script"
4630 done
4631 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
042acc47 4632 { ac_script=; unset ac_script;}
f030cae8
VY
4633 if test -z "$SED"; then
4634 ac_path_SED_found=false
4635 # Loop through the user's path and test for each of PROGNAME-LIST
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
042acc47 4641 for ac_prog in sed gsed; do
f030cae8
VY
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4644 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4645# Check for GNU ac_path_SED and select it if it is found.
4646 # Check for GNU $ac_path_SED
4647case `"$ac_path_SED" --version 2>&1` in
4648*GNU*)
4649 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4650*)
4651 ac_count=0
4652 $as_echo_n 0123456789 >"conftest.in"
4653 while :
4654 do
4655 cat "conftest.in" "conftest.in" >"conftest.tmp"
4656 mv "conftest.tmp" "conftest.in"
4657 cp "conftest.in" "conftest.nl"
4658 $as_echo '' >> "conftest.nl"
4659 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
042acc47 4661 as_fn_arith $ac_count + 1 && ac_count=$as_val
f030cae8
VY
4662 if test $ac_count -gt ${ac_path_SED_max-0}; then
4663 # Best one so far, save it but keep looking for a better one
4664 ac_cv_path_SED="$ac_path_SED"
4665 ac_path_SED_max=$ac_count
b57f37fb 4666 fi
f030cae8
VY
4667 # 10*(2^10) chars as input seems more than enough
4668 test $ac_count -gt 10 && break
b57f37fb 4669 done
f030cae8
VY
4670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4671esac
4672
4673 $ac_path_SED_found && break 3
4674 done
4675 done
042acc47 4676 done
f030cae8
VY
4677IFS=$as_save_IFS
4678 if test -z "$ac_cv_path_SED"; then
042acc47 4679 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
f030cae8 4680 fi
b57f37fb 4681else
f030cae8 4682 ac_cv_path_SED=$SED
b57f37fb 4683fi
f030cae8 4684
b57f37fb 4685fi
042acc47 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
f030cae8
VY
4687$as_echo "$ac_cv_path_SED" >&6; }
4688 SED="$ac_cv_path_SED"
4689 rm -f conftest.sed
b57f37fb 4690
f030cae8
VY
4691
4692F77=no
4693CXX=no
4694GCJ=no
4695
4696# Check whether --enable-static was given.
042acc47 4697if test "${enable_static+set}" = set; then :
f030cae8
VY
4698 enableval=$enable_static; p=${PACKAGE-default}
4699 case $enableval in
4700 yes) enable_static=yes ;;
4701 no) enable_static=no ;;
4702 *)
4703 enable_static=no
4704 # Look at the argument we got. We use all the common list separators.
4705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4706 for pkg in $enableval; do
4707 IFS="$lt_save_ifs"
4708 if test "X$pkg" = "X$p"; then
4709 enable_static=yes
4710 fi
4711 done
4712 IFS="$lt_save_ifs"
4713 ;;
4714 esac
b57f37fb 4715else
f030cae8 4716 enable_static=no
b57f37fb 4717fi
f030cae8
VY
4718
4719
4720
042acc47
WP
4721
4722
4723
4724
4725
4726
f030cae8 4727# Check whether --enable-shared was given.
042acc47 4728if test "${enable_shared+set}" = set; then :
f030cae8
VY
4729 enableval=$enable_shared; p=${PACKAGE-default}
4730 case $enableval in
4731 yes) enable_shared=yes ;;
4732 no) enable_shared=no ;;
4733 *)
4734 enable_shared=no
4735 # Look at the argument we got. We use all the common list separators.
4736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4737 for pkg in $enableval; do
4738 IFS="$lt_save_ifs"
4739 if test "X$pkg" = "X$p"; then
4740 enable_shared=yes
4741 fi
4742 done
4743 IFS="$lt_save_ifs"
4744 ;;
4745 esac
b57f37fb 4746else
f030cae8 4747 enable_shared=yes
b57f37fb 4748fi
b57f37fb
WP
4749
4750
042acc47
WP
4751
4752
4753
4754
4755
4756
4757
4758
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
f030cae8
VY
4760$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4761 # Check whether --enable-maintainer-mode was given.
042acc47 4762if test "${enable_maintainer_mode+set}" = set; then :
f030cae8 4763 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b57f37fb 4764else
f030cae8 4765 USE_MAINTAINER_MODE=no
b57f37fb 4766fi
f030cae8 4767
042acc47 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
f030cae8
VY
4769$as_echo "$USE_MAINTAINER_MODE" >&6; }
4770 if test $USE_MAINTAINER_MODE = yes; then
4771 MAINTAINER_MODE_TRUE=
4772 MAINTAINER_MODE_FALSE='#'
4773else
4774 MAINTAINER_MODE_TRUE='#'
4775 MAINTAINER_MODE_FALSE=
4776fi
4777
4778 MAINT=$MAINTAINER_MODE_TRUE
4779
4780
4781
042acc47 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
f030cae8 4783$as_echo_n "checking for library containing strerror... " >&6; }
042acc47 4784if test "${ac_cv_search_strerror+set}" = set; then :
f030cae8
VY
4785 $as_echo_n "(cached) " >&6
4786else
4787 ac_func_search_save_LIBS=$LIBS
042acc47 4788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4789/* end confdefs.h. */
4790
4791/* Override any GCC internal prototype to avoid an error.
4792 Use char because int might match the return type of a GCC
4793 builtin and then its argument prototype would still apply. */
4794#ifdef __cplusplus
4795extern "C"
4796#endif
4797char strerror ();
4798int
4799main ()
4800{
4801return strerror ();
4802 ;
4803 return 0;
4804}
4805_ACEOF
4806for ac_lib in '' cposix; do
4807 if test -z "$ac_lib"; then
4808 ac_res="none required"
4809 else
4810 ac_res=-l$ac_lib
4811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4812 fi
042acc47 4813 if ac_fn_c_try_link "$LINENO"; then :
f030cae8 4814 ac_cv_search_strerror=$ac_res
f030cae8 4815fi
042acc47
WP
4816rm -f core conftest.err conftest.$ac_objext \
4817 conftest$ac_exeext
4818 if test "${ac_cv_search_strerror+set}" = set; then :
f030cae8
VY
4819 break
4820fi
4821done
042acc47
WP
4822if test "${ac_cv_search_strerror+set}" = set; then :
4823
f030cae8
VY
4824else
4825 ac_cv_search_strerror=no
4826fi
4827rm conftest.$ac_ext
4828LIBS=$ac_func_search_save_LIBS
4829fi
042acc47 4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
f030cae8
VY
4831$as_echo "$ac_cv_search_strerror" >&6; }
4832ac_res=$ac_cv_search_strerror
042acc47 4833if test "$ac_res" != no; then :
f030cae8
VY
4834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4835
4836fi
4837
042acc47 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
f030cae8 4839$as_echo_n "checking for inline... " >&6; }
042acc47 4840if test "${ac_cv_c_inline+set}" = set; then :
f030cae8
VY
4841 $as_echo_n "(cached) " >&6
4842else
4843 ac_cv_c_inline=no
4844for ac_kw in inline __inline__ __inline; do
042acc47 4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4846/* end confdefs.h. */
4847#ifndef __cplusplus
4848typedef int foo_t;
4849static $ac_kw foo_t static_foo () {return 0; }
4850$ac_kw foo_t foo () {return 0; }
4851#endif
4852
4853_ACEOF
042acc47 4854if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4855 ac_cv_c_inline=$ac_kw
f030cae8 4856fi
f030cae8
VY
4857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 test "$ac_cv_c_inline" != no && break
4859done
4860
4861fi
042acc47 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
f030cae8
VY
4863$as_echo "$ac_cv_c_inline" >&6; }
4864
f030cae8
VY
4865case $ac_cv_c_inline in
4866 inline | yes) ;;
4867 *)
4868 case $ac_cv_c_inline in
4869 no) ac_val=;;
4870 *) ac_val=$ac_cv_c_inline;;
4871 esac
4872 cat >>confdefs.h <<_ACEOF
4873#ifndef __cplusplus
4874#define inline $ac_val
4875#endif
4876_ACEOF
b57f37fb
WP
4877 ;;
4878esac
4879
042acc47 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
f030cae8 4881$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
042acc47 4882if test "${ac_cv_c_const+set}" = set; then :
f030cae8 4883 $as_echo_n "(cached) " >&6
b57f37fb 4884else
042acc47 4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8
VY
4886/* end confdefs.h. */
4887
4888int
4889main ()
4890{
4891/* FIXME: Include the comments suggested by Paul. */
4892#ifndef __cplusplus
4893 /* Ultrix mips cc rejects this. */
4894 typedef int charset[2];
4895 const charset cs;
4896 /* SunOS 4.1.1 cc rejects this. */
4897 char const *const *pcpcc;
4898 char **ppc;
4899 /* NEC SVR4.0.2 mips cc rejects this. */
4900 struct point {int x, y;};
4901 static struct point const zero = {0,0};
4902 /* AIX XL C 1.02.0.0 rejects this.
4903 It does not let you subtract one const X* pointer from another in
4904 an arm of an if-expression whose if-part is not a constant
4905 expression */
4906 const char *g = "string";
4907 pcpcc = &g + (g ? g-g : 0);
4908 /* HPUX 7.0 cc rejects these. */
4909 ++pcpcc;
4910 ppc = (char**) pcpcc;
4911 pcpcc = (char const *const *) ppc;
4912 { /* SCO 3.2v4 cc rejects this. */
4913 char *t;
4914 char const *s = 0 ? (char *) 0 : (char const *) 0;
4915
4916 *t++ = 0;
4917 if (s) return 0;
4918 }
4919 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4920 int x[] = {25, 17};
4921 const int *foo = &x[0];
4922 ++foo;
4923 }
4924 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4925 typedef const int *iptr;
4926 iptr p = 0;
4927 ++p;
4928 }
4929 { /* AIX XL C 1.02.0.0 rejects this saying
4930 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4931 struct s { int j; const int *ap[3]; };
4932 struct s *b; b->j = 5;
4933 }
4934 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4935 const int foo = 10;
4936 if (!foo) return 0;
4937 }
4938 return !cs[0] && !zero.x;
4939#endif
4940
4941 ;
4942 return 0;
4943}
4944_ACEOF
042acc47 4945if ac_fn_c_try_compile "$LINENO"; then :
f030cae8 4946 ac_cv_c_const=yes
b57f37fb 4947else
042acc47 4948 ac_cv_c_const=no
f030cae8 4949fi
f030cae8
VY
4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951fi
042acc47 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
f030cae8
VY
4953$as_echo "$ac_cv_c_const" >&6; }
4954if test $ac_cv_c_const = no; then
4955
042acc47 4956$as_echo "#define const /**/" >>confdefs.h
f030cae8
VY
4957
4958fi
4959
042acc47 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
f030cae8
VY
4961$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4962set x ${MAKE-make}
4963ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
042acc47 4964if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
f030cae8
VY
4965 $as_echo_n "(cached) " >&6
4966else
4967 cat >conftest.make <<\_ACEOF
4968SHELL = /bin/sh
4969all:
4970 @echo '@@@%%%=$(MAKE)=@@@%%%'
4971_ACEOF
4972# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4973case `${MAKE-make} -f conftest.make 2>/dev/null` in
4974 *@@@%%%=?*=@@@%%%*)
4975 eval ac_cv_prog_make_${ac_make}_set=yes;;
4976 *)
4977 eval ac_cv_prog_make_${ac_make}_set=no;;
4978esac
4979rm -f conftest.make
4980fi
4981if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
042acc47 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f030cae8
VY
4983$as_echo "yes" >&6; }
4984 SET_MAKE=
4985else
042acc47 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
4987$as_echo "no" >&6; }
4988 SET_MAKE="MAKE=${MAKE-make}"
4989fi
4990
b57f37fb 4991
f030cae8
VY
4992# Extract the first word of "automake", so it can be a program name with args.
4993set dummy automake; ac_word=$2
042acc47 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 4995$as_echo_n "checking for $ac_word... " >&6; }
042acc47 4996if test "${ac_cv_path_AUTOMAKE+set}" = set; then :
f030cae8
VY
4997 $as_echo_n "(cached) " >&6
4998else
4999 case $AUTOMAKE in
5000 [\\/]* | ?:[\\/]*)
5001 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
b57f37fb 5002 ;;
f030cae8
VY
5003 *)
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005for as_dir in $PATH
5006do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
042acc47 5009 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
042acc47 5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5013 break 2
5014 fi
5015done
042acc47 5016 done
f030cae8 5017IFS=$as_save_IFS
b57f37fb 5018
b57f37fb 5019 ;;
f030cae8
VY
5020esac
5021fi
5022AUTOMAKE=$ac_cv_path_AUTOMAKE
5023if test -n "$AUTOMAKE"; then
042acc47 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
f030cae8
VY
5025$as_echo "$AUTOMAKE" >&6; }
5026else
042acc47 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5028$as_echo "no" >&6; }
5029fi
b57f37fb 5030
b57f37fb 5031
f030cae8
VY
5032# Extract the first word of "aclocal", so it can be a program name with args.
5033set dummy aclocal; ac_word=$2
042acc47 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5035$as_echo_n "checking for $ac_word... " >&6; }
042acc47 5036if test "${ac_cv_path_ACLOCAL+set}" = set; then :
f030cae8
VY
5037 $as_echo_n "(cached) " >&6
5038else
5039 case $ACLOCAL in
5040 [\\/]* | ?:[\\/]*)
5041 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
b57f37fb 5042 ;;
b57f37fb 5043 *)
f030cae8
VY
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045for as_dir in $PATH
5046do
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
042acc47 5049 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
042acc47 5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5053 break 2
5054 fi
5055done
042acc47 5056 done
f030cae8 5057IFS=$as_save_IFS
b57f37fb 5058
b57f37fb 5059 ;;
f030cae8
VY
5060esac
5061fi
5062ACLOCAL=$ac_cv_path_ACLOCAL
5063if test -n "$ACLOCAL"; then
042acc47 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
f030cae8
VY
5065$as_echo "$ACLOCAL" >&6; }
5066else
042acc47 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5068$as_echo "no" >&6; }
5069fi
b57f37fb 5070
b57f37fb 5071
f030cae8
VY
5072# Extract the first word of "autoheader", so it can be a program name with args.
5073set dummy autoheader; ac_word=$2
042acc47 5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5075$as_echo_n "checking for $ac_word... " >&6; }
042acc47 5076if test "${ac_cv_path_AUTOHEADER+set}" = set; then :
f030cae8
VY
5077 $as_echo_n "(cached) " >&6
5078else
5079 case $AUTOHEADER in
5080 [\\/]* | ?:[\\/]*)
5081 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
b57f37fb 5082 ;;
f030cae8
VY
5083 *)
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
5086do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
042acc47 5089 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
042acc47 5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8 5093 break 2
b57f37fb 5094 fi
f030cae8 5095done
042acc47 5096 done
f030cae8
VY
5097IFS=$as_save_IFS
5098
b57f37fb 5099 ;;
f030cae8
VY
5100esac
5101fi
5102AUTOHEADER=$ac_cv_path_AUTOHEADER
5103if test -n "$AUTOHEADER"; then
042acc47 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
f030cae8
VY
5105$as_echo "$AUTOHEADER" >&6; }
5106else
042acc47 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5108$as_echo "no" >&6; }
5109fi
b57f37fb 5110
f030cae8
VY
5111
5112# Extract the first word of "as", so it can be a program name with args.
5113set dummy as; ac_word=$2
042acc47 5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5115$as_echo_n "checking for $ac_word... " >&6; }
042acc47 5116if test "${ac_cv_path_AS+set}" = set; then :
f030cae8
VY
5117 $as_echo_n "(cached) " >&6
5118else
5119 case $AS in
5120 [\\/]* | ?:[\\/]*)
5121 ac_cv_path_AS="$AS" # Let the user override the test with a path.
b57f37fb 5122 ;;
f030cae8
VY
5123 *)
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
042acc47 5129 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
042acc47 5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5133 break 2
5134 fi
5135done
042acc47 5136 done
f030cae8 5137IFS=$as_save_IFS
b57f37fb 5138
b57f37fb 5139 ;;
f030cae8
VY
5140esac
5141fi
5142AS=$ac_cv_path_AS
5143if test -n "$AS"; then
042acc47 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
f030cae8
VY
5145$as_echo "$AS" >&6; }
5146else
042acc47 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5148$as_echo "no" >&6; }
5149fi
b57f37fb 5150
b57f37fb 5151
f030cae8
VY
5152# Extract the first word of "rm", so it can be a program name with args.
5153set dummy rm; ac_word=$2
042acc47 5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5155$as_echo_n "checking for $ac_word... " >&6; }
042acc47 5156if test "${ac_cv_path_RM+set}" = set; then :
f030cae8
VY
5157 $as_echo_n "(cached) " >&6
5158else
5159 case $RM in
5160 [\\/]* | ?:[\\/]*)
5161 ac_cv_path_RM="$RM" # Let the user override the test with a path.
b57f37fb 5162 ;;
f030cae8
VY
5163 *)
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
042acc47 5169 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
042acc47 5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5173 break 2
5174 fi
5175done
042acc47 5176 done
f030cae8 5177IFS=$as_save_IFS
b57f37fb 5178
b57f37fb 5179 ;;
f030cae8
VY
5180esac
5181fi
5182RM=$ac_cv_path_RM
5183if test -n "$RM"; then
042acc47 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
f030cae8
VY
5185$as_echo "$RM" >&6; }
5186else
042acc47 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5188$as_echo "no" >&6; }
5189fi
b57f37fb 5190
b57f37fb 5191
f030cae8
VY
5192# Extract the first word of "cp", so it can be a program name with args.
5193set dummy cp; ac_word=$2
042acc47 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5195$as_echo_n "checking for $ac_word... " >&6; }
042acc47 5196if test "${ac_cv_path_CP+set}" = set; then :
f030cae8
VY
5197 $as_echo_n "(cached) " >&6
5198else
5199 case $CP in
5200 [\\/]* | ?:[\\/]*)
5201 ac_cv_path_CP="$CP" # Let the user override the test with a path.
b57f37fb 5202 ;;
f030cae8
VY
5203 *)
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
042acc47 5209 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
042acc47 5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5213 break 2
5214 fi
5215done
042acc47 5216 done
f030cae8 5217IFS=$as_save_IFS
b57f37fb 5218
b57f37fb
WP
5219 ;;
5220esac
b57f37fb 5221fi
f030cae8
VY
5222CP=$ac_cv_path_CP
5223if test -n "$CP"; then
042acc47 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
f030cae8
VY
5225$as_echo "$CP" >&6; }
5226else
042acc47 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 5228$as_echo "no" >&6; }
b57f37fb
WP
5229fi
5230
b57f37fb 5231
f030cae8
VY
5232# Extract the first word of "mv", so it can be a program name with args.
5233set dummy mv; ac_word=$2
042acc47 5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5235$as_echo_n "checking for $ac_word... " >&6; }
042acc47 5236if test "${ac_cv_path_MV+set}" = set; then :
f030cae8
VY
5237 $as_echo_n "(cached) " >&6
5238else
5239 case $MV in
5240 [\\/]* | ?:[\\/]*)
5241 ac_cv_path_MV="$MV" # Let the user override the test with a path.
b57f37fb 5242 ;;
f030cae8
VY
5243 *)
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
042acc47 5249 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
042acc47 5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8 5253 break 2
b57f37fb 5254 fi
f030cae8 5255done
042acc47 5256 done
f030cae8 5257IFS=$as_save_IFS
b57f37fb 5258
b57f37fb 5259 ;;
f030cae8
VY
5260esac
5261fi
5262MV=$ac_cv_path_MV
5263if test -n "$MV"; then
042acc47 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
f030cae8
VY
5265$as_echo "$MV" >&6; }
5266else
042acc47 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5268$as_echo "no" >&6; }
5269fi
5270
5271
5272# Extract the first word of "ln", so it can be a program name with args.
5273set dummy ln; ac_word=$2
042acc47 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5275$as_echo_n "checking for $ac_word... " >&6; }
042acc47 5276if test "${ac_cv_path_LN+set}" = set; then :
f030cae8
VY
5277 $as_echo_n "(cached) " >&6
5278else
5279 case $LN in
5280 [\\/]* | ?:[\\/]*)
5281 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5282 ;;
5283 *)
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
042acc47 5289 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
042acc47 5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5293 break 2
5294 fi
5295done
042acc47 5296 done
f030cae8 5297IFS=$as_save_IFS
b57f37fb 5298
f030cae8
VY
5299 ;;
5300esac
5301fi
5302LN=$ac_cv_path_LN
5303if test -n "$LN"; then
042acc47 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
f030cae8 5305$as_echo "$LN" >&6; }
b57f37fb 5306else
042acc47 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8
VY
5308$as_echo "no" >&6; }
5309fi
b57f37fb 5310
b57f37fb 5311
f030cae8
VY
5312# Extract the first word of "touch", so it can be a program name with args.
5313set dummy touch; ac_word=$2
042acc47 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 5315$as_echo_n "checking for $ac_word... " >&6; }
042acc47 5316if test "${ac_cv_path_TOUCH+set}" = set; then :
f030cae8
VY
5317 $as_echo_n "(cached) " >&6
5318else
5319 case $TOUCH in
5320 [\\/]* | ?:[\\/]*)
5321 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5322 ;;
5323 *)
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
042acc47 5329 for ac_exec_ext in '' $ac_executable_extensions; do
f030cae8
VY
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
042acc47 5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f030cae8
VY
5333 break 2
5334 fi
5335done
042acc47 5336 done
f030cae8 5337IFS=$as_save_IFS
b57f37fb 5338
f030cae8 5339 ;;
b57f37fb 5340esac
f030cae8
VY
5341fi
5342TOUCH=$ac_cv_path_TOUCH
5343if test -n "$TOUCH"; then
042acc47 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
f030cae8 5345$as_echo "$TOUCH" >&6; }
b57f37fb 5346else
042acc47 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 5348$as_echo "no" >&6; }
b57f37fb
WP
5349fi
5350
f030cae8
VY
5351
5352ac_ext=c
b57f37fb
WP
5353ac_cpp='$CPP $CPPFLAGS'
5354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357
f030cae8 5358
042acc47
WP
5359case `pwd` in
5360 *\ * | *\ *)
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5362$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5363esac
5364
5365
5366
5367macro_version='2.2.6'
5368macro_revision='1.3012'
5369
5370
5371
5372
5373
5374
5375
5376
5377
f030cae8
VY
5378
5379
042acc47
WP
5380
5381
5382ltmain="$ac_aux_dir/ltmain.sh"
5383
f030cae8
VY
5384# Make sure we can run config.sub.
5385$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
042acc47 5386 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f030cae8 5387
042acc47 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
f030cae8 5389$as_echo_n "checking build system type... " >&6; }
042acc47 5390if test "${ac_cv_build+set}" = set; then :
f030cae8
VY
5391 $as_echo_n "(cached) " >&6
5392else
5393 ac_build_alias=$build_alias
5394test "x$ac_build_alias" = x &&
5395 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5396test "x$ac_build_alias" = x &&
042acc47 5397 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
f030cae8 5398ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
042acc47 5399 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
f030cae8
VY
5400
5401fi
042acc47 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
f030cae8
VY
5403$as_echo "$ac_cv_build" >&6; }
5404case $ac_cv_build in
5405*-*-*) ;;
042acc47 5406*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
f030cae8
VY
5407esac
5408build=$ac_cv_build
5409ac_save_IFS=$IFS; IFS='-'
5410set x $ac_cv_build
5411shift
5412build_cpu=$1
5413build_vendor=$2
5414shift; shift
5415# Remember, the first character of IFS is used to create $*,
5416# except with old shells:
5417build_os=$*
5418IFS=$ac_save_IFS
5419case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5420
5421
042acc47 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
f030cae8 5423$as_echo_n "checking host system type... " >&6; }
042acc47 5424if test "${ac_cv_host+set}" = set; then :
f030cae8
VY
5425 $as_echo_n "(cached) " >&6
5426else
5427 if test "x$host_alias" = x; then
5428 ac_cv_host=$ac_cv_build
5429else
5430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
042acc47 5431 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
f030cae8
VY
5432fi
5433
5434fi
042acc47 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
f030cae8
VY
5436$as_echo "$ac_cv_host" >&6; }
5437case $ac_cv_host in
5438*-*-*) ;;
042acc47 5439*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
f030cae8
VY
5440esac
5441host=$ac_cv_host
5442ac_save_IFS=$IFS; IFS='-'
5443set x $ac_cv_host
5444shift
5445host_cpu=$1
5446host_vendor=$2
5447shift; shift
5448# Remember, the first character of IFS is used to create $*,
5449# except with old shells:
5450host_os=$*
5451IFS=$ac_save_IFS
5452case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5453
5454
042acc47 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
f030cae8 5456$as_echo_n "checking for a sed that does not truncate output... " >&6; }
042acc47 5457if test "${ac_cv_path_SED+set}" = set; then :
f030cae8
VY
5458 $as_echo_n "(cached) " >&6
5459else
042acc47
WP
5460 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5461 for ac_i in 1 2 3 4 5 6 7; do
5462 ac_script="$ac_script$as_nl$ac_script"
5463 done
5464 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5465 { ac_script=; unset ac_script;}
5466 if test -z "$SED"; then
5467 ac_path_SED_found=false
5468 # Loop through the user's path and test for each of PROGNAME-LIST
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f030cae8
VY
5470for as_dir in $PATH
5471do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
042acc47 5474 for ac_prog in sed gsed; do
f030cae8 5475 for ac_exec_ext in '' $ac_executable_extensions; do
042acc47
WP
5476 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5477 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5478# Check for GNU ac_path_SED and select it if it is found.
5479 # Check for GNU $ac_path_SED
5480case `"$ac_path_SED" --version 2>&1` in
5481*GNU*)
5482 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5483*)
5484 ac_count=0
5485 $as_echo_n 0123456789 >"conftest.in"
5486 while :
5487 do
5488 cat "conftest.in" "conftest.in" >"conftest.tmp"
5489 mv "conftest.tmp" "conftest.in"
5490 cp "conftest.in" "conftest.nl"
5491 $as_echo '' >> "conftest.nl"
5492 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5494 as_fn_arith $ac_count + 1 && ac_count=$as_val
5495 if test $ac_count -gt ${ac_path_SED_max-0}; then
5496 # Best one so far, save it but keep looking for a better one
5497 ac_cv_path_SED="$ac_path_SED"
5498 ac_path_SED_max=$ac_count
5499 fi
5500 # 10*(2^10) chars as input seems more than enough
5501 test $ac_count -gt 10 && break
5502 done
5503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504esac
5505
5506 $ac_path_SED_found && break 3
f030cae8
VY
5507 done
5508 done
042acc47 5509 done
f030cae8 5510IFS=$as_save_IFS
042acc47
WP
5511 if test -z "$ac_cv_path_SED"; then
5512 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
b57f37fb 5513 fi
042acc47
WP
5514else
5515 ac_cv_path_SED=$SED
5516fi
b57f37fb 5517
f030cae8 5518fi
042acc47
WP
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5520$as_echo "$ac_cv_path_SED" >&6; }
5521 SED="$ac_cv_path_SED"
5522 rm -f conftest.sed
b57f37fb 5523
042acc47
WP
5524test -z "$SED" && SED=sed
5525Xsed="$SED -e 1s/^X//"
b57f37fb 5526
b57f37fb
WP
5527
5528
b57f37fb 5529
042acc47
WP
5530
5531
5532
5533
5534
5535
5536
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5538$as_echo_n "checking for fgrep... " >&6; }
5539if test "${ac_cv_path_FGREP+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5541else
5542 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5543 then ac_cv_path_FGREP="$GREP -F"
5544 else
5545 if test -z "$FGREP"; then
5546 ac_path_FGREP_found=false
5547 # Loop through the user's path and test for each of PROGNAME-LIST
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5550do
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_prog in fgrep; do
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5556 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5557# Check for GNU ac_path_FGREP and select it if it is found.
5558 # Check for GNU $ac_path_FGREP
5559case `"$ac_path_FGREP" --version 2>&1` in
5560*GNU*)
5561 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5562*)
5563 ac_count=0
5564 $as_echo_n 0123456789 >"conftest.in"
5565 while :
5566 do
5567 cat "conftest.in" "conftest.in" >"conftest.tmp"
5568 mv "conftest.tmp" "conftest.in"
5569 cp "conftest.in" "conftest.nl"
5570 $as_echo 'FGREP' >> "conftest.nl"
5571 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5573 as_fn_arith $ac_count + 1 && ac_count=$as_val
5574 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5575 # Best one so far, save it but keep looking for a better one
5576 ac_cv_path_FGREP="$ac_path_FGREP"
5577 ac_path_FGREP_max=$ac_count
5578 fi
5579 # 10*(2^10) chars as input seems more than enough
5580 test $ac_count -gt 10 && break
5581 done
5582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5583esac
5584
5585 $ac_path_FGREP_found && break 3
5586 done
5587 done
5588 done
5589IFS=$as_save_IFS
5590 if test -z "$ac_cv_path_FGREP"; then
5591 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5592 fi
5593else
5594 ac_cv_path_FGREP=$FGREP
5595fi
5596
5597 fi
5598fi
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5600$as_echo "$ac_cv_path_FGREP" >&6; }
5601 FGREP="$ac_cv_path_FGREP"
5602
5603
5604test -z "$GREP" && GREP=grep
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624# Check whether --with-gnu-ld was given.
5625if test "${with_gnu_ld+set}" = set; then :
5626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5627else
5628 with_gnu_ld=no
5629fi
5630
5631ac_prog=ld
5632if test "$GCC" = yes; then
5633 # Check if gcc -print-prog-name=ld gives a path.
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5635$as_echo_n "checking for ld used by $CC... " >&6; }
5636 case $host in
5637 *-*-mingw*)
5638 # gcc leaves a trailing carriage return which upsets mingw
5639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5640 *)
5641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5642 esac
5643 case $ac_prog in
5644 # Accept absolute paths.
5645 [\\/]* | ?:[\\/]*)
5646 re_direlt='/[^/][^/]*/\.\./'
5647 # Canonicalize the pathname of ld
5648 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5649 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5650 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5651 done
5652 test -z "$LD" && LD="$ac_prog"
5653 ;;
5654 "")
5655 # If it fails, then pretend we aren't using GCC.
5656 ac_prog=ld
5657 ;;
5658 *)
5659 # If it is relative, then search for the first ld in PATH.
5660 with_gnu_ld=unknown
5661 ;;
5662 esac
5663elif test "$with_gnu_ld" = yes; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5665$as_echo_n "checking for GNU ld... " >&6; }
5666else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
f030cae8 5668$as_echo_n "checking for non-GNU ld... " >&6; }
b57f37fb 5669fi
042acc47 5670if test "${lt_cv_path_LD+set}" = set; then :
f030cae8
VY
5671 $as_echo_n "(cached) " >&6
5672else
5673 if test -z "$LD"; then
5674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5675 for ac_dir in $PATH; do
5676 IFS="$lt_save_ifs"
5677 test -z "$ac_dir" && ac_dir=.
5678 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5679 lt_cv_path_LD="$ac_dir/$ac_prog"
5680 # Check to see if the program is GNU ld. I'd rather use --version,
5681 # but apparently some variants of GNU ld only accept -v.
5682 # Break only if it was the GNU/non-GNU ld that we prefer.
5683 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5684 *GNU* | *'with BFD'*)
5685 test "$with_gnu_ld" != no && break
5686 ;;
5687 *)
5688 test "$with_gnu_ld" != yes && break
5689 ;;
5690 esac
5691 fi
5692 done
5693 IFS="$lt_save_ifs"
5694else
5695 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b57f37fb 5696fi
b57f37fb 5697fi
f030cae8
VY
5698
5699LD="$lt_cv_path_LD"
5700if test -n "$LD"; then
042acc47 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
f030cae8 5702$as_echo "$LD" >&6; }
b57f37fb 5703else
042acc47 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 5705$as_echo "no" >&6; }
b57f37fb 5706fi
042acc47
WP
5707test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
f030cae8 5709$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
042acc47 5710if test "${lt_cv_prog_gnu_ld+set}" = set; then :
f030cae8 5711 $as_echo_n "(cached) " >&6
b57f37fb 5712else
f030cae8
VY
5713 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5714case `$LD -v 2>&1 </dev/null` in
5715*GNU* | *'with BFD'*)
5716 lt_cv_prog_gnu_ld=yes
5717 ;;
5718*)
5719 lt_cv_prog_gnu_ld=no
5720 ;;
5721esac
b57f37fb 5722fi
042acc47 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
f030cae8
VY
5724$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5725with_gnu_ld=$lt_cv_prog_gnu_ld
b57f37fb 5726
b57f37fb 5727
b57f37fb 5728
042acc47
WP
5729
5730
5731
5732
5733
5734
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5736$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5737if test "${lt_cv_path_NM+set}" = set; then :
f030cae8
VY
5738 $as_echo_n "(cached) " >&6
5739else
5740 if test -n "$NM"; then
5741 # Let the user override the test.
5742 lt_cv_path_NM="$NM"
5743else
5744 lt_nm_to_check="${ac_tool_prefix}nm"
5745 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5746 lt_nm_to_check="$lt_nm_to_check nm"
5747 fi
5748 for lt_tmp_nm in $lt_nm_to_check; do
5749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5750 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5751 IFS="$lt_save_ifs"
5752 test -z "$ac_dir" && ac_dir=.
5753 tmp_nm="$ac_dir/$lt_tmp_nm"
5754 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5755 # Check to see if the nm accepts a BSD-compat flag.
5756 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5757 # nm: unknown option "B" ignored
5758 # Tru64's nm complains that /dev/null is an invalid object file
5759 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5760 */dev/null* | *'Invalid file or object type'*)
5761 lt_cv_path_NM="$tmp_nm -B"
5762 break
5763 ;;
5764 *)
5765 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5766 */dev/null*)
5767 lt_cv_path_NM="$tmp_nm -p"
5768 break
5769 ;;
5770 *)
5771 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5772 continue # so that we can try to find one that supports BSD flags
5773 ;;
5774 esac
5775 ;;
5776 esac
5777 fi
5778 done
5779 IFS="$lt_save_ifs"
5780 done
042acc47 5781 : ${lt_cv_path_NM=no}
b57f37fb 5782fi
f030cae8 5783fi
042acc47 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
f030cae8 5785$as_echo "$lt_cv_path_NM" >&6; }
042acc47
WP
5786if test "$lt_cv_path_NM" != "no"; then
5787 NM="$lt_cv_path_NM"
5788else
5789 # Didn't find any BSD compatible name lister, look for dumpbin.
5790 if test -n "$ac_tool_prefix"; then
5791 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5792 do
5793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5794set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796$as_echo_n "checking for $ac_word... " >&6; }
5797if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799else
5800 if test -n "$DUMPBIN"; then
5801 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814done
5815 done
5816IFS=$as_save_IFS
b57f37fb 5817
042acc47
WP
5818fi
5819fi
5820DUMPBIN=$ac_cv_prog_DUMPBIN
5821if test -n "$DUMPBIN"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5823$as_echo "$DUMPBIN" >&6; }
b57f37fb 5824else
042acc47
WP
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }
b57f37fb
WP
5827fi
5828
042acc47
WP
5829
5830 test -n "$DUMPBIN" && break
5831 done
5832fi
5833if test -z "$DUMPBIN"; then
5834 ac_ct_DUMPBIN=$DUMPBIN
5835 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5836do
5837 # Extract the first word of "$ac_prog", so it can be a program name with args.
5838set dummy $ac_prog; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
f030cae8
VY
5842 $as_echo_n "(cached) " >&6
5843else
042acc47
WP
5844 if test -n "$ac_ct_DUMPBIN"; then
5845 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859 done
5860IFS=$as_save_IFS
b57f37fb 5861
042acc47
WP
5862fi
5863fi
5864ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5865if test -n "$ac_ct_DUMPBIN"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5867$as_echo "$ac_ct_DUMPBIN" >&6; }
5868else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
b57f37fb 5872
b57f37fb 5873
042acc47
WP
5874 test -n "$ac_ct_DUMPBIN" && break
5875done
b57f37fb 5876
042acc47
WP
5877 if test "x$ac_ct_DUMPBIN" = x; then
5878 DUMPBIN=":"
f030cae8 5879 else
042acc47
WP
5880 case $cross_compiling:$ac_tool_warned in
5881yes:)
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884ac_tool_warned=yes ;;
5885esac
5886 DUMPBIN=$ac_ct_DUMPBIN
f030cae8 5887 fi
042acc47 5888fi
b57f37fb 5889
b57f37fb 5890
042acc47
WP
5891 if test "$DUMPBIN" != ":"; then
5892 NM="$DUMPBIN"
f030cae8 5893 fi
042acc47
WP
5894fi
5895test -z "$NM" && NM=nm
b57f37fb 5896
b57f37fb 5897
b57f37fb 5898
b57f37fb 5899
f030cae8 5900
f030cae8 5901
042acc47
WP
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5903$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5904if test "${lt_cv_nm_interface+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906else
5907 lt_cv_nm_interface="BSD nm"
5908 echo "int some_variable = 0;" > conftest.$ac_ext
5909 (eval echo "\"\$as_me:5909: $ac_compile\"" >&5)
5910 (eval "$ac_compile" 2>conftest.err)
5911 cat conftest.err >&5
5912 (eval echo "\"\$as_me:5912: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5913 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5914 cat conftest.err >&5
5915 (eval echo "\"\$as_me:5915: output\"" >&5)
5916 cat conftest.out >&5
5917 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5918 lt_cv_nm_interface="MS dumpbin"
f030cae8 5919 fi
042acc47
WP
5920 rm -f conftest*
5921fi
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5923$as_echo "$lt_cv_nm_interface" >&6; }
b57f37fb 5924
042acc47
WP
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5926$as_echo_n "checking whether ln -s works... " >&6; }
5927LN_S=$as_ln_s
5928if test "$LN_S" = "ln -s"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5930$as_echo "yes" >&6; }
5931else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5933$as_echo "no, using $LN_S" >&6; }
5934fi
b57f37fb 5935
042acc47
WP
5936# find the maximum length of command line arguments
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5938$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5939if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941else
5942 i=0
5943 teststring="ABCD"
b57f37fb 5944
042acc47
WP
5945 case $build_os in
5946 msdosdjgpp*)
5947 # On DJGPP, this test can blow up pretty badly due to problems in libc
5948 # (any single argument exceeding 2000 bytes causes a buffer overrun
5949 # during glob expansion). Even if it were fixed, the result of this
5950 # check would be larger than it should be.
5951 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5952 ;;
b57f37fb 5953
042acc47
WP
5954 gnu*)
5955 # Under GNU Hurd, this test is not required because there is
5956 # no limit to the length of command line arguments.
5957 # Libtool will interpret -1 as no limit whatsoever
5958 lt_cv_sys_max_cmd_len=-1;
5959 ;;
b57f37fb 5960
042acc47
WP
5961 cygwin* | mingw* | cegcc*)
5962 # On Win9x/ME, this test blows up -- it succeeds, but takes
5963 # about 5 minutes as the teststring grows exponentially.
5964 # Worse, since 9x/ME are not pre-emptively multitasking,
5965 # you end up with a "frozen" computer, even though with patience
5966 # the test eventually succeeds (with a max line length of 256k).
5967 # Instead, let's just punt: use the minimum linelength reported by
5968 # all of the supported platforms: 8192 (on NT/2K/XP).
5969 lt_cv_sys_max_cmd_len=8192;
5970 ;;
b57f37fb 5971
042acc47
WP
5972 amigaos*)
5973 # On AmigaOS with pdksh, this test takes hours, literally.
5974 # So we just punt and use a minimum line length of 8192.
5975 lt_cv_sys_max_cmd_len=8192;
5976 ;;
b57f37fb 5977
042acc47
WP
5978 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5979 # This has been around since 386BSD, at least. Likely further.
5980 if test -x /sbin/sysctl; then
5981 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5982 elif test -x /usr/sbin/sysctl; then
5983 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5984 else
5985 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5986 fi
5987 # And add a safety zone
5988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5989 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
f030cae8 5990 ;;
042acc47
WP
5991
5992 interix*)
5993 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5994 lt_cv_sys_max_cmd_len=196608
f030cae8 5995 ;;
042acc47
WP
5996
5997 osf*)
5998 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5999 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6000 # nice to cause kernel panics so lets avoid the loop below.
6001 # First set a reasonable default.
6002 lt_cv_sys_max_cmd_len=16384
6003 #
6004 if test -x /sbin/sysconfig; then
6005 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6006 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6007 esac
6008 fi
f030cae8 6009 ;;
042acc47
WP
6010 sco3.2v5*)
6011 lt_cv_sys_max_cmd_len=102400
f030cae8 6012 ;;
042acc47
WP
6013 sysv5* | sco5v6* | sysv4.2uw2*)
6014 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6015 if test -n "$kargmax"; then
6016 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6017 else
6018 lt_cv_sys_max_cmd_len=32768
6019 fi
f030cae8 6020 ;;
042acc47
WP
6021 *)
6022 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6023 if test -n "$lt_cv_sys_max_cmd_len"; then
6024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6026 else
6027 # Make teststring a little bigger before we do anything with it.
6028 # a 1K string should be a reasonable start.
6029 for i in 1 2 3 4 5 6 7 8 ; do
6030 teststring=$teststring$teststring
6031 done
6032 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6033 # If test is not a shell built-in, we'll probably end up computing a
6034 # maximum length that is only half of the actual maximum length, but
6035 # we can't tell.
6036 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6037 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6038 test $i != 17 # 1/2 MB should be enough
6039 do
6040 i=`expr $i + 1`
6041 teststring=$teststring$teststring
6042 done
6043 # Only check the string length outside the loop.
6044 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6045 teststring=
6046 # Add a significant safety factor because C++ compilers can tack on
6047 # massive amounts of additional arguments before passing them to the
6048 # linker. It appears as though 1/2 is a usable value.
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6050 fi
f030cae8
VY
6051 ;;
6052 esac
f030cae8 6053
042acc47 6054fi
b57f37fb 6055
042acc47
WP
6056if test -n $lt_cv_sys_max_cmd_len ; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6058$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6059else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6061$as_echo "none" >&6; }
b57f37fb 6062fi
042acc47 6063max_cmd_len=$lt_cv_sys_max_cmd_len
f030cae8 6064
b57f37fb 6065
b57f37fb
WP
6066
6067
6068
6069
042acc47
WP
6070: ${CP="cp -f"}
6071: ${MV="mv -f"}
6072: ${RM="rm -f"}
b57f37fb 6073
042acc47
WP
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6075$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6076# Try some XSI features
6077xsi_shell=no
6078( _lt_dummy="a/b/c"
6079 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6080 = c,a/b,, \
6081 && eval 'test $(( 1 + 1 )) -eq 2 \
6082 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6083 && xsi_shell=yes
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6085$as_echo "$xsi_shell" >&6; }
6086
6087
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6089$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6090lt_shell_append=no
6091( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6092 >/dev/null 2>&1 \
6093 && lt_shell_append=yes
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6095$as_echo "$lt_shell_append" >&6; }
6096
6097
6098if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6099 lt_unset=unset
6100else
6101 lt_unset=false
f030cae8 6102fi
b57f37fb
WP
6103
6104
042acc47
WP
6105
6106
6107
6108# test EBCDIC or ASCII
6109case `echo X|tr X '\101'` in
6110 A) # ASCII based system
6111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6112 lt_SP2NL='tr \040 \012'
6113 lt_NL2SP='tr \015\012 \040\040'
f030cae8 6114 ;;
042acc47
WP
6115 *) # EBCDIC based system
6116 lt_SP2NL='tr \100 \n'
6117 lt_NL2SP='tr \r\n \100\100'
f030cae8 6118 ;;
042acc47 6119esac
b57f37fb 6120
b57f37fb 6121
b57f37fb 6122
b57f37fb 6123
f030cae8 6124
f030cae8 6125
b57f37fb
WP
6126
6127
6128
042acc47
WP
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6130$as_echo_n "checking for $LD option to reload object files... " >&6; }
6131if test "${lt_cv_ld_reload_flag+set}" = set; then :
f030cae8 6132 $as_echo_n "(cached) " >&6
b57f37fb 6133else
042acc47 6134 lt_cv_ld_reload_flag='-r'
b57f37fb 6135fi
042acc47
WP
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6137$as_echo "$lt_cv_ld_reload_flag" >&6; }
6138reload_flag=$lt_cv_ld_reload_flag
6139case $reload_flag in
6140"" | " "*) ;;
6141*) reload_flag=" $reload_flag" ;;
6142esac
6143reload_cmds='$LD$reload_flag -o $output$reload_objs'
6144case $host_os in
6145 darwin*)
6146 if test "$GCC" = yes; then
6147 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6148 else
6149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6150 fi
6151 ;;
b57f37fb 6152esac
b57f37fb 6153
b57f37fb 6154
b57f37fb 6155
b57f37fb 6156
b57f37fb 6157
b57f37fb 6158
b57f37fb 6159
b57f37fb 6160
042acc47
WP
6161
6162if test -n "$ac_tool_prefix"; then
6163 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6164set dummy ${ac_tool_prefix}objdump; ac_word=$2
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6166$as_echo_n "checking for $ac_word... " >&6; }
042acc47 6167if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
f030cae8 6168 $as_echo_n "(cached) " >&6
b57f37fb 6169else
042acc47
WP
6170 if test -n "$OBJDUMP"; then
6171 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
b57f37fb
WP
6172else
6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174for as_dir in $PATH
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
042acc47 6178 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
6180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6182 break 2
6183 fi
6184done
042acc47 6185 done
b57f37fb
WP
6186IFS=$as_save_IFS
6187
6188fi
6189fi
042acc47
WP
6190OBJDUMP=$ac_cv_prog_OBJDUMP
6191if test -n "$OBJDUMP"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6193$as_echo "$OBJDUMP" >&6; }
b57f37fb 6194else
042acc47 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6196$as_echo "no" >&6; }
b57f37fb
WP
6197fi
6198
6199
b57f37fb 6200fi
042acc47
WP
6201if test -z "$ac_cv_prog_OBJDUMP"; then
6202 ac_ct_OBJDUMP=$OBJDUMP
6203 # Extract the first word of "objdump", so it can be a program name with args.
6204set dummy objdump; ac_word=$2
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6206$as_echo_n "checking for $ac_word... " >&6; }
042acc47 6207if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
f030cae8 6208 $as_echo_n "(cached) " >&6
b57f37fb 6209else
042acc47
WP
6210 if test -n "$ac_ct_OBJDUMP"; then
6211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
b57f37fb
WP
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
042acc47 6218 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
6220 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6222 break 2
6223 fi
6224done
042acc47 6225 done
b57f37fb
WP
6226IFS=$as_save_IFS
6227
6228fi
6229fi
042acc47
WP
6230ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6231if test -n "$ac_ct_OBJDUMP"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6233$as_echo "$ac_ct_OBJDUMP" >&6; }
b57f37fb 6234else
042acc47 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6236$as_echo "no" >&6; }
b57f37fb
WP
6237fi
6238
042acc47
WP
6239 if test "x$ac_ct_OBJDUMP" = x; then
6240 OBJDUMP="false"
b57f37fb
WP
6241 else
6242 case $cross_compiling:$ac_tool_warned in
6243yes:)
042acc47 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 6245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
6246ac_tool_warned=yes ;;
6247esac
042acc47 6248 OBJDUMP=$ac_ct_OBJDUMP
b57f37fb 6249 fi
042acc47
WP
6250else
6251 OBJDUMP="$ac_cv_prog_OBJDUMP"
b57f37fb 6252fi
b57f37fb 6253
042acc47 6254test -z "$OBJDUMP" && OBJDUMP=objdump
b57f37fb 6255
b57f37fb 6256
b57f37fb 6257
b57f37fb 6258
b57f37fb 6259
b57f37fb 6260
b57f37fb 6261
b57f37fb 6262
b57f37fb 6263
042acc47
WP
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6265$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6266if test "${lt_cv_deplibs_check_method+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
b57f37fb 6268else
042acc47
WP
6269 lt_cv_file_magic_cmd='$MAGIC_CMD'
6270lt_cv_file_magic_test_file=
6271lt_cv_deplibs_check_method='unknown'
6272# Need to set the preceding variable on all platforms that support
6273# interlibrary dependencies.
6274# 'none' -- dependencies not supported.
6275# `unknown' -- same as none, but documents that we really don't know.
6276# 'pass_all' -- all dependencies passed with no checks.
6277# 'test_compile' -- check by making test program.
6278# 'file_magic [[regex]]' -- check by looking for files in library path
6279# which responds to the $file_magic_cmd with a given extended regex.
6280# If you have `file' or equivalent on your system and you're not sure
6281# whether `pass_all' will *always* work, you probably want this one.
b57f37fb 6282
042acc47
WP
6283case $host_os in
6284aix[4-9]*)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
b57f37fb 6287
042acc47
WP
6288beos*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
b57f37fb 6291
042acc47
WP
6292bsdi[45]*)
6293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6294 lt_cv_file_magic_cmd='/usr/bin/file -L'
6295 lt_cv_file_magic_test_file=/shlib/libc.so
6296 ;;
b57f37fb 6297
042acc47
WP
6298cygwin*)
6299 # func_win32_libid is a shell function defined in ltmain.sh
6300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6301 lt_cv_file_magic_cmd='func_win32_libid'
6302 ;;
b57f37fb 6303
042acc47
WP
6304mingw* | pw32*)
6305 # Base MSYS/MinGW do not provide the 'file' command needed by
6306 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6307 # unless we find 'file', for example because we are cross-compiling.
6308 if ( file / ) >/dev/null 2>&1; then
6309 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6310 lt_cv_file_magic_cmd='func_win32_libid'
6311 else
6312 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6313 lt_cv_file_magic_cmd='$OBJDUMP -f'
6314 fi
6315 ;;
b57f37fb 6316
042acc47
WP
6317cegcc)
6318 # use the weaker test based on 'objdump'. See mingw*.
6319 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6320 lt_cv_file_magic_cmd='$OBJDUMP -f'
6321 ;;
b57f37fb 6322
042acc47
WP
6323darwin* | rhapsody*)
6324 lt_cv_deplibs_check_method=pass_all
6325 ;;
b57f37fb 6326
042acc47
WP
6327freebsd* | dragonfly*)
6328 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6329 case $host_cpu in
6330 i*86 )
6331 # Not sure whether the presence of OpenBSD here was a mistake.
6332 # Let's accept both of them until this is cleared up.
6333 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6334 lt_cv_file_magic_cmd=/usr/bin/file
6335 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6336 ;;
6337 esac
b57f37fb 6338 else
042acc47 6339 lt_cv_deplibs_check_method=pass_all
b57f37fb 6340 fi
042acc47 6341 ;;
b57f37fb 6342
042acc47
WP
6343gnu*)
6344 lt_cv_deplibs_check_method=pass_all
6345 ;;
b57f37fb 6346
042acc47
WP
6347hpux10.20* | hpux11*)
6348 lt_cv_file_magic_cmd=/usr/bin/file
6349 case $host_cpu in
6350 ia64*)
6351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6352 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6353 ;;
6354 hppa*64*)
6355 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]'
6356 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6357 ;;
6358 *)
6359 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6360 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6361 ;;
6362 esac
6363 ;;
b57f37fb 6364
042acc47
WP
6365interix[3-9]*)
6366 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6368 ;;
b57f37fb 6369
042acc47
WP
6370irix5* | irix6* | nonstopux*)
6371 case $LD in
6372 *-32|*"-32 ") libmagic=32-bit;;
6373 *-n32|*"-n32 ") libmagic=N32;;
6374 *-64|*"-64 ") libmagic=64-bit;;
6375 *) libmagic=never-match;;
6376 esac
6377 lt_cv_deplibs_check_method=pass_all
6378 ;;
b57f37fb 6379
042acc47
WP
6380# This must be Linux ELF.
6381linux* | k*bsd*-gnu)
6382 lt_cv_deplibs_check_method=pass_all
6383 ;;
b57f37fb 6384
042acc47
WP
6385netbsd* | netbsdelf*-gnu)
6386 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6388 else
6389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6390 fi
6391 ;;
b57f37fb 6392
042acc47
WP
6393newos6*)
6394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6395 lt_cv_file_magic_cmd=/usr/bin/file
6396 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6397 ;;
b57f37fb 6398
042acc47
WP
6399*nto* | *qnx*)
6400 lt_cv_deplibs_check_method=pass_all
6401 ;;
b57f37fb 6402
042acc47
WP
6403openbsd*)
6404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6406 else
6407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6408 fi
6409 ;;
b57f37fb 6410
042acc47
WP
6411osf3* | osf4* | osf5*)
6412 lt_cv_deplibs_check_method=pass_all
6413 ;;
b57f37fb 6414
042acc47
WP
6415rdos*)
6416 lt_cv_deplibs_check_method=pass_all
6417 ;;
b57f37fb 6418
042acc47
WP
6419solaris*)
6420 lt_cv_deplibs_check_method=pass_all
6421 ;;
b57f37fb 6422
042acc47
WP
6423sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
b57f37fb 6426
042acc47
WP
6427sysv4 | sysv4.3*)
6428 case $host_vendor in
6429 motorola)
6430 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]'
6431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6432 ;;
6433 ncr)
6434 lt_cv_deplibs_check_method=pass_all
6435 ;;
6436 sequent)
6437 lt_cv_file_magic_cmd='/bin/file'
6438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6439 ;;
6440 sni)
6441 lt_cv_file_magic_cmd='/bin/file'
6442 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6443 lt_cv_file_magic_test_file=/lib/libc.so
6444 ;;
6445 siemens)
6446 lt_cv_deplibs_check_method=pass_all
6447 ;;
6448 pc)
6449 lt_cv_deplibs_check_method=pass_all
6450 ;;
6451 esac
6452 ;;
b57f37fb 6453
042acc47
WP
6454tpf*)
6455 lt_cv_deplibs_check_method=pass_all
6456 ;;
6457esac
b57f37fb 6458
b57f37fb 6459fi
042acc47
WP
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6461$as_echo "$lt_cv_deplibs_check_method" >&6; }
6462file_magic_cmd=$lt_cv_file_magic_cmd
6463deplibs_check_method=$lt_cv_deplibs_check_method
6464test -z "$deplibs_check_method" && deplibs_check_method=unknown
b57f37fb 6465
b57f37fb 6466
b57f37fb 6467
b57f37fb 6468
b57f37fb 6469
b57f37fb 6470
b57f37fb 6471
b57f37fb 6472
b57f37fb 6473
b57f37fb 6474
b57f37fb
WP
6475
6476
b57f37fb 6477if test -n "$ac_tool_prefix"; then
042acc47
WP
6478 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6479set dummy ${ac_tool_prefix}ar; ac_word=$2
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6481$as_echo_n "checking for $ac_word... " >&6; }
042acc47 6482if test "${ac_cv_prog_AR+set}" = set; then :
f030cae8 6483 $as_echo_n "(cached) " >&6
b57f37fb 6484else
042acc47
WP
6485 if test -n "$AR"; then
6486 ac_cv_prog_AR="$AR" # Let the user override the test.
b57f37fb
WP
6487else
6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489for as_dir in $PATH
6490do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
042acc47 6493 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
6495 ac_cv_prog_AR="${ac_tool_prefix}ar"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6497 break 2
6498 fi
6499done
042acc47 6500 done
b57f37fb
WP
6501IFS=$as_save_IFS
6502
6503fi
6504fi
042acc47
WP
6505AR=$ac_cv_prog_AR
6506if test -n "$AR"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6508$as_echo "$AR" >&6; }
b57f37fb 6509else
042acc47 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6511$as_echo "no" >&6; }
b57f37fb
WP
6512fi
6513
6514
b57f37fb 6515fi
042acc47
WP
6516if test -z "$ac_cv_prog_AR"; then
6517 ac_ct_AR=$AR
6518 # Extract the first word of "ar", so it can be a program name with args.
6519set dummy ar; ac_word=$2
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 6521$as_echo_n "checking for $ac_word... " >&6; }
042acc47 6522if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
f030cae8 6523 $as_echo_n "(cached) " >&6
b57f37fb 6524else
042acc47
WP
6525 if test -n "$ac_ct_AR"; then
6526 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b57f37fb
WP
6527else
6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
042acc47 6533 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
6535 ac_cv_prog_ac_ct_AR="ar"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6537 break 2
6538 fi
6539done
042acc47 6540 done
b57f37fb
WP
6541IFS=$as_save_IFS
6542
6543fi
6544fi
042acc47
WP
6545ac_ct_AR=$ac_cv_prog_ac_ct_AR
6546if test -n "$ac_ct_AR"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6548$as_echo "$ac_ct_AR" >&6; }
b57f37fb 6549else
042acc47 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 6551$as_echo "no" >&6; }
b57f37fb
WP
6552fi
6553
042acc47
WP
6554 if test "x$ac_ct_AR" = x; then
6555 AR="false"
b57f37fb
WP
6556 else
6557 case $cross_compiling:$ac_tool_warned in
6558yes:)
042acc47 6559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 6560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
6561ac_tool_warned=yes ;;
6562esac
042acc47 6563 AR=$ac_ct_AR
b57f37fb 6564 fi
042acc47
WP
6565else
6566 AR="$ac_cv_prog_AR"
b57f37fb
WP
6567fi
6568
042acc47
WP
6569test -z "$AR" && AR=ar
6570test -z "$AR_FLAGS" && AR_FLAGS=cru
b57f37fb 6571
b57f37fb 6572
b57f37fb 6573
b57f37fb 6574
b57f37fb 6575
b57f37fb 6576
b57f37fb 6577
b57f37fb 6578
042acc47
WP
6579
6580
6581
6582if test -n "$ac_tool_prefix"; then
6583 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6584set dummy ${ac_tool_prefix}strip; ac_word=$2
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586$as_echo_n "checking for $ac_word... " >&6; }
6587if test "${ac_cv_prog_STRIP+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6589else
6590 if test -n "$STRIP"; then
6591 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
b57f37fb 6603 fi
042acc47
WP
6604done
6605 done
6606IFS=$as_save_IFS
6607
6608fi
6609fi
6610STRIP=$ac_cv_prog_STRIP
6611if test -n "$STRIP"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6613$as_echo "$STRIP" >&6; }
b57f37fb 6614else
042acc47
WP
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616$as_echo "no" >&6; }
6617fi
6618
6619
6620fi
6621if test -z "$ac_cv_prog_STRIP"; then
6622 ac_ct_STRIP=$STRIP
6623 # Extract the first word of "strip", so it can be a program name with args.
6624set dummy strip; ac_word=$2
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626$as_echo_n "checking for $ac_word... " >&6; }
6627if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6629else
6630 if test -n "$ac_ct_STRIP"; then
6631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_ac_ct_STRIP="strip"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
b57f37fb 6643 fi
042acc47
WP
6644done
6645 done
6646IFS=$as_save_IFS
6647
6648fi
6649fi
6650ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6651if test -n "$ac_ct_STRIP"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6653$as_echo "$ac_ct_STRIP" >&6; }
6654else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656$as_echo "no" >&6; }
b57f37fb
WP
6657fi
6658
042acc47
WP
6659 if test "x$ac_ct_STRIP" = x; then
6660 STRIP=":"
6661 else
6662 case $cross_compiling:$ac_tool_warned in
6663yes:)
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666ac_tool_warned=yes ;;
6667esac
6668 STRIP=$ac_ct_STRIP
6669 fi
f030cae8 6670else
042acc47 6671 STRIP="$ac_cv_prog_STRIP"
f030cae8 6672fi
b57f37fb 6673
042acc47 6674test -z "$STRIP" && STRIP=:
b57f37fb
WP
6675
6676
b57f37fb 6677
b57f37fb 6678
b57f37fb 6679
b57f37fb 6680
042acc47
WP
6681if test -n "$ac_tool_prefix"; then
6682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6683set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if test "${ac_cv_prog_RANLIB+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6688else
6689 if test -n "$RANLIB"; then
6690 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703done
6704 done
6705IFS=$as_save_IFS
b57f37fb 6706
042acc47
WP
6707fi
6708fi
6709RANLIB=$ac_cv_prog_RANLIB
6710if test -n "$RANLIB"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6712$as_echo "$RANLIB" >&6; }
6713else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
b57f37fb 6717
b57f37fb 6718
042acc47
WP
6719fi
6720if test -z "$ac_cv_prog_RANLIB"; then
6721 ac_ct_RANLIB=$RANLIB
6722 # Extract the first word of "ranlib", so it can be a program name with args.
6723set dummy ranlib; ac_word=$2
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
6726if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728else
6729 if test -n "$ac_ct_RANLIB"; then
6730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_ac_ct_RANLIB="ranlib"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743done
6744 done
6745IFS=$as_save_IFS
b57f37fb 6746
042acc47
WP
6747fi
6748fi
6749ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6750if test -n "$ac_ct_RANLIB"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6752$as_echo "$ac_ct_RANLIB" >&6; }
6753else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
b57f37fb
WP
6756fi
6757
042acc47
WP
6758 if test "x$ac_ct_RANLIB" = x; then
6759 RANLIB=":"
6760 else
6761 case $cross_compiling:$ac_tool_warned in
6762yes:)
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765ac_tool_warned=yes ;;
6766esac
6767 RANLIB=$ac_ct_RANLIB
6768 fi
b57f37fb 6769else
042acc47 6770 RANLIB="$ac_cv_prog_RANLIB"
b57f37fb
WP
6771fi
6772
042acc47 6773test -z "$RANLIB" && RANLIB=:
b57f37fb
WP
6774
6775
6776
6777
042acc47
WP
6778
6779
6780# Determine commands to create old-style static archives.
6781old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6782old_postinstall_cmds='chmod 644 $oldlib'
6783old_postuninstall_cmds=
6784
6785if test -n "$RANLIB"; then
6786 case $host_os in
6787 openbsd*)
6788 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6789 ;;
6790 *)
6791 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6792 ;;
6793 esac
6794 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6795fi
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830# If no C compiler was specified, use CC.
6831LTCC=${LTCC-"$CC"}
6832
6833# If no C compiler flags were specified, use CFLAGS.
6834LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6835
6836# Allow CC to be a program name with arguments.
6837compiler=$CC
6838
6839
6840# Check for command to grab the raw symbol name followed by C symbol from nm.
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6842$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6843if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
f030cae8 6844 $as_echo_n "(cached) " >&6
b57f37fb
WP
6845else
6846
6847# These are sane defaults that work on at least a few old systems.
6848# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6849
6850# Character class describing NM global symbol codes.
6851symcode='[BCDEGRST]'
6852
6853# Regexp to match symbols that can be accessed directly from C.
6854sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6855
b57f37fb
WP
6856# Define system-specific variables.
6857case $host_os in
6858aix*)
6859 symcode='[BCDT]'
6860 ;;
042acc47 6861cygwin* | mingw* | pw32* | cegcc*)
b57f37fb
WP
6862 symcode='[ABCDGISTW]'
6863 ;;
042acc47 6864hpux*)
b57f37fb
WP
6865 if test "$host_cpu" = ia64; then
6866 symcode='[ABCDEGRST]'
6867 fi
b57f37fb
WP
6868 ;;
6869irix* | nonstopux*)
6870 symcode='[BCDEGRST]'
6871 ;;
6872osf*)
6873 symcode='[BCDEGQRST]'
6874 ;;
6875solaris*)
6876 symcode='[BDRT]'
6877 ;;
6878sco3.2v5*)
6879 symcode='[DT]'
6880 ;;
6881sysv4.2uw2*)
6882 symcode='[DT]'
6883 ;;
6884sysv5* | sco5v6* | unixware* | OpenUNIX*)
6885 symcode='[ABDT]'
6886 ;;
6887sysv4)
6888 symcode='[DFNSTU]'
6889 ;;
6890esac
6891
042acc47
WP
6892# If we're using GNU nm, then use its standard symbol codes.
6893case `$NM -V 2>&1` in
6894*GNU* | *'with BFD'*)
6895 symcode='[ABCDGIRSTW]' ;;
6896esac
6897
6898# Transform an extracted symbol line into a proper C declaration.
6899# Some systems (esp. on ia64) link data and code symbols differently,
6900# so use this general approach.
6901lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6902
6903# Transform an extracted symbol line into symbol name and symbol address
6904lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6905lt_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'"
6906
b57f37fb
WP
6907# Handle CRLF in mingw tool chain
6908opt_cr=
6909case $build_os in
6910mingw*)
042acc47 6911 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
b57f37fb
WP
6912 ;;
6913esac
6914
042acc47 6915# Try without a prefix underscore, then with it.
b57f37fb
WP
6916for ac_symprfx in "" "_"; do
6917
6918 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6919 symxfrm="\\1 $ac_symprfx\\2 \\2"
6920
6921 # Write the raw and C identifiers.
042acc47
WP
6922 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6923 # Fake it for dumpbin and say T for any non-static function
6924 # and D for any global variable.
6925 # Also find C++ and __fastcall symbols from MSVC++,
6926 # which start with @ or ?.
6927 lt_cv_sys_global_symbol_pipe="$AWK '"\
6928" {last_section=section; section=\$ 3};"\
6929" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6930" \$ 0!~/External *\|/{next};"\
6931" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6932" {if(hide[section]) next};"\
6933" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6934" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6935" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6936" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6937" ' prfx=^$ac_symprfx"
6938 else
6939 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6940 fi
b57f37fb
WP
6941
6942 # Check to see that the pipe works correctly.
6943 pipe_works=no
6944
6945 rm -f conftest*
042acc47 6946 cat > conftest.$ac_ext <<_LT_EOF
b57f37fb
WP
6947#ifdef __cplusplus
6948extern "C" {
6949#endif
6950char nm_test_var;
042acc47
WP
6951void nm_test_func(void);
6952void nm_test_func(void){}
b57f37fb
WP
6953#ifdef __cplusplus
6954}
6955#endif
6956int main(){nm_test_var='a';nm_test_func();return(0);}
042acc47 6957_LT_EOF
b57f37fb 6958
042acc47 6959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b57f37fb
WP
6960 (eval $ac_compile) 2>&5
6961 ac_status=$?
042acc47
WP
6962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6963 test $ac_status = 0; }; then
b57f37fb
WP
6964 # Now try to grab the symbols.
6965 nlist=conftest.nm
042acc47 6966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
b57f37fb
WP
6967 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6968 ac_status=$?
042acc47
WP
6969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6970 test $ac_status = 0; } && test -s "$nlist"; then
b57f37fb
WP
6971 # Try sorting and uniquifying the output.
6972 if sort "$nlist" | uniq > "$nlist"T; then
6973 mv -f "$nlist"T "$nlist"
6974 else
6975 rm -f "$nlist"T
6976 fi
6977
6978 # Make sure that we snagged all the symbols we need.
042acc47
WP
6979 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6980 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6981 cat <<_LT_EOF > conftest.$ac_ext
b57f37fb
WP
6982#ifdef __cplusplus
6983extern "C" {
6984#endif
6985
042acc47 6986_LT_EOF
b57f37fb 6987 # Now generate the symbol file.
042acc47 6988 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
b57f37fb 6989
042acc47 6990 cat <<_LT_EOF >> conftest.$ac_ext
b57f37fb 6991
042acc47 6992/* The mapping between symbol names and symbols. */
b57f37fb
WP
6993const struct {
6994 const char *name;
042acc47 6995 void *address;
b57f37fb 6996}
042acc47 6997lt__PROGRAM__LTX_preloaded_symbols[] =
b57f37fb 6998{
042acc47
WP
6999 { "@PROGRAM@", (void *) 0 },
7000_LT_EOF
7001 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7002 cat <<\_LT_EOF >> conftest.$ac_ext
7003 {0, (void *) 0}
b57f37fb
WP
7004};
7005
042acc47
WP
7006/* This works around a problem in FreeBSD linker */
7007#ifdef FREEBSD_WORKAROUND
7008static const void *lt_preloaded_setup() {
7009 return lt__PROGRAM__LTX_preloaded_symbols;
7010}
7011#endif
7012
b57f37fb
WP
7013#ifdef __cplusplus
7014}
7015#endif
042acc47 7016_LT_EOF
b57f37fb
WP
7017 # Now try linking the two files.
7018 mv conftest.$ac_objext conftstm.$ac_objext
7019 lt_save_LIBS="$LIBS"
7020 lt_save_CFLAGS="$CFLAGS"
7021 LIBS="conftstm.$ac_objext"
7022 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
042acc47 7023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
b57f37fb
WP
7024 (eval $ac_link) 2>&5
7025 ac_status=$?
042acc47
WP
7026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7027 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
b57f37fb
WP
7028 pipe_works=yes
7029 fi
7030 LIBS="$lt_save_LIBS"
7031 CFLAGS="$lt_save_CFLAGS"
7032 else
7033 echo "cannot find nm_test_func in $nlist" >&5
7034 fi
7035 else
7036 echo "cannot find nm_test_var in $nlist" >&5
7037 fi
7038 else
7039 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7040 fi
7041 else
7042 echo "$progname: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7044 fi
56efe974 7045 rm -rf conftest* conftst*
b57f37fb
WP
7046
7047 # Do not use the global_symbol_pipe unless it works.
7048 if test "$pipe_works" = yes; then
7049 break
7050 else
7051 lt_cv_sys_global_symbol_pipe=
7052 fi
7053done
7054
7055fi
7056
7057if test -z "$lt_cv_sys_global_symbol_pipe"; then
7058 lt_cv_sys_global_symbol_to_cdecl=
7059fi
7060if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
042acc47 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
f030cae8 7062$as_echo "failed" >&6; }
b57f37fb 7063else
042acc47 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
f030cae8 7065$as_echo "ok" >&6; }
b57f37fb
WP
7066fi
7067
b57f37fb
WP
7068
7069
7070
7071
7072
b57f37fb 7073
b57f37fb 7074
b57f37fb 7075
b57f37fb 7076
b57f37fb 7077
b57f37fb 7078
b57f37fb 7079
b57f37fb 7080
b57f37fb 7081
b57f37fb
WP
7082
7083
b57f37fb 7084
b57f37fb 7085
b57f37fb 7086
b57f37fb 7087
042acc47
WP
7088
7089# Check whether --enable-libtool-lock was given.
7090if test "${enable_libtool_lock+set}" = set; then :
7091 enableval=$enable_libtool_lock;
b57f37fb
WP
7092fi
7093
042acc47 7094test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
b57f37fb 7095
042acc47
WP
7096# Some flags need to be propagated to the compiler or linker for good
7097# libtool support.
7098case $host in
7099ia64-*-hpux*)
7100 # Find out which ABI we are using.
7101 echo 'int i;' > conftest.$ac_ext
7102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7103 (eval $ac_compile) 2>&5
7104 ac_status=$?
7105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7106 test $ac_status = 0; }; then
7107 case `/usr/bin/file conftest.$ac_objext` in
7108 *ELF-32*)
7109 HPUX_IA64_MODE="32"
7110 ;;
7111 *ELF-64*)
7112 HPUX_IA64_MODE="64"
7113 ;;
7114 esac
7115 fi
7116 rm -rf conftest*
7117 ;;
7118*-*-irix6*)
7119 # Find out which ABI we are using.
7120 echo '#line 7120 "configure"' > conftest.$ac_ext
7121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7122 (eval $ac_compile) 2>&5
7123 ac_status=$?
7124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7125 test $ac_status = 0; }; then
7126 if test "$lt_cv_prog_gnu_ld" = yes; then
7127 case `/usr/bin/file conftest.$ac_objext` in
7128 *32-bit*)
7129 LD="${LD-ld} -melf32bsmip"
7130 ;;
7131 *N32*)
7132 LD="${LD-ld} -melf32bmipn32"
7133 ;;
7134 *64-bit*)
7135 LD="${LD-ld} -melf64bmip"
7136 ;;
7137 esac
7138 else
7139 case `/usr/bin/file conftest.$ac_objext` in
7140 *32-bit*)
7141 LD="${LD-ld} -32"
7142 ;;
7143 *N32*)
7144 LD="${LD-ld} -n32"
7145 ;;
7146 *64-bit*)
7147 LD="${LD-ld} -64"
7148 ;;
7149 esac
7150 fi
7151 fi
7152 rm -rf conftest*
7153 ;;
7154
7155x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7156s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7157 # Find out which ABI we are using.
7158 echo 'int i;' > conftest.$ac_ext
7159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7160 (eval $ac_compile) 2>&5
7161 ac_status=$?
7162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163 test $ac_status = 0; }; then
7164 case `/usr/bin/file conftest.o` in
7165 *32-bit*)
7166 case $host in
7167 x86_64-*kfreebsd*-gnu)
7168 LD="${LD-ld} -m elf_i386_fbsd"
7169 ;;
7170 x86_64-*linux*)
7171 LD="${LD-ld} -m elf_i386"
7172 ;;
7173 ppc64-*linux*|powerpc64-*linux*)
7174 LD="${LD-ld} -m elf32ppclinux"
7175 ;;
7176 s390x-*linux*)
7177 LD="${LD-ld} -m elf_s390"
7178 ;;
7179 sparc64-*linux*)
7180 LD="${LD-ld} -m elf32_sparc"
7181 ;;
7182 esac
7183 ;;
7184 *64-bit*)
7185 case $host in
7186 x86_64-*kfreebsd*-gnu)
7187 LD="${LD-ld} -m elf_x86_64_fbsd"
7188 ;;
7189 x86_64-*linux*)
7190 LD="${LD-ld} -m elf_x86_64"
7191 ;;
7192 ppc*-*linux*|powerpc*-*linux*)
7193 LD="${LD-ld} -m elf64ppc"
7194 ;;
7195 s390*-*linux*|s390*-*tpf*)
7196 LD="${LD-ld} -m elf64_s390"
7197 ;;
7198 sparc*-*linux*)
7199 LD="${LD-ld} -m elf64_sparc"
7200 ;;
7201 esac
7202 ;;
7203 esac
7204 fi
7205 rm -rf conftest*
7206 ;;
7207
7208*-*-sco3.2v5*)
7209 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7210 SAVE_CFLAGS="$CFLAGS"
7211 CFLAGS="$CFLAGS -belf"
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7213$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7214if test "${lt_cv_cc_needs_belf+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7216else
7217 ac_ext=c
7218ac_cpp='$CPP $CPPFLAGS'
7219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221ac_compiler_gnu=$ac_cv_c_compiler_gnu
7222
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224/* end confdefs.h. */
7225
7226int
7227main ()
7228{
7229
7230 ;
7231 return 0;
7232}
7233_ACEOF
7234if ac_fn_c_try_link "$LINENO"; then :
7235 lt_cv_cc_needs_belf=yes
7236else
7237 lt_cv_cc_needs_belf=no
7238fi
7239rm -f core conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
7241 ac_ext=c
7242ac_cpp='$CPP $CPPFLAGS'
7243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7245ac_compiler_gnu=$ac_cv_c_compiler_gnu
7246
7247fi
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7249$as_echo "$lt_cv_cc_needs_belf" >&6; }
7250 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7251 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7252 CFLAGS="$SAVE_CFLAGS"
7253 fi
7254 ;;
7255sparc*-*solaris*)
7256 # Find out which ABI we are using.
7257 echo 'int i;' > conftest.$ac_ext
7258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7259 (eval $ac_compile) 2>&5
7260 ac_status=$?
7261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262 test $ac_status = 0; }; then
7263 case `/usr/bin/file conftest.o` in
7264 *64-bit*)
7265 case $lt_cv_prog_gnu_ld in
7266 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7267 *)
7268 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7269 LD="${LD-ld} -64"
7270 fi
7271 ;;
7272 esac
7273 ;;
7274 esac
7275 fi
7276 rm -rf conftest*
7277 ;;
7278esac
7279
7280need_locks="$enable_libtool_lock"
7281
7282
7283 case $host_os in
7284 rhapsody* | darwin*)
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7287set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289$as_echo_n "checking for $ac_word... " >&6; }
7290if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7292else
7293 if test -n "$DSYMUTIL"; then
7294 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7295else
7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
b57f37fb
WP
7298do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
042acc47 7301 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7303 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
7305 break 2
7306 fi
7307done
042acc47
WP
7308 done
7309IFS=$as_save_IFS
7310
7311fi
7312fi
7313DSYMUTIL=$ac_cv_prog_DSYMUTIL
7314if test -n "$DSYMUTIL"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7316$as_echo "$DSYMUTIL" >&6; }
7317else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319$as_echo "no" >&6; }
7320fi
7321
7322
7323fi
7324if test -z "$ac_cv_prog_DSYMUTIL"; then
7325 ac_ct_DSYMUTIL=$DSYMUTIL
7326 # Extract the first word of "dsymutil", so it can be a program name with args.
7327set dummy dsymutil; ac_word=$2
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329$as_echo_n "checking for $ac_word... " >&6; }
7330if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7332else
7333 if test -n "$ac_ct_DSYMUTIL"; then
7334 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
b57f37fb 7347done
042acc47 7348 done
b57f37fb
WP
7349IFS=$as_save_IFS
7350
7351fi
7352fi
042acc47
WP
7353ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7354if test -n "$ac_ct_DSYMUTIL"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7356$as_echo "$ac_ct_DSYMUTIL" >&6; }
b57f37fb 7357else
042acc47 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7359$as_echo "no" >&6; }
b57f37fb
WP
7360fi
7361
042acc47
WP
7362 if test "x$ac_ct_DSYMUTIL" = x; then
7363 DSYMUTIL=":"
b57f37fb
WP
7364 else
7365 case $cross_compiling:$ac_tool_warned in
7366yes:)
042acc47 7367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 7368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
7369ac_tool_warned=yes ;;
7370esac
042acc47 7371 DSYMUTIL=$ac_ct_DSYMUTIL
b57f37fb
WP
7372 fi
7373else
042acc47 7374 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b57f37fb
WP
7375fi
7376
042acc47
WP
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7379set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7381$as_echo_n "checking for $ac_word... " >&6; }
042acc47 7382if test "${ac_cv_prog_NMEDIT+set}" = set; then :
f030cae8 7383 $as_echo_n "(cached) " >&6
b57f37fb 7384else
042acc47
WP
7385 if test -n "$NMEDIT"; then
7386 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b57f37fb
WP
7387else
7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
042acc47 7393 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7395 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
7397 break 2
7398 fi
7399done
042acc47 7400 done
b57f37fb
WP
7401IFS=$as_save_IFS
7402
7403fi
7404fi
042acc47
WP
7405NMEDIT=$ac_cv_prog_NMEDIT
7406if test -n "$NMEDIT"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7408$as_echo "$NMEDIT" >&6; }
b57f37fb 7409else
042acc47 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7411$as_echo "no" >&6; }
b57f37fb
WP
7412fi
7413
7414
7415fi
042acc47
WP
7416if test -z "$ac_cv_prog_NMEDIT"; then
7417 ac_ct_NMEDIT=$NMEDIT
7418 # Extract the first word of "nmedit", so it can be a program name with args.
7419set dummy nmedit; ac_word=$2
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7421$as_echo_n "checking for $ac_word... " >&6; }
042acc47 7422if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
f030cae8 7423 $as_echo_n "(cached) " >&6
b57f37fb 7424else
042acc47
WP
7425 if test -n "$ac_ct_NMEDIT"; then
7426 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b57f37fb
WP
7427else
7428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
042acc47 7433 for ac_exec_ext in '' $ac_executable_extensions; do
b57f37fb 7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7435 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
7437 break 2
7438 fi
7439done
042acc47 7440 done
b57f37fb
WP
7441IFS=$as_save_IFS
7442
7443fi
7444fi
042acc47
WP
7445ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7446if test -n "$ac_ct_NMEDIT"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7448$as_echo "$ac_ct_NMEDIT" >&6; }
b57f37fb 7449else
042acc47 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7451$as_echo "no" >&6; }
b57f37fb
WP
7452fi
7453
042acc47
WP
7454 if test "x$ac_ct_NMEDIT" = x; then
7455 NMEDIT=":"
b57f37fb
WP
7456 else
7457 case $cross_compiling:$ac_tool_warned in
7458yes:)
042acc47 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 7460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
7461ac_tool_warned=yes ;;
7462esac
042acc47 7463 NMEDIT=$ac_ct_NMEDIT
b57f37fb
WP
7464 fi
7465else
042acc47 7466 NMEDIT="$ac_cv_prog_NMEDIT"
b57f37fb
WP
7467fi
7468
042acc47
WP
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7471set dummy ${ac_tool_prefix}lipo; ac_word=$2
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473$as_echo_n "checking for $ac_word... " >&6; }
7474if test "${ac_cv_prog_LIPO+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7476else
7477 if test -n "$LIPO"; then
7478 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7479else
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491done
7492 done
7493IFS=$as_save_IFS
b57f37fb 7494
b57f37fb 7495fi
b57f37fb 7496fi
042acc47
WP
7497LIPO=$ac_cv_prog_LIPO
7498if test -n "$LIPO"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7500$as_echo "$LIPO" >&6; }
b57f37fb 7501else
042acc47 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7503$as_echo "no" >&6; }
b57f37fb
WP
7504fi
7505
042acc47
WP
7506
7507fi
7508if test -z "$ac_cv_prog_LIPO"; then
7509 ac_ct_LIPO=$LIPO
7510 # Extract the first word of "lipo", so it can be a program name with args.
7511set dummy lipo; ac_word=$2
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513$as_echo_n "checking for $ac_word... " >&6; }
7514if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
f030cae8 7515 $as_echo_n "(cached) " >&6
b57f37fb 7516else
042acc47
WP
7517 if test -n "$ac_ct_LIPO"; then
7518 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7519else
7520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_prog_ac_ct_LIPO="lipo"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7530 fi
7531done
b57f37fb 7532 done
042acc47 7533IFS=$as_save_IFS
b57f37fb 7534
042acc47
WP
7535fi
7536fi
7537ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7538if test -n "$ac_ct_LIPO"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7540$as_echo "$ac_ct_LIPO" >&6; }
b57f37fb 7541else
042acc47 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7543$as_echo "no" >&6; }
b57f37fb
WP
7544fi
7545
042acc47
WP
7546 if test "x$ac_ct_LIPO" = x; then
7547 LIPO=":"
b57f37fb 7548 else
042acc47
WP
7549 case $cross_compiling:$ac_tool_warned in
7550yes:)
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553ac_tool_warned=yes ;;
7554esac
7555 LIPO=$ac_ct_LIPO
b57f37fb 7556 fi
042acc47
WP
7557else
7558 LIPO="$ac_cv_prog_LIPO"
b57f37fb
WP
7559fi
7560
56efe974 7561 if test -n "$ac_tool_prefix"; then
042acc47
WP
7562 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7563set dummy ${ac_tool_prefix}otool; ac_word=$2
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7565$as_echo_n "checking for $ac_word... " >&6; }
042acc47 7566if test "${ac_cv_prog_OTOOL+set}" = set; then :
f030cae8 7567 $as_echo_n "(cached) " >&6
56efe974 7568else
042acc47
WP
7569 if test -n "$OTOOL"; then
7570 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
56efe974
WP
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
042acc47 7577 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 7578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7579 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
7581 break 2
7582 fi
7583done
042acc47 7584 done
56efe974
WP
7585IFS=$as_save_IFS
7586
7587fi
7588fi
042acc47
WP
7589OTOOL=$ac_cv_prog_OTOOL
7590if test -n "$OTOOL"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7592$as_echo "$OTOOL" >&6; }
56efe974 7593else
042acc47 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7595$as_echo "no" >&6; }
56efe974
WP
7596fi
7597
7598
7599fi
042acc47
WP
7600if test -z "$ac_cv_prog_OTOOL"; then
7601 ac_ct_OTOOL=$OTOOL
7602 # Extract the first word of "otool", so it can be a program name with args.
7603set dummy otool; ac_word=$2
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7605$as_echo_n "checking for $ac_word... " >&6; }
042acc47 7606if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
f030cae8 7607 $as_echo_n "(cached) " >&6
56efe974 7608else
042acc47
WP
7609 if test -n "$ac_ct_OTOOL"; then
7610 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
56efe974
WP
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
042acc47 7617 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 7618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7619 ac_cv_prog_ac_ct_OTOOL="otool"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
7621 break 2
7622 fi
7623done
042acc47 7624 done
56efe974
WP
7625IFS=$as_save_IFS
7626
7627fi
7628fi
042acc47
WP
7629ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7630if test -n "$ac_ct_OTOOL"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7632$as_echo "$ac_ct_OTOOL" >&6; }
56efe974 7633else
042acc47 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7635$as_echo "no" >&6; }
56efe974
WP
7636fi
7637
042acc47
WP
7638 if test "x$ac_ct_OTOOL" = x; then
7639 OTOOL=":"
56efe974
WP
7640 else
7641 case $cross_compiling:$ac_tool_warned in
7642yes:)
042acc47 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 7644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56efe974
WP
7645ac_tool_warned=yes ;;
7646esac
042acc47 7647 OTOOL=$ac_ct_OTOOL
56efe974
WP
7648 fi
7649else
042acc47 7650 OTOOL="$ac_cv_prog_OTOOL"
56efe974
WP
7651fi
7652
7653 if test -n "$ac_tool_prefix"; then
042acc47
WP
7654 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7655set dummy ${ac_tool_prefix}otool64; ac_word=$2
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7657$as_echo_n "checking for $ac_word... " >&6; }
042acc47 7658if test "${ac_cv_prog_OTOOL64+set}" = set; then :
f030cae8 7659 $as_echo_n "(cached) " >&6
56efe974 7660else
042acc47
WP
7661 if test -n "$OTOOL64"; then
7662 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
56efe974
WP
7663else
7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665for as_dir in $PATH
7666do
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
042acc47 7669 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7671 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
7673 break 2
7674 fi
7675done
042acc47 7676 done
56efe974
WP
7677IFS=$as_save_IFS
7678
7679fi
7680fi
042acc47
WP
7681OTOOL64=$ac_cv_prog_OTOOL64
7682if test -n "$OTOOL64"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7684$as_echo "$OTOOL64" >&6; }
56efe974 7685else
042acc47 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7687$as_echo "no" >&6; }
56efe974
WP
7688fi
7689
7690
7691fi
042acc47
WP
7692if test -z "$ac_cv_prog_OTOOL64"; then
7693 ac_ct_OTOOL64=$OTOOL64
7694 # Extract the first word of "otool64", so it can be a program name with args.
7695set dummy otool64; ac_word=$2
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
f030cae8 7697$as_echo_n "checking for $ac_word... " >&6; }
042acc47 7698if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
f030cae8 7699 $as_echo_n "(cached) " >&6
56efe974 7700else
042acc47
WP
7701 if test -n "$ac_ct_OTOOL64"; then
7702 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
56efe974
WP
7703else
7704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705for as_dir in $PATH
7706do
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
042acc47 7709 for ac_exec_ext in '' $ac_executable_extensions; do
56efe974 7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
7711 ac_cv_prog_ac_ct_OTOOL64="otool64"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
7713 break 2
7714 fi
7715done
042acc47 7716 done
56efe974
WP
7717IFS=$as_save_IFS
7718
7719fi
7720fi
042acc47
WP
7721ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7722if test -n "$ac_ct_OTOOL64"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7724$as_echo "$ac_ct_OTOOL64" >&6; }
56efe974 7725else
042acc47 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f030cae8 7727$as_echo "no" >&6; }
56efe974
WP
7728fi
7729
042acc47
WP
7730 if test "x$ac_ct_OTOOL64" = x; then
7731 OTOOL64=":"
56efe974
WP
7732 else
7733 case $cross_compiling:$ac_tool_warned in
7734yes:)
042acc47 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
f030cae8 7736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56efe974
WP
7737ac_tool_warned=yes ;;
7738esac
042acc47 7739 OTOOL64=$ac_ct_OTOOL64
56efe974
WP
7740 fi
7741else
042acc47 7742 OTOOL64="$ac_cv_prog_OTOOL64"
56efe974
WP
7743fi
7744
7745
56efe974 7746
56efe974 7747
042acc47
WP
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7772$as_echo_n "checking for -single_module linker flag... " >&6; }
7773if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7775else
7776 lt_cv_apple_cc_single_mod=no
7777 if test -z "${LT_MULTI_MODULE}"; then
7778 # By default we will add the -single_module flag. You can override
7779 # by either setting the environment variable LT_MULTI_MODULE
7780 # non-empty at configure time, or by adding -multi_module to the
7781 # link flags.
7782 rm -rf libconftest.dylib*
7783 echo "int foo(void){return 1;}" > conftest.c
7784 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7785-dynamiclib -Wl,-single_module conftest.c" >&5
7786 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7787 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7788 _lt_result=$?
7789 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7790 lt_cv_apple_cc_single_mod=yes
7791 else
7792 cat conftest.err >&5
7793 fi
7794 rm -rf libconftest.dylib*
7795 rm -f conftest.*
7796 fi
7797fi
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7799$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7801$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7802if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7804else
7805 lt_cv_ld_exported_symbols_list=no
7806 save_LDFLAGS=$LDFLAGS
7807 echo "_main" > conftest.sym
7808 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h. */
7811
7812int
7813main ()
7814{
7815
7816 ;
7817 return 0;
56efe974
WP
7818}
7819_ACEOF
042acc47 7820if ac_fn_c_try_link "$LINENO"; then :
56efe974
WP
7821 lt_cv_ld_exported_symbols_list=yes
7822else
042acc47 7823 lt_cv_ld_exported_symbols_list=no
56efe974 7824fi
042acc47
WP
7825rm -f core conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7827 LDFLAGS="$save_LDFLAGS"
56efe974
WP
7828
7829fi
042acc47 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
f030cae8 7831$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
56efe974 7832 case $host_os in
042acc47 7833 rhapsody* | darwin1.[012])
56efe974
WP
7834 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7835 darwin1.*)
042acc47
WP
7836 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7837 darwin*) # darwin 5.x on
56efe974
WP
7838 # if running on 10.5 or later, the deployment target defaults
7839 # to the OS version, if on x86, and 10.4, the deployment
7840 # target defaults to 10.4. Don't you love it?
7841 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
042acc47
WP
7842 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7843 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7844 10.[012]*)
7845 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7846 10.*)
7847 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
56efe974
WP
7848 esac
7849 ;;
7850 esac
7851 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7852 _lt_dar_single_mod='$single_module'
7853 fi
7854 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7855 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7856 else
042acc47 7857 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
56efe974
WP
7858 fi
7859 if test "$DSYMUTIL" != ":"; then
042acc47 7860 _lt_dsymutil='~$DSYMUTIL $lib || :'
56efe974
WP
7861 else
7862 _lt_dsymutil=
7863 fi
7864 ;;
7865 esac
7866
042acc47
WP
7867for ac_header in dlfcn.h
7868do :
7869 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7870"
7871if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7872 cat >>confdefs.h <<_ACEOF
7873#define HAVE_DLFCN_H 1
7874_ACEOF
56efe974 7875
b57f37fb
WP
7876fi
7877
042acc47
WP
7878done
7879
7880
7881
7882# Set options
7883
7884
7885
7886 enable_dlopen=no
7887
7888
7889 enable_win32_dll=no
7890
7891
7892
b57f37fb
WP
7893
7894
7895# Check whether --with-pic was given.
042acc47 7896if test "${with_pic+set}" = set; then :
b57f37fb
WP
7897 withval=$with_pic; pic_mode="$withval"
7898else
7899 pic_mode=default
7900fi
7901
042acc47 7902
b57f37fb
WP
7903test -z "$pic_mode" && pic_mode=default
7904
b57f37fb
WP
7905
7906
b57f37fb 7907
b57f37fb 7908
b57f37fb 7909
b57f37fb 7910
042acc47
WP
7911 # Check whether --enable-fast-install was given.
7912if test "${enable_fast_install+set}" = set; then :
7913 enableval=$enable_fast_install; p=${PACKAGE-default}
7914 case $enableval in
7915 yes) enable_fast_install=yes ;;
7916 no) enable_fast_install=no ;;
7917 *)
7918 enable_fast_install=no
7919 # Look at the argument we got. We use all the common list separators.
7920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7921 for pkg in $enableval; do
7922 IFS="$lt_save_ifs"
7923 if test "X$pkg" = "X$p"; then
7924 enable_fast_install=yes
7925 fi
7926 done
7927 IFS="$lt_save_ifs"
7928 ;;
7929 esac
7930else
7931 enable_fast_install=yes
7932fi
b57f37fb 7933
b57f37fb 7934
b57f37fb 7935
b57f37fb
WP
7936
7937
b57f37fb 7938
b57f37fb
WP
7939
7940
7941
b57f37fb 7942
b57f37fb 7943
042acc47
WP
7944# This can be used to rebuild libtool when needed
7945LIBTOOL_DEPS="$ltmain"
b57f37fb 7946
042acc47
WP
7947# Always use our own libtool.
7948LIBTOOL='$(SHELL) $(top_builddir)/libtool'
b57f37fb 7949
b57f37fb 7950
b57f37fb 7951
b57f37fb 7952
b57f37fb 7953
b57f37fb 7954
b57f37fb 7955
b57f37fb 7956
b57f37fb 7957
b57f37fb 7958
b57f37fb 7959
b57f37fb 7960
b57f37fb 7961
b57f37fb 7962
b57f37fb 7963
b57f37fb 7964
b57f37fb 7965
b57f37fb 7966
b57f37fb 7967
b57f37fb 7968
b57f37fb 7969
b57f37fb 7970
b57f37fb 7971
b57f37fb 7972
b57f37fb 7973
042acc47 7974test -z "$LN_S" && LN_S="ln -s"
b57f37fb 7975
b57f37fb 7976
b57f37fb 7977
b57f37fb 7978
b57f37fb 7979
b57f37fb 7980
b57f37fb 7981
b57f37fb 7982
b57f37fb 7983
b57f37fb 7984
b57f37fb 7985
b57f37fb 7986
b57f37fb 7987
b57f37fb 7988
042acc47
WP
7989if test -n "${ZSH_VERSION+set}" ; then
7990 setopt NO_GLOB_SUBST
b57f37fb 7991fi
b57f37fb 7992
042acc47
WP
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7994$as_echo_n "checking for objdir... " >&6; }
7995if test "${lt_cv_objdir+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
b57f37fb 7997else
042acc47
WP
7998 rm -f .libs 2>/dev/null
7999mkdir .libs 2>/dev/null
8000if test -d .libs; then
8001 lt_cv_objdir=.libs
8002else
8003 # MS-DOS does not allow filenames that begin with a dot.
8004 lt_cv_objdir=_libs
8005fi
8006rmdir .libs 2>/dev/null
b57f37fb 8007fi
042acc47
WP
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8009$as_echo "$lt_cv_objdir" >&6; }
8010objdir=$lt_cv_objdir
b57f37fb
WP
8011
8012
b57f37fb 8013
b57f37fb 8014
b57f37fb 8015
042acc47
WP
8016cat >>confdefs.h <<_ACEOF
8017#define LT_OBJDIR "$lt_cv_objdir/"
8018_ACEOF
b57f37fb 8019
b57f37fb 8020
b57f37fb 8021
b57f37fb 8022
b57f37fb 8023
b57f37fb 8024
b57f37fb 8025
b57f37fb 8026
b57f37fb 8027
b57f37fb 8028
b57f37fb 8029
b57f37fb 8030
b57f37fb 8031
b57f37fb 8032
b57f37fb 8033
b57f37fb 8034
b57f37fb 8035
042acc47
WP
8036case $host_os in
8037aix3*)
8038 # AIX sometimes has problems with the GCC collect2 program. For some
8039 # reason, if we set the COLLECT_NAMES environment variable, the problems
8040 # vanish in a puff of smoke.
8041 if test "X${COLLECT_NAMES+set}" != Xset; then
8042 COLLECT_NAMES=
8043 export COLLECT_NAMES
8044 fi
8045 ;;
8046esac
b57f37fb 8047
042acc47
WP
8048# Sed substitution that helps us do robust quoting. It backslashifies
8049# metacharacters that are still active within double-quoted strings.
8050sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
b57f37fb 8051
042acc47
WP
8052# Same as above, but do not quote variable references.
8053double_quote_subst='s/\(["`\\]\)/\\\1/g'
b57f37fb 8054
042acc47
WP
8055# Sed substitution to delay expansion of an escaped shell variable in a
8056# double_quote_subst'ed string.
8057delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
b57f37fb 8058
042acc47
WP
8059# Sed substitution to delay expansion of an escaped single quote.
8060delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
b57f37fb 8061
042acc47
WP
8062# Sed substitution to avoid accidental globbing in evaled expressions
8063no_glob_subst='s/\*/\\\*/g'
b57f37fb 8064
042acc47
WP
8065# Global variables:
8066ofile=libtool
8067can_build_shared=yes
b57f37fb 8068
042acc47
WP
8069# All known linkers require a `.a' archive for static linking (except MSVC,
8070# which needs '.lib').
8071libext=a
b57f37fb 8072
042acc47 8073with_gnu_ld="$lt_cv_prog_gnu_ld"
b57f37fb 8074
042acc47
WP
8075old_CC="$CC"
8076old_CFLAGS="$CFLAGS"
b57f37fb 8077
042acc47
WP
8078# Set sane defaults for various variables
8079test -z "$CC" && CC=cc
8080test -z "$LTCC" && LTCC=$CC
8081test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8082test -z "$LD" && LD=ld
8083test -z "$ac_objext" && ac_objext=o
b57f37fb 8084
042acc47
WP
8085for cc_temp in $compiler""; do
8086 case $cc_temp in
8087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8089 \-*) ;;
8090 *) break;;
8091 esac
8092done
8093cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
b57f37fb 8094
b57f37fb 8095
042acc47
WP
8096# Only perform the check for file, if the check method requires it
8097test -z "$MAGIC_CMD" && MAGIC_CMD=file
8098case $deplibs_check_method in
8099file_magic*)
8100 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8102$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8103if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8105else
8106 case $MAGIC_CMD in
8107[\\/*] | ?:[\\/]*)
8108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8109 ;;
8110*)
8111 lt_save_MAGIC_CMD="$MAGIC_CMD"
8112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8114 for ac_dir in $ac_dummy; do
8115 IFS="$lt_save_ifs"
8116 test -z "$ac_dir" && ac_dir=.
8117 if test -f $ac_dir/${ac_tool_prefix}file; then
8118 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8119 if test -n "$file_magic_test_file"; then
8120 case $deplibs_check_method in
8121 "file_magic "*)
8122 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8125 $EGREP "$file_magic_regex" > /dev/null; then
8126 :
8127 else
8128 cat <<_LT_EOF 1>&2
b57f37fb 8129
042acc47
WP
8130*** Warning: the command libtool uses to detect shared libraries,
8131*** $file_magic_cmd, produces output that libtool cannot recognize.
8132*** The result is that libtool may fail to recognize shared libraries
8133*** as such. This will affect the creation of libtool libraries that
8134*** depend on shared libraries, but programs linked with such libtool
8135*** libraries will work regardless of this problem. Nevertheless, you
8136*** may want to report the problem to your system manager and/or to
8137*** bug-libtool@gnu.org
b57f37fb 8138
042acc47
WP
8139_LT_EOF
8140 fi ;;
b57f37fb 8141 esac
b57f37fb 8142 fi
042acc47
WP
8143 break
8144 fi
8145 done
8146 IFS="$lt_save_ifs"
8147 MAGIC_CMD="$lt_save_MAGIC_CMD"
8148 ;;
8149esac
8150fi
b57f37fb 8151
042acc47
WP
8152MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8153if test -n "$MAGIC_CMD"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8155$as_echo "$MAGIC_CMD" >&6; }
8156else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }
8159fi
b57f37fb 8160
b57f37fb 8161
b57f37fb 8162
042acc47
WP
8163
8164
8165if test -z "$lt_cv_path_MAGIC_CMD"; then
8166 if test -n "$ac_tool_prefix"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8168$as_echo_n "checking for file... " >&6; }
8169if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
b57f37fb 8171else
042acc47
WP
8172 case $MAGIC_CMD in
8173[\\/*] | ?:[\\/]*)
8174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175 ;;
8176*)
8177 lt_save_MAGIC_CMD="$MAGIC_CMD"
8178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8180 for ac_dir in $ac_dummy; do
8181 IFS="$lt_save_ifs"
8182 test -z "$ac_dir" && ac_dir=.
8183 if test -f $ac_dir/file; then
8184 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8185 if test -n "$file_magic_test_file"; then
8186 case $deplibs_check_method in
8187 "file_magic "*)
8188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8191 $EGREP "$file_magic_regex" > /dev/null; then
8192 :
8193 else
8194 cat <<_LT_EOF 1>&2
b57f37fb 8195
042acc47
WP
8196*** Warning: the command libtool uses to detect shared libraries,
8197*** $file_magic_cmd, produces output that libtool cannot recognize.
8198*** The result is that libtool may fail to recognize shared libraries
8199*** as such. This will affect the creation of libtool libraries that
8200*** depend on shared libraries, but programs linked with such libtool
8201*** libraries will work regardless of this problem. Nevertheless, you
8202*** may want to report the problem to your system manager and/or to
8203*** bug-libtool@gnu.org
b57f37fb 8204
042acc47
WP
8205_LT_EOF
8206 fi ;;
8207 esac
8208 fi
8209 break
8210 fi
8211 done
8212 IFS="$lt_save_ifs"
8213 MAGIC_CMD="$lt_save_MAGIC_CMD"
8214 ;;
8215esac
b57f37fb
WP
8216fi
8217
042acc47
WP
8218MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8219if test -n "$MAGIC_CMD"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8221$as_echo "$MAGIC_CMD" >&6; }
8222else
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224$as_echo "no" >&6; }
8225fi
b57f37fb 8226
b57f37fb 8227
042acc47
WP
8228 else
8229 MAGIC_CMD=:
8230 fi
8231fi
b57f37fb 8232
042acc47
WP
8233 fi
8234 ;;
b57f37fb 8235esac
b57f37fb 8236
042acc47
WP
8237# Use C for the default configuration in the libtool script
8238
8239lt_save_CC="$CC"
8240ac_ext=c
8241ac_cpp='$CPP $CPPFLAGS'
8242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8244ac_compiler_gnu=$ac_cv_c_compiler_gnu
8245
8246
8247# Source file extension for C test sources.
8248ac_ext=c
8249
8250# Object file extension for compiled C test sources.
8251objext=o
8252objext=$objext
8253
8254# Code to be used in simple compile tests
8255lt_simple_compile_test_code="int some_variable = 0;"
8256
8257# Code to be used in simple link tests
8258lt_simple_link_test_code='int main(){return(0);}'
8259
8260
8261
8262
8263
8264
8265
8266# If no C compiler was specified, use CC.
8267LTCC=${LTCC-"$CC"}
8268
8269# If no C compiler flags were specified, use CFLAGS.
8270LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8271
8272# Allow CC to be a program name with arguments.
8273compiler=$CC
8274
8275# Save the default compiler, since it gets overwritten when the other
8276# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8277compiler_DEFAULT=$CC
8278
8279# save warnings/boilerplate of simple test code
8280ac_outfile=conftest.$ac_objext
8281echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8282eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8283_lt_compiler_boilerplate=`cat conftest.err`
8284$RM conftest*
8285
8286ac_outfile=conftest.$ac_objext
8287echo "$lt_simple_link_test_code" >conftest.$ac_ext
8288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8289_lt_linker_boilerplate=`cat conftest.err`
8290$RM -r conftest*
8291
8292
8293if test -n "$compiler"; then
8294
8295lt_prog_compiler_no_builtin_flag=
8296
8297if test "$GCC" = yes; then
8298 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8299
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8301$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8302if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
b57f37fb 8304else
042acc47
WP
8305 lt_cv_prog_compiler_rtti_exceptions=no
8306 ac_outfile=conftest.$ac_objext
8307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8308 lt_compiler_flag="-fno-rtti -fno-exceptions"
8309 # Insert the option either (1) after the last *FLAGS variable, or
8310 # (2) before a word containing "conftest.", or (3) at the end.
8311 # Note that $ac_compile itself does not contain backslashes and begins
8312 # with a dollar sign (not a hyphen), so the echo should work correctly.
8313 # The option is referenced via a variable to avoid confusing sed.
8314 lt_compile=`echo "$ac_compile" | $SED \
8315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8317 -e 's:$: $lt_compiler_flag:'`
8318 (eval echo "\"\$as_me:8318: $lt_compile\"" >&5)
8319 (eval "$lt_compile" 2>conftest.err)
8320 ac_status=$?
8321 cat conftest.err >&5
8322 echo "$as_me:8322: \$? = $ac_status" >&5
8323 if (exit $ac_status) && test -s "$ac_outfile"; then
8324 # The compiler can only warn and ignore the option if not recognized
8325 # So say no if there are warnings other than the usual output.
8326 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8329 lt_cv_prog_compiler_rtti_exceptions=yes
8330 fi
8331 fi
8332 $RM conftest*
b57f37fb 8333
042acc47
WP
8334fi
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8336$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
b57f37fb 8337
042acc47
WP
8338if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8339 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8340else
8341 :
b57f37fb
WP
8342fi
8343
042acc47 8344fi
b57f37fb 8345
042acc47
WP
8346
8347
8348
8349
8350
8351 lt_prog_compiler_wl=
8352lt_prog_compiler_pic=
8353lt_prog_compiler_static=
8354
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8356$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8357
8358 if test "$GCC" = yes; then
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_static='-static'
8361
8362 case $host_os in
8363 aix*)
8364 # All AIX code is PIC.
8365 if test "$host_cpu" = ia64; then
8366 # AIX 5 now supports IA64 processor
8367 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
8368 fi
8369 ;;
8370
8371 amigaos*)
042acc47
WP
8372 case $host_cpu in
8373 powerpc)
8374 # see comment about AmigaOS4 .so support
8375 lt_prog_compiler_pic='-fPIC'
8376 ;;
8377 m68k)
8378 # FIXME: we need at least 68020 code to build shared libraries, but
8379 # adding the `-m68020' flag to GCC prevents building anything better,
8380 # like `-m68040'.
8381 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8382 ;;
8383 esac
b57f37fb
WP
8384 ;;
8385
042acc47
WP
8386 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8387 # PIC is the default for these OSes.
b57f37fb
WP
8388 ;;
8389
042acc47
WP
8390 mingw* | cygwin* | pw32* | os2* | cegcc*)
8391 # This hack is so that the source file can tell whether it is being
8392 # built for inclusion in a dll (and should export symbols for example).
8393 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8394 # (--disable-auto-import) libraries
8395 lt_prog_compiler_pic='-DDLL_EXPORT'
b57f37fb
WP
8396 ;;
8397
8398 darwin* | rhapsody*)
042acc47
WP
8399 # PIC is the default on this platform
8400 # Common symbols not allowed in MH_DYLIB files
8401 lt_prog_compiler_pic='-fno-common'
b57f37fb
WP
8402 ;;
8403
042acc47
WP
8404 hpux*)
8405 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8406 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8407 # sets the default TLS model and affects inlining.
8408 case $host_cpu in
8409 hppa*64*)
8410 # +Z the default
8411 ;;
8412 *)
8413 lt_prog_compiler_pic='-fPIC'
8414 ;;
8415 esac
b57f37fb
WP
8416 ;;
8417
042acc47
WP
8418 interix[3-9]*)
8419 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8420 # Instead, we relocate shared libraries at runtime.
b57f37fb
WP
8421 ;;
8422
042acc47
WP
8423 msdosdjgpp*)
8424 # Just because we use GCC doesn't mean we suddenly get shared libraries
8425 # on systems that don't support them.
8426 lt_prog_compiler_can_build_shared=no
8427 enable_shared=no
b57f37fb
WP
8428 ;;
8429
042acc47
WP
8430 *nto* | *qnx*)
8431 # QNX uses GNU C++, but need to define -shared option too, otherwise
8432 # it will coredump.
8433 lt_prog_compiler_pic='-fPIC -shared'
b57f37fb
WP
8434 ;;
8435
042acc47
WP
8436 sysv4*MP*)
8437 if test -d /usr/nec; then
8438 lt_prog_compiler_pic=-Kconform_pic
8439 fi
b57f37fb
WP
8440 ;;
8441
042acc47
WP
8442 *)
8443 lt_prog_compiler_pic='-fPIC'
8444 ;;
8445 esac
8446 else
8447 # PORTME Check for flag to pass linker flags through the system compiler.
8448 case $host_os in
8449 aix*)
8450 lt_prog_compiler_wl='-Wl,'
8451 if test "$host_cpu" = ia64; then
8452 # AIX 5 now supports IA64 processor
8453 lt_prog_compiler_static='-Bstatic'
b57f37fb 8454 else
042acc47 8455 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
b57f37fb 8456 fi
b57f37fb
WP
8457 ;;
8458
042acc47
WP
8459 mingw* | cygwin* | pw32* | os2* | cegcc*)
8460 # This hack is so that the source file can tell whether it is being
8461 # built for inclusion in a dll (and should export symbols for example).
8462 lt_prog_compiler_pic='-DDLL_EXPORT'
8463 ;;
b57f37fb 8464
042acc47
WP
8465 hpux9* | hpux10* | hpux11*)
8466 lt_prog_compiler_wl='-Wl,'
8467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8468 # not for PA HP-UX.
8469 case $host_cpu in
8470 hppa*64*|ia64*)
8471 # +Z the default
8472 ;;
8473 *)
8474 lt_prog_compiler_pic='+Z'
8475 ;;
8476 esac
8477 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8478 lt_prog_compiler_static='${wl}-a ${wl}archive'
8479 ;;
b57f37fb 8480
042acc47
WP
8481 irix5* | irix6* | nonstopux*)
8482 lt_prog_compiler_wl='-Wl,'
8483 # PIC (with -KPIC) is the default.
8484 lt_prog_compiler_static='-non_shared'
b57f37fb
WP
8485 ;;
8486
042acc47
WP
8487 linux* | k*bsd*-gnu)
8488 case $cc_basename in
8489 # old Intel for x86_64 which still supported -KPIC.
8490 ecc*)
8491 lt_prog_compiler_wl='-Wl,'
8492 lt_prog_compiler_pic='-KPIC'
8493 lt_prog_compiler_static='-static'
8494 ;;
8495 # icc used to be incompatible with GCC.
8496 # ICC 10 doesn't accept -KPIC any more.
8497 icc* | ifort*)
8498 lt_prog_compiler_wl='-Wl,'
8499 lt_prog_compiler_pic='-fPIC'
8500 lt_prog_compiler_static='-static'
8501 ;;
8502 # Lahey Fortran 8.1.
8503 lf95*)
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='--shared'
8506 lt_prog_compiler_static='--static'
8507 ;;
8508 pgcc* | pgf77* | pgf90* | pgf95*)
8509 # Portland Group compilers (*not* the Pentium gcc compiler,
8510 # which looks to be a dead project)
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_pic='-fpic'
8513 lt_prog_compiler_static='-Bstatic'
8514 ;;
8515 ccc*)
8516 lt_prog_compiler_wl='-Wl,'
8517 # All Alpha code is PIC.
8518 lt_prog_compiler_static='-non_shared'
8519 ;;
8520 xl*)
8521 # IBM XL C 8.0/Fortran 10.1 on PPC
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_pic='-qpic'
8524 lt_prog_compiler_static='-qstaticlink'
8525 ;;
8526 *)
8527 case `$CC -V 2>&1 | sed 5q` in
8528 *Sun\ C*)
8529 # Sun C 5.9
8530 lt_prog_compiler_pic='-KPIC'
8531 lt_prog_compiler_static='-Bstatic'
8532 lt_prog_compiler_wl='-Wl,'
b57f37fb 8533 ;;
042acc47
WP
8534 *Sun\ F*)
8535 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8536 lt_prog_compiler_pic='-KPIC'
8537 lt_prog_compiler_static='-Bstatic'
8538 lt_prog_compiler_wl=''
b57f37fb
WP
8539 ;;
8540 esac
042acc47
WP
8541 ;;
8542 esac
8543 ;;
b57f37fb 8544
042acc47
WP
8545 newsos6)
8546 lt_prog_compiler_pic='-KPIC'
8547 lt_prog_compiler_static='-Bstatic'
8548 ;;
b57f37fb 8549
042acc47
WP
8550 *nto* | *qnx*)
8551 # QNX uses GNU C++, but need to define -shared option too, otherwise
8552 # it will coredump.
8553 lt_prog_compiler_pic='-fPIC -shared'
b57f37fb
WP
8554 ;;
8555
042acc47
WP
8556 osf3* | osf4* | osf5*)
8557 lt_prog_compiler_wl='-Wl,'
8558 # All OSF/1 code is PIC.
8559 lt_prog_compiler_static='-non_shared'
b57f37fb
WP
8560 ;;
8561
042acc47
WP
8562 rdos*)
8563 lt_prog_compiler_static='-non_shared'
b57f37fb
WP
8564 ;;
8565
042acc47
WP
8566 solaris*)
8567 lt_prog_compiler_pic='-KPIC'
8568 lt_prog_compiler_static='-Bstatic'
8569 case $cc_basename in
8570 f77* | f90* | f95*)
8571 lt_prog_compiler_wl='-Qoption ld ';;
8572 *)
8573 lt_prog_compiler_wl='-Wl,';;
8574 esac
b57f37fb
WP
8575 ;;
8576
042acc47
WP
8577 sunos4*)
8578 lt_prog_compiler_wl='-Qoption ld '
8579 lt_prog_compiler_pic='-PIC'
8580 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
8581 ;;
8582
042acc47
WP
8583 sysv4 | sysv4.2uw2* | sysv4.3*)
8584 lt_prog_compiler_wl='-Wl,'
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
8587 ;;
8588
042acc47
WP
8589 sysv4*MP*)
8590 if test -d /usr/nec ;then
8591 lt_prog_compiler_pic='-Kconform_pic'
8592 lt_prog_compiler_static='-Bstatic'
b57f37fb 8593 fi
b57f37fb
WP
8594 ;;
8595
042acc47
WP
8596 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='-KPIC'
8599 lt_prog_compiler_static='-Bstatic'
8600 ;;
b57f37fb 8601
042acc47
WP
8602 unicos*)
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_can_build_shared=no
b57f37fb
WP
8605 ;;
8606
042acc47
WP
8607 uts4*)
8608 lt_prog_compiler_pic='-pic'
8609 lt_prog_compiler_static='-Bstatic'
b57f37fb
WP
8610 ;;
8611
042acc47
WP
8612 *)
8613 lt_prog_compiler_can_build_shared=no
b57f37fb 8614 ;;
042acc47
WP
8615 esac
8616 fi
b57f37fb 8617
042acc47
WP
8618case $host_os in
8619 # For platforms which do not support PIC, -DPIC is meaningless:
8620 *djgpp*)
8621 lt_prog_compiler_pic=
8622 ;;
8623 *)
8624 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8625 ;;
8626esac
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8628$as_echo "$lt_prog_compiler_pic" >&6; }
b57f37fb 8629
b57f37fb 8630
b57f37fb 8631
b57f37fb 8632
b57f37fb 8633
b57f37fb 8634
042acc47
WP
8635#
8636# Check to make sure the PIC flag actually works.
8637#
8638if test -n "$lt_prog_compiler_pic"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8640$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8641if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
8643else
8644 lt_cv_prog_compiler_pic_works=no
8645 ac_outfile=conftest.$ac_objext
8646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8647 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8648 # Insert the option either (1) after the last *FLAGS variable, or
8649 # (2) before a word containing "conftest.", or (3) at the end.
8650 # Note that $ac_compile itself does not contain backslashes and begins
8651 # with a dollar sign (not a hyphen), so the echo should work correctly.
8652 # The option is referenced via a variable to avoid confusing sed.
8653 lt_compile=`echo "$ac_compile" | $SED \
8654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8656 -e 's:$: $lt_compiler_flag:'`
8657 (eval echo "\"\$as_me:8657: $lt_compile\"" >&5)
8658 (eval "$lt_compile" 2>conftest.err)
8659 ac_status=$?
8660 cat conftest.err >&5
8661 echo "$as_me:8661: \$? = $ac_status" >&5
8662 if (exit $ac_status) && test -s "$ac_outfile"; then
8663 # The compiler can only warn and ignore the option if not recognized
8664 # So say no if there are warnings other than the usual output.
8665 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8668 lt_cv_prog_compiler_pic_works=yes
8669 fi
8670 fi
8671 $RM conftest*
8672
8673fi
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8675$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8676
8677if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8678 case $lt_prog_compiler_pic in
8679 "" | " "*) ;;
8680 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8681 esac
8682else
8683 lt_prog_compiler_pic=
8684 lt_prog_compiler_can_build_shared=no
8685fi
8686
8687fi
8688
8689
b57f37fb 8690
b57f37fb 8691
b57f37fb 8692
b57f37fb
WP
8693
8694#
042acc47 8695# Check to make sure the static flag actually works.
b57f37fb 8696#
042acc47
WP
8697wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8699$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8700if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8701 $as_echo_n "(cached) " >&6
8702else
8703 lt_cv_prog_compiler_static_works=no
8704 save_LDFLAGS="$LDFLAGS"
8705 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8706 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8708 # The linker can only warn and ignore the option if not recognized
8709 # So say no if there are warnings
8710 if test -s conftest.err; then
8711 # Append any errors to the config.log.
8712 cat conftest.err 1>&5
8713 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715 if diff conftest.exp conftest.er2 >/dev/null; then
8716 lt_cv_prog_compiler_static_works=yes
8717 fi
8718 else
8719 lt_cv_prog_compiler_static_works=yes
8720 fi
8721 fi
8722 $RM -r conftest*
8723 LDFLAGS="$save_LDFLAGS"
b57f37fb 8724
042acc47
WP
8725fi
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8727$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
b57f37fb 8728
042acc47
WP
8729if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8730 :
8731else
8732 lt_prog_compiler_static=
8733fi
b57f37fb 8734
b57f37fb 8735
b57f37fb 8736
b57f37fb 8737
b57f37fb 8738
b57f37fb 8739
b57f37fb 8740
042acc47
WP
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8742$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8743if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8744 $as_echo_n "(cached) " >&6
8745else
8746 lt_cv_prog_compiler_c_o=no
8747 $RM -r conftest 2>/dev/null
8748 mkdir conftest
8749 cd conftest
8750 mkdir out
8751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b57f37fb 8752
042acc47
WP
8753 lt_compiler_flag="-o out/conftest2.$ac_objext"
8754 # Insert the option either (1) after the last *FLAGS variable, or
8755 # (2) before a word containing "conftest.", or (3) at the end.
8756 # Note that $ac_compile itself does not contain backslashes and begins
8757 # with a dollar sign (not a hyphen), so the echo should work correctly.
8758 lt_compile=`echo "$ac_compile" | $SED \
8759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8761 -e 's:$: $lt_compiler_flag:'`
8762 (eval echo "\"\$as_me:8762: $lt_compile\"" >&5)
8763 (eval "$lt_compile" 2>out/conftest.err)
8764 ac_status=$?
8765 cat out/conftest.err >&5
8766 echo "$as_me:8766: \$? = $ac_status" >&5
8767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8768 then
8769 # The compiler can only warn and ignore the option if not recognized
8770 # So say no if there are warnings
8771 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8774 lt_cv_prog_compiler_c_o=yes
8775 fi
8776 fi
8777 chmod u+w . 2>&5
8778 $RM conftest*
8779 # SGI C++ compiler will create directory out/ii_files/ for
8780 # template instantiation
8781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8782 $RM out/* && rmdir out
8783 cd ..
8784 $RM -r conftest
8785 $RM conftest*
b57f37fb 8786
042acc47
WP
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8789$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
b57f37fb 8790
b57f37fb 8791
b57f37fb 8792
b57f37fb 8793
b57f37fb 8794
b57f37fb 8795
042acc47
WP
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8797$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8798if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8800else
8801 lt_cv_prog_compiler_c_o=no
8802 $RM -r conftest 2>/dev/null
8803 mkdir conftest
8804 cd conftest
8805 mkdir out
8806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b57f37fb 8807
042acc47
WP
8808 lt_compiler_flag="-o out/conftest2.$ac_objext"
8809 # Insert the option either (1) after the last *FLAGS variable, or
8810 # (2) before a word containing "conftest.", or (3) at the end.
8811 # Note that $ac_compile itself does not contain backslashes and begins
8812 # with a dollar sign (not a hyphen), so the echo should work correctly.
8813 lt_compile=`echo "$ac_compile" | $SED \
8814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8816 -e 's:$: $lt_compiler_flag:'`
8817 (eval echo "\"\$as_me:8817: $lt_compile\"" >&5)
8818 (eval "$lt_compile" 2>out/conftest.err)
8819 ac_status=$?
8820 cat out/conftest.err >&5
8821 echo "$as_me:8821: \$? = $ac_status" >&5
8822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8823 then
8824 # The compiler can only warn and ignore the option if not recognized
8825 # So say no if there are warnings
8826 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8829 lt_cv_prog_compiler_c_o=yes
8830 fi
8831 fi
8832 chmod u+w . 2>&5
8833 $RM conftest*
8834 # SGI C++ compiler will create directory out/ii_files/ for
8835 # template instantiation
8836 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8837 $RM out/* && rmdir out
8838 cd ..
8839 $RM -r conftest
8840 $RM conftest*
b57f37fb 8841
042acc47
WP
8842fi
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8844$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8845
8846
8847
8848
8849hard_links="nottested"
8850if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8851 # do not overwrite the value of need_locks provided by the user
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8853$as_echo_n "checking if we can lock with hard links... " >&6; }
8854 hard_links=yes
8855 $RM conftest*
8856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8857 touch conftest.a
8858 ln conftest.a conftest.b 2>&5 || hard_links=no
8859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8861$as_echo "$hard_links" >&6; }
8862 if test "$hard_links" = no; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8864$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8865 need_locks=warn
8866 fi
8867else
8868 need_locks=no
8869fi
8870
8871
8872
8873
8874
8875
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8877$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8878
8879 runpath_var=
8880 allow_undefined_flag=
8881 always_export_symbols=no
8882 archive_cmds=
8883 archive_expsym_cmds=
8884 compiler_needs_object=no
8885 enable_shared_with_static_runtimes=no
8886 export_dynamic_flag_spec=
8887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8888 hardcode_automatic=no
8889 hardcode_direct=no
8890 hardcode_direct_absolute=no
8891 hardcode_libdir_flag_spec=
8892 hardcode_libdir_flag_spec_ld=
8893 hardcode_libdir_separator=
8894 hardcode_minus_L=no
8895 hardcode_shlibpath_var=unsupported
8896 inherit_rpath=no
8897 link_all_deplibs=unknown
8898 module_cmds=
8899 module_expsym_cmds=
8900 old_archive_from_new_cmds=
8901 old_archive_from_expsyms_cmds=
8902 thread_safe_flag_spec=
8903 whole_archive_flag_spec=
8904 # include_expsyms should be a list of space-separated symbols to be *always*
8905 # included in the symbol list
8906 include_expsyms=
8907 # exclude_expsyms can be an extended regexp of symbols to exclude
8908 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8909 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8910 # as well as any symbol that contains `d'.
8911 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8913 # platforms (ab)use it in PIC code, but their linkers get confused if
8914 # the symbol is explicitly referenced. Since portable code cannot
8915 # rely on this symbol name, it's probably fine to never include it in
8916 # preloaded symbol tables.
8917 # Exclude shared library initialization/finalization symbols.
8918 extract_expsyms_cmds=
b57f37fb 8919
b57f37fb 8920 case $host_os in
042acc47
WP
8921 cygwin* | mingw* | pw32* | cegcc*)
8922 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8923 # When not using gcc, we currently assume that we are using
8924 # Microsoft Visual C++.
8925 if test "$GCC" != yes; then
8926 with_gnu_ld=no
8927 fi
b57f37fb 8928 ;;
042acc47
WP
8929 interix*)
8930 # we just hope/assume this is gcc and not c89 (= MSVC++)
8931 with_gnu_ld=yes
b57f37fb 8932 ;;
042acc47
WP
8933 openbsd*)
8934 with_gnu_ld=no
b57f37fb 8935 ;;
042acc47
WP
8936 linux* | k*bsd*-gnu)
8937 link_all_deplibs=no
b57f37fb
WP
8938 ;;
8939 esac
b57f37fb 8940
042acc47
WP
8941 ld_shlibs=yes
8942 if test "$with_gnu_ld" = yes; then
8943 # If archive_cmds runs LD, not CC, wlarc should be empty
8944 wlarc='${wl}'
b57f37fb 8945
042acc47
WP
8946 # Set some defaults for GNU ld with shared library support. These
8947 # are reset later if shared libraries are not supported. Putting them
8948 # here allows them to be overridden if necessary.
8949 runpath_var=LD_RUN_PATH
8950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951 export_dynamic_flag_spec='${wl}--export-dynamic'
8952 # ancient GNU ld didn't support --whole-archive et. al.
8953 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8954 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
b57f37fb 8955 else
042acc47 8956 whole_archive_flag_spec=
b57f37fb 8957 fi
042acc47
WP
8958 supports_anon_versioning=no
8959 case `$LD -v 2>&1` in
8960 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8963 *\ 2.11.*) ;; # other 2.11 versions
8964 *) supports_anon_versioning=yes ;;
b57f37fb 8965 esac
b57f37fb 8966
042acc47
WP
8967 # See if GNU ld supports shared libraries.
8968 case $host_os in
8969 aix[3-9]*)
8970 # On AIX/PPC, the GNU linker is very broken
8971 if test "$host_cpu" != ia64; then
8972 ld_shlibs=no
8973 cat <<_LT_EOF 1>&2
b57f37fb 8974
042acc47
WP
8975*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8976*** to be unable to reliably create shared libraries on AIX.
8977*** Therefore, libtool is disabling shared libraries support. If you
8978*** really care for shared libraries, you may want to modify your PATH
8979*** so that a non-GNU linker is found, and then restart.
b57f37fb 8980
042acc47
WP
8981_LT_EOF
8982 fi
8983 ;;
b57f37fb
WP
8984
8985 amigaos*)
042acc47
WP
8986 case $host_cpu in
8987 powerpc)
8988 # see comment about AmigaOS4 .so support
8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990 archive_expsym_cmds=''
8991 ;;
8992 m68k)
8993 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)'
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_minus_L=yes
8996 ;;
8997 esac
b57f37fb
WP
8998 ;;
8999
9000 beos*)
042acc47
WP
9001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9002 allow_undefined_flag=unsupported
b57f37fb
WP
9003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9004 # support --undefined. This deserves some investigation. FIXME
042acc47 9005 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b57f37fb 9006 else
042acc47 9007 ld_shlibs=no
b57f37fb
WP
9008 fi
9009 ;;
9010
042acc47
WP
9011 cygwin* | mingw* | pw32* | cegcc*)
9012 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
b57f37fb 9013 # as there is no search path for DLLs.
042acc47
WP
9014 hardcode_libdir_flag_spec='-L$libdir'
9015 allow_undefined_flag=unsupported
9016 always_export_symbols=no
9017 enable_shared_with_static_runtimes=yes
9018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9019
9020 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
b57f37fb
WP
9022 # If the export-symbols file already is a .def file (1st line
9023 # is EXPORTS), use it as is; otherwise, prepend...
042acc47 9024 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
b57f37fb
WP
9025 cp $export_symbols $output_objdir/$soname.def;
9026 else
9027 echo EXPORTS > $output_objdir/$soname.def;
9028 cat $export_symbols >> $output_objdir/$soname.def;
9029 fi~
9030 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9031 else
042acc47 9032 ld_shlibs=no
b57f37fb
WP
9033 fi
9034 ;;
9035
9036 interix[3-9]*)
042acc47
WP
9037 hardcode_direct=no
9038 hardcode_shlibpath_var=no
9039 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9040 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9041 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9042 # Instead, shared libraries are loaded at an image base (0x10000000 by
9043 # default) and relocated if they conflict, which is a slow very memory
9044 # consuming and fragmenting process. To avoid this, we pick a random,
9045 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9046 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
042acc47
WP
9047 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9048 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
9049 ;;
9050
042acc47
WP
9051 gnu* | linux* | tpf* | k*bsd*-gnu)
9052 tmp_diet=no
9053 if test "$host_os" = linux-dietlibc; then
9054 case $cc_basename in
9055 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9056 esac
9057 fi
9058 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9059 && test "$tmp_diet" = no
9060 then
b57f37fb 9061 tmp_addflag=
042acc47 9062 tmp_sharedflag='-shared'
b57f37fb 9063 case $cc_basename,$host_cpu in
042acc47
WP
9064 pgcc*) # Portland Group C compiler
9065 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
9066 tmp_addflag=' $pic_flag'
9067 ;;
9068 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
042acc47 9069 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 9070 tmp_addflag=' $pic_flag -Mnomain' ;;
042acc47 9071 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
b57f37fb
WP
9072 tmp_addflag=' -i_dynamic' ;;
9073 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9074 tmp_addflag=' -i_dynamic -nofor_main' ;;
9075 ifc* | ifort*) # Intel Fortran compiler
9076 tmp_addflag=' -nofor_main' ;;
042acc47
WP
9077 lf95*) # Lahey Fortran 8.1
9078 whole_archive_flag_spec=
9079 tmp_sharedflag='--shared' ;;
9080 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9081 tmp_sharedflag='-qmkshrobj'
9082 tmp_addflag= ;;
b57f37fb
WP
9083 esac
9084 case `$CC -V 2>&1 | sed 5q` in
9085 *Sun\ C*) # Sun C 5.9
042acc47
WP
9086 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'
9087 compiler_needs_object=yes
b57f37fb
WP
9088 tmp_sharedflag='-G' ;;
9089 *Sun\ F*) # Sun Fortran 8.3
9090 tmp_sharedflag='-G' ;;
b57f37fb 9091 esac
042acc47 9092 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b57f37fb 9093
042acc47
WP
9094 if test "x$supports_anon_versioning" = xyes; then
9095 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9097 echo "local: *; };" >> $output_objdir/$libname.ver~
9098 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9099 fi
9100
9101 case $cc_basename in
9102 xlf*)
9103 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9104 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9105 hardcode_libdir_flag_spec=
9106 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9107 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9108 if test "x$supports_anon_versioning" = xyes; then
9109 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9110 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9111 echo "local: *; };" >> $output_objdir/$libname.ver~
9112 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9113 fi
9114 ;;
9115 esac
b57f37fb 9116 else
042acc47 9117 ld_shlibs=no
b57f37fb
WP
9118 fi
9119 ;;
9120
9121 netbsd* | netbsdelf*-gnu)
042acc47
WP
9122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9123 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
b57f37fb
WP
9124 wlarc=
9125 else
042acc47
WP
9126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb
WP
9128 fi
9129 ;;
9130
9131 solaris*)
042acc47
WP
9132 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9133 ld_shlibs=no
9134 cat <<_LT_EOF 1>&2
b57f37fb
WP
9135
9136*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9137*** create shared libraries on Solaris systems. Therefore, libtool
9138*** is disabling shared libraries support. We urge you to upgrade GNU
9139*** binutils to release 2.9.1 or newer. Another option is to modify
9140*** your PATH or compiler configuration so that the native linker is
9141*** used, and then restart.
9142
042acc47
WP
9143_LT_EOF
9144 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb 9147 else
042acc47 9148 ld_shlibs=no
b57f37fb
WP
9149 fi
9150 ;;
9151
9152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9153 case `$LD -v 2>&1` in
9154 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
042acc47 9155 ld_shlibs=no
b57f37fb
WP
9156 cat <<_LT_EOF 1>&2
9157
9158*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9159*** reliably create shared libraries on SCO systems. Therefore, libtool
9160*** is disabling shared libraries support. We urge you to upgrade GNU
9161*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9162*** your PATH or compiler configuration so that the native linker is
9163*** used, and then restart.
9164
9165_LT_EOF
9166 ;;
9167 *)
042acc47
WP
9168 # For security reasons, it is highly recommended that you always
9169 # use absolute paths for naming shared libraries, and exclude the
9170 # DT_RUNPATH tag from executables and libraries. But doing so
9171 # requires that you compile everything twice, which is a pain.
9172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb 9176 else
042acc47 9177 ld_shlibs=no
b57f37fb
WP
9178 fi
9179 ;;
9180 esac
9181 ;;
9182
9183 sunos4*)
042acc47 9184 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
b57f37fb 9185 wlarc=
042acc47
WP
9186 hardcode_direct=yes
9187 hardcode_shlibpath_var=no
b57f37fb
WP
9188 ;;
9189
9190 *)
042acc47
WP
9191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b57f37fb 9194 else
042acc47 9195 ld_shlibs=no
b57f37fb
WP
9196 fi
9197 ;;
9198 esac
9199
042acc47 9200 if test "$ld_shlibs" = no; then
b57f37fb 9201 runpath_var=
042acc47
WP
9202 hardcode_libdir_flag_spec=
9203 export_dynamic_flag_spec=
9204 whole_archive_flag_spec=
b57f37fb
WP
9205 fi
9206 else
9207 # PORTME fill in a description of your system's linker (not GNU ld)
9208 case $host_os in
9209 aix3*)
042acc47
WP
9210 allow_undefined_flag=unsupported
9211 always_export_symbols=yes
9212 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
9213 # Note: this linker hardcodes the directories in LIBPATH if there
9214 # are no directories specified by -L.
042acc47 9215 hardcode_minus_L=yes
b57f37fb
WP
9216 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9217 # Neither direct hardcoding nor static linking is supported with a
9218 # broken collect2.
042acc47 9219 hardcode_direct=unsupported
b57f37fb
WP
9220 fi
9221 ;;
9222
56efe974 9223 aix[4-9]*)
b57f37fb
WP
9224 if test "$host_cpu" = ia64; then
9225 # On IA64, the linker does run time linking by default, so we don't
9226 # have to do anything special.
9227 aix_use_runtimelinking=no
9228 exp_sym_flag='-Bexport'
9229 no_entry_flag=""
9230 else
9231 # If we're using GNU nm, then we don't want the "-C" option.
9232 # -C means demangle to AIX nm, but means don't demangle with GNU nm
042acc47
WP
9233 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9234 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 9235 else
042acc47 9236 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
9237 fi
9238 aix_use_runtimelinking=no
9239
9240 # Test if we are trying to use run time linking or normal
9241 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9242 # need to do runtime linking.
56efe974 9243 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb 9244 for ld_flag in $LDFLAGS; do
042acc47
WP
9245 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9246 aix_use_runtimelinking=yes
9247 break
9248 fi
b57f37fb
WP
9249 done
9250 ;;
9251 esac
9252
9253 exp_sym_flag='-bexport'
9254 no_entry_flag='-bnoentry'
9255 fi
9256
9257 # When large executables or shared objects are built, AIX ld can
9258 # have problems creating the table of contents. If linking a library
9259 # or program results in "error TOC overflow" add -mminimal-toc to
9260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9262
042acc47
WP
9263 archive_cmds=''
9264 hardcode_direct=yes
9265 hardcode_direct_absolute=yes
9266 hardcode_libdir_separator=':'
9267 link_all_deplibs=yes
9268 file_list_spec='${wl}-f,'
b57f37fb
WP
9269
9270 if test "$GCC" = yes; then
9271 case $host_os in aix4.[012]|aix4.[012].*)
9272 # We only want to do this on AIX 4.2 and lower, the check
9273 # below for broken collect2 doesn't work under 4.3+
9274 collect2name=`${CC} -print-prog-name=collect2`
042acc47
WP
9275 if test -f "$collect2name" &&
9276 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
b57f37fb 9277 then
042acc47
WP
9278 # We have reworked collect2
9279 :
b57f37fb 9280 else
042acc47
WP
9281 # We have old collect2
9282 hardcode_direct=unsupported
9283 # It fails to find uninstalled libraries when the uninstalled
9284 # path is not listed in the libpath. Setting hardcode_minus_L
9285 # to unsupported forces relinking
9286 hardcode_minus_L=yes
9287 hardcode_libdir_flag_spec='-L$libdir'
9288 hardcode_libdir_separator=
b57f37fb
WP
9289 fi
9290 ;;
9291 esac
9292 shared_flag='-shared'
9293 if test "$aix_use_runtimelinking" = yes; then
9294 shared_flag="$shared_flag "'${wl}-G'
9295 fi
042acc47 9296 link_all_deplibs=no
b57f37fb
WP
9297 else
9298 # not using gcc
9299 if test "$host_cpu" = ia64; then
042acc47
WP
9300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9301 # chokes on -Wl,-G. The following line is correct:
b57f37fb
WP
9302 shared_flag='-G'
9303 else
9304 if test "$aix_use_runtimelinking" = yes; then
9305 shared_flag='${wl}-G'
9306 else
9307 shared_flag='${wl}-bM:SRE'
9308 fi
9309 fi
9310 fi
9311
042acc47 9312 export_dynamic_flag_spec='${wl}-bexpall'
b57f37fb
WP
9313 # It seems that -bexpall does not export symbols beginning with
9314 # underscore (_), so it is better to generate a list of symbols to export.
042acc47 9315 always_export_symbols=yes
b57f37fb
WP
9316 if test "$aix_use_runtimelinking" = yes; then
9317 # Warning - without using the other runtime loading flags (-brtl),
9318 # -berok will link without error, but may produce a broken library.
042acc47
WP
9319 allow_undefined_flag='-berok'
9320 # Determine the default libpath from the value encoded in an
9321 # empty executable.
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
9323/* end confdefs.h. */
9324
9325int
9326main ()
9327{
9328
9329 ;
9330 return 0;
9331}
9332_ACEOF
042acc47 9333if ac_fn_c_try_link "$LINENO"; then :
b57f37fb
WP
9334
9335lt_aix_libpath_sed='
9336 /Import File Strings/,/^$/ {
9337 /^0/ {
9338 s/^0 *\(.*\)$/\1/
9339 p
9340 }
9341 }'
9342aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9343# Check for a 64-bit object if we didn't find anything.
9344if test -z "$aix_libpath"; then
9345 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9346fi
b57f37fb 9347fi
042acc47
WP
9348rm -f core conftest.err conftest.$ac_objext \
9349 conftest$ac_exeext conftest.$ac_ext
b57f37fb
WP
9350if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9351
042acc47
WP
9352 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9353 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"
9354 else
b57f37fb 9355 if test "$host_cpu" = ia64; then
042acc47
WP
9356 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9357 allow_undefined_flag="-z nodefs"
9358 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 9359 else
042acc47
WP
9360 # Determine the default libpath from the value encoded in an
9361 # empty executable.
9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
9363/* end confdefs.h. */
9364
9365int
9366main ()
9367{
9368
9369 ;
9370 return 0;
9371}
9372_ACEOF
042acc47 9373if ac_fn_c_try_link "$LINENO"; then :
b57f37fb
WP
9374
9375lt_aix_libpath_sed='
9376 /Import File Strings/,/^$/ {
9377 /^0/ {
9378 s/^0 *\(.*\)$/\1/
9379 p
9380 }
9381 }'
9382aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9383# Check for a 64-bit object if we didn't find anything.
9384if test -z "$aix_libpath"; then
9385 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9386fi
b57f37fb 9387fi
042acc47
WP
9388rm -f core conftest.err conftest.$ac_objext \
9389 conftest$ac_exeext conftest.$ac_ext
b57f37fb
WP
9390if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9391
042acc47 9392 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b57f37fb
WP
9393 # Warning - without using the other run time loading flags,
9394 # -berok will link without error, but may produce a broken library.
042acc47
WP
9395 no_undefined_flag=' ${wl}-bernotok'
9396 allow_undefined_flag=' ${wl}-berok'
b57f37fb 9397 # Exported symbols can be pulled into shared objects from archives
042acc47
WP
9398 whole_archive_flag_spec='$convenience'
9399 archive_cmds_need_lc=yes
b57f37fb 9400 # This is similar to how AIX traditionally builds its shared libraries.
042acc47 9401 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
9402 fi
9403 fi
9404 ;;
9405
9406 amigaos*)
042acc47
WP
9407 case $host_cpu in
9408 powerpc)
9409 # see comment about AmigaOS4 .so support
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411 archive_expsym_cmds=''
9412 ;;
9413 m68k)
9414 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)'
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_minus_L=yes
9417 ;;
9418 esac
b57f37fb
WP
9419 ;;
9420
9421 bsdi[45]*)
042acc47 9422 export_dynamic_flag_spec=-rdynamic
b57f37fb
WP
9423 ;;
9424
042acc47 9425 cygwin* | mingw* | pw32* | cegcc*)
b57f37fb
WP
9426 # When not using gcc, we currently assume that we are using
9427 # Microsoft Visual C++.
9428 # hardcode_libdir_flag_spec is actually meaningless, as there is
9429 # no search path for DLLs.
042acc47
WP
9430 hardcode_libdir_flag_spec=' '
9431 allow_undefined_flag=unsupported
b57f37fb
WP
9432 # Tell ltmain to make .lib files, not .a files.
9433 libext=lib
9434 # Tell ltmain to make .dll files, not .so files.
9435 shrext_cmds=".dll"
9436 # FIXME: Setting linknames here is a bad hack.
042acc47 9437 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
b57f37fb 9438 # The linker will automatically build a .lib file if we build a DLL.
042acc47 9439 old_archive_from_new_cmds='true'
b57f37fb 9440 # FIXME: Should let the user specify the lib program.
042acc47
WP
9441 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9442 fix_srcfile_path='`cygpath -w "$srcfile"`'
9443 enable_shared_with_static_runtimes=yes
b57f37fb
WP
9444 ;;
9445
042acc47
WP
9446 darwin* | rhapsody*)
9447
9448
9449 archive_cmds_need_lc=no
9450 hardcode_direct=no
9451 hardcode_automatic=yes
9452 hardcode_shlibpath_var=unsupported
9453 whole_archive_flag_spec=''
9454 link_all_deplibs=yes
9455 allow_undefined_flag="$_lt_dar_allow_undefined"
9456 case $cc_basename in
9457 ifort*) _lt_dar_can_shared=yes ;;
9458 *) _lt_dar_can_shared=$GCC ;;
9459 esac
9460 if test "$_lt_dar_can_shared" = "yes"; then
9461 output_verbose_link_cmd=echo
9462 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9463 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9464 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}"
9465 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}"
9466
9467 else
9468 ld_shlibs=no
9469 fi
9470
b57f37fb
WP
9471 ;;
9472
9473 dgux*)
042acc47
WP
9474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475 hardcode_libdir_flag_spec='-L$libdir'
9476 hardcode_shlibpath_var=no
b57f37fb
WP
9477 ;;
9478
9479 freebsd1*)
042acc47 9480 ld_shlibs=no
b57f37fb
WP
9481 ;;
9482
9483 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9484 # support. Future versions do this automatically, but an explicit c++rt0.o
9485 # does not break anything, and helps significantly (at the cost of a little
9486 # extra space).
9487 freebsd2.2*)
042acc47
WP
9488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9489 hardcode_libdir_flag_spec='-R$libdir'
9490 hardcode_direct=yes
9491 hardcode_shlibpath_var=no
b57f37fb
WP
9492 ;;
9493
9494 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9495 freebsd2*)
042acc47
WP
9496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9497 hardcode_direct=yes
9498 hardcode_minus_L=yes
9499 hardcode_shlibpath_var=no
b57f37fb
WP
9500 ;;
9501
9502 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9503 freebsd* | dragonfly*)
042acc47
WP
9504 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9505 hardcode_libdir_flag_spec='-R$libdir'
9506 hardcode_direct=yes
9507 hardcode_shlibpath_var=no
b57f37fb
WP
9508 ;;
9509
9510 hpux9*)
9511 if test "$GCC" = yes; then
042acc47 9512 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 9513 else
042acc47 9514 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 9515 fi
042acc47
WP
9516 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9517 hardcode_libdir_separator=:
9518 hardcode_direct=yes
b57f37fb
WP
9519
9520 # hardcode_minus_L: Not really in the search PATH,
9521 # but as the default location of the library.
042acc47
WP
9522 hardcode_minus_L=yes
9523 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9524 ;;
9525
9526 hpux10*)
9527 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
042acc47 9528 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 9529 else
042acc47 9530 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
b57f37fb
WP
9531 fi
9532 if test "$with_gnu_ld" = no; then
042acc47
WP
9533 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9534 hardcode_libdir_flag_spec_ld='+b $libdir'
9535 hardcode_libdir_separator=:
9536 hardcode_direct=yes
9537 hardcode_direct_absolute=yes
9538 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9539 # hardcode_minus_L: Not really in the search PATH,
9540 # but as the default location of the library.
042acc47 9541 hardcode_minus_L=yes
b57f37fb
WP
9542 fi
9543 ;;
9544
9545 hpux11*)
9546 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9547 case $host_cpu in
9548 hppa*64*)
042acc47 9549 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9550 ;;
9551 ia64*)
042acc47 9552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9553 ;;
9554 *)
042acc47 9555 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9556 ;;
9557 esac
9558 else
9559 case $host_cpu in
9560 hppa*64*)
042acc47 9561 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9562 ;;
9563 ia64*)
042acc47 9564 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9565 ;;
9566 *)
042acc47 9567 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9568 ;;
9569 esac
9570 fi
9571 if test "$with_gnu_ld" = no; then
042acc47
WP
9572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9573 hardcode_libdir_separator=:
b57f37fb
WP
9574
9575 case $host_cpu in
9576 hppa*64*|ia64*)
042acc47
WP
9577 hardcode_direct=no
9578 hardcode_shlibpath_var=no
b57f37fb
WP
9579 ;;
9580 *)
042acc47
WP
9581 hardcode_direct=yes
9582 hardcode_direct_absolute=yes
9583 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9584
9585 # hardcode_minus_L: Not really in the search PATH,
9586 # but as the default location of the library.
042acc47 9587 hardcode_minus_L=yes
b57f37fb
WP
9588 ;;
9589 esac
9590 fi
9591 ;;
9592
9593 irix5* | irix6* | nonstopux*)
9594 if test "$GCC" = yes; then
042acc47
WP
9595 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'
9596 # Try to use the -exported_symbol ld option, if it does not
9597 # work, assume that -exports_file does not work either and
9598 # implicitly export all symbols.
9599 save_LDFLAGS="$LDFLAGS"
9600 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602/* end confdefs.h. */
9603int foo(void) {}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606 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'
9607
9608fi
9609rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
9611 LDFLAGS="$save_LDFLAGS"
b57f37fb 9612 else
042acc47
WP
9613 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'
9614 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 9615 fi
042acc47
WP
9616 archive_cmds_need_lc='no'
9617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9618 hardcode_libdir_separator=:
9619 inherit_rpath=yes
9620 link_all_deplibs=yes
b57f37fb
WP
9621 ;;
9622
9623 netbsd* | netbsdelf*-gnu)
042acc47
WP
9624 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
b57f37fb 9626 else
042acc47 9627 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
b57f37fb 9628 fi
042acc47
WP
9629 hardcode_libdir_flag_spec='-R$libdir'
9630 hardcode_direct=yes
9631 hardcode_shlibpath_var=no
b57f37fb
WP
9632 ;;
9633
9634 newsos6)
042acc47
WP
9635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9636 hardcode_direct=yes
9637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9638 hardcode_libdir_separator=:
9639 hardcode_shlibpath_var=no
9640 ;;
9641
9642 *nto* | *qnx*)
b57f37fb
WP
9643 ;;
9644
9645 openbsd*)
9646 if test -f /usr/libexec/ld.so; then
042acc47
WP
9647 hardcode_direct=yes
9648 hardcode_shlibpath_var=no
9649 hardcode_direct_absolute=yes
9650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9652 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9653 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9654 export_dynamic_flag_spec='${wl}-E'
b57f37fb
WP
9655 else
9656 case $host_os in
9657 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
042acc47
WP
9658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_libdir_flag_spec='-R$libdir'
b57f37fb
WP
9660 ;;
9661 *)
042acc47
WP
9662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9663 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b57f37fb
WP
9664 ;;
9665 esac
042acc47 9666 fi
b57f37fb 9667 else
042acc47 9668 ld_shlibs=no
b57f37fb
WP
9669 fi
9670 ;;
9671
9672 os2*)
042acc47
WP
9673 hardcode_libdir_flag_spec='-L$libdir'
9674 hardcode_minus_L=yes
9675 allow_undefined_flag=unsupported
9676 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'
9677 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
b57f37fb
WP
9678 ;;
9679
9680 osf3*)
9681 if test "$GCC" = yes; then
042acc47
WP
9682 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9683 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 9684 else
042acc47
WP
9685 allow_undefined_flag=' -expect_unresolved \*'
9686 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 9687 fi
042acc47
WP
9688 archive_cmds_need_lc='no'
9689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9690 hardcode_libdir_separator=:
b57f37fb
WP
9691 ;;
9692
9693 osf4* | osf5*) # as osf3* with the addition of -msym flag
9694 if test "$GCC" = yes; then
042acc47
WP
9695 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9696 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'
9697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
b57f37fb 9698 else
042acc47
WP
9699 allow_undefined_flag=' -expect_unresolved \*'
9700 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'
9701 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~
9702 $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
9703
9704 # Both c and cxx compiler support -rpath directly
042acc47 9705 hardcode_libdir_flag_spec='-rpath $libdir'
b57f37fb 9706 fi
042acc47
WP
9707 archive_cmds_need_lc='no'
9708 hardcode_libdir_separator=:
b57f37fb
WP
9709 ;;
9710
9711 solaris*)
042acc47 9712 no_undefined_flag=' -z defs'
b57f37fb
WP
9713 if test "$GCC" = yes; then
9714 wlarc='${wl}'
042acc47
WP
9715 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9717 $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 9718 else
042acc47
WP
9719 case `$CC -V 2>&1` in
9720 *"Compilers 5.0"*)
9721 wlarc=''
9722 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9724 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9725 ;;
9726 *)
9727 wlarc='${wl}'
9728 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9730 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9731 ;;
9732 esac
b57f37fb 9733 fi
042acc47
WP
9734 hardcode_libdir_flag_spec='-R$libdir'
9735 hardcode_shlibpath_var=no
b57f37fb
WP
9736 case $host_os in
9737 solaris2.[0-5] | solaris2.[0-5].*) ;;
9738 *)
9739 # The compiler driver will combine and reorder linker options,
9740 # but understands `-z linker_flag'. GCC discards it without `$wl',
9741 # but is careful enough not to reorder.
042acc47 9742 # Supported since Solaris 2.6 (maybe 2.5.1?)
b57f37fb 9743 if test "$GCC" = yes; then
042acc47 9744 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
b57f37fb 9745 else
042acc47 9746 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
b57f37fb
WP
9747 fi
9748 ;;
9749 esac
042acc47 9750 link_all_deplibs=yes
b57f37fb
WP
9751 ;;
9752
9753 sunos4*)
9754 if test "x$host_vendor" = xsequent; then
9755 # Use $CC to link under sequent, because it throws in some extra .o
9756 # files that make .init and .fini sections work.
042acc47 9757 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 9758 else
042acc47 9759 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
b57f37fb 9760 fi
042acc47
WP
9761 hardcode_libdir_flag_spec='-L$libdir'
9762 hardcode_direct=yes
9763 hardcode_minus_L=yes
9764 hardcode_shlibpath_var=no
b57f37fb
WP
9765 ;;
9766
9767 sysv4)
9768 case $host_vendor in
9769 sni)
042acc47
WP
9770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771 hardcode_direct=yes # is this really true???
b57f37fb
WP
9772 ;;
9773 siemens)
9774 ## LD is ld it makes a PLAMLIB
9775 ## CC just makes a GrossModule.
042acc47
WP
9776 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9777 reload_cmds='$CC -r -o $output$reload_objs'
9778 hardcode_direct=no
b57f37fb
WP
9779 ;;
9780 motorola)
042acc47
WP
9781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
b57f37fb
WP
9783 ;;
9784 esac
9785 runpath_var='LD_RUN_PATH'
042acc47 9786 hardcode_shlibpath_var=no
b57f37fb
WP
9787 ;;
9788
9789 sysv4.3*)
042acc47
WP
9790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791 hardcode_shlibpath_var=no
9792 export_dynamic_flag_spec='-Bexport'
b57f37fb
WP
9793 ;;
9794
9795 sysv4*MP*)
9796 if test -d /usr/nec; then
042acc47
WP
9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_shlibpath_var=no
b57f37fb
WP
9799 runpath_var=LD_RUN_PATH
9800 hardcode_runpath_var=yes
042acc47 9801 ld_shlibs=yes
b57f37fb
WP
9802 fi
9803 ;;
9804
9805 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
042acc47
WP
9806 no_undefined_flag='${wl}-z,text'
9807 archive_cmds_need_lc=no
9808 hardcode_shlibpath_var=no
b57f37fb
WP
9809 runpath_var='LD_RUN_PATH'
9810
9811 if test "$GCC" = yes; then
042acc47
WP
9812 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 9814 else
042acc47
WP
9815 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9817 fi
9818 ;;
9819
9820 sysv5* | sco3.2v5* | sco5v6*)
9821 # Note: We can NOT use -z defs as we might desire, because we do not
9822 # link with -lc, and that would cause any symbols used from libc to
9823 # always be unresolved, which means just about no library would
9824 # ever link correctly. If we're not using GNU ld we use -z text
9825 # though, which does catch some bad symbols but isn't as heavy-handed
9826 # as -z defs.
042acc47
WP
9827 no_undefined_flag='${wl}-z,text'
9828 allow_undefined_flag='${wl}-z,nodefs'
9829 archive_cmds_need_lc=no
9830 hardcode_shlibpath_var=no
9831 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9832 hardcode_libdir_separator=':'
9833 link_all_deplibs=yes
9834 export_dynamic_flag_spec='${wl}-Bexport'
b57f37fb
WP
9835 runpath_var='LD_RUN_PATH'
9836
9837 if test "$GCC" = yes; then
042acc47
WP
9838 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb 9840 else
042acc47
WP
9841 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b57f37fb
WP
9843 fi
9844 ;;
9845
9846 uts4*)
042acc47
WP
9847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848 hardcode_libdir_flag_spec='-L$libdir'
9849 hardcode_shlibpath_var=no
b57f37fb
WP
9850 ;;
9851
9852 *)
042acc47 9853 ld_shlibs=no
b57f37fb
WP
9854 ;;
9855 esac
042acc47
WP
9856
9857 if test x$host_vendor = xsni; then
9858 case $host in
9859 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9860 export_dynamic_flag_spec='${wl}-Blargedynsym'
9861 ;;
9862 esac
9863 fi
b57f37fb
WP
9864 fi
9865
042acc47
WP
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9867$as_echo "$ld_shlibs" >&6; }
9868test "$ld_shlibs" = no && can_build_shared=no
9869
9870with_gnu_ld=$with_gnu_ld
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
b57f37fb
WP
9885
9886#
9887# Do we need to explicitly link libc?
9888#
042acc47 9889case "x$archive_cmds_need_lc" in
b57f37fb
WP
9890x|xyes)
9891 # Assume -lc should be added
042acc47 9892 archive_cmds_need_lc=yes
b57f37fb
WP
9893
9894 if test "$enable_shared" = yes && test "$GCC" = yes; then
042acc47 9895 case $archive_cmds in
b57f37fb
WP
9896 *'~'*)
9897 # FIXME: we may have to deal with multi-command sequences.
9898 ;;
9899 '$CC '*)
9900 # Test whether the compiler implicitly links with -lc since on some
9901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9902 # to ld, don't add -lc before -lgcc.
042acc47 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
f030cae8 9904$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
042acc47 9905 $RM conftest*
b57f37fb
WP
9906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9907
042acc47 9908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b57f37fb
WP
9909 (eval $ac_compile) 2>&5
9910 ac_status=$?
042acc47
WP
9911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9912 test $ac_status = 0; } 2>conftest.err; then
b57f37fb
WP
9913 soname=conftest
9914 lib=conftest
9915 libobjs=conftest.$ac_objext
9916 deplibs=
042acc47
WP
9917 wl=$lt_prog_compiler_wl
9918 pic_flag=$lt_prog_compiler_pic
b57f37fb
WP
9919 compiler_flags=-v
9920 linker_flags=-v
9921 verstring=
9922 output_objdir=.
9923 libname=conftest
042acc47
WP
9924 lt_save_allow_undefined_flag=$allow_undefined_flag
9925 allow_undefined_flag=
9926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9927 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
b57f37fb 9928 ac_status=$?
042acc47
WP
9929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9930 test $ac_status = 0; }
b57f37fb 9931 then
042acc47 9932 archive_cmds_need_lc=no
b57f37fb 9933 else
042acc47 9934 archive_cmds_need_lc=yes
b57f37fb 9935 fi
042acc47 9936 allow_undefined_flag=$lt_save_allow_undefined_flag
b57f37fb
WP
9937 else
9938 cat conftest.err 1>&5
9939 fi
042acc47
WP
9940 $RM conftest*
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9942$as_echo "$archive_cmds_need_lc" >&6; }
b57f37fb
WP
9943 ;;
9944 esac
9945 fi
9946 ;;
9947esac
9948
b57f37fb 9949
b57f37fb 9950
b57f37fb 9951
b57f37fb 9952
b57f37fb 9953
b57f37fb 9954
b57f37fb 9955
b57f37fb 9956
b57f37fb 9957
b57f37fb 9958
b57f37fb 9959
b57f37fb 9960
b57f37fb 9961
b57f37fb 9962
b57f37fb 9963
b57f37fb 9964
b57f37fb 9965
b57f37fb 9966
b57f37fb 9967
b57f37fb 9968
b57f37fb 9969
b57f37fb 9970
b57f37fb 9971
b57f37fb 9972
b57f37fb 9973
b57f37fb 9974
b57f37fb 9975
b57f37fb 9976
b57f37fb 9977
b57f37fb 9978
b57f37fb 9979
b57f37fb 9980
b57f37fb 9981
b57f37fb 9982
b57f37fb 9983
b57f37fb 9984
b57f37fb 9985
b57f37fb 9986
b57f37fb 9987
b57f37fb 9988
b57f37fb 9989
56efe974 9990
56efe974 9991
56efe974 9992
b57f37fb 9993
b57f37fb 9994
b57f37fb 9995
b57f37fb
WP
9996
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
b57f37fb 10028
b57f37fb 10029
b57f37fb 10030
b57f37fb 10031
b57f37fb 10032
b57f37fb 10033
b57f37fb 10034
b57f37fb 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
56efe974 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
WP
10095
10096
042acc47
WP
10097
10098
10099
10100
10101
10102
10103
10104
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10106$as_echo_n "checking dynamic linker characteristics... " >&6; }
10107
10108if test "$GCC" = yes; then
10109 case $host_os in
10110 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10111 *) lt_awk_arg="/^libraries:/" ;;
10112 esac
10113 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10114 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10115 # if the path contains ";" then we assume it to be the separator
10116 # otherwise default to the standard path separator (i.e. ":") - it is
10117 # assumed that no part of a normal pathname contains ";" but that should
10118 # okay in the real world where ";" in dirpaths is itself problematic.
10119 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10120 else
10121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10122 fi
10123 # Ok, now we have the path, separated by spaces, we can step through it
10124 # and add multilib dir if necessary.
10125 lt_tmp_lt_search_path_spec=
10126 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10127 for lt_sys_path in $lt_search_path_spec; do
10128 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10129 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10130 else
10131 test -d "$lt_sys_path" && \
10132 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10133 fi
10134 done
10135 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10136BEGIN {RS=" "; FS="/|\n";} {
10137 lt_foo="";
10138 lt_count=0;
10139 for (lt_i = NF; lt_i > 0; lt_i--) {
10140 if ($lt_i != "" && $lt_i != ".") {
10141 if ($lt_i == "..") {
10142 lt_count++;
10143 } else {
10144 if (lt_count == 0) {
10145 lt_foo="/" $lt_i lt_foo;
10146 } else {
10147 lt_count--;
10148 }
10149 }
10150 }
10151 }
10152 if (lt_foo != "") { lt_freq[lt_foo]++; }
10153 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10154}'`
10155 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10156else
10157 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10158fi
10159library_names_spec=
10160libname_spec='lib$name'
10161soname_spec=
10162shrext_cmds=".so"
10163postinstall_cmds=
10164postuninstall_cmds=
10165finish_cmds=
10166finish_eval=
10167shlibpath_var=
10168shlibpath_overrides_runpath=unknown
10169version_type=none
10170dynamic_linker="$host_os ld.so"
10171sys_lib_dlsearch_path_spec="/lib /usr/lib"
10172need_lib_prefix=unknown
10173hardcode_into_libs=no
10174
10175# when you set need_version to no, make sure it does not cause -set_version
10176# flags to be left without arguments
10177need_version=unknown
10178
10179case $host_os in
10180aix3*)
10181 version_type=linux
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10183 shlibpath_var=LIBPATH
10184
10185 # AIX 3 has no versioning support, so we append a major version to the name.
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 ;;
10188
10189aix[4-9]*)
10190 version_type=linux
10191 need_lib_prefix=no
10192 need_version=no
10193 hardcode_into_libs=yes
10194 if test "$host_cpu" = ia64; then
10195 # AIX 5 supports IA64
10196 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 else
10199 # With GCC up to 2.95.x, collect2 would create an import file
10200 # for dependence libraries. The import file would start with
10201 # the line `#! .'. This would cause the generated library to
10202 # depend on `.', always an invalid library. This was fixed in
10203 # development snapshots of GCC prior to 3.0.
10204 case $host_os in
10205 aix4 | aix4.[01] | aix4.[01].*)
10206 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10207 echo ' yes '
10208 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10209 :
10210 else
10211 can_build_shared=no
10212 fi
10213 ;;
10214 esac
10215 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10216 # soname into executable. Probably we can add versioning support to
10217 # collect2, so additional links can be useful in future.
10218 if test "$aix_use_runtimelinking" = yes; then
10219 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10220 # instead of lib<name>.a to let people know that these are not
10221 # typical AIX shared libraries.
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223 else
10224 # We preserve .a as extension for shared libraries through AIX4.2
10225 # and later when we are not doing run time linking.
10226 library_names_spec='${libname}${release}.a $libname.a'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 fi
10229 shlibpath_var=LIBPATH
10230 fi
10231 ;;
10232
10233amigaos*)
10234 case $host_cpu in
10235 powerpc)
10236 # Since July 2007 AmigaOS4 officially supports .so libraries.
10237 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 ;;
10240 m68k)
10241 library_names_spec='$libname.ixlibrary $libname.a'
10242 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10243 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'
10244 ;;
10245 esac
10246 ;;
10247
10248beos*)
10249 library_names_spec='${libname}${shared_ext}'
10250 dynamic_linker="$host_os ld.so"
10251 shlibpath_var=LIBRARY_PATH
10252 ;;
10253
10254bsdi[45]*)
10255 version_type=linux
10256 need_version=no
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10262 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10263 # the default ld.so.conf also contains /usr/contrib/lib and
10264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10265 # libtool to hard-code these into programs
10266 ;;
10267
10268cygwin* | mingw* | pw32* | cegcc*)
10269 version_type=windows
10270 shrext_cmds=".dll"
10271 need_version=no
10272 need_lib_prefix=no
10273
10274 case $GCC,$host_os in
10275 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10276 library_names_spec='$libname.dll.a'
10277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10278 postinstall_cmds='base_file=`basename \${file}`~
10279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10280 dldir=$destdir/`dirname \$dlpath`~
10281 test -d \$dldir || mkdir -p \$dldir~
10282 $install_prog $dir/$dlname \$dldir/$dlname~
10283 chmod a+x \$dldir/$dlname~
10284 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10285 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10286 fi'
10287 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10288 dlpath=$dir/\$dldll~
10289 $RM \$dlpath'
10290 shlibpath_overrides_runpath=yes
10291
10292 case $host_os in
10293 cygwin*)
10294 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10295 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10296 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10297 ;;
10298 mingw* | cegcc*)
10299 # MinGW DLLs use traditional 'lib' prefix
10300 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10301 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10302 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10303 # It is most probably a Windows format PATH printed by
10304 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10305 # path with ; separators, and with drive letters. We can handle the
10306 # drive letters (cygwin fileutils understands them), so leave them,
10307 # especially as we might pass files found there to a mingw objdump,
10308 # which wouldn't understand a cygwinified path. Ahh.
10309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10310 else
10311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10312 fi
10313 ;;
10314 pw32*)
10315 # pw32 DLLs use 'pw' prefix rather than 'lib'
10316 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10317 ;;
10318 esac
10319 ;;
10320
10321 *)
10322 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10323 ;;
10324 esac
10325 dynamic_linker='Win32 ld.exe'
10326 # FIXME: first we should search . and the directory the executable is in
10327 shlibpath_var=PATH
10328 ;;
10329
10330darwin* | rhapsody*)
10331 dynamic_linker="$host_os dyld"
10332 version_type=darwin
10333 need_lib_prefix=no
10334 need_version=no
10335 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10336 soname_spec='${libname}${release}${major}$shared_ext'
10337 shlibpath_overrides_runpath=yes
10338 shlibpath_var=DYLD_LIBRARY_PATH
10339 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10340
10341 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10342 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10343 ;;
10344
10345dgux*)
10346 version_type=linux
10347 need_lib_prefix=no
10348 need_version=no
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 ;;
10353
10354freebsd1*)
10355 dynamic_linker=no
10356 ;;
10357
10358freebsd* | dragonfly*)
10359 # DragonFly does not have aout. When/if they implement a new
10360 # versioning mechanism, adjust this.
10361 if test -x /usr/bin/objformat; then
10362 objformat=`/usr/bin/objformat`
10363 else
10364 case $host_os in
10365 freebsd[123]*) objformat=aout ;;
10366 *) objformat=elf ;;
10367 esac
b57f37fb 10368 fi
042acc47
WP
10369 version_type=freebsd-$objformat
10370 case $version_type in
10371 freebsd-elf*)
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10373 need_version=no
10374 need_lib_prefix=no
10375 ;;
10376 freebsd-*)
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10378 need_version=yes
10379 ;;
10380 esac
10381 shlibpath_var=LD_LIBRARY_PATH
10382 case $host_os in
10383 freebsd2*)
10384 shlibpath_overrides_runpath=yes
10385 ;;
10386 freebsd3.[01]* | freebsdelf3.[01]*)
10387 shlibpath_overrides_runpath=yes
10388 hardcode_into_libs=yes
10389 ;;
10390 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10391 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10392 shlibpath_overrides_runpath=no
10393 hardcode_into_libs=yes
10394 ;;
10395 *) # from 4.6 on, and DragonFly
10396 shlibpath_overrides_runpath=yes
10397 hardcode_into_libs=yes
10398 ;;
10399 esac
10400 ;;
b57f37fb 10401
042acc47
WP
10402gnu*)
10403 version_type=linux
10404 need_lib_prefix=no
10405 need_version=no
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 hardcode_into_libs=yes
10410 ;;
b57f37fb 10411
042acc47
WP
10412hpux9* | hpux10* | hpux11*)
10413 # Give a soname corresponding to the major version so that dld.sl refuses to
10414 # link against other versions.
10415 version_type=sunos
10416 need_lib_prefix=no
10417 need_version=no
10418 case $host_cpu in
10419 ia64*)
10420 shrext_cmds='.so'
10421 hardcode_into_libs=yes
10422 dynamic_linker="$host_os dld.so"
10423 shlibpath_var=LD_LIBRARY_PATH
10424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 if test "X$HPUX_IA64_MODE" = X32; then
10428 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10429 else
10430 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10431 fi
10432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10433 ;;
10434 hppa*64*)
10435 shrext_cmds='.sl'
10436 hardcode_into_libs=yes
10437 dynamic_linker="$host_os dld.sl"
10438 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10444 ;;
10445 *)
10446 shrext_cmds='.sl'
10447 dynamic_linker="$host_os dld.sl"
10448 shlibpath_var=SHLIB_PATH
10449 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 ;;
10453 esac
10454 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10455 postinstall_cmds='chmod 555 $lib'
10456 ;;
b57f37fb 10457
042acc47
WP
10458interix[3-9]*)
10459 version_type=linux
10460 need_lib_prefix=no
10461 need_version=no
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 shlibpath_overrides_runpath=no
10467 hardcode_into_libs=yes
10468 ;;
b57f37fb 10469
042acc47
WP
10470irix5* | irix6* | nonstopux*)
10471 case $host_os in
10472 nonstopux*) version_type=nonstopux ;;
10473 *)
10474 if test "$lt_cv_prog_gnu_ld" = yes; then
10475 version_type=linux
b57f37fb 10476 else
042acc47
WP
10477 version_type=irix
10478 fi ;;
10479 esac
10480 need_lib_prefix=no
10481 need_version=no
10482 soname_spec='${libname}${release}${shared_ext}$major'
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10484 case $host_os in
10485 irix5* | nonstopux*)
10486 libsuff= shlibsuff=
10487 ;;
10488 *)
10489 case $LD in # libtool.m4 will add one of these switches to LD
10490 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10491 libsuff= shlibsuff= libmagic=32-bit;;
10492 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10493 libsuff=32 shlibsuff=N32 libmagic=N32;;
10494 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10495 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10496 *) libsuff= shlibsuff= libmagic=never-match;;
10497 esac
10498 ;;
10499 esac
10500 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10501 shlibpath_overrides_runpath=no
10502 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10503 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10504 hardcode_into_libs=yes
10505 ;;
b57f37fb 10506
042acc47
WP
10507# No shared lib support for Linux oldld, aout, or coff.
10508linux*oldld* | linux*aout* | linux*coff*)
10509 dynamic_linker=no
10510 ;;
b57f37fb 10511
042acc47
WP
10512# This must be Linux ELF.
10513linux* | k*bsd*-gnu)
10514 version_type=linux
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=no
10522 # Some binutils ld are patched to set DT_RUNPATH
10523 save_LDFLAGS=$LDFLAGS
10524 save_libdir=$libdir
10525 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10526 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528/* end confdefs.h. */
b57f37fb 10529
042acc47
WP
10530int
10531main ()
10532{
b57f37fb 10533
042acc47
WP
10534 ;
10535 return 0;
10536}
10537_ACEOF
10538if ac_fn_c_try_link "$LINENO"; then :
10539 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10540 shlibpath_overrides_runpath=yes
10541fi
10542fi
10543rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10545 LDFLAGS=$save_LDFLAGS
10546 libdir=$save_libdir
b57f37fb 10547
042acc47
WP
10548 # This implies no fast_install, which is unacceptable.
10549 # Some rework will be needed to allow for fast_install
10550 # before this can be enabled.
10551 hardcode_into_libs=yes
b57f37fb 10552
042acc47
WP
10553 # Append ld.so.conf contents to the search path
10554 if test -f /etc/ld.so.conf; then
10555 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' ' '`
10556 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
b57f37fb 10557 fi
b57f37fb 10558
042acc47
WP
10559 # We used to test for /lib/ld.so.1 and disable shared libraries on
10560 # powerpc, because MkLinux only supported shared libraries with the
10561 # GNU dynamic linker. Since this was broken with cross compilers,
10562 # most powerpc-linux boxes support dynamic linking these days and
10563 # people can always --disable-shared, the test was removed, and we
10564 # assume the GNU/Linux dynamic linker is in use.
10565 dynamic_linker='GNU/Linux ld.so'
10566 ;;
10567
10568netbsdelf*-gnu)
10569 version_type=linux
10570 need_lib_prefix=no
10571 need_version=no
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 shlibpath_overrides_runpath=no
10576 hardcode_into_libs=yes
10577 dynamic_linker='NetBSD ld.elf_so'
10578 ;;
b57f37fb 10579
042acc47
WP
10580netbsd*)
10581 version_type=sunos
10582 need_lib_prefix=no
10583 need_version=no
10584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10587 dynamic_linker='NetBSD (a.out) ld.so'
10588 else
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 dynamic_linker='NetBSD ld.elf_so'
10592 fi
10593 shlibpath_var=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath=yes
10595 hardcode_into_libs=yes
10596 ;;
b57f37fb 10597
042acc47
WP
10598newsos6)
10599 version_type=linux
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 shlibpath_overrides_runpath=yes
10603 ;;
b57f37fb 10604
042acc47
WP
10605*nto* | *qnx*)
10606 version_type=qnx
10607 need_lib_prefix=no
10608 need_version=no
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 shlibpath_var=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath=no
10613 hardcode_into_libs=yes
10614 dynamic_linker='ldqnx.so'
10615 ;;
b57f37fb 10616
042acc47
WP
10617openbsd*)
10618 version_type=sunos
10619 sys_lib_dlsearch_path_spec="/usr/lib"
10620 need_lib_prefix=no
10621 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10622 case $host_os in
10623 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10624 *) need_version=no ;;
10625 esac
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10630 case $host_os in
10631 openbsd2.[89] | openbsd2.[89].*)
10632 shlibpath_overrides_runpath=no
10633 ;;
10634 *)
10635 shlibpath_overrides_runpath=yes
10636 ;;
10637 esac
10638 else
10639 shlibpath_overrides_runpath=yes
10640 fi
10641 ;;
b57f37fb 10642
042acc47
WP
10643os2*)
10644 libname_spec='$name'
10645 shrext_cmds=".dll"
10646 need_lib_prefix=no
10647 library_names_spec='$libname${shared_ext} $libname.a'
10648 dynamic_linker='OS/2 ld.exe'
10649 shlibpath_var=LIBPATH
10650 ;;
b57f37fb 10651
042acc47
WP
10652osf3* | osf4* | osf5*)
10653 version_type=osf
10654 need_lib_prefix=no
10655 need_version=no
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10660 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10661 ;;
b57f37fb 10662
042acc47
WP
10663rdos*)
10664 dynamic_linker=no
10665 ;;
b57f37fb 10666
042acc47
WP
10667solaris*)
10668 version_type=linux
10669 need_lib_prefix=no
10670 need_version=no
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10676 # ldd complains unless libraries are executable
10677 postinstall_cmds='chmod +x $lib'
10678 ;;
b57f37fb 10679
042acc47
WP
10680sunos4*)
10681 version_type=sunos
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 shlibpath_overrides_runpath=yes
10686 if test "$with_gnu_ld" = yes; then
10687 need_lib_prefix=no
10688 fi
10689 need_version=yes
10690 ;;
b57f37fb 10691
042acc47
WP
10692sysv4 | sysv4.3*)
10693 version_type=linux
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 case $host_vendor in
10698 sni)
10699 shlibpath_overrides_runpath=no
10700 need_lib_prefix=no
10701 runpath_var=LD_RUN_PATH
10702 ;;
10703 siemens)
10704 need_lib_prefix=no
10705 ;;
10706 motorola)
10707 need_lib_prefix=no
10708 need_version=no
10709 shlibpath_overrides_runpath=no
10710 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10711 ;;
10712 esac
10713 ;;
b57f37fb 10714
042acc47
WP
10715sysv4*MP*)
10716 if test -d /usr/nec ;then
10717 version_type=linux
10718 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10719 soname_spec='$libname${shared_ext}.$major'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 fi
10722 ;;
b57f37fb 10723
042acc47
WP
10724sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10725 version_type=freebsd-elf
10726 need_lib_prefix=no
10727 need_version=no
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 shlibpath_overrides_runpath=yes
10732 hardcode_into_libs=yes
10733 if test "$with_gnu_ld" = yes; then
10734 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10735 else
10736 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10737 case $host_os in
10738 sco3.2v5*)
10739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10740 ;;
10741 esac
10742 fi
10743 sys_lib_dlsearch_path_spec='/usr/lib'
10744 ;;
b57f37fb 10745
042acc47
WP
10746tpf*)
10747 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10748 version_type=linux
10749 need_lib_prefix=no
10750 need_version=no
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath=no
10754 hardcode_into_libs=yes
10755 ;;
b57f37fb 10756
042acc47
WP
10757uts4*)
10758 version_type=linux
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 ;;
b57f37fb 10763
042acc47
WP
10764*)
10765 dynamic_linker=no
10766 ;;
10767esac
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10769$as_echo "$dynamic_linker" >&6; }
10770test "$dynamic_linker" = no && can_build_shared=no
b57f37fb 10771
042acc47
WP
10772variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10773if test "$GCC" = yes; then
10774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10775fi
b57f37fb 10776
042acc47
WP
10777if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10778 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10779fi
10780if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10781 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10782fi
b57f37fb 10783
b57f37fb 10784
b57f37fb 10785
b57f37fb 10786
b57f37fb 10787
b57f37fb 10788
b57f37fb 10789
b57f37fb 10790
b57f37fb 10791
b57f37fb 10792
b57f37fb 10793
b57f37fb 10794
b57f37fb 10795
b57f37fb 10796
b57f37fb 10797
b57f37fb 10798
b57f37fb 10799
b57f37fb 10800
b57f37fb 10801
b57f37fb 10802
b57f37fb 10803
b57f37fb 10804
b57f37fb 10805
b57f37fb 10806
b57f37fb 10807
b57f37fb 10808
b57f37fb 10809
b57f37fb 10810
b57f37fb 10811
b57f37fb 10812
b57f37fb 10813
b57f37fb 10814
b57f37fb 10815
b57f37fb 10816
b57f37fb 10817
b57f37fb 10818
b57f37fb 10819
b57f37fb 10820
b57f37fb 10821
b57f37fb 10822
b57f37fb 10823
b57f37fb 10824
b57f37fb 10825
b57f37fb 10826
b57f37fb 10827
56efe974 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
WP
10862
10863
b57f37fb
WP
10864
10865
b57f37fb 10866
b57f37fb 10867
b57f37fb 10868
b57f37fb 10869
042acc47
WP
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10871$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10872hardcode_action=
10873if test -n "$hardcode_libdir_flag_spec" ||
10874 test -n "$runpath_var" ||
10875 test "X$hardcode_automatic" = "Xyes" ; then
b57f37fb 10876
042acc47
WP
10877 # We can hardcode non-existent directories.
10878 if test "$hardcode_direct" != no &&
10879 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10880 # have to relink, otherwise we might link with an installed library
10881 # when we should be linking with a yet-to-be-installed one
10882 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10883 test "$hardcode_minus_L" != no; then
10884 # Linking always hardcodes the temporary library directory.
10885 hardcode_action=relink
b57f37fb 10886 else
042acc47
WP
10887 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10888 hardcode_action=immediate
b57f37fb 10889 fi
042acc47
WP
10890else
10891 # We cannot hardcode anything, or else we can only hardcode existing
10892 # directories.
10893 hardcode_action=unsupported
10894fi
10895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10896$as_echo "$hardcode_action" >&6; }
10897
10898if test "$hardcode_action" = relink ||
10899 test "$inherit_rpath" = yes; then
10900 # Fast installation is not supported
10901 enable_fast_install=no
10902elif test "$shlibpath_overrides_runpath" = yes ||
10903 test "$enable_shared" = no; then
10904 # Fast installation is not necessary
10905 enable_fast_install=needless
b57f37fb
WP
10906fi
10907
10908
10909
b57f37fb 10910
b57f37fb 10911
b57f37fb 10912
042acc47
WP
10913 if test "x$enable_dlopen" != xyes; then
10914 enable_dlopen=unknown
10915 enable_dlopen_self=unknown
10916 enable_dlopen_self_static=unknown
10917else
10918 lt_cv_dlopen=no
10919 lt_cv_dlopen_libs=
b57f37fb 10920
042acc47
WP
10921 case $host_os in
10922 beos*)
10923 lt_cv_dlopen="load_add_on"
10924 lt_cv_dlopen_libs=
10925 lt_cv_dlopen_self=yes
10926 ;;
b57f37fb 10927
042acc47
WP
10928 mingw* | pw32* | cegcc*)
10929 lt_cv_dlopen="LoadLibrary"
10930 lt_cv_dlopen_libs=
10931 ;;
b57f37fb 10932
042acc47
WP
10933 cygwin*)
10934 lt_cv_dlopen="dlopen"
10935 lt_cv_dlopen_libs=
10936 ;;
b57f37fb 10937
042acc47
WP
10938 darwin*)
10939 # if libdl is installed we need to link against it
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10941$as_echo_n "checking for dlopen in -ldl... " >&6; }
10942if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10944else
10945 ac_check_lib_save_LIBS=$LIBS
10946LIBS="-ldl $LIBS"
10947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948/* end confdefs.h. */
b57f37fb 10949
042acc47
WP
10950/* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10953#ifdef __cplusplus
10954extern "C"
10955#endif
10956char dlopen ();
10957int
10958main ()
10959{
10960return dlopen ();
10961 ;
10962 return 0;
10963}
10964_ACEOF
10965if ac_fn_c_try_link "$LINENO"; then :
10966 ac_cv_lib_dl_dlopen=yes
10967else
10968 ac_cv_lib_dl_dlopen=no
10969fi
10970rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10972LIBS=$ac_check_lib_save_LIBS
10973fi
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10975$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10976if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10978else
b57f37fb 10979
042acc47
WP
10980 lt_cv_dlopen="dyld"
10981 lt_cv_dlopen_libs=
10982 lt_cv_dlopen_self=yes
b57f37fb 10983
042acc47 10984fi
b57f37fb 10985
042acc47 10986 ;;
b57f37fb 10987
042acc47
WP
10988 *)
10989 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10990if test "x$ac_cv_func_shl_load" = x""yes; then :
10991 lt_cv_dlopen="shl_load"
10992else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10994$as_echo_n "checking for shl_load in -ldld... " >&6; }
10995if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10996 $as_echo_n "(cached) " >&6
10997else
10998 ac_check_lib_save_LIBS=$LIBS
10999LIBS="-ldld $LIBS"
11000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001/* end confdefs.h. */
b57f37fb 11002
042acc47
WP
11003/* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006#ifdef __cplusplus
11007extern "C"
11008#endif
11009char shl_load ();
11010int
11011main ()
11012{
11013return shl_load ();
11014 ;
11015 return 0;
11016}
11017_ACEOF
11018if ac_fn_c_try_link "$LINENO"; then :
11019 ac_cv_lib_dld_shl_load=yes
11020else
11021 ac_cv_lib_dld_shl_load=no
11022fi
11023rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025LIBS=$ac_check_lib_save_LIBS
11026fi
11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11028$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11029if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11030 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11031else
11032 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11033if test "x$ac_cv_func_dlopen" = x""yes; then :
11034 lt_cv_dlopen="dlopen"
11035else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11037$as_echo_n "checking for dlopen in -ldl... " >&6; }
11038if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11039 $as_echo_n "(cached) " >&6
11040else
11041 ac_check_lib_save_LIBS=$LIBS
11042LIBS="-ldl $LIBS"
11043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044/* end confdefs.h. */
b57f37fb 11045
042acc47
WP
11046/* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11049#ifdef __cplusplus
11050extern "C"
11051#endif
11052char dlopen ();
11053int
11054main ()
11055{
11056return dlopen ();
11057 ;
11058 return 0;
11059}
11060_ACEOF
11061if ac_fn_c_try_link "$LINENO"; then :
11062 ac_cv_lib_dl_dlopen=yes
11063else
11064 ac_cv_lib_dl_dlopen=no
11065fi
11066rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068LIBS=$ac_check_lib_save_LIBS
11069fi
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11071$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11072if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11074else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11076$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11077if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
11079else
11080 ac_check_lib_save_LIBS=$LIBS
11081LIBS="-lsvld $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_svld_dlopen=yes
11102else
11103 ac_cv_lib_svld_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_svld_dlopen" >&5
11110$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11111if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11113else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11115$as_echo_n "checking for dld_link in -ldld... " >&6; }
11116if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11118else
11119 ac_check_lib_save_LIBS=$LIBS
11120LIBS="-ldld $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 dld_link ();
11131int
11132main ()
11133{
11134return dld_link ();
11135 ;
11136 return 0;
11137}
11138_ACEOF
11139if ac_fn_c_try_link "$LINENO"; then :
11140 ac_cv_lib_dld_dld_link=yes
11141else
11142 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
11149$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11150if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11151 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11152fi
b57f37fb
WP
11153
11154
042acc47 11155fi
b57f37fb
WP
11156
11157
042acc47 11158fi
b57f37fb
WP
11159
11160
042acc47 11161fi
b57f37fb 11162
b57f37fb 11163
042acc47 11164fi
b57f37fb 11165
b57f37fb 11166
042acc47 11167fi
b57f37fb 11168
042acc47
WP
11169 ;;
11170 esac
b57f37fb 11171
042acc47
WP
11172 if test "x$lt_cv_dlopen" != xno; then
11173 enable_dlopen=yes
11174 else
11175 enable_dlopen=no
11176 fi
b57f37fb 11177
042acc47
WP
11178 case $lt_cv_dlopen in
11179 dlopen)
11180 save_CPPFLAGS="$CPPFLAGS"
11181 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
b57f37fb 11182
042acc47
WP
11183 save_LDFLAGS="$LDFLAGS"
11184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b57f37fb 11185
042acc47
WP
11186 save_LIBS="$LIBS"
11187 LIBS="$lt_cv_dlopen_libs $LIBS"
b57f37fb 11188
042acc47
WP
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11190$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11191if test "${lt_cv_dlopen_self+set}" = set; then :
f030cae8 11192 $as_echo_n "(cached) " >&6
b57f37fb 11193else
042acc47
WP
11194 if test "$cross_compiling" = yes; then :
11195 lt_cv_dlopen_self=cross
b57f37fb 11196else
042acc47
WP
11197 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11198 lt_status=$lt_dlunknown
11199 cat > conftest.$ac_ext <<_LT_EOF
11200#line 11200 "configure"
11201#include "confdefs.h"
b57f37fb 11202
042acc47
WP
11203#if HAVE_DLFCN_H
11204#include <dlfcn.h>
11205#endif
b57f37fb 11206
042acc47 11207#include <stdio.h>
b57f37fb 11208
042acc47
WP
11209#ifdef RTLD_GLOBAL
11210# define LT_DLGLOBAL RTLD_GLOBAL
11211#else
11212# ifdef DL_GLOBAL
11213# define LT_DLGLOBAL DL_GLOBAL
11214# else
11215# define LT_DLGLOBAL 0
11216# endif
11217#endif
b57f37fb 11218
042acc47
WP
11219/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11220 find out it does not work in some platform. */
11221#ifndef LT_DLLAZY_OR_NOW
11222# ifdef RTLD_LAZY
11223# define LT_DLLAZY_OR_NOW RTLD_LAZY
11224# else
11225# ifdef DL_LAZY
11226# define LT_DLLAZY_OR_NOW DL_LAZY
11227# else
11228# ifdef RTLD_NOW
11229# define LT_DLLAZY_OR_NOW RTLD_NOW
11230# else
11231# ifdef DL_NOW
11232# define LT_DLLAZY_OR_NOW DL_NOW
11233# else
11234# define LT_DLLAZY_OR_NOW 0
11235# endif
11236# endif
11237# endif
11238# endif
11239#endif
b57f37fb 11240
042acc47
WP
11241void fnord() { int i=42;}
11242int main ()
11243{
11244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11245 int status = $lt_dlunknown;
b57f37fb 11246
042acc47
WP
11247 if (self)
11248 {
11249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11251 /* dlclose (self); */
11252 }
11253 else
11254 puts (dlerror ());
b57f37fb 11255
042acc47
WP
11256 return status;
11257}
11258_LT_EOF
11259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11260 (eval $ac_link) 2>&5
11261 ac_status=$?
11262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11263 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11264 (./conftest; exit; ) >&5 2>/dev/null
11265 lt_status=$?
11266 case x$lt_status in
11267 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11268 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11269 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11270 esac
11271 else :
11272 # compilation failed
11273 lt_cv_dlopen_self=no
11274 fi
b57f37fb 11275fi
042acc47 11276rm -fr conftest*
b57f37fb 11277
b57f37fb 11278
042acc47
WP
11279fi
11280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11281$as_echo "$lt_cv_dlopen_self" >&6; }
b57f37fb 11282
042acc47
WP
11283 if test "x$lt_cv_dlopen_self" = xyes; then
11284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11286$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11287if test "${lt_cv_dlopen_self_static+set}" = set; then :
f030cae8 11288 $as_echo_n "(cached) " >&6
b57f37fb 11289else
042acc47
WP
11290 if test "$cross_compiling" = yes; then :
11291 lt_cv_dlopen_self_static=cross
b57f37fb 11292else
042acc47
WP
11293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11294 lt_status=$lt_dlunknown
11295 cat > conftest.$ac_ext <<_LT_EOF
11296#line 11296 "configure"
11297#include "confdefs.h"
b57f37fb 11298
042acc47
WP
11299#if HAVE_DLFCN_H
11300#include <dlfcn.h>
11301#endif
b57f37fb 11302
042acc47 11303#include <stdio.h>
b57f37fb 11304
042acc47
WP
11305#ifdef RTLD_GLOBAL
11306# define LT_DLGLOBAL RTLD_GLOBAL
11307#else
11308# ifdef DL_GLOBAL
11309# define LT_DLGLOBAL DL_GLOBAL
11310# else
11311# define LT_DLGLOBAL 0
11312# endif
11313#endif
b57f37fb 11314
042acc47
WP
11315/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11316 find out it does not work in some platform. */
11317#ifndef LT_DLLAZY_OR_NOW
11318# ifdef RTLD_LAZY
11319# define LT_DLLAZY_OR_NOW RTLD_LAZY
11320# else
11321# ifdef DL_LAZY
11322# define LT_DLLAZY_OR_NOW DL_LAZY
11323# else
11324# ifdef RTLD_NOW
11325# define LT_DLLAZY_OR_NOW RTLD_NOW
11326# else
11327# ifdef DL_NOW
11328# define LT_DLLAZY_OR_NOW DL_NOW
11329# else
11330# define LT_DLLAZY_OR_NOW 0
11331# endif
11332# endif
11333# endif
11334# endif
11335#endif
b57f37fb 11336
042acc47
WP
11337void fnord() { int i=42;}
11338int main ()
11339{
11340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11341 int status = $lt_dlunknown;
b57f37fb 11342
042acc47
WP
11343 if (self)
11344 {
11345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11347 /* dlclose (self); */
11348 }
11349 else
11350 puts (dlerror ());
b57f37fb 11351
042acc47
WP
11352 return status;
11353}
11354_LT_EOF
11355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11356 (eval $ac_link) 2>&5
11357 ac_status=$?
11358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11359 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11360 (./conftest; exit; ) >&5 2>/dev/null
11361 lt_status=$?
11362 case x$lt_status in
11363 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11364 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11365 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11366 esac
11367 else :
11368 # compilation failed
11369 lt_cv_dlopen_self_static=no
11370 fi
b57f37fb 11371fi
042acc47 11372rm -fr conftest*
94b4fbf9 11373
b57f37fb 11374
b57f37fb 11375fi
042acc47
WP
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11377$as_echo "$lt_cv_dlopen_self_static" >&6; }
11378 fi
b57f37fb 11379
042acc47
WP
11380 CPPFLAGS="$save_CPPFLAGS"
11381 LDFLAGS="$save_LDFLAGS"
11382 LIBS="$save_LIBS"
11383 ;;
11384 esac
b57f37fb 11385
042acc47
WP
11386 case $lt_cv_dlopen_self in
11387 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11388 *) enable_dlopen_self=unknown ;;
11389 esac
b57f37fb 11390
042acc47
WP
11391 case $lt_cv_dlopen_self_static in
11392 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11393 *) enable_dlopen_self_static=unknown ;;
11394 esac
b57f37fb
WP
11395fi
11396
b57f37fb 11397
b57f37fb 11398
f030cae8
VY
11399
11400
f030cae8 11401
b57f37fb 11402
b57f37fb 11403
b57f37fb 11404
f030cae8 11405
f030cae8 11406
b57f37fb 11407
f030cae8 11408
b57f37fb 11409
b57f37fb 11410
b57f37fb 11411
b57f37fb 11412
042acc47
WP
11413striplib=
11414old_striplib=
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11416$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11417if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11418 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11419 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11421$as_echo "yes" >&6; }
f030cae8 11422else
042acc47
WP
11423# FIXME - insert some real tests, host_os isn't really good enough
11424 case $host_os in
11425 darwin*)
11426 if test -n "$STRIP" ; then
11427 striplib="$STRIP -x"
11428 old_striplib="$STRIP -S"
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11430$as_echo "yes" >&6; }
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433$as_echo "no" >&6; }
11434 fi
11435 ;;
11436 *)
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438$as_echo "no" >&6; }
11439 ;;
11440 esac
f030cae8
VY
11441fi
11442
b57f37fb 11443
f030cae8 11444
b57f37fb 11445
b57f37fb 11446
b57f37fb 11447
b57f37fb 11448
b57f37fb 11449
b57f37fb 11450
b57f37fb 11451
b57f37fb
WP
11452
11453
042acc47
WP
11454 # Report which library types will actually be built
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11456$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11458$as_echo "$can_build_shared" >&6; }
b57f37fb 11459
042acc47
WP
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11461$as_echo_n "checking whether to build shared libraries... " >&6; }
11462 test "$can_build_shared" = "no" && enable_shared=no
b57f37fb 11463
042acc47
WP
11464 # On AIX, shared libraries and static libraries use the same namespace, and
11465 # are all built from PIC.
11466 case $host_os in
11467 aix3*)
11468 test "$enable_shared" = yes && enable_static=no
11469 if test -n "$RANLIB"; then
11470 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11471 postinstall_cmds='$RANLIB $lib'
11472 fi
11473 ;;
b57f37fb 11474
042acc47
WP
11475 aix[4-9]*)
11476 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11477 test "$enable_shared" = yes && enable_static=no
11478 fi
11479 ;;
11480 esac
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11482$as_echo "$enable_shared" >&6; }
11483
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11485$as_echo_n "checking whether to build static libraries... " >&6; }
11486 # Make sure either enable_shared or enable_static is yes.
11487 test "$enable_shared" = yes || enable_static=yes
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11489$as_echo "$enable_static" >&6; }
b57f37fb 11490
b57f37fb 11491
b57f37fb 11492
b57f37fb 11493
b57f37fb 11494fi
042acc47
WP
11495ac_ext=c
11496ac_cpp='$CPP $CPPFLAGS'
11497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11499ac_compiler_gnu=$ac_cv_c_compiler_gnu
b57f37fb 11500
042acc47 11501CC="$lt_save_CC"
b57f37fb 11502
b57f37fb 11503
b57f37fb 11504
b57f37fb 11505
b57f37fb 11506
b57f37fb 11507
b57f37fb 11508
b57f37fb 11509
b57f37fb 11510
b57f37fb
WP
11511
11512
b57f37fb 11513
b57f37fb 11514
042acc47 11515 ac_config_commands="$ac_config_commands libtool"
b57f37fb
WP
11516
11517
11518
11519
042acc47 11520# Only expand once:
b57f37fb
WP
11521
11522
11523
042acc47 11524LIBTOOL="$LIBTOOL --silent"
b57f37fb 11525
042acc47
WP
11526case "$host_os" in
11527*cygwin*)
b57f37fb 11528
042acc47
WP
11529cat >>confdefs.h <<_ACEOF
11530#define CYGWIN 1
11531_ACEOF
b57f37fb
WP
11532
11533
042acc47
WP
11534cat >>confdefs.h <<_ACEOF
11535#define WINDOWS 1
11536_ACEOF
b57f37fb 11537
042acc47
WP
11538 ;;
11539*mingw*)
b57f37fb 11540
042acc47
WP
11541cat >>confdefs.h <<_ACEOF
11542#define MINGW 1
11543_ACEOF
b57f37fb
WP
11544
11545
042acc47
WP
11546cat >>confdefs.h <<_ACEOF
11547#define WINDOWS 1
11548_ACEOF
b57f37fb 11549
042acc47
WP
11550 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
11551if test "x$ac_cv_header_windows_h" = x""yes; then :
b57f37fb 11552
042acc47
WP
11553else
11554 as_fn_error "** MinGW and no windows.h. I give up." "$LINENO" 5
11555fi
b57f37fb
WP
11556
11557
042acc47
WP
11558 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11559if test "x$ac_cv_header_winsock2_h" = x""yes; then :
b57f37fb 11560
042acc47
WP
11561else
11562 as_fn_error "** MinGW and no winsock2.h. I give up." "$LINENO" 5
11563fi
b57f37fb 11564
94b4fbf9 11565
042acc47
WP
11566
11567cat >>confdefs.h <<_ACEOF
11568#define HAVE_WINSOCK2_H 1
b57f37fb 11569_ACEOF
042acc47
WP
11570
11571
11572cat >>confdefs.h <<_ACEOF
11573#define HAVE_WINSOCK_H 1
b57f37fb 11574_ACEOF
042acc47
WP
11575
11576 LIBS="$LIBS -lws2_32 -liphlpapi"
11577 is_mingw="yes"
11578 ;;
11579*interix*)
11580 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
11581 ;;
11582*solaris*)
11583 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
11584 ;;
11585*)
11586 ;;
b57f37fb 11587esac
b57f37fb 11588
042acc47
WP
11589 if test "$is_mingw" = "yes"; then
11590 MINGW_TRUE=
11591 MINGW_FALSE='#'
11592else
11593 MINGW_TRUE='#'
11594 MINGW_FALSE=
b57f37fb
WP
11595fi
11596
b57f37fb 11597
b57f37fb 11598
042acc47
WP
11599# backwards support for IRC_CFLAGS
11600CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
11601
11602if test "$libexecdir" = '${exec_prefix}/libexec' &&
11603 test "$localstatedir" = '${prefix}/var'; then
11604 libexecdir='${bindir}'
11605 localstatedir='${prefix}'
b57f37fb
WP
11606fi
11607
042acc47
WP
11608ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11609if test "x$ac_cv_type_pid_t" = x""yes; then :
b57f37fb 11610
b57f37fb 11611else
042acc47
WP
11612
11613cat >>confdefs.h <<_ACEOF
11614#define pid_t int
11615_ACEOF
b57f37fb
WP
11616
11617fi
042acc47
WP
11618
11619ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11620if test "x$ac_cv_type_size_t" = x""yes; then :
11621
11622else
11623
11624cat >>confdefs.h <<_ACEOF
11625#define size_t unsigned int
b57f37fb
WP
11626_ACEOF
11627
11628fi
11629
042acc47
WP
11630ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11631if test "x$ac_cv_type_ssize_t" = x""yes; then :
b57f37fb 11632
b57f37fb 11633else
042acc47
WP
11634
11635cat >>confdefs.h <<_ACEOF
11636#define ssize_t int
b57f37fb 11637_ACEOF
042acc47
WP
11638
11639fi
11640
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11642$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11643if test "${ac_cv_type_uid_t+set}" = set; then :
11644 $as_echo_n "(cached) " >&6
11645else
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
11647/* end confdefs.h. */
11648#include <sys/types.h>
b57f37fb 11649
b57f37fb 11650_ACEOF
042acc47
WP
11651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11652 $EGREP "uid_t" >/dev/null 2>&1; then :
11653 ac_cv_type_uid_t=yes
b57f37fb 11654else
042acc47 11655 ac_cv_type_uid_t=no
b57f37fb 11656fi
042acc47 11657rm -f conftest*
b57f37fb 11658
b57f37fb 11659fi
042acc47
WP
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11661$as_echo "$ac_cv_type_uid_t" >&6; }
11662if test $ac_cv_type_uid_t = no; then
b57f37fb 11663
042acc47
WP
11664$as_echo "#define uid_t int" >>confdefs.h
11665
11666
11667$as_echo "#define gid_t int" >>confdefs.h
b57f37fb
WP
11668
11669fi
11670
11671
11672
042acc47
WP
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11674$as_echo_n "checking for ANSI C header files... " >&6; }
11675if test "${ac_cv_header_stdc+set}" = set; then :
f030cae8 11676 $as_echo_n "(cached) " >&6
b57f37fb 11677else
042acc47 11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 11679/* end confdefs.h. */
042acc47
WP
11680#include <stdlib.h>
11681#include <stdarg.h>
11682#include <string.h>
11683#include <float.h>
b57f37fb 11684
b57f37fb
WP
11685int
11686main ()
11687{
042acc47 11688
b57f37fb
WP
11689 ;
11690 return 0;
11691}
11692_ACEOF
042acc47
WP
11693if ac_fn_c_try_compile "$LINENO"; then :
11694 ac_cv_header_stdc=yes
b57f37fb 11695else
042acc47
WP
11696 ac_cv_header_stdc=no
11697fi
11698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b57f37fb 11699
042acc47
WP
11700if test $ac_cv_header_stdc = yes; then
11701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703/* end confdefs.h. */
11704#include <string.h>
b57f37fb 11705
042acc47
WP
11706_ACEOF
11707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11708 $EGREP "memchr" >/dev/null 2>&1; then :
b57f37fb 11709
b57f37fb 11710else
042acc47 11711 ac_cv_header_stdc=no
b57f37fb 11712fi
042acc47 11713rm -f conftest*
b57f37fb
WP
11714
11715fi
11716
042acc47
WP
11717if test $ac_cv_header_stdc = yes; then
11718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720/* end confdefs.h. */
11721#include <stdlib.h>
b57f37fb 11722
b57f37fb 11723_ACEOF
042acc47
WP
11724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11725 $EGREP "free" >/dev/null 2>&1; then :
b57f37fb 11726
042acc47
WP
11727else
11728 ac_cv_header_stdc=no
11729fi
11730rm -f conftest*
b57f37fb 11731
042acc47 11732fi
b57f37fb 11733
042acc47
WP
11734if test $ac_cv_header_stdc = yes; then
11735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11736 if test "$cross_compiling" = yes; then :
11737 :
b57f37fb 11738else
042acc47 11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 11740/* end confdefs.h. */
042acc47
WP
11741#include <ctype.h>
11742#include <stdlib.h>
11743#if ((' ' & 0x0FF) == 0x020)
11744# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11745# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11746#else
11747# define ISLOWER(c) \
11748 (('a' <= (c) && (c) <= 'i') \
11749 || ('j' <= (c) && (c) <= 'r') \
11750 || ('s' <= (c) && (c) <= 'z'))
11751# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
b57f37fb
WP
11752#endif
11753
042acc47 11754#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b57f37fb
WP
11755int
11756main ()
11757{
042acc47
WP
11758 int i;
11759 for (i = 0; i < 256; i++)
11760 if (XOR (islower (i), ISLOWER (i))
11761 || toupper (i) != TOUPPER (i))
11762 return 2;
b57f37fb
WP
11763 return 0;
11764}
11765_ACEOF
042acc47 11766if ac_fn_c_try_run "$LINENO"; then :
b57f37fb 11767
042acc47
WP
11768else
11769 ac_cv_header_stdc=no
11770fi
11771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11772 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
11773fi
11774
b57f37fb 11775fi
042acc47
WP
11776fi
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11778$as_echo "$ac_cv_header_stdc" >&6; }
11779if test $ac_cv_header_stdc = yes; then
11780
11781$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b57f37fb 11782
b57f37fb 11783fi
b57f37fb 11784
042acc47
WP
11785
11786for 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
11787do :
11788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11789ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11790eval as_val=\$$as_ac_Header
11791 if test "x$as_val" = x""yes; then :
11792 cat >>confdefs.h <<_ACEOF
11793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b57f37fb
WP
11794_ACEOF
11795
11796fi
11797
042acc47 11798done
b57f37fb 11799
042acc47
WP
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11801$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11802if test "${ac_cv_header_time+set}" = set; then :
f030cae8 11803 $as_echo_n "(cached) " >&6
b57f37fb 11804else
042acc47 11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 11806/* end confdefs.h. */
b57f37fb 11807#include <sys/types.h>
042acc47
WP
11808#include <sys/time.h>
11809#include <time.h>
b57f37fb 11810
b57f37fb
WP
11811int
11812main ()
11813{
042acc47
WP
11814if ((struct tm *) 0)
11815return 0;
f030cae8 11816 ;
b57f37fb 11817 return 0;
042acc47 11818}
f030cae8 11819_ACEOF
042acc47
WP
11820if ac_fn_c_try_compile "$LINENO"; then :
11821 ac_cv_header_time=yes
11822else
11823 ac_cv_header_time=no
11824fi
11825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11826fi
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11828$as_echo "$ac_cv_header_time" >&6; }
11829if test $ac_cv_header_time = yes; then
11830
11831$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11832
11833fi
11834
11835
11836
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11838$as_echo_n "checking for library containing socket... " >&6; }
11839if test "${ac_cv_search_socket+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11841else
11842 ac_func_search_save_LIBS=$LIBS
11843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8 11844/* end confdefs.h. */
f030cae8 11845
042acc47
WP
11846/* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11849#ifdef __cplusplus
11850extern "C"
11851#endif
11852char socket ();
f030cae8
VY
11853int
11854main ()
11855{
042acc47 11856return socket ();
b57f37fb
WP
11857 ;
11858 return 0;
11859}
11860_ACEOF
042acc47
WP
11861for ac_lib in '' socket; do
11862 if test -z "$ac_lib"; then
11863 ac_res="none required"
11864 else
11865 ac_res=-l$ac_lib
11866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11867 fi
11868 if ac_fn_c_try_link "$LINENO"; then :
11869 ac_cv_search_socket=$ac_res
11870fi
11871rm -f core conftest.err conftest.$ac_objext \
11872 conftest$ac_exeext
11873 if test "${ac_cv_search_socket+set}" = set; then :
11874 break
11875fi
11876done
11877if test "${ac_cv_search_socket+set}" = set; then :
11878
b57f37fb 11879else
042acc47
WP
11880 ac_cv_search_socket=no
11881fi
11882rm conftest.$ac_ext
11883LIBS=$ac_func_search_save_LIBS
11884fi
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11886$as_echo "$ac_cv_search_socket" >&6; }
11887ac_res=$ac_cv_search_socket
11888if test "$ac_res" != no; then :
11889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b57f37fb 11890
b57f37fb
WP
11891fi
11892
f030cae8
VY
11893
11894
042acc47
WP
11895ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11896#ifdef HAVE_SYS_TYPES_H
11897#include <sys/types.h>
11898#endif
11899#ifdef HAVE_SYS_SOCKET_H
11900#include <sys/socket.h>
11901#endif
11902#ifdef HAVE_WINSOCK2_H
11903#include <winsock2.h>
11904#endif
11905
11906"
11907if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
11908
11909$as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
f030cae8 11910
f030cae8 11911fi
042acc47
WP
11912
11913
11914ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11915#include <sys/socket.h>
11916"
11917if test "x$ac_cv_type_socklen_t" = x""yes; then :
f030cae8 11918 rb_cv_socklen_t=socklen_t
b57f37fb
WP
11919else
11920
042acc47 11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
f030cae8 11922$as_echo_n "checking for socklen_t equivalent... " >&6; }
042acc47 11923 if test "${rb_cv_socklen_t+set}" = set; then :
f030cae8 11924 $as_echo_n "(cached) " >&6
4414eb3c
VY
11925else
11926
11927 # Systems have either "struct sockaddr *" or
11928 # "void *" as the second argument to getpeername
f030cae8 11929 rb_cv_socklen_t=
4414eb3c
VY
11930 for arg2 in "struct sockaddr" void; do
11931 for t in int size_t unsigned long "unsigned long"; do
042acc47 11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414eb3c
VY
11933/* end confdefs.h. */
11934
94b4fbf9 11935#ifdef HAVE_SYS_TYPES_H
4414eb3c 11936#include <sys/types.h>
94b4fbf9
VY
11937#endif
11938#ifdef HAVE_SYS_SOCKET_H
4414eb3c 11939#include <sys/socket.h>
94b4fbf9
VY
11940#endif
11941#ifdef HAVE_WINSOCK2_H
11942#include <winsock2.h>
11943#endif
4414eb3c
VY
11944int getpeername (int, $arg2 *, $t *);
11945
11946int
11947main ()
11948{
11949
11950$t len;
11951getpeername(0,0,&len);
11952
11953 ;
11954 return 0;
11955}
b57f37fb 11956_ACEOF
042acc47 11957if ac_fn_c_try_compile "$LINENO"; then :
4414eb3c 11958
f030cae8 11959 rb_cv_socklen_t="$t"
4414eb3c
VY
11960 break
11961
4414eb3c 11962fi
4414eb3c
VY
11963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 done
11965 done
11966
f030cae8 11967 if test "x$rb_cv_socklen_t" = x; then
042acc47 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
f030cae8
VY
11969$as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
11970 rb_cv_socklen_t=int
4414eb3c
VY
11971 fi
11972
11973fi
11974
042acc47
WP
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
11976$as_echo "$rb_cv_socklen_t" >&6; }
11977fi
11978
11979
11980rb_socklen_t=$rb_cv_socklen_t
11981
11982
11983
11984
11985
11986# Check whether --enable-ipv6 was given.
11987if test "${enable_ipv6+set}" = set; then :
11988 enableval=$enable_ipv6; ipv6=$enableval
11989else
11990 ipv6=yes
11991fi
11992
11993
11994if test x$ipv6 != xyes; then
11995 have_v6="no"
11996else
11997
11998have_v6=yes
11999
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
12001$as_echo_n "checking for INET6 protocol support... " >&6; }
12002if test "${rb_cv_proto_inet6+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12004else
12005
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007/* end confdefs.h. */
12008
12009#include <sys/types.h>
12010#include <sys/socket.h>
12011
12012#ifndef PF_INET6
12013#error Missing PF_INET6
12014#endif
12015#ifndef AF_INET6
12016#error Mlssing AF_INET6
12017#endif
12018
12019_ACEOF
12020if ac_fn_c_try_cpp "$LINENO"; then :
12021
12022 rb_cv_proto_inet6=yes
12023
12024else
12025
12026 rb_cv_proto_inet6=no
12027
12028fi
12029rm -f conftest.err conftest.$ac_ext
12030
12031fi
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
12033$as_echo "$rb_cv_proto_inet6" >&6; }
12034
12035 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
12036
12037 else :
12038
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
12040$as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
12041 have_v6=no
12042
12043 fi
12044
12045
12046 if test "X$have_v6" = "Xyes"; then
12047
12048 rb_have_sockaddr_in6=
12049 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
12050#include <sys/types.h>
12051#include <sys/socket.h>
12052#include <netinet/in.h>
12053
12054"
12055if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12056
12057cat >>confdefs.h <<_ACEOF
12058#define HAVE_STRUCT_SOCKADDR_IN6 1
12059_ACEOF
12060
12061
12062 rb_have_sockaddr_in6=yes
12063
12064else
12065
12066 rb_have_sockaddr_in6=no
12067
12068fi
12069
12070
12071 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
12072
12073 else :
12074
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
12076$as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
12077 have_v6=no
12078
12079 fi
12080
12081 fi
12082
12083fi
12084
12085ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12086 #include <sys/types.h>
12087 #include <sys/socket.h>
12088
12089"
12090if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12091
12092cat >>confdefs.h <<_ACEOF
12093#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12094_ACEOF
12095
12096
12097 rb_have_sockaddr_storage=yes
12098
12099fi
12100
12101
12102
12103save_LIBS=$LIBS
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12105$as_echo_n "checking for library containing crypt... " >&6; }
12106if test "${ac_cv_search_crypt+set}" = set; then :
12107 $as_echo_n "(cached) " >&6
12108else
12109 ac_func_search_save_LIBS=$LIBS
12110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111/* end confdefs.h. */
12112
12113/* Override any GCC internal prototype to avoid an error.
12114 Use char because int might match the return type of a GCC
12115 builtin and then its argument prototype would still apply. */
12116#ifdef __cplusplus
12117extern "C"
12118#endif
12119char crypt ();
12120int
12121main ()
12122{
12123return crypt ();
12124 ;
12125 return 0;
12126}
12127_ACEOF
12128for ac_lib in '' crypt descrypt; do
12129 if test -z "$ac_lib"; then
12130 ac_res="none required"
12131 else
12132 ac_res=-l$ac_lib
12133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12134 fi
12135 if ac_fn_c_try_link "$LINENO"; then :
12136 ac_cv_search_crypt=$ac_res
12137fi
12138rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext
12140 if test "${ac_cv_search_crypt+set}" = set; then :
12141 break
12142fi
12143done
12144if test "${ac_cv_search_crypt+set}" = set; then :
12145
12146else
12147 ac_cv_search_crypt=no
12148fi
12149rm conftest.$ac_ext
12150LIBS=$ac_func_search_save_LIBS
12151fi
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12153$as_echo "$ac_cv_search_crypt" >&6; }
12154ac_res=$ac_cv_search_crypt
12155if test "$ac_res" != no; then :
12156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12157
b57f37fb
WP
12158fi
12159
042acc47 12160LIBS=$save_LIBS
b57f37fb 12161
042acc47 12162CRYPT_LIB=$ac_cv_search_crypt
4414eb3c 12163
042acc47
WP
12164if test "$CRYPT_LIB" = "none required"; then
12165 unset CRYPT_LIB
12166elif test "$CRYPT_LIB" = no; then
12167 need_crypt=yes;
4414eb3c 12168
042acc47 12169$as_echo "#define NEED_CRYPT 1" >>confdefs.h
4414eb3c 12170
042acc47
WP
12171 unset CRYPT_LIB
12172fi
4414eb3c 12173
042acc47
WP
12174 if test x"$need_crypt" = "xyes"; then
12175 NEED_CRYPT_TRUE=
12176 NEED_CRYPT_FALSE='#'
b57f37fb 12177else
042acc47
WP
12178 NEED_CRYPT_TRUE='#'
12179 NEED_CRYPT_FALSE=
b57f37fb
WP
12180fi
12181
12182
b57f37fb 12183
b57f37fb 12184
b57f37fb 12185
042acc47
WP
12186ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12187if test "x$ac_cv_header_stdarg_h" = x""yes; then :
b57f37fb 12188
042acc47
WP
12189else
12190 as_fn_error "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
12191fi
b57f37fb 12192
b57f37fb 12193
b57f37fb 12194
042acc47
WP
12195ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
12196#include <sys/socket.h>
12197"
12198if test "x$ac_cv_type_sa_family_t" = x""yes; then :
b57f37fb
WP
12199
12200else
b57f37fb 12201
042acc47 12202$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
b57f37fb
WP
12203
12204fi
b57f37fb 12205
b57f37fb 12206
b57f37fb 12207
042acc47
WP
12208for 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
12209do :
12210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12211ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12212eval as_val=\$$as_ac_var
12213 if test "x$as_val" = x""yes; then :
12214 cat >>confdefs.h <<_ACEOF
12215#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12216_ACEOF
b57f37fb 12217
042acc47
WP
12218fi
12219done
b57f37fb 12220
b57f37fb 12221
042acc47
WP
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12223$as_echo_n "checking for library containing nanosleep... " >&6; }
12224if test "${ac_cv_search_nanosleep+set}" = set; then :
f030cae8 12225 $as_echo_n "(cached) " >&6
b57f37fb 12226else
042acc47
WP
12227 ac_func_search_save_LIBS=$LIBS
12228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb
WP
12229/* end confdefs.h. */
12230
042acc47
WP
12231/* Override any GCC internal prototype to avoid an error.
12232 Use char because int might match the return type of a GCC
12233 builtin and then its argument prototype would still apply. */
12234#ifdef __cplusplus
12235extern "C"
12236#endif
12237char nanosleep ();
b57f37fb
WP
12238int
12239main ()
12240{
042acc47 12241return nanosleep ();
f030cae8 12242 ;
b57f37fb 12243 return 0;
f030cae8
VY
12244}
12245_ACEOF
042acc47
WP
12246for ac_lib in '' rt posix4; do
12247 if test -z "$ac_lib"; then
12248 ac_res="none required"
12249 else
12250 ac_res=-l$ac_lib
12251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12252 fi
12253 if ac_fn_c_try_link "$LINENO"; then :
12254 ac_cv_search_nanosleep=$ac_res
12255fi
12256rm -f core conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext
12258 if test "${ac_cv_search_nanosleep+set}" = set; then :
12259 break
12260fi
12261done
12262if test "${ac_cv_search_nanosleep+set}" = set; then :
f030cae8 12263
042acc47
WP
12264else
12265 ac_cv_search_nanosleep=no
12266fi
12267rm conftest.$ac_ext
12268LIBS=$ac_func_search_save_LIBS
12269fi
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12271$as_echo "$ac_cv_search_nanosleep" >&6; }
12272ac_res=$ac_cv_search_nanosleep
12273if test "$ac_res" != no; then :
12274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
f030cae8 12275
042acc47
WP
12276$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
12277
12278fi
12279
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
12281$as_echo_n "checking for library containing timer_create... " >&6; }
12282if test "${ac_cv_search_timer_create+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12284else
12285 ac_func_search_save_LIBS=$LIBS
12286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287/* end confdefs.h. */
f030cae8 12288
042acc47
WP
12289/* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12292#ifdef __cplusplus
12293extern "C"
12294#endif
12295char timer_create ();
f030cae8
VY
12296int
12297main ()
12298{
042acc47 12299return timer_create ();
b57f37fb
WP
12300 ;
12301 return 0;
12302}
12303_ACEOF
042acc47
WP
12304for ac_lib in '' rt; do
12305 if test -z "$ac_lib"; then
12306 ac_res="none required"
12307 else
12308 ac_res=-l$ac_lib
12309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12310 fi
12311 if ac_fn_c_try_link "$LINENO"; then :
12312 ac_cv_search_timer_create=$ac_res
12313fi
12314rm -f core conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext
12316 if test "${ac_cv_search_timer_create+set}" = set; then :
12317 break
f030cae8 12318fi
042acc47
WP
12319done
12320if test "${ac_cv_search_timer_create+set}" = set; then :
f030cae8 12321
b57f37fb 12322else
042acc47 12323 ac_cv_search_timer_create=no
b57f37fb 12324fi
042acc47
WP
12325rm conftest.$ac_ext
12326LIBS=$ac_func_search_save_LIBS
b57f37fb 12327fi
042acc47
WP
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
12329$as_echo "$ac_cv_search_timer_create" >&6; }
12330ac_res=$ac_cv_search_timer_create
12331if test "$ac_res" != no; then :
12332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b57f37fb 12333
042acc47 12334$as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
b57f37fb 12335
042acc47 12336fi
b57f37fb 12337
042acc47
WP
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
12339$as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
12340if test "${rb__cv_timer_create_works+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12342else
12343 if test "$cross_compiling" = yes; then :
12344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12346as_fn_error "cannot run test program while cross compiling
12347See \`config.log' for more details." "$LINENO" 5; }
b57f37fb 12348else
042acc47
WP
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350/* end confdefs.h. */
b57f37fb 12351
042acc47
WP
12352#ifdef HAVE_TIME_H
12353#include <time.h>
12354#endif
12355#ifdef HAVE_SIGNAL_H
12356#include <signal.h>
12357#endif
12358#ifdef HAVE_UNISTD_H
12359#include <unistd.h>
12360#endif
12361int main(int argc, char *argv[])
12362{
12363#if HAVE_TIMER_CREATE
12364 struct sigevent ev;
12365 timer_t timer;
12366 ev.sigev_notify = SIGEV_SIGNAL;
12367 ev.sigev_signo = SIGVTALRM;
12368 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
12369 return 1;
12370 }
12371#else
12372 return 1;
12373#endif
12374 return 0;
12375}
b57f37fb 12376
042acc47
WP
12377_ACEOF
12378if ac_fn_c_try_run "$LINENO"; then :
12379 rb__cv_timer_create_works=yes
12380else
12381 rb__cv_timer_create_works=no
12382fi
12383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12384 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
12385fi
12386
12387
042acc47
WP
12388fi
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
12390$as_echo "$rb__cv_timer_create_works" >&6; }
12391case $rb__cv_timer_create_works in
12392 yes)
12393$as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
12394;;
12395esac
b57f37fb 12396
042acc47
WP
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
12398$as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
12399if test "${rb__cv_timerfd_create_works+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12401else
12402 if test "$cross_compiling" = yes; then :
12403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12405as_fn_error "cannot run test program while cross compiling
12406See \`config.log' for more details." "$LINENO" 5; }
12407else
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409/* end confdefs.h. */
b57f37fb 12410
042acc47
WP
12411#ifdef HAVE_TIME_H
12412#include <time.h>
12413#endif
12414#ifdef HAVE_SIGNAL_H
12415#include <signal.h>
12416#endif
12417#ifdef HAVE_UNISTD_H
12418#include <unistd.h>
12419#endif
12420#ifdef HAVE_SYS_TIMERFD_H
12421#include <sys/timerfd.h>
12422#endif
12423int main(int argc, char *argv[])
12424{
12425#if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
12426 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
12427 return 1;
12428 }
12429#else
12430 return 1;
12431#endif
12432 return 0;
12433}
b57f37fb 12434
042acc47
WP
12435_ACEOF
12436if ac_fn_c_try_run "$LINENO"; then :
12437 rb__cv_timerfd_create_works=yes
12438else
12439 rb__cv_timerfd_create_works=no
12440fi
12441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12442 conftest.$ac_objext conftest.beam conftest.$ac_ext
12443fi
b57f37fb 12444
b57f37fb
WP
12445
12446fi
042acc47
WP
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
12448$as_echo "$rb__cv_timerfd_create_works" >&6; }
12449case $rb__cv_timerfd_create_works in
12450 yes)
12451$as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
12452;;
12453esac
b57f37fb 12454
042acc47
WP
12455
12456# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12457# for constant arguments. Useless!
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12459$as_echo_n "checking for working alloca.h... " >&6; }
12460if test "${ac_cv_working_alloca_h+set}" = set; then :
f030cae8 12461 $as_echo_n "(cached) " >&6
b57f37fb 12462else
042acc47 12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f030cae8 12464/* end confdefs.h. */
042acc47 12465#include <alloca.h>
f030cae8
VY
12466int
12467main ()
12468{
042acc47
WP
12469char *p = (char *) alloca (2 * sizeof (int));
12470 if (p) return 0;
b57f37fb
WP
12471 ;
12472 return 0;
12473}
12474_ACEOF
042acc47
WP
12475if ac_fn_c_try_link "$LINENO"; then :
12476 ac_cv_working_alloca_h=yes
f030cae8 12477else
042acc47 12478 ac_cv_working_alloca_h=no
b57f37fb 12479fi
042acc47
WP
12480rm -f core conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
f030cae8 12482fi
042acc47
WP
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12484$as_echo "$ac_cv_working_alloca_h" >&6; }
12485if test $ac_cv_working_alloca_h = yes; then
b57f37fb 12486
042acc47 12487$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
b57f37fb
WP
12488
12489fi
12490
042acc47
WP
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12492$as_echo_n "checking for alloca... " >&6; }
12493if test "${ac_cv_func_alloca_works+set}" = set; then :
f030cae8 12494 $as_echo_n "(cached) " >&6
b57f37fb 12495else
042acc47 12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12497/* end confdefs.h. */
042acc47
WP
12498#ifdef __GNUC__
12499# define alloca __builtin_alloca
12500#else
12501# ifdef _MSC_VER
12502# include <malloc.h>
12503# define alloca _alloca
12504# else
12505# ifdef HAVE_ALLOCA_H
12506# include <alloca.h>
12507# else
12508# ifdef _AIX
12509 #pragma alloca
12510# else
12511# ifndef alloca /* predefined by HP cc +Olibcalls */
12512char *alloca ();
12513# endif
12514# endif
12515# endif
12516# endif
b57f37fb 12517#endif
042acc47 12518
b57f37fb
WP
12519int
12520main ()
12521{
042acc47
WP
12522char *p = (char *) alloca (1);
12523 if (p) return 0;
b57f37fb
WP
12524 ;
12525 return 0;
12526}
12527_ACEOF
042acc47
WP
12528if ac_fn_c_try_link "$LINENO"; then :
12529 ac_cv_func_alloca_works=yes
b57f37fb 12530else
042acc47 12531 ac_cv_func_alloca_works=no
b57f37fb 12532fi
042acc47
WP
12533rm -f core conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
b57f37fb 12535fi
042acc47
WP
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12537$as_echo "$ac_cv_func_alloca_works" >&6; }
b57f37fb 12538
042acc47 12539if test $ac_cv_func_alloca_works = yes; then
b57f37fb 12540
042acc47 12541$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
b57f37fb 12542
b57f37fb 12543else
042acc47
WP
12544 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12545# that cause trouble. Some versions do not even contain alloca or
12546# contain a buggy version. If you still want to use their alloca,
12547# use ar to extract alloca.o from them instead of compiling alloca.c.
b57f37fb 12548
042acc47 12549ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b57f37fb 12550
042acc47 12551$as_echo "#define C_ALLOCA 1" >>confdefs.h
b57f37fb
WP
12552
12553
042acc47
WP
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12555$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12556if test "${ac_cv_os_cray+set}" = set; then :
f030cae8 12557 $as_echo_n "(cached) " >&6
b57f37fb 12558else
042acc47 12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12560/* end confdefs.h. */
042acc47
WP
12561#if defined CRAY && ! defined CRAY2
12562webecray
12563#else
12564wenotbecray
12565#endif
b57f37fb 12566
b57f37fb 12567_ACEOF
042acc47
WP
12568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12569 $EGREP "webecray" >/dev/null 2>&1; then :
12570 ac_cv_os_cray=yes
b57f37fb 12571else
042acc47 12572 ac_cv_os_cray=no
b57f37fb 12573fi
042acc47 12574rm -f conftest*
b57f37fb 12575
b57f37fb 12576fi
042acc47
WP
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12578$as_echo "$ac_cv_os_cray" >&6; }
12579if test $ac_cv_os_cray = yes; then
12580 for ac_func in _getb67 GETB67 getb67; do
12581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12582ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12583eval as_val=\$$as_ac_var
12584 if test "x$as_val" = x""yes; then :
b57f37fb 12585
042acc47
WP
12586cat >>confdefs.h <<_ACEOF
12587#define CRAY_STACKSEG_END $ac_func
12588_ACEOF
b57f37fb 12589
042acc47
WP
12590 break
12591fi
b57f37fb 12592
042acc47
WP
12593 done
12594fi
b57f37fb 12595
042acc47
WP
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12597$as_echo_n "checking stack direction for C alloca... " >&6; }
12598if test "${ac_cv_c_stack_direction+set}" = set; then :
f030cae8 12599 $as_echo_n "(cached) " >&6
b57f37fb 12600else
042acc47
WP
12601 if test "$cross_compiling" = yes; then :
12602 ac_cv_c_stack_direction=0
12603else
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12605/* end confdefs.h. */
042acc47 12606$ac_includes_default
b57f37fb 12607int
042acc47 12608find_stack_direction ()
b57f37fb 12609{
042acc47
WP
12610 static char *addr = 0;
12611 auto char dummy;
12612 if (addr == 0)
12613 {
12614 addr = &dummy;
12615 return find_stack_direction ();
12616 }
12617 else
12618 return (&dummy > addr) ? 1 : -1;
f030cae8 12619}
f030cae8
VY
12620
12621int
12622main ()
12623{
042acc47 12624 return find_stack_direction () < 0;
b57f37fb
WP
12625}
12626_ACEOF
042acc47
WP
12627if ac_fn_c_try_run "$LINENO"; then :
12628 ac_cv_c_stack_direction=1
f030cae8 12629else
042acc47 12630 ac_cv_c_stack_direction=-1
f030cae8 12631fi
042acc47
WP
12632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12633 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
12634fi
12635
b57f37fb 12636fi
042acc47
WP
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12638$as_echo "$ac_cv_c_stack_direction" >&6; }
12639cat >>confdefs.h <<_ACEOF
12640#define STACK_DIRECTION $ac_cv_c_stack_direction
b57f37fb
WP
12641_ACEOF
12642
b57f37fb 12643
042acc47 12644fi
b57f37fb 12645
042acc47
WP
12646for ac_header in vfork.h
12647do :
12648 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12649if test "x$ac_cv_header_vfork_h" = x""yes; then :
12650 cat >>confdefs.h <<_ACEOF
12651#define HAVE_VFORK_H 1
12652_ACEOF
b57f37fb 12653
042acc47 12654fi
b57f37fb 12655
042acc47 12656done
4414eb3c 12657
042acc47
WP
12658for ac_func in fork vfork
12659do :
12660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12661ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12662eval as_val=\$$as_ac_var
12663 if test "x$as_val" = x""yes; then :
12664 cat >>confdefs.h <<_ACEOF
12665#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12666_ACEOF
4414eb3c 12667
042acc47
WP
12668fi
12669done
94b4fbf9 12670
042acc47
WP
12671if test "x$ac_cv_func_fork" = xyes; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12673$as_echo_n "checking for working fork... " >&6; }
12674if test "${ac_cv_func_fork_works+set}" = set; then :
f030cae8 12675 $as_echo_n "(cached) " >&6
b57f37fb 12676else
042acc47
WP
12677 if test "$cross_compiling" = yes; then :
12678 ac_cv_func_fork_works=cross
12679else
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12681/* end confdefs.h. */
042acc47 12682$ac_includes_default
b57f37fb
WP
12683int
12684main ()
12685{
042acc47
WP
12686
12687 /* By Ruediger Kuhlmann. */
12688 return fork () < 0;
12689
b57f37fb
WP
12690 ;
12691 return 0;
12692}
12693_ACEOF
042acc47
WP
12694if ac_fn_c_try_run "$LINENO"; then :
12695 ac_cv_func_fork_works=yes
b57f37fb 12696else
042acc47 12697 ac_cv_func_fork_works=no
b57f37fb 12698fi
042acc47
WP
12699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12700 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb 12701fi
b57f37fb
WP
12702
12703fi
042acc47
WP
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12705$as_echo "$ac_cv_func_fork_works" >&6; }
b57f37fb 12706
042acc47
WP
12707else
12708 ac_cv_func_fork_works=$ac_cv_func_fork
12709fi
12710if test "x$ac_cv_func_fork_works" = xcross; then
12711 case $host in
12712 *-*-amigaos* | *-*-msdosdjgpp*)
12713 # Override, as these systems have only a dummy fork() stub
12714 ac_cv_func_fork_works=no
12715 ;;
12716 *)
12717 ac_cv_func_fork_works=yes
12718 ;;
12719 esac
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12721$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12722fi
12723ac_cv_func_vfork_works=$ac_cv_func_vfork
12724if test "x$ac_cv_func_vfork" = xyes; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12726$as_echo_n "checking for working vfork... " >&6; }
12727if test "${ac_cv_func_vfork_works+set}" = set; then :
f030cae8 12728 $as_echo_n "(cached) " >&6
b57f37fb 12729else
042acc47
WP
12730 if test "$cross_compiling" = yes; then :
12731 ac_cv_func_vfork_works=cross
12732else
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12734/* end confdefs.h. */
042acc47
WP
12735/* Thanks to Paul Eggert for this test. */
12736$ac_includes_default
12737#include <sys/wait.h>
12738#ifdef HAVE_VFORK_H
12739# include <vfork.h>
12740#endif
12741/* On some sparc systems, changes by the child to local and incoming
12742 argument registers are propagated back to the parent. The compiler
12743 is told about this with #include <vfork.h>, but some compilers
12744 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12745 static variable whose address is put into a register that is
12746 clobbered by the vfork. */
12747static void
b57f37fb 12748#ifdef __cplusplus
042acc47
WP
12749sparc_address_test (int arg)
12750# else
12751sparc_address_test (arg) int arg;
b57f37fb 12752#endif
042acc47
WP
12753{
12754 static pid_t child;
12755 if (!child) {
12756 child = vfork ();
12757 if (child < 0) {
12758 perror ("vfork");
12759 _exit(2);
12760 }
12761 if (!child) {
12762 arg = getpid();
12763 write(-1, "", 0);
12764 _exit (arg);
12765 }
12766 }
12767}
12768
b57f37fb
WP
12769int
12770main ()
12771{
042acc47
WP
12772 pid_t parent = getpid ();
12773 pid_t child;
12774
12775 sparc_address_test (0);
12776
12777 child = vfork ();
12778
12779 if (child == 0) {
12780 /* Here is another test for sparc vfork register problems. This
12781 test uses lots of local variables, at least as many local
12782 variables as main has allocated so far including compiler
12783 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12784 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12785 reuse the register of parent for one of the local variables,
12786 since it will think that parent can't possibly be used any more
12787 in this routine. Assigning to the local variable will thus
12788 munge parent in the parent process. */
12789 pid_t
12790 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12791 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12792 /* Convince the compiler that p..p7 are live; otherwise, it might
12793 use the same hardware register for all 8 local variables. */
12794 if (p != p1 || p != p2 || p != p3 || p != p4
12795 || p != p5 || p != p6 || p != p7)
12796 _exit(1);
b57f37fb 12797
042acc47
WP
12798 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12799 from child file descriptors. If the child closes a descriptor
12800 before it execs or exits, this munges the parent's descriptor
12801 as well. Test for this by closing stdout in the child. */
12802 _exit(close(fileno(stdout)) != 0);
12803 } else {
12804 int status;
12805 struct stat st;
b57f37fb 12806
042acc47
WP
12807 while (wait(&status) != child)
12808 ;
12809 return (
12810 /* Was there some problem with vforking? */
12811 child < 0
b57f37fb 12812
042acc47
WP
12813 /* Did the child fail? (This shouldn't happen.) */
12814 || status
12815
12816 /* Did the vfork/compiler bug occur? */
12817 || parent != getpid()
12818
12819 /* Did the file descriptor bug occur? */
12820 || fstat(fileno(stdout), &st) != 0
12821 );
12822 }
12823}
12824_ACEOF
12825if ac_fn_c_try_run "$LINENO"; then :
12826 ac_cv_func_vfork_works=yes
b57f37fb 12827else
042acc47 12828 ac_cv_func_vfork_works=no
b57f37fb 12829fi
042acc47
WP
12830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12831 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb 12832fi
b57f37fb 12833
042acc47
WP
12834fi
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12836$as_echo "$ac_cv_func_vfork_works" >&6; }
b57f37fb 12837
042acc47
WP
12838fi;
12839if test "x$ac_cv_func_fork_works" = xcross; then
12840 ac_cv_func_vfork_works=$ac_cv_func_vfork
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12842$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
b57f37fb
WP
12843fi
12844
042acc47
WP
12845if test "x$ac_cv_func_vfork_works" = xyes; then
12846
12847$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
b57f37fb 12848
b57f37fb 12849else
b57f37fb 12850
042acc47 12851$as_echo "#define vfork fork" >>confdefs.h
b57f37fb
WP
12852
12853fi
042acc47
WP
12854if test "x$ac_cv_func_fork_works" = xyes; then
12855
12856$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
b57f37fb 12857
b57f37fb 12858fi
042acc47
WP
12859
12860for ac_header in stdlib.h unistd.h
12861do :
12862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12863ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12864eval as_val=\$$as_ac_Header
12865 if test "x$as_val" = x""yes; then :
12866 cat >>confdefs.h <<_ACEOF
12867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12868_ACEOF
12869
b57f37fb 12870fi
b57f37fb 12871
042acc47
WP
12872done
12873
12874for ac_func in getpagesize
12875do :
12876 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12877if test "x$ac_cv_func_getpagesize" = x""yes; then :
12878 cat >>confdefs.h <<_ACEOF
12879#define HAVE_GETPAGESIZE 1
b57f37fb
WP
12880_ACEOF
12881
12882fi
042acc47 12883done
b57f37fb 12884
042acc47
WP
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12886$as_echo_n "checking for working mmap... " >&6; }
12887if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
f030cae8 12888 $as_echo_n "(cached) " >&6
b57f37fb 12889else
042acc47
WP
12890 if test "$cross_compiling" = yes; then :
12891 ac_cv_func_mmap_fixed_mapped=no
12892else
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 12894/* end confdefs.h. */
042acc47
WP
12895$ac_includes_default
12896/* malloc might have been renamed as rpl_malloc. */
12897#undef malloc
b57f37fb 12898
042acc47
WP
12899/* Thanks to Mike Haertel and Jim Avera for this test.
12900 Here is a matrix of mmap possibilities:
12901 mmap private not fixed
12902 mmap private fixed at somewhere currently unmapped
12903 mmap private fixed at somewhere already mapped
12904 mmap shared not fixed
12905 mmap shared fixed at somewhere currently unmapped
12906 mmap shared fixed at somewhere already mapped
12907 For private mappings, we should verify that changes cannot be read()
12908 back from the file, nor mmap's back from the file at a different
12909 address. (There have been systems where private was not correctly
12910 implemented like the infamous i386 svr4.0, and systems where the
12911 VM page cache was not coherent with the file system buffer cache
12912 like early versions of FreeBSD and possibly contemporary NetBSD.)
12913 For shared mappings, we should conversely verify that changes get
12914 propagated back to all the places they're supposed to be.
12915
12916 Grep wants private fixed already mapped.
12917 The main things grep needs to know about mmap are:
12918 * does it exist and is it safe to write into the mmap'd area
12919 * how to use it (BSD variants) */
12920
12921#include <fcntl.h>
12922#include <sys/mman.h>
12923
12924#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12925char *malloc ();
b57f37fb 12926#endif
042acc47
WP
12927
12928/* This mess was copied from the GNU getpagesize.h. */
12929#ifndef HAVE_GETPAGESIZE
12930/* Assume that all systems that can run configure have sys/param.h. */
12931# ifndef HAVE_SYS_PARAM_H
12932# define HAVE_SYS_PARAM_H 1
12933# endif
12934
12935# ifdef _SC_PAGESIZE
12936# define getpagesize() sysconf(_SC_PAGESIZE)
12937# else /* no _SC_PAGESIZE */
12938# ifdef HAVE_SYS_PARAM_H
12939# include <sys/param.h>
12940# ifdef EXEC_PAGESIZE
12941# define getpagesize() EXEC_PAGESIZE
12942# else /* no EXEC_PAGESIZE */
12943# ifdef NBPG
12944# define getpagesize() NBPG * CLSIZE
12945# ifndef CLSIZE
12946# define CLSIZE 1
12947# endif /* no CLSIZE */
12948# else /* no NBPG */
12949# ifdef NBPC
12950# define getpagesize() NBPC
12951# else /* no NBPC */
12952# ifdef PAGESIZE
12953# define getpagesize() PAGESIZE
12954# endif /* PAGESIZE */
12955# endif /* no NBPC */
12956# endif /* no NBPG */
12957# endif /* no EXEC_PAGESIZE */
12958# else /* no HAVE_SYS_PARAM_H */
12959# define getpagesize() 8192 /* punt totally */
12960# endif /* no HAVE_SYS_PARAM_H */
12961# endif /* no _SC_PAGESIZE */
12962
12963#endif /* no HAVE_GETPAGESIZE */
12964
12965int
12966main ()
b57f37fb 12967{
042acc47
WP
12968 char *data, *data2, *data3;
12969 int i, pagesize;
12970 int fd;
12971
12972 pagesize = getpagesize ();
12973
12974 /* First, make a file with some known garbage in it. */
12975 data = (char *) malloc (pagesize);
12976 if (!data)
12977 return 1;
12978 for (i = 0; i < pagesize; ++i)
12979 *(data + i) = rand ();
12980 umask (0);
12981 fd = creat ("conftest.mmap", 0600);
12982 if (fd < 0)
12983 return 1;
12984 if (write (fd, data, pagesize) != pagesize)
12985 return 1;
12986 close (fd);
12987
12988 /* Next, try to mmap the file at a fixed address which already has
12989 something else allocated at it. If we can, also make sure that
12990 we see the same garbage. */
12991 fd = open ("conftest.mmap", O_RDWR);
12992 if (fd < 0)
12993 return 1;
12994 data2 = (char *) malloc (2 * pagesize);
12995 if (!data2)
12996 return 1;
12997 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12998 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12999 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13000 return 1;
13001 for (i = 0; i < pagesize; ++i)
13002 if (*(data + i) != *(data2 + i))
13003 return 1;
13004
13005 /* Finally, make sure that changes to the mapped area do not
13006 percolate back to the file as seen by read(). (This is a bug on
13007 some variants of i386 svr4.0.) */
13008 for (i = 0; i < pagesize; ++i)
13009 *(data2 + i) = *(data2 + i) + 1;
13010 data3 = (char *) malloc (pagesize);
13011 if (!data3)
b57f37fb 13012 return 1;
042acc47
WP
13013 if (read (fd, data3, pagesize) != pagesize)
13014 return 1;
13015 for (i = 0; i < pagesize; ++i)
13016 if (*(data + i) != *(data3 + i))
13017 return 1;
13018 close (fd);
13019 return 0;
b57f37fb 13020}
b57f37fb 13021_ACEOF
042acc47
WP
13022if ac_fn_c_try_run "$LINENO"; then :
13023 ac_cv_func_mmap_fixed_mapped=yes
b57f37fb 13024else
042acc47 13025 ac_cv_func_mmap_fixed_mapped=no
b57f37fb 13026fi
042acc47
WP
13027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13028 conftest.$ac_objext conftest.beam conftest.$ac_ext
b57f37fb
WP
13029fi
13030
042acc47
WP
13031fi
13032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13033$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13034if test $ac_cv_func_mmap_fixed_mapped = yes; then
b57f37fb 13035
042acc47 13036$as_echo "#define HAVE_MMAP 1" >>confdefs.h
b57f37fb
WP
13037
13038fi
042acc47 13039rm -f conftest.mmap
b57f37fb 13040
94b4fbf9 13041
042acc47
WP
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
13043$as_echo_n "checking for /dev/poll... " >&6; }
13044if test -c "/dev/poll"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13046$as_echo "yes" >&6; }
94b4fbf9 13047
042acc47 13048$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
94b4fbf9 13049
042acc47
WP
13050else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
94b4fbf9
VY
13053fi
13054
13055
042acc47
WP
13056if test "$is_mingw" = "yes"; then
13057
13058$as_echo "#define HAVE_WIN32 1" >>confdefs.h
94b4fbf9
VY
13059
13060fi
94b4fbf9 13061
b57f37fb 13062
042acc47
WP
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13064$as_echo_n "checking for OpenSSL... " >&6; }
13065# Check whether --enable-openssl was given.
13066if test "${enable_openssl+set}" = set; then :
13067 enableval=$enable_openssl; cf_enable_openssl=$enableval
b57f37fb 13068else
042acc47 13069 cf_enable_openssl="auto"
b57f37fb
WP
13070fi
13071
b57f37fb 13072
042acc47
WP
13073if test "$cf_enable_openssl" != "no" ; then
13074 cf_openssl_basedir=""
13075 if test "$cf_enable_openssl" != "auto" &&
13076 test "$cf_enable_openssl" != "yes" ; then
13077 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
13078 else
13079 for dirs in /usr/local/ssl /usr/pkg /usr/local \
13080 /usr/local/openssl ; do
13081 if test -f "${dirs}/include/openssl/opensslv.h" ; then
13082 cf_openssl_basedir="${dirs}"
13083 break
13084 fi
13085 done
13086 unset dirs
13087 fi
13088 if test ! -z "$cf_openssl_basedir"; then
13089 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
13090 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
13091 SSL_LIBS="-L${cf_openssl_basedir}/lib"
13092 else
13093 cf_openssl_basedir=""
13094 fi
13095 else
13096 if test -f "/usr/include/openssl/opensslv.h" ; then
13097 cf_openssl_basedir="/usr"
13098 fi
13099 fi
b57f37fb 13100
042acc47
WP
13101 if test ! -z "$cf_openssl_basedir"; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13103$as_echo "$cf_openssl_basedir" >&6; }
13104 cf_enable_openssl="yes"
13105 else
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
13107$as_echo "not found. Specify a correct path?" >&6; }
13108 cf_enable_openssl="no"
13109 fi
13110 unset cf_openssl_basedir
13111else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13113$as_echo "disabled" >&6; }
b57f37fb
WP
13114fi
13115
042acc47
WP
13116save_CPPFLAGS="$CPPFLAGS"
13117CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
13118save_LIBS="$LIBS"
13119LIBS="$LIBS $SSL_LIBS"
13120if test "$cf_enable_openssl" != no; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13122$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13123 if test "$cross_compiling" = yes; then :
13124 cf_enable_openssl=no
b57f37fb 13125else
042acc47 13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13127/* end confdefs.h. */
042acc47
WP
13128#include <openssl/opensslv.h>
13129 #include <stdlib.h>
b57f37fb
WP
13130int
13131main ()
13132{
042acc47
WP
13133if (OPENSSL_VERSION_NUMBER >= 0x00907000)
13134 exit(0); else exit(1);
13135 ;
13136 return 0;
13137}
b57f37fb 13138_ACEOF
042acc47
WP
13139if ac_fn_c_try_run "$LINENO"; then :
13140 cf_enable_openssl=yes
13141else
13142 cf_enable_openssl=no
13143fi
13144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13145 conftest.$ac_objext conftest.beam conftest.$ac_ext
13146fi
b57f37fb
WP
13147
13148
042acc47
WP
13149 if test "$cf_enable_openssl" != no; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13151$as_echo "found" >&6; }
13152 else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13154$as_echo "no - OpenSSL support disabled" >&6; }
13155 fi
b57f37fb 13156
b57f37fb 13157fi
b57f37fb 13158
042acc47
WP
13159
13160if test "$cf_enable_openssl" != no; then
13161 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
13163$as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
13164if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then :
f030cae8 13165 $as_echo_n "(cached) " >&6
b57f37fb 13166else
042acc47
WP
13167 ac_check_lib_save_LIBS=$LIBS
13168LIBS="-lcrypto $LIBS"
13169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13170/* end confdefs.h. */
b57f37fb
WP
13171
13172/* Override any GCC internal prototype to avoid an error.
13173 Use char because int might match the return type of a GCC
13174 builtin and then its argument prototype would still apply. */
13175#ifdef __cplusplus
13176extern "C"
13177#endif
042acc47 13178char RAND_status ();
b57f37fb
WP
13179int
13180main ()
13181{
042acc47 13182return RAND_status ();
b57f37fb
WP
13183 ;
13184 return 0;
13185}
13186_ACEOF
042acc47
WP
13187if ac_fn_c_try_link "$LINENO"; then :
13188 ac_cv_lib_crypto_RAND_status=yes
b57f37fb 13189else
042acc47 13190 ac_cv_lib_crypto_RAND_status=no
b57f37fb 13191fi
042acc47
WP
13192rm -f core conftest.err conftest.$ac_objext \
13193 conftest$ac_exeext conftest.$ac_ext
13194LIBS=$ac_check_lib_save_LIBS
b57f37fb 13195fi
042acc47
WP
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
13197$as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
13198if test "x$ac_cv_lib_crypto_RAND_status" = x""yes; then :
13199 cf_enable_openssl=yes
13200else
13201 cf_enable_openssl=no
b57f37fb
WP
13202fi
13203
b57f37fb
WP
13204fi
13205
042acc47
WP
13206if test "$cf_enable_openssl" != no; then
13207 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
13209$as_echo_n "checking for SSL_read in -lssl... " >&6; }
13210if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then :
f030cae8 13211 $as_echo_n "(cached) " >&6
b57f37fb 13212else
042acc47
WP
13213 ac_check_lib_save_LIBS=$LIBS
13214LIBS="-lssl -lcrypto $LIBS"
13215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b57f37fb 13216/* end confdefs.h. */
b57f37fb 13217
042acc47
WP
13218/* Override any GCC internal prototype to avoid an error.
13219 Use char because int might match the return type of a GCC
13220 builtin and then its argument prototype would still apply. */
13221#ifdef __cplusplus
13222extern "C"
13223#endif
13224char SSL_read ();
b57f37fb
WP
13225int
13226main ()
13227{
042acc47
WP
13228return SSL_read ();
13229 ;
13230 return 0;
b57f37fb
WP
13231}
13232_ACEOF
042acc47
WP
13233if ac_fn_c_try_link "$LINENO"; then :
13234 ac_cv_lib_ssl_SSL_read=yes
b57f37fb 13235else
042acc47 13236 ac_cv_lib_ssl_SSL_read=no
b57f37fb 13237fi
042acc47
WP
13238rm -f core conftest.err conftest.$ac_objext \
13239 conftest$ac_exeext conftest.$ac_ext
13240LIBS=$ac_check_lib_save_LIBS
13241fi
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
13243$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
13244if test "x$ac_cv_lib_ssl_SSL_read" = x""yes; then :
13245 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
13246else
13247 cf_enable_openssl=no
b57f37fb 13248fi
b57f37fb
WP
13249
13250fi
b57f37fb 13251
b57f37fb
WP
13252
13253
042acc47
WP
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
13255$as_echo_n "checking for GnuTLS... " >&6; }
13256# Check whether --enable-gnutls was given.
13257if test "${enable_gnutls+set}" = set; then :
13258 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
13259else
13260 cf_enable_gnutls="auto"
b57f37fb
WP
13261fi
13262
13263
042acc47
WP
13264if test "$cf_enable_gnutls" != no; then
13265
13266
13267if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13268 if test -n "$ac_tool_prefix"; then
13269 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13270set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13272$as_echo_n "checking for $ac_word... " >&6; }
13273if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
f030cae8 13274 $as_echo_n "(cached) " >&6
b57f37fb 13275else
042acc47
WP
13276 case $PKG_CONFIG in
13277 [\\/]* | ?:[\\/]*)
13278 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13279 ;;
13280 *)
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282for as_dir in $PATH
13283do
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13288 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 break 2
13291 fi
13292done
13293 done
13294IFS=$as_save_IFS
13295
13296 ;;
b57f37fb 13297esac
042acc47
WP
13298fi
13299PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13300if test -n "$PKG_CONFIG"; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13302$as_echo "$PKG_CONFIG" >&6; }
b57f37fb 13303else
042acc47
WP
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305$as_echo "no" >&6; }
13306fi
13307
b57f37fb 13308
b57f37fb 13309fi
042acc47
WP
13310if test -z "$ac_cv_path_PKG_CONFIG"; then
13311 ac_pt_PKG_CONFIG=$PKG_CONFIG
13312 # Extract the first word of "pkg-config", so it can be a program name with args.
13313set dummy pkg-config; ac_word=$2
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315$as_echo_n "checking for $ac_word... " >&6; }
13316if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13318else
13319 case $ac_pt_PKG_CONFIG in
13320 [\\/]* | ?:[\\/]*)
13321 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13322 ;;
13323 *)
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13334 fi
13335done
13336 done
13337IFS=$as_save_IFS
b57f37fb 13338
042acc47
WP
13339 ;;
13340esac
13341fi
13342ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13343if test -n "$ac_pt_PKG_CONFIG"; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13345$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13346else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348$as_echo "no" >&6; }
13349fi
b57f37fb 13350
042acc47
WP
13351 if test "x$ac_pt_PKG_CONFIG" = x; then
13352 PKG_CONFIG=""
13353 else
13354 case $cross_compiling:$ac_tool_warned in
13355yes:)
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13358ac_tool_warned=yes ;;
b57f37fb 13359esac
042acc47
WP
13360 PKG_CONFIG=$ac_pt_PKG_CONFIG
13361 fi
b57f37fb 13362else
042acc47
WP
13363 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13364fi
b57f37fb 13365
b57f37fb 13366fi
042acc47
WP
13367if test -n "$PKG_CONFIG"; then
13368 _pkg_min_version=0.9.0
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13370$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13371 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13373$as_echo "yes" >&6; }
13374 else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376$as_echo "no" >&6; }
13377 PKG_CONFIG=""
13378 fi
b57f37fb 13379
042acc47 13380fi
b57f37fb 13381
042acc47
WP
13382pkg_failed=no
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13384$as_echo_n "checking for GNUTLS... " >&6; }
b57f37fb 13385
042acc47
WP
13386if test -n "$PKG_CONFIG"; then
13387 if test -n "$GNUTLS_CFLAGS"; then
13388 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13389 else
13390 if test -n "$PKG_CONFIG" && \
13391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13392 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13393 ac_status=$?
13394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13395 test $ac_status = 0; }; then
13396 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
b57f37fb 13397else
042acc47 13398 pkg_failed=yes
b57f37fb 13399fi
042acc47
WP
13400 fi
13401else
13402 pkg_failed=untried
b57f37fb 13403fi
042acc47
WP
13404if test -n "$PKG_CONFIG"; then
13405 if test -n "$GNUTLS_LIBS"; then
13406 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13407 else
13408 if test -n "$PKG_CONFIG" && \
13409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13410 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13411 ac_status=$?
13412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13413 test $ac_status = 0; }; then
13414 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13415else
13416 pkg_failed=yes
13417fi
13418 fi
13419else
13420 pkg_failed=untried
b57f37fb
WP
13421fi
13422
b57f37fb
WP
13423
13424
042acc47 13425if test $pkg_failed = yes; then
b57f37fb 13426
042acc47
WP
13427if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13428 _pkg_short_errors_supported=yes
b57f37fb 13429else
042acc47
WP
13430 _pkg_short_errors_supported=no
13431fi
13432 if test $_pkg_short_errors_supported = yes; then
13433 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls"`
13434 else
13435 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls"`
13436 fi
13437 # Put the nasty error message in config.log where it belongs
13438 echo "$GNUTLS_PKG_ERRORS" >&5
b57f37fb 13439
042acc47
WP
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441$as_echo "no" >&6; }
13442 cf_enable_gnutls="no"
13443elif test $pkg_failed = untried; then
13444 cf_enable_gnutls="no"
13445else
13446 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13447 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449$as_echo "yes" >&6; }
b57f37fb 13450
042acc47 13451 cf_enable_gnutls="yes"
b57f37fb 13452
042acc47
WP
13453fi
13454fi
b57f37fb 13455
042acc47
WP
13456if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
13457 cf_enable_gnutls="no"
13458fi
b57f37fb 13459
042acc47 13460if test x"$cf_enable_openssl" != xno; then
b57f37fb 13461
042acc47 13462$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
b57f37fb 13463
042acc47
WP
13464 GNUTLS_CFLAGS=""
13465 GNUTLS_LIBS=""
13466 SSL_TYPE="openssl"
13467elif test x"$cf_enable_gnutls" != xno; then
13468
13469$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
b57f37fb 13470
042acc47
WP
13471 SSL_LIBS=""
13472 SSL_CFLAGS=""
13473 SSL_TYPE="gnutls"
b57f37fb 13474fi
b57f37fb 13475
b57f37fb 13476
b57f37fb 13477
b57f37fb 13478
042acc47
WP
13479CPPFLAGS="$save_CPPFLAGS"
13480LIBS="$save_LIBS"
13481
13482
b57f37fb
WP
13483
13484
b57f37fb 13485
b57f37fb 13486
042acc47
WP
13487# Check whether --enable-assert was given.
13488if test "${enable_assert+set}" = set; then :
13489 enableval=$enable_assert; assert=$enableval
13490else
13491 assert=no
13492fi
b57f37fb 13493
b57f37fb 13494
042acc47 13495if test "$assert" = no; then
b57f37fb 13496
042acc47 13497$as_echo "#define NDEBUG 1" >>confdefs.h
b57f37fb 13498
042acc47 13499elif test "$assert" = soft; then
b57f37fb 13500
042acc47 13501$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
b57f37fb 13502
b57f37fb 13503
042acc47 13504$as_echo "#define NDEBUG 1" >>confdefs.h
b57f37fb 13505
042acc47
WP
13506elif test "$assert" = yes; then
13507 assert = "hard";
13508fi
13509
13510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
13511$as_echo_n "checking if you want to do a profile build... " >&6; }
13512# Check whether --enable-profile was given.
13513if test "${enable_profile+set}" = set; then :
13514 enableval=$enable_profile; profile=$enableval
b57f37fb 13515else
042acc47
WP
13516 profile=no
13517fi
13518
13519
13520if test "$profile" = yes; then
13521 if test "$ac_cv_c_compiler_gnu" = yes; then
13522 CFLAGS="$CFLAGS -pg -static"
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
13524$as_echo "yes, adding -pg -static" >&6; }
b57f37fb 13525
042acc47
WP
13526$as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
13527
13528 else
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
13530$as_echo "no, profile builds only work with gcc" >&6; }
13531 fi
13532else
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534$as_echo "no" >&6; }
b57f37fb 13535fi
042acc47
WP
13536
13537# Check whether --enable-balloc was given.
13538if test "${enable_balloc+set}" = set; then :
13539 enableval=$enable_balloc; balloc=$enableval
13540else
13541 balloc=yes
b57f37fb
WP
13542fi
13543
13544
042acc47
WP
13545if test "$balloc" = no; then
13546
13547$as_echo "#define NOBALLOC 1" >>confdefs.h
13548
b57f37fb 13549fi
b57f37fb 13550
042acc47
WP
13551# Check whether --enable-warnings was given.
13552if test "${enable_warnings+set}" = set; then :
13553 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
13554fi
13555
b57f37fb 13556
b57f37fb 13557
b57f37fb 13558
b57f37fb 13559
b57f37fb 13560
b57f37fb 13561
b57f37fb
WP
13562
13563
13564
042acc47
WP
13565
13566if test "$prefix" = "NONE"; then
13567
13568cat >>confdefs.h <<_ACEOF
13569#define RB_PREFIX "$ac_default_prefix"
b57f37fb 13570_ACEOF
042acc47
WP
13571
13572
b57f37fb 13573else
b57f37fb 13574
b57f37fb 13575
042acc47 13576 prefix=`echo $prefix | sed 's/\/$//'`
b57f37fb 13577
042acc47
WP
13578cat >>confdefs.h <<_ACEOF
13579#define RB_PREFIX "$prefix"
b57f37fb 13580_ACEOF
b57f37fb 13581
042acc47 13582
b57f37fb
WP
13583fi
13584
b57f37fb 13585
b57f37fb 13586
042acc47 13587ac_config_commands="$ac_config_commands include/librb-config.h"
b57f37fb 13588
b57f37fb 13589
b57f37fb 13590
042acc47 13591ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
b57f37fb
WP
13592
13593
042acc47
WP
13594cat >confcache <<\_ACEOF
13595# This file is a shell script that caches the results of configure
13596# tests run on this system so they can be shared between configure
13597# scripts and configure runs, see configure's option --config-cache.
13598# It is not useful on other systems. If it contains results you don't
13599# want to keep, you may remove or edit it.
13600#
13601# config.status only pays attention to the cache file if you give it
13602# the --recheck option to rerun configure.
13603#
13604# `ac_cv_env_foo' variables (set or unset) will be overridden when
13605# loading this file, other *unset* `ac_cv_foo' will be assigned the
13606# following values.
13607
b57f37fb 13608_ACEOF
b57f37fb 13609
042acc47
WP
13610# The following way of writing the cache mishandles newlines in values,
13611# but we know of no workaround that is simple, portable, and efficient.
13612# So, we kill variables containing newlines.
13613# Ultrix sh set writes to stderr and can't be redirected directly,
13614# and sets the high bit in the cache file unless we assign to the vars.
13615(
13616 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13617 eval ac_val=\$$ac_var
13618 case $ac_val in #(
13619 *${as_nl}*)
13620 case $ac_var in #(
13621 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13622$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13623 esac
13624 case $ac_var in #(
13625 _ | IFS | as_nl) ;; #(
13626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13627 *) { eval $ac_var=; unset $ac_var;} ;;
13628 esac ;;
13629 esac
13630 done
13631
13632 (set) 2>&1 |
13633 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13634 *${as_nl}ac_space=\ *)
13635 # `set' does not quote correctly, so add quotes: double-quote
13636 # substitution turns \\\\ into \\, and sed turns \\ into \.
13637 sed -n \
13638 "s/'/'\\\\''/g;
13639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13640 ;; #(
13641 *)
13642 # `set' quotes correctly as required by POSIX, so do not add quotes.
13643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13644 ;;
13645 esac |
13646 sort
13647) |
13648 sed '
13649 /^ac_cv_env_/b end
13650 t clear
13651 :clear
13652 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13653 t end
13654 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13655 :end' >>confcache
13656if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13657 if test -w "$cache_file"; then
13658 test "x$cache_file" != "x/dev/null" &&
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13660$as_echo "$as_me: updating cache $cache_file" >&6;}
13661 cat confcache >$cache_file
13662 else
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13664$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13665 fi
13666fi
13667rm -f confcache
13668
13669test "x$prefix" = xNONE && prefix=$ac_default_prefix
13670# Let make expand exec_prefix.
13671test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b57f37fb 13672
042acc47 13673DEFS=-DHAVE_CONFIG_H
b57f37fb 13674
042acc47
WP
13675ac_libobjs=
13676ac_ltlibobjs=
13677for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13678 # 1. Remove the extension, and $U if already installed.
13679 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13680 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13681 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13682 # will be set to the directory where LIBOBJS objects are built.
13683 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13684 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13685done
13686LIBOBJS=$ac_libobjs
b57f37fb 13687
042acc47 13688LTLIBOBJS=$ac_ltlibobjs
b57f37fb 13689
b57f37fb 13690
042acc47
WP
13691 if test -n "$EXEEXT"; then
13692 am__EXEEXT_TRUE=
13693 am__EXEEXT_FALSE='#'
13694else
13695 am__EXEEXT_TRUE='#'
13696 am__EXEEXT_FALSE=
b57f37fb
WP
13697fi
13698
042acc47
WP
13699if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13700 as_fn_error "conditional \"AMDEP\" was never defined.
13701Usually this means the macro was only invoked conditionally." "$LINENO" 5
b57f37fb 13702fi
042acc47
WP
13703if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13704 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13705Usually this means the macro was only invoked conditionally." "$LINENO" 5
13706fi
13707if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13708 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13709Usually this means the macro was only invoked conditionally." "$LINENO" 5
13710fi
13711if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
13712 as_fn_error "conditional \"MINGW\" was never defined.
13713Usually this means the macro was only invoked conditionally." "$LINENO" 5
13714fi
13715if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
13716 as_fn_error "conditional \"NEED_CRYPT\" was never defined.
13717Usually this means the macro was only invoked conditionally." "$LINENO" 5
b57f37fb 13718fi
b57f37fb 13719
042acc47
WP
13720: ${CONFIG_STATUS=./config.status}
13721ac_write_fail=0
13722ac_clean_files_save=$ac_clean_files
13723ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13725$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13726as_write_fail=0
13727cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13728#! $SHELL
13729# Generated by $as_me.
13730# Run this file to recreate the current configuration.
13731# Compiler output produced by configure, useful for debugging
13732# configure, is in config.log if it exists.
b57f37fb 13733
042acc47
WP
13734debug=false
13735ac_cs_recheck=false
13736ac_cs_silent=false
b57f37fb 13737
042acc47
WP
13738SHELL=\${CONFIG_SHELL-$SHELL}
13739export SHELL
13740_ASEOF
13741cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13742## -------------------- ##
13743## M4sh Initialization. ##
13744## -------------------- ##
b57f37fb 13745
042acc47
WP
13746# Be more Bourne compatible
13747DUALCASE=1; export DUALCASE # for MKS sh
13748if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13749 emulate sh
13750 NULLCMD=:
13751 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13752 # is contrary to our usage. Disable this feature.
13753 alias -g '${1+"$@"}'='"$@"'
13754 setopt NO_GLOB_SUBST
13755else
13756 case `(set -o) 2>/dev/null` in #(
13757 *posix*) :
13758 set -o posix ;; #(
13759 *) :
13760 ;;
13761esac
13762fi
b57f37fb 13763
b57f37fb 13764
042acc47
WP
13765as_nl='
13766'
13767export as_nl
13768# Printing a long string crashes Solaris 7 /usr/bin/printf.
13769as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13772# Prefer a ksh shell builtin over an external printf program on Solaris,
13773# but without wasting forks for bash or zsh.
13774if test -z "$BASH_VERSION$ZSH_VERSION" \
13775 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13776 as_echo='print -r --'
13777 as_echo_n='print -rn --'
13778elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13779 as_echo='printf %s\n'
13780 as_echo_n='printf %s'
b57f37fb 13781else
042acc47
WP
13782 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13783 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13784 as_echo_n='/usr/ucb/echo -n'
13785 else
13786 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13787 as_echo_n_body='eval
13788 arg=$1;
13789 case $arg in #(
13790 *"$as_nl"*)
13791 expr "X$arg" : "X\\(.*\\)$as_nl";
13792 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13793 esac;
13794 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13795 '
13796 export as_echo_n_body
13797 as_echo_n='sh -c $as_echo_n_body as_echo'
13798 fi
13799 export as_echo_body
13800 as_echo='sh -c $as_echo_body as_echo'
b57f37fb 13801fi
042acc47
WP
13802
13803# The user is always right.
13804if test "${PATH_SEPARATOR+set}" != set; then
13805 PATH_SEPARATOR=:
13806 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13807 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13808 PATH_SEPARATOR=';'
13809 }
b57f37fb
WP
13810fi
13811
13812
042acc47
WP
13813# IFS
13814# We need space, tab and new line, in precisely that order. Quoting is
13815# there to prevent editors from complaining about space-tab.
13816# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13817# splitting by setting IFS to empty value.)
13818IFS=" "" $as_nl"
b57f37fb 13819
042acc47
WP
13820# Find who we are. Look in the path if we contain no directory separator.
13821case $0 in #((
13822 *[\\/]* ) as_myself=$0 ;;
13823 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824for as_dir in $PATH
13825do
13826 IFS=$as_save_IFS
13827 test -z "$as_dir" && as_dir=.
13828 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13829 done
13830IFS=$as_save_IFS
b57f37fb 13831
042acc47
WP
13832 ;;
13833esac
13834# We did not find ourselves, most probably we were run as `sh COMMAND'
13835# in which case we are not to be found in the path.
13836if test "x$as_myself" = x; then
13837 as_myself=$0
13838fi
13839if test ! -f "$as_myself"; then
13840 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13841 exit 1
b57f37fb 13842fi
b57f37fb 13843
042acc47
WP
13844# Unset variables that we do not need and which cause bugs (e.g. in
13845# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13846# suppresses any "Segmentation fault" message there. '((' could
13847# trigger a bug in pdksh 5.2.14.
13848for as_var in BASH_ENV ENV MAIL MAILPATH
13849do eval test x\${$as_var+set} = xset \
13850 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13851done
13852PS1='$ '
13853PS2='> '
13854PS4='+ '
b57f37fb 13855
042acc47
WP
13856# NLS nuisances.
13857LC_ALL=C
13858export LC_ALL
13859LANGUAGE=C
13860export LANGUAGE
b57f37fb 13861
042acc47
WP
13862# CDPATH.
13863(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
b57f37fb 13864
b57f37fb 13865
042acc47
WP
13866# as_fn_error ERROR [LINENO LOG_FD]
13867# ---------------------------------
13868# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13869# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13870# script with status $?, using 1 if that was 0.
13871as_fn_error ()
13872{
13873 as_status=$?; test $as_status -eq 0 && as_status=1
13874 if test "$3"; then
13875 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13876 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13877 fi
13878 $as_echo "$as_me: error: $1" >&2
13879 as_fn_exit $as_status
13880} # as_fn_error
b57f37fb 13881
b57f37fb 13882
042acc47
WP
13883# as_fn_set_status STATUS
13884# -----------------------
13885# Set $? to STATUS, without forking.
13886as_fn_set_status ()
13887{
13888 return $1
13889} # as_fn_set_status
13890
13891# as_fn_exit STATUS
13892# -----------------
13893# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13894as_fn_exit ()
13895{
13896 set +e
13897 as_fn_set_status $1
13898 exit $1
13899} # as_fn_exit
13900
13901# as_fn_unset VAR
13902# ---------------
13903# Portably unset VAR.
13904as_fn_unset ()
13905{
13906 { eval $1=; unset $1;}
13907}
13908as_unset=as_fn_unset
13909# as_fn_append VAR VALUE
13910# ----------------------
13911# Append the text in VALUE to the end of the definition contained in VAR. Take
13912# advantage of any shell optimizations that allow amortized linear growth over
13913# repeated appends, instead of the typical quadratic growth present in naive
13914# implementations.
13915if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13916 eval 'as_fn_append ()
13917 {
13918 eval $1+=\$2
13919 }'
13920else
13921 as_fn_append ()
13922 {
13923 eval $1=\$$1\$2
13924 }
13925fi # as_fn_append
13926
13927# as_fn_arith ARG...
13928# ------------------
13929# Perform arithmetic evaluation on the ARGs, and store the result in the
13930# global $as_val. Take advantage of shells that can avoid forks. The arguments
13931# must be portable across $(()) and expr.
13932if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13933 eval 'as_fn_arith ()
13934 {
13935 as_val=$(( $* ))
13936 }'
13937else
13938 as_fn_arith ()
13939 {
13940 as_val=`expr "$@" || test $? -eq 1`
13941 }
13942fi # as_fn_arith
13943
b57f37fb 13944
042acc47
WP
13945if expr a : '\(a\)' >/dev/null 2>&1 &&
13946 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13947 as_expr=expr
13948else
13949 as_expr=false
b57f37fb
WP
13950fi
13951
042acc47
WP
13952if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13953 as_basename=basename
13954else
13955 as_basename=false
13956fi
b57f37fb 13957
042acc47
WP
13958if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13959 as_dirname=dirname
b57f37fb 13960else
042acc47 13961 as_dirname=false
b57f37fb
WP
13962fi
13963
042acc47
WP
13964as_me=`$as_basename -- "$0" ||
13965$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13966 X"$0" : 'X\(//\)$' \| \
13967 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13968$as_echo X/"$0" |
13969 sed '/^.*\/\([^/][^/]*\)\/*$/{
13970 s//\1/
13971 q
13972 }
13973 /^X\/\(\/\/\)$/{
13974 s//\1/
13975 q
13976 }
13977 /^X\/\(\/\).*/{
13978 s//\1/
13979 q
13980 }
13981 s/.*/./; q'`
b57f37fb 13982
042acc47
WP
13983# Avoid depending upon Character Ranges.
13984as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13985as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13986as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13987as_cr_digits='0123456789'
13988as_cr_alnum=$as_cr_Letters$as_cr_digits
b57f37fb 13989
042acc47
WP
13990ECHO_C= ECHO_N= ECHO_T=
13991case `echo -n x` in #(((((
13992-n*)
13993 case `echo 'xy\c'` in
13994 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13995 xy) ECHO_C='\c';;
13996 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13997 ECHO_T=' ';;
13998 esac;;
13999*)
14000 ECHO_N='-n';;
14001esac
14002
14003rm -f conf$$ conf$$.exe conf$$.file
14004if test -d conf$$.dir; then
14005 rm -f conf$$.dir/conf$$.file
b57f37fb 14006else
042acc47
WP
14007 rm -f conf$$.dir
14008 mkdir conf$$.dir 2>/dev/null
b57f37fb 14009fi
042acc47
WP
14010if (echo >conf$$.file) 2>/dev/null; then
14011 if ln -s conf$$.file conf$$ 2>/dev/null; then
14012 as_ln_s='ln -s'
14013 # ... but there are two gotchas:
14014 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14015 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14016 # In both cases, we have to default to `cp -p'.
14017 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14018 as_ln_s='cp -p'
14019 elif ln conf$$.file conf$$ 2>/dev/null; then
14020 as_ln_s=ln
14021 else
14022 as_ln_s='cp -p'
14023 fi
b57f37fb 14024else
042acc47
WP
14025 as_ln_s='cp -p'
14026fi
14027rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14028rmdir conf$$.dir 2>/dev/null
14029
14030
14031# as_fn_mkdir_p
14032# -------------
14033# Create "$as_dir" as a directory, including parents if necessary.
14034as_fn_mkdir_p ()
b57f37fb 14035{
b57f37fb 14036
042acc47
WP
14037 case $as_dir in #(
14038 -*) as_dir=./$as_dir;;
14039 esac
14040 test -d "$as_dir" || eval $as_mkdir_p || {
14041 as_dirs=
14042 while :; do
14043 case $as_dir in #(
14044 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14045 *) as_qdir=$as_dir;;
14046 esac
14047 as_dirs="'$as_qdir' $as_dirs"
14048 as_dir=`$as_dirname -- "$as_dir" ||
14049$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14050 X"$as_dir" : 'X\(//\)[^/]' \| \
14051 X"$as_dir" : 'X\(//\)$' \| \
14052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14053$as_echo X"$as_dir" |
14054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14055 s//\1/
14056 q
14057 }
14058 /^X\(\/\/\)[^/].*/{
14059 s//\1/
14060 q
14061 }
14062 /^X\(\/\/\)$/{
14063 s//\1/
14064 q
14065 }
14066 /^X\(\/\).*/{
14067 s//\1/
14068 q
14069 }
14070 s/.*/./; q'`
14071 test -d "$as_dir" && break
14072 done
14073 test -z "$as_dirs" || eval "mkdir $as_dirs"
14074 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14075
14076
14077} # as_fn_mkdir_p
14078if mkdir -p . 2>/dev/null; then
14079 as_mkdir_p='mkdir -p "$as_dir"'
14080else
14081 test -d ./-p && rmdir ./-p
14082 as_mkdir_p=false
b57f37fb 14083fi
042acc47
WP
14084
14085if test -x / >/dev/null 2>&1; then
14086 as_test_x='test -x'
14087else
14088 if ls -dL / >/dev/null 2>&1; then
14089 as_ls_L_option=L
14090 else
14091 as_ls_L_option=
14092 fi
14093 as_test_x='
14094 eval sh -c '\''
14095 if test -d "$1"; then
14096 test -d "$1/.";
14097 else
14098 case $1 in #(
14099 -*)set "./$1";;
14100 esac;
14101 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14102 ???[sx]*):;;*)false;;esac;fi
14103 '\'' sh
14104 '
b57f37fb 14105fi
042acc47 14106as_executable_p=$as_test_x
b57f37fb 14107
042acc47
WP
14108# Sed expression to map a string onto a valid CPP name.
14109as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb 14110
042acc47
WP
14111# Sed expression to map a string onto a valid variable name.
14112as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b57f37fb 14113
b57f37fb 14114
042acc47
WP
14115exec 6>&1
14116## ----------------------------------- ##
14117## Main body of $CONFIG_STATUS script. ##
14118## ----------------------------------- ##
14119_ASEOF
14120test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b57f37fb 14121
042acc47
WP
14122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14123# Save the log message, to keep $0 and so on meaningful, and to
14124# report actual input values of CONFIG_FILES etc. instead of their
14125# values after options handling.
14126ac_log="
14127This file was extended by libratbox $as_me devel, which was
14128generated by GNU Autoconf 2.64. Invocation command line was
b57f37fb 14129
042acc47
WP
14130 CONFIG_FILES = $CONFIG_FILES
14131 CONFIG_HEADERS = $CONFIG_HEADERS
14132 CONFIG_LINKS = $CONFIG_LINKS
14133 CONFIG_COMMANDS = $CONFIG_COMMANDS
14134 $ $0 $@
14135
14136on `(hostname || uname -n) 2>/dev/null | sed 1q`
14137"
b57f37fb 14138
b57f37fb 14139_ACEOF
042acc47
WP
14140
14141case $ac_config_files in *"
14142"*) set x $ac_config_files; shift; ac_config_files=$*;;
b57f37fb 14143esac
b57f37fb 14144
042acc47
WP
14145case $ac_config_headers in *"
14146"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14147esac
b57f37fb 14148
b57f37fb 14149
042acc47
WP
14150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14151# Files that config.status was made for.
14152config_files="$ac_config_files"
14153config_headers="$ac_config_headers"
14154config_commands="$ac_config_commands"
b57f37fb 14155
b57f37fb 14156_ACEOF
b57f37fb 14157
042acc47
WP
14158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159ac_cs_usage="\
14160\`$as_me' instantiates files and other configuration actions
14161from templates according to the current configuration. Unless the files
14162and actions are specified as TAGs, all are instantiated by default.
14163
14164Usage: $0 [OPTION]... [TAG]...
14165
14166 -h, --help print this help, then exit
14167 -V, --version print version number and configuration settings, then exit
14168 -q, --quiet, --silent
14169 do not print progress messages
14170 -d, --debug don't remove temporary files
14171 --recheck update $as_me by reconfiguring in the same conditions
14172 --file=FILE[:TEMPLATE]
14173 instantiate the configuration file FILE
14174 --header=FILE[:TEMPLATE]
14175 instantiate the configuration header FILE
14176
14177Configuration files:
14178$config_files
14179
14180Configuration headers:
14181$config_headers
14182
14183Configuration commands:
14184$config_commands
14185
14186Report bugs to the package provider."
14187
b57f37fb 14188_ACEOF
042acc47
WP
14189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14190ac_cs_version="\\
14191libratbox config.status devel
14192configured by $0, generated by GNU Autoconf 2.64,
14193 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b57f37fb 14194
042acc47
WP
14195Copyright (C) 2009 Free Software Foundation, Inc.
14196This config.status script is free software; the Free Software Foundation
14197gives unlimited permission to copy, distribute and modify it."
b57f37fb 14198
042acc47
WP
14199ac_pwd='$ac_pwd'
14200srcdir='$srcdir'
14201INSTALL='$INSTALL'
14202MKDIR_P='$MKDIR_P'
14203AWK='$AWK'
14204test -n "\$AWK" || AWK=awk
14205_ACEOF
b57f37fb 14206
042acc47
WP
14207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14208# The default lists apply if the user does not specify any file.
14209ac_need_defaults=:
14210while test $# != 0
14211do
14212 case $1 in
14213 --*=*)
14214 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14215 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14216 ac_shift=:
14217 ;;
14218 *)
14219 ac_option=$1
14220 ac_optarg=$2
14221 ac_shift=shift
14222 ;;
14223 esac
14224
14225 case $ac_option in
14226 # Handling of the options.
14227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14228 ac_cs_recheck=: ;;
14229 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14230 $as_echo "$ac_cs_version"; exit ;;
14231 --debug | --debu | --deb | --de | --d | -d )
14232 debug=: ;;
14233 --file | --fil | --fi | --f )
14234 $ac_shift
14235 case $ac_optarg in
14236 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14237 esac
14238 as_fn_append CONFIG_FILES " '$ac_optarg'"
14239 ac_need_defaults=false;;
14240 --header | --heade | --head | --hea )
14241 $ac_shift
14242 case $ac_optarg in
14243 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14244 esac
14245 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14246 ac_need_defaults=false;;
14247 --he | --h)
14248 # Conflict between --help and --header
14249 as_fn_error "ambiguous option: \`$1'
14250Try \`$0 --help' for more information.";;
14251 --help | --hel | -h )
14252 $as_echo "$ac_cs_usage"; exit ;;
14253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14254 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14255 ac_cs_silent=: ;;
14256
14257 # This is an error.
14258 -*) as_fn_error "unrecognized option: \`$1'
14259Try \`$0 --help' for more information." ;;
14260
14261 *) as_fn_append ac_config_targets " $1"
14262 ac_need_defaults=false ;;
14263
14264 esac
14265 shift
14266done
b57f37fb 14267
042acc47 14268ac_configure_extra_args=
033be687 14269
042acc47
WP
14270if $ac_cs_silent; then
14271 exec 6>/dev/null
14272 ac_configure_extra_args="$ac_configure_extra_args --silent"
14273fi
033be687 14274
042acc47
WP
14275_ACEOF
14276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14277if \$ac_cs_recheck; then
14278 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14279 shift
14280 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14281 CONFIG_SHELL='$SHELL'
14282 export CONFIG_SHELL
14283 exec "\$@"
033be687
VY
14284fi
14285
042acc47
WP
14286_ACEOF
14287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14288exec 5>>config.log
14289{
14290 echo
14291 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14292## Running $as_me. ##
14293_ASBOX
14294 $as_echo "$ac_log"
14295} >&5
033be687 14296
042acc47
WP
14297_ACEOF
14298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14299#
14300# INIT-COMMANDS
14301#
14302AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
033be687
VY
14303
14304
042acc47
WP
14305# The HP-UX ksh and POSIX shell print the target directory to stdout
14306# if CDPATH is set.
14307(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14308
14309sed_quote_subst='$sed_quote_subst'
14310double_quote_subst='$double_quote_subst'
14311delay_variable_subst='$delay_variable_subst'
14312enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14313enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14314macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14315macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14316pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14317enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14318host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14319host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14320host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14321build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14322build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14323build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14324SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14325Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14326GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14327EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14328FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14329LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14330NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14331LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14332max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14333ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14334exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14335lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14336lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14337lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14338reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14339reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14340OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14341deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14342file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14343AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14344AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14345STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14346RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14347old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14348old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14349old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14350CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14351CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14352compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14353GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14354lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14355lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14356lt_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"`'
14357lt_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"`'
14358objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14359SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14360ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14361MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14362lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14363lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14364lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14365lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14366lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14367need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14368DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14369NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14370LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14371OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14372OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14373libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14374shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14375extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14376archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14377enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14378export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14379whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14380compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14381old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14382old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14383archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14384archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14385module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14386module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14387with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14388allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14389no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14390hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14391hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14392hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14393hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14394hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14395hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14396hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14397hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14398inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14399link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14400fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14401always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14402export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14403exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14404include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14405prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14406file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14407variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14408need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14409need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14410version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14411runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14412shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14413shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14414libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14415library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14416soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14417postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14418postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14419finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14420finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14421hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14422sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14423sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14424hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14425enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14426enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14427enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14428old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14429striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14430
14431LTCC='$LTCC'
14432LTCFLAGS='$LTCFLAGS'
14433compiler='$compiler_DEFAULT'
14434
14435# Quote evaled strings.
14436for var in SED \
14437GREP \
14438EGREP \
14439FGREP \
14440LD \
14441NM \
14442LN_S \
14443lt_SP2NL \
14444lt_NL2SP \
14445reload_flag \
14446OBJDUMP \
14447deplibs_check_method \
14448file_magic_cmd \
14449AR \
14450AR_FLAGS \
14451STRIP \
14452RANLIB \
14453CC \
14454CFLAGS \
14455compiler \
14456lt_cv_sys_global_symbol_pipe \
14457lt_cv_sys_global_symbol_to_cdecl \
14458lt_cv_sys_global_symbol_to_c_name_address \
14459lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14460SHELL \
14461ECHO \
14462lt_prog_compiler_no_builtin_flag \
14463lt_prog_compiler_wl \
14464lt_prog_compiler_pic \
14465lt_prog_compiler_static \
14466lt_cv_prog_compiler_c_o \
14467need_locks \
14468DSYMUTIL \
14469NMEDIT \
14470LIPO \
14471OTOOL \
14472OTOOL64 \
14473shrext_cmds \
14474export_dynamic_flag_spec \
14475whole_archive_flag_spec \
14476compiler_needs_object \
14477with_gnu_ld \
14478allow_undefined_flag \
14479no_undefined_flag \
14480hardcode_libdir_flag_spec \
14481hardcode_libdir_flag_spec_ld \
14482hardcode_libdir_separator \
14483fix_srcfile_path \
14484exclude_expsyms \
14485include_expsyms \
14486file_list_spec \
14487variables_saved_for_relink \
14488libname_spec \
14489library_names_spec \
14490soname_spec \
14491finish_eval \
14492old_striplib \
14493striplib; do
14494 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14495 *[\\\\\\\`\\"\\\$]*)
14496 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14497 ;;
14498 *)
14499 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14500 ;;
14501 esac
033be687 14502done
042acc47
WP
14503
14504# Double-quote double-evaled strings.
14505for var in reload_cmds \
14506old_postinstall_cmds \
14507old_postuninstall_cmds \
14508old_archive_cmds \
14509extract_expsyms_cmds \
14510old_archive_from_new_cmds \
14511old_archive_from_expsyms_cmds \
14512archive_cmds \
14513archive_expsym_cmds \
14514module_cmds \
14515module_expsym_cmds \
14516export_symbols_cmds \
14517prelink_cmds \
14518postinstall_cmds \
14519postuninstall_cmds \
14520finish_cmds \
14521sys_lib_search_path_spec \
14522sys_lib_dlsearch_path_spec; do
14523 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14524 *[\\\\\\\`\\"\\\$]*)
14525 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14526 ;;
14527 *)
14528 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14529 ;;
14530 esac
033be687 14531done
033be687 14532
042acc47
WP
14533# Fix-up fallback echo if it was mangled by the above quoting rules.
14534case \$lt_ECHO in
14535*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
033be687
VY
14536 ;;
14537esac
033be687 14538
042acc47
WP
14539ac_aux_dir='$ac_aux_dir'
14540xsi_shell='$xsi_shell'
14541lt_shell_append='$lt_shell_append'
033be687 14542
042acc47
WP
14543# See if we are running on zsh, and set the options which allow our
14544# commands through without removal of \ escapes INIT.
14545if test -n "\${ZSH_VERSION+set}" ; then
14546 setopt NO_GLOB_SUBST
033be687 14547fi
033be687 14548
033be687 14549
042acc47
WP
14550 PACKAGE='$PACKAGE'
14551 VERSION='$VERSION'
14552 TIMESTAMP='$TIMESTAMP'
14553 RM='$RM'
14554 ofile='$ofile'
033be687 14555
033be687 14556
033be687 14557
033be687 14558
042acc47
WP
14559 if test x$ac_cv_header_stdc = xyes; then
14560 rb_header_stdc=yes
14561 fi
14562 if test x$ac_cv_header_stdlib_h = xyes; then
14563 rb_header_stdlib_h=yes
14564 fi
14565 if test x$ac_cv_header_string_h = xyes; then
14566 rb_header_string_h=yes
14567 fi
14568 if test x$ac_cv_header_memory_h = xyes; then
14569 rb_header_memory_h=yes
14570 fi
14571 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
14572 rb_alloca_h="$ac_cv_working_alloca_h"
14573 else
14574 rb_alloc_h="$ac_cv_header_alloca_h"
14575 fi
14576 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
14577 rb_sockaddr_sa_len=yes
14578 fi
14579 if test x$ac_cv_header_sys_socket_h = xyes; then
14580 rb_sys_socket_h=yes
14581 fi
14582 if test x$ac_cv_header_sys_types_h = xyes; then
14583 rb_sys_types_h=yes
14584 fi
14585 if test x$ac_cv_header_sys_stat_h = xyes; then
14586 rb_sys_stat_h=yes
14587 fi
14588 if test x$ac_cv_header_sys_time_h = xyes; then
14589 rb_sys_time_h=yes
14590 fi
14591 if test x$ac_cv_header_time = xyes; then
14592 rb_time_h=yes
14593 fi
033be687 14594
042acc47
WP
14595 if test x$ac_cv_header_stdint_h = xyes; then
14596 rb_stdint_h=yes
14597 fi
14598 if test x$ac_cv_header_inttypes_h = xyes; then
14599 rb_inttypes_h=yes
14600 fi
14601 if test x$ac_cv_header_netinet_in_h = xyes; then
14602 rb_netinet_in_h=yes
14603 fi
033be687 14604
042acc47
WP
14605 if test x$ac_cv_header_crypt_h = xyes; then
14606 rb_crypt_h=yes
14607 fi
14608 if test x$ac_cv_header_errno_h = xyes; then
14609 rb_errno_h=yes
14610 fi
14611 if test x$ac_cv_header_unistd_h = xyes; then
14612 rb_unistd_h=yes
14613 fi
14614 if test x$ac_cv_header_windows_h = xyes; then
14615 rb_windows_h=yes
14616 fi
14617 if test x$ac_cv_header_winsock2_h = xyes; then
14618 rb_winsock2_h=yes
14619 fi
033be687 14620
042acc47 14621 rb_socklen_t=$rb_socklen_t
033be687 14622
042acc47
WP
14623 if test "x$rb_have_sockaddr_storage" = "xyes"; then
14624 rb_sockaddr_storage="yes"
14625 else
14626 rb_sockaddr_storage="no"
14627 fi
033be687 14628
042acc47 14629 rb_have_ipv6="$have_v6"
033be687 14630
042acc47
WP
14631 rb_mv="$MV"
14632 rb_rm="$RM"
033be687 14633
033be687 14634
033be687 14635
b57f37fb 14636
b57f37fb 14637
033be687 14638
033be687
VY
14639_ACEOF
14640
042acc47 14641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b57f37fb 14642
042acc47
WP
14643# Handling of arguments.
14644for ac_config_target in $ac_config_targets
14645do
14646 case $ac_config_target in
14647 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
14648 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14649 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14650 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
14651 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14652 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14653 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
033be687 14654
042acc47
WP
14655 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14656 esac
14657done
033be687 14658
b57f37fb 14659
042acc47
WP
14660# If the user did not use the arguments to specify the items to instantiate,
14661# then the envvar interface is used. Set only those that are not.
14662# We use the long form for the default assignment because of an extremely
14663# bizarre bug on SunOS 4.1.3.
14664if $ac_need_defaults; then
14665 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14666 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14667 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14668fi
b57f37fb 14669
042acc47
WP
14670# Have a temporary directory for convenience. Make it in the build tree
14671# simply because there is no reason against having it here, and in addition,
14672# creating and moving files from /tmp can sometimes cause problems.
14673# Hook for its removal unless debugging.
14674# Note that there is a small window in which the directory will not be cleaned:
14675# after its creation but before its name has been assigned to `$tmp'.
14676$debug ||
14677{
14678 tmp=
14679 trap 'exit_status=$?
14680 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14681' 0
14682 trap 'as_fn_exit 1' 1 2 13 15
14683}
14684# Create a (secure) tmp directory for tmp files.
b57f37fb 14685
042acc47
WP
14686{
14687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14688 test -n "$tmp" && test -d "$tmp"
14689} ||
14690{
14691 tmp=./conf$$-$RANDOM
14692 (umask 077 && mkdir "$tmp")
14693} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
b57f37fb 14694
042acc47
WP
14695# Set up the scripts for CONFIG_FILES section.
14696# No need to generate them if there are no CONFIG_FILES.
14697# This happens for instance with `./config.status config.h'.
14698if test -n "$CONFIG_FILES"; then
b57f37fb
WP
14699
14700
042acc47
WP
14701ac_cr=`echo X | tr X '\015'`
14702# On cygwin, bash can eat \r inside `` if the user requested igncr.
14703# But we know of no other shell where ac_cr would be empty at this
14704# point, so we can use a bashism as a fallback.
14705if test "x$ac_cr" = x; then
14706 eval ac_cr=\$\'\\r\'
14707fi
14708ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14709if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14710 ac_cs_awk_cr='\r'
b57f37fb 14711else
042acc47 14712 ac_cs_awk_cr=$ac_cr
b57f37fb
WP
14713fi
14714
042acc47 14715echo 'BEGIN {' >"$tmp/subs1.awk" &&
b57f37fb
WP
14716_ACEOF
14717
b57f37fb 14718
042acc47
WP
14719{
14720 echo "cat >conf$$subs.awk <<_ACEOF" &&
14721 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14722 echo "_ACEOF"
14723} >conf$$subs.sh ||
14724 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14725ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14726ac_delim='%!_!# '
14727for ac_last_try in false false false false false :; do
14728 . ./conf$$subs.sh ||
14729 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
b57f37fb 14730
042acc47
WP
14731 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14732 if test $ac_delim_n = $ac_delim_num; then
14733 break
14734 elif $ac_last_try; then
14735 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14736 else
14737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14738 fi
14739done
14740rm -f conf$$subs.sh
b57f37fb 14741
042acc47
WP
14742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14743cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
b57f37fb 14744_ACEOF
042acc47
WP
14745sed -n '
14746h
14747s/^/S["/; s/!.*/"]=/
14748p
14749g
14750s/^[^!]*!//
14751:repl
14752t repl
14753s/'"$ac_delim"'$//
14754t delim
14755:nl
14756h
14757s/\(.\{148\}\).*/\1/
14758t more1
14759s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14760p
14761n
14762b repl
14763:more1
14764s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14765p
14766g
14767s/.\{148\}//
14768t nl
14769:delim
14770h
14771s/\(.\{148\}\).*/\1/
14772t more2
14773s/["\\]/\\&/g; s/^/"/; s/$/"/
14774p
14775b
14776:more2
14777s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14778p
14779g
14780s/.\{148\}//
14781t delim
14782' <conf$$subs.awk | sed '
14783/^[^""]/{
14784 N
14785 s/\n//
14786}
14787' >>$CONFIG_STATUS || ac_write_fail=1
14788rm -f conf$$subs.awk
14789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14790_ACAWK
14791cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14792 for (key in S) S_is_set[key] = 1
14793 FS = "\a"
b57f37fb 14794
042acc47
WP
14795}
14796{
14797 line = $ 0
14798 nfields = split(line, field, "@")
14799 substed = 0
14800 len = length(field[1])
14801 for (i = 2; i < nfields; i++) {
14802 key = field[i]
14803 keylen = length(key)
14804 if (S_is_set[key]) {
14805 value = S[key]
14806 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14807 len += length(value) + length(field[++i])
14808 substed = 1
14809 } else
14810 len += 1 + keylen
14811 }
b57f37fb 14812
042acc47
WP
14813 print line
14814}
14815
14816_ACAWK
14817_ACEOF
14818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14819if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14820 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b57f37fb 14821else
042acc47
WP
14822 cat
14823fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14824 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14825_ACEOF
b57f37fb 14826
042acc47
WP
14827# VPATH may cause trouble with some makes, so we remove $(srcdir),
14828# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14829# trailing colons and then remove the whole line if VPATH becomes empty
14830# (actually we leave an empty line to preserve line numbers).
14831if test "x$srcdir" = x.; then
14832 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14833s/:*\$(srcdir):*/:/
14834s/:*\${srcdir}:*/:/
14835s/:*@srcdir@:*/:/
14836s/^\([^=]*=[ ]*\):*/\1/
14837s/:*$//
14838s/^[^=]*=[ ]*$//
14839}'
14840fi
b57f37fb 14841
042acc47
WP
14842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14843fi # test -n "$CONFIG_FILES"
b57f37fb 14844
042acc47
WP
14845# Set up the scripts for CONFIG_HEADERS section.
14846# No need to generate them if there are no CONFIG_HEADERS.
14847# This happens for instance with `./config.status Makefile'.
14848if test -n "$CONFIG_HEADERS"; then
14849cat >"$tmp/defines.awk" <<\_ACAWK ||
14850BEGIN {
b57f37fb
WP
14851_ACEOF
14852
042acc47
WP
14853# Transform confdefs.h into an awk script `defines.awk', embedded as
14854# here-document in config.status, that substitutes the proper values into
14855# config.h.in to produce config.h.
b57f37fb 14856
042acc47
WP
14857# Create a delimiter string that does not exist in confdefs.h, to ease
14858# handling of long lines.
14859ac_delim='%!_!# '
14860for ac_last_try in false false :; do
14861 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14862 if test -z "$ac_t"; then
14863 break
14864 elif $ac_last_try; then
14865 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14866 else
14867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14868 fi
14869done
b57f37fb 14870
042acc47
WP
14871# For the awk script, D is an array of macro values keyed by name,
14872# likewise P contains macro parameters if any. Preserve backslash
14873# newline sequences.
b57f37fb 14874
042acc47
WP
14875ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14876sed -n '
14877s/.\{148\}/&'"$ac_delim"'/g
14878t rset
14879:rset
14880s/^[ ]*#[ ]*define[ ][ ]*/ /
14881t def
14882d
14883:def
14884s/\\$//
14885t bsnl
14886s/["\\]/\\&/g
14887s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14888D["\1"]=" \3"/p
14889s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14890d
14891:bsnl
14892s/["\\]/\\&/g
14893s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14894D["\1"]=" \3\\\\\\n"\\/p
14895t cont
14896s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14897t cont
14898d
14899:cont
14900n
14901s/.\{148\}/&'"$ac_delim"'/g
14902t clear
14903:clear
14904s/\\$//
14905t bsnlc
14906s/["\\]/\\&/g; s/^/"/; s/$/"/p
14907d
14908:bsnlc
14909s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14910b cont
14911' <confdefs.h | sed '
14912s/'"$ac_delim"'/"\\\
14913"/g' >>$CONFIG_STATUS || ac_write_fail=1
b57f37fb 14914
042acc47
WP
14915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14916 for (key in D) D_is_set[key] = 1
14917 FS = "\a"
14918}
14919/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14920 line = \$ 0
14921 split(line, arg, " ")
14922 if (arg[1] == "#") {
14923 defundef = arg[2]
14924 mac1 = arg[3]
14925 } else {
14926 defundef = substr(arg[1], 2)
14927 mac1 = arg[2]
14928 }
14929 split(mac1, mac2, "(") #)
14930 macro = mac2[1]
14931 prefix = substr(line, 1, index(line, defundef) - 1)
14932 if (D_is_set[macro]) {
14933 # Preserve the white space surrounding the "#".
14934 print prefix "define", macro P[macro] D[macro]
14935 next
14936 } else {
14937 # Replace #undef with comments. This is necessary, for example,
14938 # in the case of _POSIX_SOURCE, which is predefined and required
14939 # on some systems where configure will not decide to define it.
14940 if (defundef == "undef") {
14941 print "/*", prefix defundef, macro, "*/"
14942 next
14943 }
14944 }
14945}
14946{ print }
14947_ACAWK
b57f37fb 14948_ACEOF
042acc47
WP
14949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14950 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14951fi # test -n "$CONFIG_HEADERS"
b57f37fb
WP
14952
14953
042acc47
WP
14954eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14955shift
14956for ac_tag
14957do
14958 case $ac_tag in
14959 :[FHLC]) ac_mode=$ac_tag; continue;;
14960 esac
14961 case $ac_mode$ac_tag in
14962 :[FHL]*:*);;
14963 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14964 :[FH]-) ac_tag=-:-;;
14965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14966 esac
14967 ac_save_IFS=$IFS
14968 IFS=:
14969 set x $ac_tag
14970 IFS=$ac_save_IFS
14971 shift
14972 ac_file=$1
14973 shift
b57f37fb 14974
042acc47
WP
14975 case $ac_mode in
14976 :L) ac_source=$1;;
14977 :[FH])
14978 ac_file_inputs=
14979 for ac_f
14980 do
14981 case $ac_f in
14982 -) ac_f="$tmp/stdin";;
14983 *) # Look for the file first in the build tree, then in the source tree
14984 # (if the path is not absolute). The absolute path cannot be DOS-style,
14985 # because $ac_f cannot contain `:'.
14986 test -f "$ac_f" ||
14987 case $ac_f in
14988 [\\/$]*) false;;
14989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14990 esac ||
14991 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14992 esac
14993 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14994 as_fn_append ac_file_inputs " '$ac_f'"
14995 done
b57f37fb 14996
042acc47
WP
14997 # Let's still pretend it is `configure' which instantiates (i.e., don't
14998 # use $as_me), people would be surprised to read:
14999 # /* config.h. Generated by config.status. */
15000 configure_input='Generated from '`
15001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15002 `' by configure.'
15003 if test x"$ac_file" != x-; then
15004 configure_input="$ac_file. $configure_input"
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15006$as_echo "$as_me: creating $ac_file" >&6;}
15007 fi
15008 # Neutralize special characters interpreted by sed in replacement strings.
15009 case $configure_input in #(
15010 *\&* | *\|* | *\\* )
15011 ac_sed_conf_input=`$as_echo "$configure_input" |
15012 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15013 *) ac_sed_conf_input=$configure_input;;
15014 esac
b57f37fb 15015
042acc47
WP
15016 case $ac_tag in
15017 *:-:* | *:-) cat >"$tmp/stdin" \
15018 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15019 esac
15020 ;;
15021 esac
b57f37fb 15022
042acc47
WP
15023 ac_dir=`$as_dirname -- "$ac_file" ||
15024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15025 X"$ac_file" : 'X\(//\)[^/]' \| \
15026 X"$ac_file" : 'X\(//\)$' \| \
15027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15028$as_echo X"$ac_file" |
15029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15030 s//\1/
15031 q
15032 }
15033 /^X\(\/\/\)[^/].*/{
15034 s//\1/
15035 q
15036 }
15037 /^X\(\/\/\)$/{
15038 s//\1/
15039 q
15040 }
15041 /^X\(\/\).*/{
15042 s//\1/
15043 q
15044 }
15045 s/.*/./; q'`
15046 as_dir="$ac_dir"; as_fn_mkdir_p
15047 ac_builddir=.
b57f37fb 15048
042acc47
WP
15049case "$ac_dir" in
15050.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15051*)
15052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15053 # A ".." for each directory in $ac_dir_suffix.
15054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15055 case $ac_top_builddir_sub in
15056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15058 esac ;;
15059esac
15060ac_abs_top_builddir=$ac_pwd
15061ac_abs_builddir=$ac_pwd$ac_dir_suffix
15062# for backward compatibility:
15063ac_top_builddir=$ac_top_build_prefix
b57f37fb 15064
042acc47
WP
15065case $srcdir in
15066 .) # We are building in place.
15067 ac_srcdir=.
15068 ac_top_srcdir=$ac_top_builddir_sub
15069 ac_abs_top_srcdir=$ac_pwd ;;
15070 [\\/]* | ?:[\\/]* ) # Absolute name.
15071 ac_srcdir=$srcdir$ac_dir_suffix;
15072 ac_top_srcdir=$srcdir
15073 ac_abs_top_srcdir=$srcdir ;;
15074 *) # Relative name.
15075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15076 ac_top_srcdir=$ac_top_build_prefix$srcdir
15077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15078esac
15079ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b57f37fb 15080
033be687 15081
042acc47
WP
15082 case $ac_mode in
15083 :F)
15084 #
15085 # CONFIG_FILE
15086 #
b57f37fb 15087
042acc47
WP
15088 case $INSTALL in
15089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15091 esac
15092 ac_MKDIR_P=$MKDIR_P
15093 case $MKDIR_P in
15094 [\\/$]* | ?:[\\/]* ) ;;
15095 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15096 esac
b57f37fb
WP
15097_ACEOF
15098
042acc47
WP
15099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15100# If the template does not know about datarootdir, expand it.
15101# FIXME: This hack should be removed a few years after 2.60.
15102ac_datarootdir_hack=; ac_datarootdir_seen=
15103ac_sed_dataroot='
15104/datarootdir/ {
15105 p
15106 q
15107}
15108/@datadir@/p
15109/@docdir@/p
15110/@infodir@/p
15111/@localedir@/p
15112/@mandir@/p'
15113case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15114*datarootdir*) ac_datarootdir_seen=yes;;
15115*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15117$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15118_ACEOF
15119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15120 ac_datarootdir_hack='
15121 s&@datadir@&$datadir&g
15122 s&@docdir@&$docdir&g
15123 s&@infodir@&$infodir&g
15124 s&@localedir@&$localedir&g
15125 s&@mandir@&$mandir&g
15126 s&\\\${datarootdir}&$datarootdir&g' ;;
15127esac
b57f37fb
WP
15128_ACEOF
15129
042acc47
WP
15130# Neutralize VPATH when `$srcdir' = `.'.
15131# Shell code in configure.ac might set extrasub.
15132# FIXME: do we really want to maintain this feature?
15133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15134ac_sed_extra="$ac_vpsub
15135$extrasub
15136_ACEOF
15137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15138:t
15139/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15140s|@configure_input@|$ac_sed_conf_input|;t t
15141s&@top_builddir@&$ac_top_builddir_sub&;t t
15142s&@top_build_prefix@&$ac_top_build_prefix&;t t
15143s&@srcdir@&$ac_srcdir&;t t
15144s&@abs_srcdir@&$ac_abs_srcdir&;t t
15145s&@top_srcdir@&$ac_top_srcdir&;t t
15146s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15147s&@builddir@&$ac_builddir&;t t
15148s&@abs_builddir@&$ac_abs_builddir&;t t
15149s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15150s&@INSTALL@&$ac_INSTALL&;t t
15151s&@MKDIR_P@&$ac_MKDIR_P&;t t
15152$ac_datarootdir_hack
15153"
15154eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15155 || as_fn_error "could not create $ac_file" "$LINENO" 5
b57f37fb 15156
042acc47
WP
15157test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15158 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15161which seems to be undefined. Please make sure it is defined." >&5
15162$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15163which seems to be undefined. Please make sure it is defined." >&2;}
b57f37fb 15164
042acc47
WP
15165 rm -f "$tmp/stdin"
15166 case $ac_file in
15167 -) cat "$tmp/out" && rm -f "$tmp/out";;
15168 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15169 esac \
15170 || as_fn_error "could not create $ac_file" "$LINENO" 5
15171 ;;
15172 :H)
15173 #
15174 # CONFIG_HEADER
15175 #
15176 if test x"$ac_file" != x-; then
15177 {
15178 $as_echo "/* $configure_input */" \
15179 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15180 } >"$tmp/config.h" \
15181 || as_fn_error "could not create $ac_file" "$LINENO" 5
15182 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15184$as_echo "$as_me: $ac_file is unchanged" >&6;}
15185 else
15186 rm -f "$ac_file"
15187 mv "$tmp/config.h" "$ac_file" \
15188 || as_fn_error "could not create $ac_file" "$LINENO" 5
15189 fi
15190 else
15191 $as_echo "/* $configure_input */" \
15192 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15193 || as_fn_error "could not create -" "$LINENO" 5
15194 fi
15195# Compute "$ac_file"'s index in $config_headers.
15196_am_arg="$ac_file"
15197_am_stamp_count=1
15198for _am_header in $config_headers :; do
15199 case $_am_header in
15200 $_am_arg | $_am_arg:* )
15201 break ;;
15202 * )
15203 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15204 esac
15205done
15206echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15207$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15208 X"$_am_arg" : 'X\(//\)[^/]' \| \
15209 X"$_am_arg" : 'X\(//\)$' \| \
15210 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15211$as_echo X"$_am_arg" |
15212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15213 s//\1/
15214 q
15215 }
15216 /^X\(\/\/\)[^/].*/{
15217 s//\1/
15218 q
15219 }
15220 /^X\(\/\/\)$/{
15221 s//\1/
15222 q
15223 }
15224 /^X\(\/\).*/{
15225 s//\1/
15226 q
15227 }
15228 s/.*/./; q'`/stamp-h$_am_stamp_count
15229 ;;
b57f37fb 15230
042acc47
WP
15231 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15232$as_echo "$as_me: executing $ac_file commands" >&6;}
15233 ;;
15234 esac
b57f37fb 15235
b57f37fb 15236
042acc47
WP
15237 case $ac_file$ac_mode in
15238 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15239 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15240 # are listed without --file. Let's play safe and only enable the eval
15241 # if we detect the quoting.
15242 case $CONFIG_FILES in
15243 *\'*) eval set x "$CONFIG_FILES" ;;
15244 *) set x $CONFIG_FILES ;;
15245 esac
15246 shift
15247 for mf
15248 do
15249 # Strip MF so we end up with the name of the file.
15250 mf=`echo "$mf" | sed -e 's/:.*$//'`
15251 # Check whether this is an Automake generated Makefile or not.
15252 # We used to match only the files named `Makefile.in', but
15253 # some people rename them; so instead we look at the file content.
15254 # Grep'ing the first line is not enough: some people post-process
15255 # each Makefile.in and add a new line on top of each file to say so.
15256 # Grep'ing the whole file is not good either: AIX grep has a line
15257 # limit of 2048, but all sed's we know have understand at least 4000.
15258 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15259 dirpart=`$as_dirname -- "$mf" ||
15260$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15261 X"$mf" : 'X\(//\)[^/]' \| \
15262 X"$mf" : 'X\(//\)$' \| \
15263 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15264$as_echo X"$mf" |
15265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15266 s//\1/
15267 q
15268 }
15269 /^X\(\/\/\)[^/].*/{
15270 s//\1/
15271 q
15272 }
15273 /^X\(\/\/\)$/{
15274 s//\1/
15275 q
15276 }
15277 /^X\(\/\).*/{
15278 s//\1/
15279 q
15280 }
15281 s/.*/./; q'`
15282 else
15283 continue
15284 fi
15285 # Extract the definition of DEPDIR, am__include, and am__quote
15286 # from the Makefile without running `make'.
15287 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15288 test -z "$DEPDIR" && continue
15289 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15290 test -z "am__include" && continue
15291 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15292 # When using ansi2knr, U may be empty or an underscore; expand it
15293 U=`sed -n 's/^U = //p' < "$mf"`
15294 # Find all dependency output files, they are included files with
15295 # $(DEPDIR) in their names. We invoke sed twice because it is the
15296 # simplest approach to changing $(DEPDIR) to its actual value in the
15297 # expansion.
15298 for file in `sed -n "
15299 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15300 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15301 # Make sure the directory exists.
15302 test -f "$dirpart/$file" && continue
15303 fdir=`$as_dirname -- "$file" ||
15304$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15305 X"$file" : 'X\(//\)[^/]' \| \
15306 X"$file" : 'X\(//\)$' \| \
15307 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15308$as_echo X"$file" |
15309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15310 s//\1/
15311 q
15312 }
15313 /^X\(\/\/\)[^/].*/{
15314 s//\1/
15315 q
15316 }
15317 /^X\(\/\/\)$/{
15318 s//\1/
15319 q
15320 }
15321 /^X\(\/\).*/{
15322 s//\1/
15323 q
15324 }
15325 s/.*/./; q'`
15326 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15327 # echo "creating $dirpart/$file"
15328 echo '# dummy' > "$dirpart/$file"
15329 done
15330 done
15331}
15332 ;;
15333 "libtool":C)
b57f37fb 15334
042acc47
WP
15335 # See if we are running on zsh, and set the options which allow our
15336 # commands through without removal of \ escapes.
15337 if test -n "${ZSH_VERSION+set}" ; then
15338 setopt NO_GLOB_SUBST
15339 fi
033be687 15340
042acc47
WP
15341 cfgfile="${ofile}T"
15342 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15343 $RM "$cfgfile"
b57f37fb 15344
042acc47
WP
15345 cat <<_LT_EOF >> "$cfgfile"
15346#! $SHELL
b57f37fb 15347
042acc47
WP
15348# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15349# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15350# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15351# NOTE: Changes made to this file will be lost: look at ltmain.sh.
b57f37fb 15352#
042acc47
WP
15353# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15354# 2006, 2007, 2008 Free Software Foundation, Inc.
15355# Written by Gordon Matzigkeit, 1996
b57f37fb 15356#
042acc47
WP
15357# This file is part of GNU Libtool.
15358#
15359# GNU Libtool is free software; you can redistribute it and/or
15360# modify it under the terms of the GNU General Public License as
15361# published by the Free Software Foundation; either version 2 of
15362# the License, or (at your option) any later version.
15363#
15364# As a special exception to the GNU General Public License,
15365# if you distribute this file as part of a program or library that
15366# is built using GNU Libtool, you may include this file under the
15367# same distribution terms that you use for the rest of that program.
15368#
15369# GNU Libtool is distributed in the hope that it will be useful,
15370# but WITHOUT ANY WARRANTY; without even the implied warranty of
15371# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15372# GNU General Public License for more details.
15373#
15374# You should have received a copy of the GNU General Public License
15375# along with GNU Libtool; see the file COPYING. If not, a copy
15376# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15377# obtained by writing to the Free Software Foundation, Inc.,
15378# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
b57f37fb 15379
b57f37fb 15380
042acc47
WP
15381# The names of the tagged configurations supported by this script.
15382available_tags=""
b57f37fb 15383
042acc47 15384# ### BEGIN LIBTOOL CONFIG
b57f37fb 15385
042acc47
WP
15386# Whether or not to build static libraries.
15387build_old_libs=$enable_static
b57f37fb 15388
042acc47
WP
15389# Whether or not to build shared libraries.
15390build_libtool_libs=$enable_shared
b57f37fb 15391
042acc47
WP
15392# Which release of libtool.m4 was used?
15393macro_version=$macro_version
15394macro_revision=$macro_revision
b57f37fb 15395
042acc47
WP
15396# What type of objects to build.
15397pic_mode=$pic_mode
b57f37fb 15398
042acc47
WP
15399# Whether or not to optimize for fast installation.
15400fast_install=$enable_fast_install
b57f37fb 15401
042acc47
WP
15402# The host system.
15403host_alias=$host_alias
15404host=$host
15405host_os=$host_os
b57f37fb 15406
042acc47
WP
15407# The build system.
15408build_alias=$build_alias
15409build=$build
15410build_os=$build_os
b57f37fb 15411
042acc47
WP
15412# A sed program that does not truncate output.
15413SED=$lt_SED
b57f37fb 15414
042acc47
WP
15415# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15416Xsed="\$SED -e 1s/^X//"
b57f37fb 15417
042acc47
WP
15418# A grep program that handles long lines.
15419GREP=$lt_GREP
b57f37fb 15420
042acc47
WP
15421# An ERE matcher.
15422EGREP=$lt_EGREP
b57f37fb 15423
042acc47
WP
15424# A literal string matcher.
15425FGREP=$lt_FGREP
b57f37fb 15426
042acc47
WP
15427# A BSD- or MS-compatible name lister.
15428NM=$lt_NM
f030cae8 15429
042acc47
WP
15430# Whether we need soft or hard links.
15431LN_S=$lt_LN_S
b57f37fb 15432
042acc47
WP
15433# What is the maximum length of a command?
15434max_cmd_len=$max_cmd_len
b57f37fb 15435
042acc47
WP
15436# Object file suffix (normally "o").
15437objext=$ac_objext
b57f37fb 15438
042acc47
WP
15439# Executable file suffix (normally "").
15440exeext=$exeext
b57f37fb 15441
042acc47
WP
15442# whether the shell understands "unset".
15443lt_unset=$lt_unset
b57f37fb 15444
042acc47
WP
15445# turn spaces into newlines.
15446SP2NL=$lt_lt_SP2NL
b57f37fb 15447
042acc47
WP
15448# turn newlines into spaces.
15449NL2SP=$lt_lt_NL2SP
b57f37fb 15450
042acc47
WP
15451# How to create reloadable object files.
15452reload_flag=$lt_reload_flag
15453reload_cmds=$lt_reload_cmds
b57f37fb 15454
042acc47
WP
15455# An object symbol dumper.
15456OBJDUMP=$lt_OBJDUMP
b57f37fb 15457
042acc47
WP
15458# Method to check whether dependent libraries are shared objects.
15459deplibs_check_method=$lt_deplibs_check_method
b57f37fb 15460
042acc47
WP
15461# Command to use when deplibs_check_method == "file_magic".
15462file_magic_cmd=$lt_file_magic_cmd
b57f37fb 15463
042acc47
WP
15464# The archiver.
15465AR=$lt_AR
15466AR_FLAGS=$lt_AR_FLAGS
b57f37fb 15467
042acc47
WP
15468# A symbol stripping program.
15469STRIP=$lt_STRIP
b57f37fb 15470
042acc47
WP
15471# Commands used to install an old-style archive.
15472RANLIB=$lt_RANLIB
15473old_postinstall_cmds=$lt_old_postinstall_cmds
15474old_postuninstall_cmds=$lt_old_postuninstall_cmds
b57f37fb 15475
042acc47
WP
15476# A C compiler.
15477LTCC=$lt_CC
b57f37fb 15478
042acc47
WP
15479# LTCC compiler flags.
15480LTCFLAGS=$lt_CFLAGS
b57f37fb 15481
042acc47
WP
15482# Take the output of nm and produce a listing of raw symbols and C names.
15483global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
b57f37fb 15484
042acc47
WP
15485# Transform the output of nm in a proper C declaration.
15486global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
b57f37fb 15487
042acc47
WP
15488# Transform the output of nm in a C name address pair.
15489global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
b57f37fb 15490
042acc47
WP
15491# Transform the output of nm in a C name address pair when lib prefix is needed.
15492global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
b57f37fb 15493
042acc47
WP
15494# The name of the directory that contains temporary libtool files.
15495objdir=$objdir
b57f37fb 15496
042acc47
WP
15497# Shell to use when invoking shell scripts.
15498SHELL=$lt_SHELL
b57f37fb 15499
042acc47
WP
15500# An echo program that does not interpret backslashes.
15501ECHO=$lt_ECHO
b57f37fb 15502
042acc47
WP
15503# Used to examine libraries when file_magic_cmd begins with "file".
15504MAGIC_CMD=$MAGIC_CMD
15505
15506# Must we lock files when doing compilation?
15507need_locks=$lt_need_locks
b57f37fb 15508
042acc47
WP
15509# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15510DSYMUTIL=$lt_DSYMUTIL
b57f37fb 15511
042acc47
WP
15512# Tool to change global to local symbols on Mac OS X.
15513NMEDIT=$lt_NMEDIT
b57f37fb 15514
042acc47
WP
15515# Tool to manipulate fat objects and archives on Mac OS X.
15516LIPO=$lt_LIPO
b57f37fb 15517
042acc47
WP
15518# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15519OTOOL=$lt_OTOOL
b57f37fb 15520
042acc47
WP
15521# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15522OTOOL64=$lt_OTOOL64
b57f37fb 15523
042acc47
WP
15524# Old archive suffix (normally "a").
15525libext=$libext
b57f37fb 15526
042acc47
WP
15527# Shared library suffix (normally ".so").
15528shrext_cmds=$lt_shrext_cmds
b57f37fb 15529
042acc47
WP
15530# The commands to extract the exported symbol list from a shared archive.
15531extract_expsyms_cmds=$lt_extract_expsyms_cmds
b57f37fb 15532
042acc47
WP
15533# Variables whose values should be saved in libtool wrapper scripts and
15534# restored at link time.
15535variables_saved_for_relink=$lt_variables_saved_for_relink
f030cae8 15536
042acc47
WP
15537# Do we need the "lib" prefix for modules?
15538need_lib_prefix=$need_lib_prefix
f030cae8 15539
042acc47
WP
15540# Do we need a version for libraries?
15541need_version=$need_version
f030cae8 15542
042acc47
WP
15543# Library versioning type.
15544version_type=$version_type
b57f37fb 15545
042acc47
WP
15546# Shared library runtime path variable.
15547runpath_var=$runpath_var
b57f37fb 15548
042acc47
WP
15549# Shared library path variable.
15550shlibpath_var=$shlibpath_var
b57f37fb 15551
042acc47
WP
15552# Is shlibpath searched before the hard-coded library search path?
15553shlibpath_overrides_runpath=$shlibpath_overrides_runpath
b57f37fb 15554
042acc47
WP
15555# Format of library name prefix.
15556libname_spec=$lt_libname_spec
b57f37fb 15557
042acc47
WP
15558# List of archive names. First name is the real one, the rest are links.
15559# The last name is the one that the linker finds with -lNAME
15560library_names_spec=$lt_library_names_spec
b57f37fb 15561
042acc47
WP
15562# The coded name of the library, if different from the real name.
15563soname_spec=$lt_soname_spec
b57f37fb 15564
042acc47
WP
15565# Command to use after installation of a shared archive.
15566postinstall_cmds=$lt_postinstall_cmds
b57f37fb 15567
042acc47
WP
15568# Command to use after uninstallation of a shared archive.
15569postuninstall_cmds=$lt_postuninstall_cmds
b57f37fb 15570
042acc47
WP
15571# Commands used to finish a libtool library installation in a directory.
15572finish_cmds=$lt_finish_cmds
b57f37fb 15573
042acc47
WP
15574# As "finish_cmds", except a single script fragment to be evaled but
15575# not shown.
15576finish_eval=$lt_finish_eval
b57f37fb 15577
042acc47
WP
15578# Whether we should hardcode library paths into libraries.
15579hardcode_into_libs=$hardcode_into_libs
b57f37fb 15580
042acc47
WP
15581# Compile-time system search path for libraries.
15582sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
b57f37fb 15583
042acc47
WP
15584# Run-time system search path for libraries.
15585sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
b57f37fb 15586
042acc47
WP
15587# Whether dlopen is supported.
15588dlopen_support=$enable_dlopen
b57f37fb 15589
042acc47
WP
15590# Whether dlopen of programs is supported.
15591dlopen_self=$enable_dlopen_self
b57f37fb 15592
042acc47
WP
15593# Whether dlopen of statically linked programs is supported.
15594dlopen_self_static=$enable_dlopen_self_static
b57f37fb 15595
042acc47
WP
15596# Commands to strip libraries.
15597old_striplib=$lt_old_striplib
15598striplib=$lt_striplib
b57f37fb 15599
b57f37fb 15600
042acc47
WP
15601# The linker used to build libraries.
15602LD=$lt_LD
b57f37fb 15603
042acc47
WP
15604# Commands used to build an old-style archive.
15605old_archive_cmds=$lt_old_archive_cmds
b57f37fb 15606
042acc47
WP
15607# A language specific compiler.
15608CC=$lt_compiler
b57f37fb 15609
042acc47
WP
15610# Is the compiler the GNU compiler?
15611with_gcc=$GCC
b57f37fb 15612
042acc47
WP
15613# Compiler flag to turn off builtin functions.
15614no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
b57f37fb 15615
042acc47
WP
15616# How to pass a linker flag through the compiler.
15617wl=$lt_lt_prog_compiler_wl
15618
15619# Additional compiler flags for building library objects.
15620pic_flag=$lt_lt_prog_compiler_pic
15621
15622# Compiler flag to prevent dynamic linking.
15623link_static_flag=$lt_lt_prog_compiler_static
15624
15625# Does compiler simultaneously support -c and -o options?
15626compiler_c_o=$lt_lt_cv_prog_compiler_c_o
4414eb3c 15627
042acc47
WP
15628# Whether or not to add -lc for building shared libraries.
15629build_libtool_need_lc=$archive_cmds_need_lc
4414eb3c 15630
042acc47
WP
15631# Whether or not to disallow shared libs when runtime libs are static.
15632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
b57f37fb 15633
042acc47
WP
15634# Compiler flag to allow reflexive dlopens.
15635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
b57f37fb 15636
042acc47
WP
15637# Compiler flag to generate shared objects directly from archives.
15638whole_archive_flag_spec=$lt_whole_archive_flag_spec
b57f37fb 15639
042acc47
WP
15640# Whether the compiler copes with passing no objects directly.
15641compiler_needs_object=$lt_compiler_needs_object
b57f37fb 15642
042acc47
WP
15643# Create an old-style archive from a shared archive.
15644old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
b57f37fb 15645
042acc47
WP
15646# Create a temporary old-style archive to link instead of a shared archive.
15647old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
b57f37fb 15648
042acc47
WP
15649# Commands used to build a shared archive.
15650archive_cmds=$lt_archive_cmds
15651archive_expsym_cmds=$lt_archive_expsym_cmds
b57f37fb 15652
042acc47
WP
15653# Commands used to build a loadable module if different from building
15654# a shared archive.
15655module_cmds=$lt_module_cmds
15656module_expsym_cmds=$lt_module_expsym_cmds
b57f37fb 15657
042acc47
WP
15658# Whether we are building with GNU ld or not.
15659with_gnu_ld=$lt_with_gnu_ld
b57f37fb 15660
042acc47
WP
15661# Flag that allows shared libraries with undefined symbols to be built.
15662allow_undefined_flag=$lt_allow_undefined_flag
b57f37fb 15663
042acc47
WP
15664# Flag that enforces no undefined symbols.
15665no_undefined_flag=$lt_no_undefined_flag
b57f37fb 15666
042acc47
WP
15667# Flag to hardcode \$libdir into a binary during linking.
15668# This must work even if \$libdir does not exist
15669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
b57f37fb 15670
042acc47
WP
15671# If ld is used when linking, flag to hardcode \$libdir into a binary
15672# during linking. This must work even if \$libdir does not exist.
15673hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
b57f37fb 15674
042acc47
WP
15675# Whether we need a single "-rpath" flag with a separated argument.
15676hardcode_libdir_separator=$lt_hardcode_libdir_separator
b57f37fb 15677
042acc47
WP
15678# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15679# DIR into the resulting binary.
15680hardcode_direct=$hardcode_direct
b57f37fb 15681
042acc47
WP
15682# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15683# DIR into the resulting binary and the resulting library dependency is
15684# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15685# library is relocated.
15686hardcode_direct_absolute=$hardcode_direct_absolute
b57f37fb 15687
042acc47
WP
15688# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15689# into the resulting binary.
15690hardcode_minus_L=$hardcode_minus_L
b57f37fb 15691
042acc47
WP
15692# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15693# into the resulting binary.
15694hardcode_shlibpath_var=$hardcode_shlibpath_var
b57f37fb 15695
042acc47
WP
15696# Set to "yes" if building a shared library automatically hardcodes DIR
15697# into the library and all subsequent libraries and executables linked
15698# against it.
15699hardcode_automatic=$hardcode_automatic
b57f37fb 15700
042acc47
WP
15701# Set to yes if linker adds runtime paths of dependent libraries
15702# to runtime path list.
15703inherit_rpath=$inherit_rpath
b57f37fb 15704
042acc47
WP
15705# Whether libtool must link a program against all its dependency libraries.
15706link_all_deplibs=$link_all_deplibs
b57f37fb 15707
042acc47
WP
15708# Fix the shell variable \$srcfile for the compiler.
15709fix_srcfile_path=$lt_fix_srcfile_path
f030cae8 15710
042acc47
WP
15711# Set to "yes" if exported symbols are required.
15712always_export_symbols=$always_export_symbols
f030cae8 15713
042acc47
WP
15714# The commands to list exported symbols.
15715export_symbols_cmds=$lt_export_symbols_cmds
b57f37fb 15716
042acc47
WP
15717# Symbols that should not be listed in the preloaded symbols.
15718exclude_expsyms=$lt_exclude_expsyms
f030cae8 15719
042acc47
WP
15720# Symbols that must always be exported.
15721include_expsyms=$lt_include_expsyms
b57f37fb 15722
042acc47
WP
15723# Commands necessary for linking programs (against libraries) with templates.
15724prelink_cmds=$lt_prelink_cmds
b57f37fb 15725
042acc47
WP
15726# Specify filename containing input files.
15727file_list_spec=$lt_file_list_spec
b57f37fb 15728
042acc47
WP
15729# How to hardcode a shared library path into an executable.
15730hardcode_action=$hardcode_action
b57f37fb 15731
042acc47 15732# ### END LIBTOOL CONFIG
f030cae8 15733
042acc47
WP
15734_LT_EOF
15735
15736 case $host_os in
15737 aix3*)
15738 cat <<\_LT_EOF >> "$cfgfile"
15739# AIX sometimes has problems with the GCC collect2 program. For some
15740# reason, if we set the COLLECT_NAMES environment variable, the problems
15741# vanish in a puff of smoke.
15742if test "X${COLLECT_NAMES+set}" != Xset; then
15743 COLLECT_NAMES=
15744 export COLLECT_NAMES
15745fi
15746_LT_EOF
15747 ;;
15748 esac
f030cae8 15749
f030cae8 15750
042acc47 15751ltmain="$ac_aux_dir/ltmain.sh"
f030cae8 15752
f030cae8 15753
042acc47
WP
15754 # We use sed instead of cat because bash on DJGPP gets confused if
15755 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15756 # text mode, it properly converts lines to CR/LF. This bash problem
15757 # is reportedly fixed, but why not run on old versions too?
15758 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15759 || (rm -f "$cfgfile"; exit 1)
f030cae8 15760
042acc47
WP
15761 case $xsi_shell in
15762 yes)
15763 cat << \_LT_EOF >> "$cfgfile"
b57f37fb 15764
042acc47
WP
15765# func_dirname file append nondir_replacement
15766# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15767# otherwise set result to NONDIR_REPLACEMENT.
15768func_dirname ()
15769{
15770 case ${1} in
15771 */*) func_dirname_result="${1%/*}${2}" ;;
15772 * ) func_dirname_result="${3}" ;;
b57f37fb 15773 esac
042acc47
WP
15774}
15775
15776# func_basename file
15777func_basename ()
15778{
15779 func_basename_result="${1##*/}"
15780}
15781
15782# func_dirname_and_basename file append nondir_replacement
15783# perform func_basename and func_dirname in a single function
15784# call:
15785# dirname: Compute the dirname of FILE. If nonempty,
15786# add APPEND to the result, otherwise set result
15787# to NONDIR_REPLACEMENT.
15788# value returned in "$func_dirname_result"
15789# basename: Compute filename of FILE.
15790# value retuned in "$func_basename_result"
15791# Implementation must be kept synchronized with func_dirname
15792# and func_basename. For efficiency, we do not delegate to
15793# those functions but instead duplicate the functionality here.
15794func_dirname_and_basename ()
15795{
15796 case ${1} in
15797 */*) func_dirname_result="${1%/*}${2}" ;;
15798 * ) func_dirname_result="${3}" ;;
b57f37fb 15799 esac
042acc47
WP
15800 func_basename_result="${1##*/}"
15801}
b57f37fb 15802
042acc47
WP
15803# func_stripname prefix suffix name
15804# strip PREFIX and SUFFIX off of NAME.
15805# PREFIX and SUFFIX must not contain globbing or regex special
15806# characters, hashes, percent signs, but SUFFIX may contain a leading
15807# dot (in which case that matches only a dot).
15808func_stripname ()
15809{
15810 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15811 # positional parameters, so assign one to ordinary parameter first.
15812 func_stripname_result=${3}
15813 func_stripname_result=${func_stripname_result#"${1}"}
15814 func_stripname_result=${func_stripname_result%"${2}"}
15815}
b57f37fb 15816
042acc47
WP
15817# func_opt_split
15818func_opt_split ()
15819{
15820 func_opt_split_opt=${1%%=*}
15821 func_opt_split_arg=${1#*=}
15822}
b57f37fb 15823
042acc47
WP
15824# func_lo2o object
15825func_lo2o ()
15826{
15827 case ${1} in
15828 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15829 *) func_lo2o_result=${1} ;;
b57f37fb 15830 esac
042acc47 15831}
b57f37fb 15832
042acc47
WP
15833# func_xform libobj-or-source
15834func_xform ()
15835{
15836 func_xform_result=${1%.*}.lo
15837}
b57f37fb 15838
042acc47
WP
15839# func_arith arithmetic-term...
15840func_arith ()
15841{
15842 func_arith_result=$(( $* ))
15843}
b57f37fb 15844
042acc47
WP
15845# func_len string
15846# STRING may not start with a hyphen.
15847func_len ()
15848{
15849 func_len_result=${#1}
15850}
15851
15852_LT_EOF
15853 ;;
15854 *) # Bourne compatible functions.
15855 cat << \_LT_EOF >> "$cfgfile"
15856
15857# func_dirname file append nondir_replacement
15858# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15859# otherwise set result to NONDIR_REPLACEMENT.
15860func_dirname ()
15861{
15862 # Extract subdirectory from the argument.
15863 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15864 if test "X$func_dirname_result" = "X${1}"; then
15865 func_dirname_result="${3}"
15866 else
15867 func_dirname_result="$func_dirname_result${2}"
15868 fi
15869}
b57f37fb 15870
042acc47
WP
15871# func_basename file
15872func_basename ()
15873{
15874 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15875}
b57f37fb 15876
b57f37fb 15877
042acc47
WP
15878# func_stripname prefix suffix name
15879# strip PREFIX and SUFFIX off of NAME.
15880# PREFIX and SUFFIX must not contain globbing or regex special
15881# characters, hashes, percent signs, but SUFFIX may contain a leading
15882# dot (in which case that matches only a dot).
15883# func_strip_suffix prefix name
15884func_stripname ()
15885{
15886 case ${2} in
15887 .*) func_stripname_result=`$ECHO "X${3}" \
15888 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15889 *) func_stripname_result=`$ECHO "X${3}" \
15890 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
b57f37fb 15891 esac
042acc47 15892}
b57f37fb 15893
042acc47
WP
15894# sed scripts:
15895my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15896my_sed_long_arg='1s/^-[^=]*=//'
b57f37fb 15897
042acc47
WP
15898# func_opt_split
15899func_opt_split ()
15900{
15901 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15902 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
b57f37fb 15903}
042acc47
WP
15904
15905# func_lo2o object
15906func_lo2o ()
15907{
15908 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15909}
15910
15911# func_xform libobj-or-source
15912func_xform ()
15913{
15914 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15915}
15916
15917# func_arith arithmetic-term...
15918func_arith ()
15919{
15920 func_arith_result=`expr "$@"`
15921}
15922
15923# func_len string
15924# STRING may not start with a hyphen.
15925func_len ()
15926{
15927 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15928}
15929
15930_LT_EOF
b57f37fb 15931esac
b57f37fb 15932
042acc47
WP
15933case $lt_shell_append in
15934 yes)
15935 cat << \_LT_EOF >> "$cfgfile"
b57f37fb 15936
042acc47
WP
15937# func_append var value
15938# Append VALUE to the end of shell variable VAR.
15939func_append ()
15940{
15941 eval "$1+=\$2"
15942}
15943_LT_EOF
15944 ;;
15945 *)
15946 cat << \_LT_EOF >> "$cfgfile"
b57f37fb 15947
042acc47
WP
15948# func_append var value
15949# Append VALUE to the end of shell variable VAR.
15950func_append ()
15951{
15952 eval "$1=\$$1\$2"
15953}
b57f37fb 15954
042acc47
WP
15955_LT_EOF
15956 ;;
b57f37fb
WP
15957 esac
15958
15959
042acc47
WP
15960 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15961 || (rm -f "$cfgfile"; exit 1)
15962
15963 mv -f "$cfgfile" "$ofile" ||
15964 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15965 chmod +x "$ofile"
15966
b57f37fb
WP
15967 ;;
15968 "include/librb-config.h":C)
15969 outfile=include/librb-config.h.tmp
15970 cat > $outfile <<\_______EOF
15971/*
15972 * librb-config.h: libratbox config file. Please modify configure.ac
15973 */
15974
15975#ifndef __LIBRB_CONFIG_H
15976#define __LIBRB_CONFIG_H
15977
15978_______EOF
15979
15980if test "x$rb_have_ipv6" = "xyes"; then
15981 echo "#define RB_IPV6 1" >> $outfile
15982fi
15983
15984if test "x$rb_windows_h" = "xyes"; then
15985 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
15986 echo '#include <windows.h>' >> $outfile
15987 echo '#include <winsock2.h>' >> $outfile
15988 echo '#include <iphlpapi.h>' >> $outfile
15989fi
15990
15991if test "x$rb_alloca_h" = "xyes"; then
15992 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
15993fi
15994
15995if test "x$rb_header_stdc" = "xyes"; then
15996 echo '#include <stdlib.h>' >> $outfile
15997 echo '#include <stddef.h>' >> $outfile
15998elif test "x$rb_header_stdlib" = "xyes"; then
15999 echo '#include <stdlib.h>' >> $outfile
16000fi
16001
16002if test "x$rb_header_string_h" = "xyes"; then
16003 echo '#include <string.h>' >> $outfile
16004fi
16005
16006if test "x$rb_stdint_h" = "xyes"; then
16007 echo '#include <stdint.h>' >> $outfile
16008fi
16009
16010if test "x$rb_inttypes_h" = "xyes"; then
16011 echo '#include <inttypes.h>' >> $outfile
16012fi
16013
16014if test "x$rb_sys_types_h" = "xyes"; then
16015 echo '#include <sys/types.h>' >> $outfile
16016fi
16017if test "x$rb_sys_time_h" = "xyes"; then
16018 echo '#include <sys/time.h>' >> $outfile
16019fi
16020if test "x$rb_sys_stat_h" = "xyes"; then
16021 echo '#include <sys/stat.h>' >> $outfile
16022fi
16023if test "x$rb_time_h" = "xyes"; then
16024 echo '#include <time.h>' >> $outfile
16025fi
16026
16027if test "x$rb_sys_socket_h" = "xyes"; then
16028 echo '#include <sys/socket.h>' >> $outfile
16029fi
16030
16031if test "x$rb_netinet_in_h" = "xyes"; then
16032 echo '#include <netinet/in.h>' >> $outfile
16033fi
16034
16035if test "x$rb_arpa_inet_h" = "xyes"; then
16036 echo '#include <arpa/inet.h>' >> $outfile
16037fi
16038
16039if test "x$rb_unistd_h" = "xyes"; then
16040 echo '#include <unistd.h>' >> $outfile
16041fi
16042
16043if test "x$rb_crypt_h" = "xyes"; then
16044 echo '#include <crypt.h>' >> $outfile
16045fi
16046
16047if test "x$rb_errno_h" = "xyes"; then
16048 echo '#include <errno.h>' >> $outfile
16049fi
16050
4414eb3c
VY
16051echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
16052
16053
b57f37fb
WP
16054if test "x$rb_sockaddr_sa_len" = "xyes"; then
16055 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
16056fi
16057
b57f37fb
WP
16058if test "x$rb_sockaddr_storage" = "xyes"; then
16059 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
16060else
94b4fbf9 16061 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
b57f37fb
WP
16062fi
16063
16064cat >> $outfile <<\_______EOF
16065#endif /* __LIBRB_CONFIG_H */
16066_______EOF
16067
16068if cmp -s $outfile include/librb-config.h; then
042acc47 16069 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
f030cae8 16070$as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
b57f37fb
WP
16071 ${rb_rm} -f $outfile
16072else
16073 ${rb_mv} $outfile include/librb-config.h
16074fi
16075
16076 ;;
16077
16078 esac
16079done # for ac_tag
16080
16081
042acc47 16082as_fn_exit 0
b57f37fb 16083_ACEOF
b57f37fb
WP
16084ac_clean_files=$ac_clean_files_save
16085
f030cae8 16086test $ac_write_fail = 0 ||
042acc47 16087 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
f030cae8 16088
b57f37fb
WP
16089
16090# configure is writing to config.log, and then calls config.status.
16091# config.status does its own redirection, appending to config.log.
16092# Unfortunately, on DOS this fails, as config.log is still kept open
16093# by configure, so config.status won't be able to write to it; its
16094# output is simply discarded. So we exec the FD to /dev/null,
16095# effectively closing config.log, so it can be properly (re)opened and
16096# appended to by config.status. When coming back to configure, we
16097# need to make the FD available again.
16098if test "$no_create" != yes; then
16099 ac_cs_success=:
16100 ac_config_status_args=
16101 test "$silent" = yes &&
16102 ac_config_status_args="$ac_config_status_args --quiet"
16103 exec 5>/dev/null
16104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16105 exec 5>>config.log
16106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16107 # would make configure fail if this is the last instruction.
042acc47 16108 $ac_cs_success || as_fn_exit $?
b57f37fb 16109fi
f030cae8 16110if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
042acc47 16111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
f030cae8
VY
16112$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16113fi
b57f37fb 16114
b57f37fb
WP
16115
16116
16117echo
16118echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
16119echo
16120
16121echo "Installing into: $prefix"
16122
16123echo "IPv6 support ................... $have_v6"
16124echo "Assert debugging ............... $assert"
16125echo "Block allocator ................ $balloc"
033be687 16126echo "SSL Type........................ $SSL_TYPE"
b57f37fb
WP
16127echo
16128