]> jfr.im git - solanum.git/blame - libratbox/configure
Add SHA256/SHA512 support to crypt.c and fix up the MD5 component (it seemed to have...
[solanum.git] / libratbox / configure
CommitLineData
db137867
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
08c2568c 3# Generated by GNU Autoconf 2.68 for libratbox devel.
db137867 4#
030272f3 5# $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
db137867 6#
96f4052b 7#
db137867 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
08c2568c
EM
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
96f4052b 11#
7083c021 12#
db137867
AC
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
7083c021
AC
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
db137867
AC
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
7083c021 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
db137867
AC
22 emulate sh
23 NULLCMD=:
030272f3 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
db137867
AC
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
7083c021
AC
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
db137867 34esac
db137867
AC
35fi
36
37
030272f3
VY
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7083c021
AC
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
030272f3
VY
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
db137867 58 else
030272f3
VY
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
7083c021 62 case $arg in #(
030272f3
VY
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
db137867 71 fi
030272f3
VY
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
db137867
AC
83fi
84
db137867
AC
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
db137867
AC
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
08c2568c 94as_myself=
7083c021 95case $0 in #((
db137867
AC
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
7083c021
AC
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
db137867
AC
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
030272f3 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7083c021 115 exit 1
db137867
AC
116fi
117
7083c021
AC
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
db137867
AC
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
030272f3
VY
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
db137867 135
7083c021
AC
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
08c2568c 220 # Preserve -v and -x to the replacement shell.
7083c021
AC
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
08c2568c
EM
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
7083c021
AC
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242$0: including any error possibly output before this
243$0: message. Then install a modern shell, or manually run
244$0: the script under such a shell if you do have one."
245 fi
246 exit 1
247fi
248fi
249fi
250SHELL=${CONFIG_SHELL-/bin/sh}
251export SHELL
252# Unset more variables known to interfere with behavior of common tools.
253CLICOLOR_FORCE= GREP_OPTIONS=
254unset CLICOLOR_FORCE GREP_OPTIONS
255
256## --------------------- ##
257## M4sh Shell Functions. ##
258## --------------------- ##
259# as_fn_unset VAR
260# ---------------
261# Portably unset VAR.
262as_fn_unset ()
263{
264 { eval $1=; unset $1;}
265}
266as_unset=as_fn_unset
267
268# as_fn_set_status STATUS
269# -----------------------
270# Set $? to STATUS, without forking.
271as_fn_set_status ()
272{
273 return $1
274} # as_fn_set_status
275
276# as_fn_exit STATUS
277# -----------------
278# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279as_fn_exit ()
280{
281 set +e
282 as_fn_set_status $1
283 exit $1
284} # as_fn_exit
285
286# as_fn_mkdir_p
287# -------------
288# Create "$as_dir" as a directory, including parents if necessary.
289as_fn_mkdir_p ()
290{
291
292 case $as_dir in #(
293 -*) as_dir=./$as_dir;;
294 esac
295 test -d "$as_dir" || eval $as_mkdir_p || {
296 as_dirs=
297 while :; do
298 case $as_dir in #(
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 *) as_qdir=$as_dir;;
301 esac
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308$as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)[^/].*/{
314 s//\1/
315 q
316 }
317 /^X\(\/\/\)$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\).*/{
322 s//\1/
323 q
324 }
325 s/.*/./; q'`
326 test -d "$as_dir" && break
327 done
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
08c2568c 329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
330
331
332} # as_fn_mkdir_p
333# as_fn_append VAR VALUE
334# ----------------------
335# Append the text in VALUE to the end of the definition contained in VAR. Take
336# advantage of any shell optimizations that allow amortized linear growth over
337# repeated appends, instead of the typical quadratic growth present in naive
338# implementations.
339if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
341 {
342 eval $1+=\$2
343 }'
344else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349fi # as_fn_append
350
351# as_fn_arith ARG...
352# ------------------
353# Perform arithmetic evaluation on the ARGs, and store the result in the
354# global $as_val. Take advantage of shells that can avoid forks. The arguments
355# must be portable across $(()) and expr.
356if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366fi # as_fn_arith
367
368
08c2568c
EM
369# as_fn_error STATUS ERROR [LINENO LOG_FD]
370# ----------------------------------------
7083c021
AC
371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
08c2568c 373# script with STATUS, using 1 if that was 0.
7083c021
AC
374as_fn_error ()
375{
08c2568c
EM
376 as_status=$1; test $as_status -eq 0 && as_status=1
377 if test "$4"; then
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 380 fi
08c2568c 381 $as_echo "$as_me: error: $2" >&2
7083c021
AC
382 as_fn_exit $as_status
383} # as_fn_error
384
db137867
AC
385if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387 as_expr=expr
388else
389 as_expr=false
390fi
391
392if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 as_basename=basename
394else
395 as_basename=false
396fi
397
7083c021
AC
398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400else
401 as_dirname=false
402fi
db137867 403
db137867
AC
404as_me=`$as_basename -- "$0" ||
405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
030272f3 408$as_echo X/"$0" |
db137867
AC
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\/\)$/{
414 s//\1/
415 q
416 }
417 /^X\/\(\/\).*/{
418 s//\1/
419 q
420 }
421 s/.*/./; q'`
422
7083c021
AC
423# Avoid depending upon Character Ranges.
424as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427as_cr_digits='0123456789'
428as_cr_alnum=$as_cr_Letters$as_cr_digits
db137867
AC
429
430
7083c021
AC
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
db137867 453
7083c021
AC
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
db137867
AC
460}
461
7083c021
AC
462ECHO_C= ECHO_N= ECHO_T=
463case `echo -n x` in #(((((
464-n*)
465 case `echo 'xy\c'` in
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
470 esac;;
471*)
472 ECHO_N='-n';;
473esac
db137867 474
7083c021
AC
475rm -f conf$$ conf$$.exe conf$$.file
476if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
478else
479 rm -f conf$$.dir
480 mkdir conf$$.dir 2>/dev/null
db137867 481fi
7083c021
AC
482if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s='ln -s'
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 as_ln_s='cp -p'
491 elif ln conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s=ln
493 else
494 as_ln_s='cp -p'
495 fi
db137867 496else
7083c021 497 as_ln_s='cp -p'
db137867 498fi
7083c021
AC
499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500rmdir conf$$.dir 2>/dev/null
db137867 501
7083c021
AC
502if mkdir -p . 2>/dev/null; then
503 as_mkdir_p='mkdir -p "$as_dir"'
504else
505 test -d ./-p && rmdir ./-p
506 as_mkdir_p=false
db137867
AC
507fi
508
7083c021
AC
509if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
db137867 511else
7083c021
AC
512 if ls -dL / >/dev/null 2>&1; then
513 as_ls_L_option=L
514 else
515 as_ls_L_option=
516 fi
517 as_test_x='
518 eval sh -c '\''
519 if test -d "$1"; then
520 test -d "$1/.";
521 else
522 case $1 in #(
523 -*)set "./$1";;
524 esac;
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
db137867 529fi
7083c021 530as_executable_p=$as_test_x
db137867 531
7083c021
AC
532# Sed expression to map a string onto a valid CPP name.
533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
db137867 534
7083c021
AC
535# Sed expression to map a string onto a valid variable name.
536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
db137867
AC
537
538
539
540# Check that we are running under the correct shell.
541SHELL=${CONFIG_SHELL-/bin/sh}
542
7083c021 543case X$lt_ECHO in
db137867
AC
544X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
7083c021 546 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
db137867
AC
547 ;;
548esac
549
7083c021 550ECHO=${lt_ECHO-echo}
db137867
AC
551if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
7083c021
AC
557elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $ECHO works!
db137867
AC
559 :
560else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563fi
564
565if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
7083c021 568 cat <<_LT_EOF
db137867 569$*
7083c021 570_LT_EOF
db137867
AC
571 exit 0
572fi
573
574# The HP-UX ksh and POSIX shell print the target directory to stdout
575# if CDPATH is set.
576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
7083c021
AC
578if test -z "$lt_ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
584 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
585 then
586 break
587 fi
588 done
589 fi
db137867 590
7083c021
AC
591 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
592 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
593 test "X$echo_testing_string" = "X$echo_test_string"; then
594 :
595 else
596 # The Solaris, AIX, and Digital Unix default echo programs unquote
597 # backslashes. This makes it impossible to quote backslashes using
598 # echo "$something" | sed 's/\\/\\\\/g'
599 #
600 # So, first we look for a working echo in the user's PATH.
db137867 601
7083c021
AC
602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603 for dir in $PATH /usr/ucb; do
604 IFS="$lt_save_ifs"
605 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 ECHO="$dir/echo"
610 break
611 fi
612 done
db137867 613 IFS="$lt_save_ifs"
db137867 614
7083c021
AC
615 if test "X$ECHO" = Xecho; then
616 # We didn't find a better echo, so look for alternatives.
617 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
618 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
619 test "X$echo_testing_string" = "X$echo_test_string"; then
620 # This shell has a builtin print -r that does the trick.
621 ECHO='print -r'
622 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
623 test "X$CONFIG_SHELL" != X/bin/ksh; then
624 # If we have ksh, try running configure again with it.
625 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626 export ORIGINAL_CONFIG_SHELL
627 CONFIG_SHELL=/bin/ksh
628 export CONFIG_SHELL
629 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
db137867 630 else
7083c021
AC
631 # Try using printf.
632 ECHO='printf %s\n'
633 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # Cool, printf works
637 :
638 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 export CONFIG_SHELL
644 SHELL="$CONFIG_SHELL"
645 export SHELL
646 ECHO="$CONFIG_SHELL $0 --fallback-echo"
647 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648 test "X$echo_testing_string" = 'X\t' &&
649 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 ECHO="$CONFIG_SHELL $0 --fallback-echo"
652 else
653 # maybe with a smaller string...
654 prev=:
db137867 655
7083c021
AC
656 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
658 then
659 break
660 fi
661 prev="$cmd"
662 done
db137867 663
7083c021
AC
664 if test "$prev" != 'sed 50q "$0"'; then
665 echo_test_string=`eval $prev`
666 export echo_test_string
667 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 else
669 # Oops. We lost completely, so just stick with echo.
670 ECHO=echo
671 fi
672 fi
db137867
AC
673 fi
674 fi
675 fi
676fi
db137867
AC
677
678# Copy echo and quote the copy suitably for passing to libtool from
679# the Makefile, instead of quoting the original, which is used later.
7083c021
AC
680lt_ECHO=$ECHO
681if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
db137867
AC
683fi
684
685
686
687
96f4052b
AC
688test -n "$DJDIR" || exec 7<&0 </dev/null
689exec 6>&1
db137867
AC
690
691# Name of the host.
08c2568c 692# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
db137867
AC
693# so uname gets run too.
694ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
695
696#
697# Initializations.
698#
699ac_default_prefix=/usr/local
700ac_clean_files=
701ac_config_libobj_dir=.
702LIBOBJS=
703cross_compiling=no
704subdirs=
705MFLAGS=
706MAKEFLAGS=
db137867
AC
707
708# Identity of this package.
709PACKAGE_NAME='libratbox'
710PACKAGE_TARNAME='libratbox'
711PACKAGE_VERSION='devel'
712PACKAGE_STRING='libratbox devel'
713PACKAGE_BUGREPORT=''
7083c021 714PACKAGE_URL=''
db137867
AC
715
716ac_default_prefix=/usr/local/libratbox
717# Factoring default headers for most tests.
718ac_includes_default="\
719#include <stdio.h>
720#ifdef HAVE_SYS_TYPES_H
721# include <sys/types.h>
722#endif
723#ifdef HAVE_SYS_STAT_H
724# include <sys/stat.h>
725#endif
726#ifdef STDC_HEADERS
727# include <stdlib.h>
728# include <stddef.h>
729#else
730# ifdef HAVE_STDLIB_H
731# include <stdlib.h>
732# endif
733#endif
734#ifdef HAVE_STRING_H
735# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
736# include <memory.h>
737# endif
738# include <string.h>
739#endif
740#ifdef HAVE_STRINGS_H
741# include <strings.h>
742#endif
743#ifdef HAVE_INTTYPES_H
744# include <inttypes.h>
745#endif
746#ifdef HAVE_STDINT_H
747# include <stdint.h>
748#endif
749#ifdef HAVE_UNISTD_H
750# include <unistd.h>
751#endif"
752
96f4052b 753ac_header_list=
7083c021
AC
754ac_subst_vars='am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
030272f3
VY
757LIBOBJS
758RB_PREFIX
759SSL_LIBS
760SSL_CFLAGS
761SEDOBJ
762PICFLAGS
763GNUTLS_LIBS
764GNUTLS_CFLAGS
765PKG_CONFIG
766ALLOCA
030272f3
VY
767MINGW_FALSE
768MINGW_TRUE
7083c021
AC
769OTOOL64
770OTOOL
771LIPO
030272f3
VY
772NMEDIT
773DSYMUTIL
7083c021 774lt_ECHO
030272f3
VY
775RANLIB
776AR
7083c021 777OBJDUMP
030272f3 778LN_S
7083c021
AC
779NM
780ac_ct_DUMPBIN
781DUMPBIN
782LD
783FGREP
030272f3
VY
784host_os
785host_vendor
786host_cpu
787host
788build_os
789build_vendor
790build_cpu
791build
7083c021 792LIBTOOL
030272f3
VY
793TOUCH
794LN
795MV
796CP
797RM
798AS
799MAINT
800MAINTAINER_MODE_FALSE
801MAINTAINER_MODE_TRUE
802SED
803EGREP
804GREP
805CPP
806am__fastdepCC_FALSE
807am__fastdepCC_TRUE
808CCDEPMODE
809AMDEPBACKSLASH
810AMDEP_FALSE
811AMDEP_TRUE
812am__quote
813am__include
814DEPDIR
815OBJEXT
816EXEEXT
817ac_ct_CC
818CPPFLAGS
819LDFLAGS
820CFLAGS
821CC
822am__untar
823am__tar
824AMTAR
825am__leading_dot
826SET_MAKE
827AWK
828mkdir_p
829MKDIR_P
830INSTALL_STRIP_PROGRAM
831STRIP
832install_sh
833MAKEINFO
834AUTOHEADER
835AUTOMAKE
836AUTOCONF
837ACLOCAL
838VERSION
839PACKAGE
840CYGPATH_W
841am__isrc
842INSTALL_DATA
843INSTALL_SCRIPT
844INSTALL_PROGRAM
845target_alias
846host_alias
db137867 847build_alias
030272f3
VY
848LIBS
849ECHO_T
850ECHO_N
851ECHO_C
852DEFS
853mandir
854localedir
855libdir
856psdir
857pdfdir
858dvidir
859htmldir
860infodir
861docdir
862oldincludedir
863includedir
864localstatedir
865sharedstatedir
866sysconfdir
867datadir
868datarootdir
869libexecdir
870sbindir
871bindir
872program_transform_name
873prefix
874exec_prefix
7083c021 875PACKAGE_URL
030272f3
VY
876PACKAGE_BUGREPORT
877PACKAGE_STRING
878PACKAGE_VERSION
879PACKAGE_TARNAME
880PACKAGE_NAME
881PATH_SEPARATOR
882SHELL'
883ac_subst_files=''
884ac_user_opts='
885enable_option_checking
886enable_dependency_tracking
887enable_static
888enable_shared
889enable_maintainer_mode
7083c021 890with_pic
030272f3
VY
891enable_fast_install
892with_gnu_ld
893enable_libtool_lock
030272f3
VY
894enable_ipv6
895enable_openssl
896enable_gnutls
897enable_assert
898enable_profile
899enable_balloc
900enable_warnings
901'
902 ac_precious_vars='build_alias
db137867
AC
903host_alias
904target_alias
db137867
AC
905CC
906CFLAGS
907LDFLAGS
030272f3 908LIBS
db137867 909CPPFLAGS
db137867 910CPP
709c1951
AC
911PKG_CONFIG
912GNUTLS_CFLAGS
913GNUTLS_LIBS'
3202e249 914
db137867
AC
915
916# Initialize some variables set by options.
917ac_init_help=
918ac_init_version=false
030272f3
VY
919ac_unrecognized_opts=
920ac_unrecognized_sep=
db137867
AC
921# The variables have the same names as the options, with
922# dashes changed to underlines.
923cache_file=/dev/null
924exec_prefix=NONE
925no_create=
926no_recursion=
927prefix=NONE
928program_prefix=NONE
929program_suffix=NONE
930program_transform_name=s,x,x,
931silent=
932site=
933srcdir=
934verbose=
935x_includes=NONE
936x_libraries=NONE
937
938# Installation directory options.
939# These are left unexpanded so users can "make install exec_prefix=/foo"
940# and all the variables that are supposed to be based on exec_prefix
941# by default will actually change.
942# Use braces instead of parens because sh, perl, etc. also accept them.
943# (The list follows the same order as the GNU Coding Standards.)
944bindir='${exec_prefix}/bin'
945sbindir='${exec_prefix}/sbin'
946libexecdir='${exec_prefix}/libexec'
947datarootdir='${prefix}/share'
948datadir='${datarootdir}'
949sysconfdir='${prefix}/etc'
950sharedstatedir='${prefix}/com'
951localstatedir='${prefix}/var'
952includedir='${prefix}/include'
953oldincludedir='/usr/include'
954docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955infodir='${datarootdir}/info'
956htmldir='${docdir}'
957dvidir='${docdir}'
958pdfdir='${docdir}'
959psdir='${docdir}'
960libdir='${exec_prefix}/lib'
961localedir='${datarootdir}/locale'
962mandir='${datarootdir}/man'
963
964ac_prev=
965ac_dashdash=
966for ac_option
967do
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
973 fi
974
975 case $ac_option in
08c2568c
EM
976 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *=) ac_optarg= ;;
978 *) ac_optarg=yes ;;
db137867
AC
979 esac
980
981 # Accept the important Cygnus configure options, so we can diagnose typos.
982
983 case $ac_dashdash$ac_option in
984 --)
985 ac_dashdash=yes ;;
986
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 ac_prev=bindir ;;
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 bindir=$ac_optarg ;;
991
992 -build | --build | --buil | --bui | --bu)
993 ac_prev=build_alias ;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias=$ac_optarg ;;
996
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file=$ac_optarg ;;
1003
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
1006
1007 -datadir | --datadir | --datadi | --datad)
1008 ac_prev=datadir ;;
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir=$ac_optarg ;;
1011
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
1018
1019 -disable-* | --disable-*)
030272f3 1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
db137867 1021 # Reject names that are not valid shell variable names.
030272f3 1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 1023 as_fn_error $? "invalid feature name: $ac_useropt"
030272f3
VY
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028"enable_$ac_useropt"
1029"*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
db137867
AC
1034
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1039
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1044
1045 -enable-* | --enable-*)
030272f3 1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
db137867 1047 # Reject names that are not valid shell variable names.
030272f3 1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 1049 as_fn_error $? "invalid feature name: $ac_useropt"
030272f3
VY
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054"enable_$ac_useropt"
1055"*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=\$ac_optarg ;;
db137867
AC
1060
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1069
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1073
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1080
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1085
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1091
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1098
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1103
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1108
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1115
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1120
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1127
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1132
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1136
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1140
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1144
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1153
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1158
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1165
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1172
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1189
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1194
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1199
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1203
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1209
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1220
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1225
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1230
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1237
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1242
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1245
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1248
1249 -with-* | --with-*)
030272f3 1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
db137867 1251 # Reject names that are not valid shell variable names.
030272f3 1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 1253 as_fn_error $? "invalid package name: $ac_useropt"
030272f3
VY
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258"with_$ac_useropt"
1259"*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
db137867
AC
1264
1265 -without-* | --without-*)
030272f3 1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
db137867 1267 # Reject names that are not valid shell variable names.
030272f3 1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
08c2568c 1269 as_fn_error $? "invalid package name: $ac_useropt"
030272f3
VY
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"with_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
db137867
AC
1280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1298
08c2568c
EM
1299 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300Try \`$0 --help' for more information"
db137867
AC
1301 ;;
1302
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
7083c021
AC
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
08c2568c 1308 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1309 esac
db137867
AC
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1312
1313 *)
1314 # FIXME: should be removed in autoconf 3.0.
030272f3 1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
db137867 1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
030272f3 1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
08c2568c 1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
db137867
AC
1319 ;;
1320
1321 esac
1322done
1323
1324if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
08c2568c 1326 as_fn_error $? "missing argument to $ac_option"
db137867
AC
1327fi
1328
030272f3
VY
1329if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
08c2568c 1332 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
030272f3
VY
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1335fi
1336
1337# Check all directory arguments for consistency.
db137867
AC
1338for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1342do
1343 eval ac_val=\$$ac_var
030272f3
VY
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
db137867
AC
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
08c2568c 1355 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
db137867
AC
1356done
1357
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
08c2568c
EM
1369 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used" >&2
db137867
AC
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1373 fi
1374fi
1375
1376ac_tool_prefix=
1377test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379test "$silent" = yes && exec 6>/dev/null
1380
1381
1382ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383ac_ls_di=`ls -di .` &&
1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
08c2568c 1385 as_fn_error $? "working directory cannot be determined"
db137867 1386test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
08c2568c 1387 as_fn_error $? "pwd does not report name of working directory"
db137867
AC
1388
1389
1390# Find the source files, if location was not specified.
1391if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
030272f3
VY
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399$as_echo X"$as_myself" |
db137867
AC
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)[^/].*/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\).*/{
1413 s//\1/
1414 q
1415 }
1416 s/.*/./; q'`
1417 srcdir=$ac_confdir
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 srcdir=..
1420 fi
1421else
1422 ac_srcdir_defaulted=no
1423fi
1424if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
08c2568c 1426 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
db137867
AC
1427fi
1428ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429ac_abs_confdir=`(
08c2568c 1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
db137867
AC
1431 pwd)`
1432# When building in place, set srcdir=.
1433if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435fi
1436# Remove unnecessary trailing slashes from srcdir.
1437# Double slashes in file names in object file debugging info
1438# mess up M-x gdb in Emacs.
1439case $srcdir in
1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441esac
1442for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447done
1448
1449#
1450# Report the --help message.
1451#
1452if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456\`configure' configures libratbox devel to adapt to many kinds of systems.
1457
1458Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461VAR=VALUE. See below for descriptions of some of the useful variables.
1462
1463Defaults for the options are specified in brackets.
1464
1465Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
08c2568c 1470 -q, --quiet, --silent do not print \`checking ...' messages
db137867
AC
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475
1476Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
030272f3 1478 [$ac_default_prefix]
db137867 1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
030272f3 1480 [PREFIX]
db137867
AC
1481
1482By default, \`make install' will install all the files in
1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485for instance \`--prefix=\$HOME'.
1486
1487For better control, use the options below.
1488
1489Fine tuning of the installation directories:
030272f3
VY
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
db137867
AC
1509_ACEOF
1510
1511 cat <<\_ACEOF
1512
1513Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive ) echo "Configuration of libratbox devel:";;
1527 esac
1528 cat <<\_ACEOF
1529
1530Optional Features:
030272f3 1531 --disable-option-checking ignore unrecognized --enable/--with options
db137867
AC
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --disable-dependency-tracking speeds up one-time build
1535 --enable-dependency-tracking do not reject slow dependency extractors
1536 --enable-static[=PKGS] build static libraries [default=no]
1537 --enable-shared[=PKGS] build shared libraries [default=yes]
1538 --enable-maintainer-mode enable make rules and dependencies not useful
1539 (and sometimes confusing) to the casual installer
1540 --enable-fast-install[=PKGS]
1541 optimize for fast installation [default=yes]
1542 --disable-libtool-lock avoid locking (might break parallel builds)
1543 --disable-ipv6 Disable IPv6 support
1544 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1545 --disable-openssl Disable OpenSSL support.
c2ac22cc
VY
1546 --enable-gnutls Enable GnuTLS support.
1547 --disable-gnutls Disable GnuTLS support.
db137867
AC
1548 --enable-assert Enable assert(). Choose between soft(warnings) and
1549 hard(aborts the daemon)
1550 --enable-profile Enable profiling
1551 --disable-balloc Disable the block allocator.
1552 --enable-warnings Enable all sorts of warnings for debugging.
1553
1554Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
db137867
AC
1557 --with-pic try to use only PIC/non-PIC objects [default=use
1558 both]
7083c021 1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
db137867
AC
1560
1561Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
96f4052b 1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
db137867
AC
1568 you have headers in a nonstandard directory <include dir>
1569 CPP C preprocessor
709c1951
AC
1570 PKG_CONFIG path to pkg-config utility
1571 GNUTLS_CFLAGS
1572 C compiler flags for GNUTLS, overriding pkg-config
1573 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
db137867
AC
1574
1575Use these variables to override the choices made by `configure' or to help
1576it to find libraries and programs with nonstandard names/locations.
1577
7083c021 1578Report bugs to the package provider.
db137867
AC
1579_ACEOF
1580ac_status=$?
1581fi
1582
1583if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
030272f3
VY
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588 continue
db137867
AC
1589 ac_builddir=.
1590
1591case "$ac_dir" in
1592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593*)
030272f3 1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
db137867 1595 # A ".." for each directory in $ac_dir_suffix.
030272f3 1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
db137867
AC
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601esac
1602ac_abs_top_builddir=$ac_pwd
1603ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604# for backward compatibility:
1605ac_top_builddir=$ac_top_build_prefix
1606
1607case $srcdir in
1608 .) # We are building in place.
1609 ac_srcdir=.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620esac
1621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1631 else
030272f3 1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
db137867
AC
1633 fi || ac_status=$?
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1635 done
1636fi
1637
1638test -n "$ac_init_help" && exit $ac_status
1639if $ac_init_version; then
1640 cat <<\_ACEOF
1641libratbox configure devel
08c2568c 1642generated by GNU Autoconf 2.68
db137867 1643
08c2568c 1644Copyright (C) 2010 Free Software Foundation, Inc.
db137867
AC
1645This configure script is free software; the Free Software Foundation
1646gives unlimited permission to copy, distribute and modify it.
1647
030272f3 1648$Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
db137867
AC
1649_ACEOF
1650 exit
1651fi
7083c021
AC
1652
1653## ------------------------ ##
1654## Autoconf initialization. ##
1655## ------------------------ ##
1656
1657# ac_fn_c_try_compile LINENO
1658# --------------------------
1659# Try to compile conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_compile ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689fi
08c2568c 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1691 as_fn_set_status $ac_retval
7083c021
AC
1692
1693} # ac_fn_c_try_compile
1694
1695# ac_fn_c_try_cpp LINENO
1696# ----------------------
1697# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_cpp ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
08c2568c 1716 test $ac_status = 0; } > conftest.i && {
7083c021
AC
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 }; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726fi
08c2568c 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1728 as_fn_set_status $ac_retval
7083c021
AC
1729
1730} # ac_fn_c_try_cpp
1731
1732# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733# -------------------------------------------------------
1734# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735# the include files in INCLUDES and setting the cache variable VAR
1736# accordingly.
1737ac_fn_c_check_header_mongrel ()
1738{
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
08c2568c 1740 if eval \${$3+:} false; then :
7083c021
AC
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
08c2568c 1743if eval \${$3+:} false; then :
7083c021
AC
1744 $as_echo_n "(cached) " >&6
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749else
1750 # Is the header compilable?
1751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752$as_echo_n "checking $2 usability... " >&6; }
1753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1760else
1761 ac_header_compiler=no
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765$as_echo "$ac_header_compiler" >&6; }
1766
1767# Is the header present?
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769$as_echo_n "checking $2 presence... " >&6; }
1770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1776else
1777 ac_header_preproc=no
1778fi
08c2568c 1779rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781$as_echo "$ac_header_preproc" >&6; }
1782
1783# So? What about this header?
1784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 yes:no: )
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ;;
1791 no:yes:* )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 ;;
1803esac
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
08c2568c 1806if eval \${$3+:} false; then :
7083c021
AC
1807 $as_echo_n "(cached) " >&6
1808else
1809 eval "$3=\$ac_header_compiler"
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
1814fi
08c2568c 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1816
1817} # ac_fn_c_check_header_mongrel
1818
1819# ac_fn_c_try_run LINENO
1820# ----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822# that executables *can* be run.
1823ac_fn_c_try_run ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1847 ac_retval=0
1848else
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=$ac_status
1854fi
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
08c2568c 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1857 as_fn_set_status $ac_retval
7083c021
AC
1858
1859} # ac_fn_c_try_run
1860
1861# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1862# -------------------------------------------------------
1863# Tests whether HEADER exists and can be compiled using the include files in
1864# INCLUDES, setting the cache variable VAR accordingly.
1865ac_fn_c_check_header_compile ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
08c2568c 1870if eval \${$3+:} false; then :
7083c021
AC
1871 $as_echo_n "(cached) " >&6
1872else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874/* end confdefs.h. */
1875$4
1876#include <$2>
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880else
1881 eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
08c2568c 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
1889
1890} # ac_fn_c_check_header_compile
1891
1892# ac_fn_c_try_link LINENO
1893# -----------------------
1894# Try to link conftest.$ac_ext, and return whether this succeeded.
1895ac_fn_c_try_link ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 $as_test_x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922else
1923 $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
08c2568c 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
96f4052b 1934 as_fn_set_status $ac_retval
7083c021
AC
1935
1936} # ac_fn_c_try_link
1937
1938# ac_fn_c_check_func LINENO FUNC VAR
1939# ----------------------------------
1940# Tests whether FUNC exists, setting the cache variable VAR accordingly
1941ac_fn_c_check_func ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945$as_echo_n "checking for $2... " >&6; }
08c2568c 1946if eval \${$3+:} false; then :
7083c021
AC
1947 $as_echo_n "(cached) " >&6
1948else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h. */
1951/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953#define $2 innocuous_$2
1954
1955/* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1959
1960#ifdef __STDC__
1961# include <limits.h>
1962#else
1963# include <assert.h>
1964#endif
1965
1966#undef $2
1967
1968/* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971#ifdef __cplusplus
1972extern "C"
1973#endif
1974char $2 ();
1975/* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978#if defined __stub_$2 || defined __stub___$2
1979choke me
1980#endif
1981
1982int
1983main ()
1984{
1985return $2 ();
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992else
1993 eval "$3=no"
1994fi
1995rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1997fi
1998eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
08c2568c 2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
2002
2003} # ac_fn_c_check_func
2004
2005# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2006# -------------------------------------------
2007# Tests whether TYPE exists after having included INCLUDES, setting cache
2008# variable VAR accordingly.
2009ac_fn_c_check_type ()
2010{
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013$as_echo_n "checking for $2... " >&6; }
08c2568c 2014if eval \${$3+:} false; then :
7083c021
AC
2015 $as_echo_n "(cached) " >&6
2016else
2017 eval "$3=no"
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h. */
2020$4
2021int
2022main ()
2023{
2024if (sizeof ($2))
2025 return 0;
2026 ;
2027 return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033$4
2034int
2035main ()
2036{
2037if (sizeof (($2)))
2038 return 0;
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044
2045else
2046 eval "$3=yes"
2047fi
2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
08c2568c 2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
2056
2057} # ac_fn_c_check_type
2058
2059# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2060# ----------------------------------------------------
2061# Tries to find if the field MEMBER exists in type AGGR, after including
2062# INCLUDES, setting cache variable VAR accordingly.
2063ac_fn_c_check_member ()
2064{
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2067$as_echo_n "checking for $2.$3... " >&6; }
08c2568c 2068if eval \${$4+:} false; then :
7083c021
AC
2069 $as_echo_n "(cached) " >&6
2070else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h. */
2073$5
2074int
2075main ()
2076{
2077static $2 ac_aggr;
2078if (ac_aggr.$3)
2079return 0;
2080 ;
2081 return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085 eval "$4=yes"
2086else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089$5
2090int
2091main ()
2092{
2093static $2 ac_aggr;
2094if (sizeof ac_aggr.$3)
2095return 0;
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$4=yes"
2102else
2103 eval "$4=no"
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106fi
2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108fi
2109eval ac_res=\$$4
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111$as_echo "$ac_res" >&6; }
08c2568c 2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7083c021
AC
2113
2114} # ac_fn_c_check_member
db137867
AC
2115cat >config.log <<_ACEOF
2116This file contains any messages produced by compilers while
2117running configure, to aid debugging if configure makes a mistake.
2118
2119It was created by libratbox $as_me devel, which was
08c2568c 2120generated by GNU Autoconf 2.68. Invocation command line was
db137867
AC
2121
2122 $ $0 $@
2123
2124_ACEOF
2125exec 5>>config.log
2126{
2127cat <<_ASUNAME
2128## --------- ##
2129## Platform. ##
2130## --------- ##
2131
2132hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136uname -v = `(uname -v) 2>/dev/null || echo unknown`
2137
2138/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2140
2141/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2145/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2148
2149_ASUNAME
2150
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
7083c021
AC
2156 $as_echo "PATH: $as_dir"
2157 done
db137867
AC
2158IFS=$as_save_IFS
2159
2160} >&5
2161
2162cat >&5 <<_ACEOF
2163
2164
2165## ----------- ##
2166## Core tests. ##
2167## ----------- ##
2168
2169_ACEOF
2170
2171
2172# Keep a trace of the command line.
2173# Strip out --no-create and --no-recursion so they do not pile up.
2174# Strip out --silent because we don't want to record it for future runs.
2175# Also quote any args containing shell meta-characters.
2176# Make two passes to allow for proper duplicate-argument suppression.
2177ac_configure_args=
2178ac_configure_args0=
2179ac_configure_args1=
2180ac_must_keep_next=false
2181for ac_pass in 1 2
2182do
2183 for ac_arg
2184 do
2185 case $ac_arg in
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2189 continue ;;
2190 *\'*)
030272f3 2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
db137867
AC
2192 esac
2193 case $ac_pass in
7083c021 2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
db137867 2195 2)
7083c021 2196 as_fn_append ac_configure_args1 " '$ac_arg'"
db137867
AC
2197 if test $ac_must_keep_next = true; then
2198 ac_must_keep_next=false # Got value, back to normal.
2199 else
2200 case $ac_arg in
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2207 esac
2208 ;;
2209 -* ) ac_must_keep_next=true ;;
2210 esac
2211 fi
7083c021 2212 as_fn_append ac_configure_args " '$ac_arg'"
db137867
AC
2213 ;;
2214 esac
2215 done
2216done
7083c021
AC
2217{ ac_configure_args0=; unset ac_configure_args0;}
2218{ ac_configure_args1=; unset ac_configure_args1;}
db137867
AC
2219
2220# When interrupted or exit'd, cleanup temporary files, and complete
2221# config.log. We remove comments because anyway the quotes in there
2222# would cause problems or look ugly.
2223# WARNING: Use '\'' to represent an apostrophe within the trap.
2224# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2227 {
2228 echo
2229
08c2568c 2230 $as_echo "## ---------------- ##
db137867 2231## Cache variables. ##
08c2568c 2232## ---------------- ##"
db137867
AC
2233 echo
2234 # The following way of writing the cache mishandles newlines in values,
2235(
2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in #(
2239 *${as_nl}*)
2240 case $ac_var in #(
7083c021 2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
030272f3 2242$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
db137867
AC
2243 esac
2244 case $ac_var in #(
2245 _ | IFS | as_nl) ;; #(
030272f3 2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7083c021 2247 *) { eval $ac_var=; unset $ac_var;} ;;
db137867
AC
2248 esac ;;
2249 esac
2250 done
2251 (set) 2>&1 |
2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253 *${as_nl}ac_space=\ *)
2254 sed -n \
2255 "s/'\''/'\''\\\\'\'''\''/g;
2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257 ;; #(
2258 *)
2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2260 ;;
2261 esac |
2262 sort
2263)
2264 echo
2265
08c2568c 2266 $as_echo "## ----------------- ##
db137867 2267## Output variables. ##
08c2568c 2268## ----------------- ##"
db137867
AC
2269 echo
2270 for ac_var in $ac_subst_vars
2271 do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
030272f3 2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
db137867 2275 esac
030272f3 2276 $as_echo "$ac_var='\''$ac_val'\''"
db137867
AC
2277 done | sort
2278 echo
2279
2280 if test -n "$ac_subst_files"; then
08c2568c 2281 $as_echo "## ------------------- ##
db137867 2282## File substitutions. ##
08c2568c 2283## ------------------- ##"
db137867
AC
2284 echo
2285 for ac_var in $ac_subst_files
2286 do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
030272f3 2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
db137867 2290 esac
030272f3 2291 $as_echo "$ac_var='\''$ac_val'\''"
db137867
AC
2292 done | sort
2293 echo
2294 fi
2295
2296 if test -s confdefs.h; then
08c2568c 2297 $as_echo "## ----------- ##
db137867 2298## confdefs.h. ##
08c2568c 2299## ----------- ##"
db137867
AC
2300 echo
2301 cat confdefs.h
2302 echo
2303 fi
2304 test "$ac_signal" != 0 &&
030272f3
VY
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
db137867
AC
2307 } >&5
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310 exit $exit_status
2311' 0
2312for ac_signal in 1 2 13 15; do
7083c021 2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
db137867
AC
2314done
2315ac_signal=0
2316
2317# confdefs.h avoids OS command line length limits that DEFS can exceed.
2318rm -f -r conftest* confdefs.h
2319
7083c021
AC
2320$as_echo "/* confdefs.h */" > confdefs.h
2321
db137867
AC
2322# Predefined preprocessor variables.
2323
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_NAME "$PACKAGE_NAME"
2326_ACEOF
2327
db137867
AC
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330_ACEOF
2331
db137867
AC
2332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_VERSION "$PACKAGE_VERSION"
2334_ACEOF
2335
db137867
AC
2336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_STRING "$PACKAGE_STRING"
2338_ACEOF
2339
db137867
AC
2340cat >>confdefs.h <<_ACEOF
2341#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342_ACEOF
2343
7083c021
AC
2344cat >>confdefs.h <<_ACEOF
2345#define PACKAGE_URL "$PACKAGE_URL"
2346_ACEOF
2347
db137867
AC
2348
2349# Let the site file select an alternate cache file if it wants to.
030272f3
VY
2350# Prefer an explicitly selected file to automatically selected ones.
2351ac_site_file1=NONE
2352ac_site_file2=NONE
db137867 2353if test -n "$CONFIG_SITE"; then
08c2568c
EM
2354 # We do not want a PATH search for config.site.
2355 case $CONFIG_SITE in #((
2356 -*) ac_site_file1=./$CONFIG_SITE;;
2357 */*) ac_site_file1=$CONFIG_SITE;;
2358 *) ac_site_file1=./$CONFIG_SITE;;
2359 esac
db137867 2360elif test "x$prefix" != xNONE; then
030272f3
VY
2361 ac_site_file1=$prefix/share/config.site
2362 ac_site_file2=$prefix/etc/config.site
db137867 2363else
030272f3
VY
2364 ac_site_file1=$ac_default_prefix/share/config.site
2365 ac_site_file2=$ac_default_prefix/etc/config.site
db137867 2366fi
030272f3 2367for ac_site_file in "$ac_site_file1" "$ac_site_file2"
db137867 2368do
030272f3 2369 test "x$ac_site_file" = xNONE && continue
96f4052b 2370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
030272f3 2372$as_echo "$as_me: loading site script $ac_site_file" >&6;}
db137867 2373 sed 's/^/| /' "$ac_site_file" >&5
08c2568c
EM
2374 . "$ac_site_file" \
2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377as_fn_error $? "failed to load site script $ac_site_file
2378See \`config.log' for more details" "$LINENO" 5; }
db137867
AC
2379 fi
2380done
2381
2382if test -r "$cache_file"; then
96f4052b
AC
2383 # Some versions of bash will fail to source /dev/null (special files
2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
030272f3 2387$as_echo "$as_me: loading cache $cache_file" >&6;}
db137867
AC
2388 case $cache_file in
2389 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2390 *) . "./$cache_file";;
2391 esac
2392 fi
2393else
7083c021 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
030272f3 2395$as_echo "$as_me: creating cache $cache_file" >&6;}
db137867
AC
2396 >$cache_file
2397fi
2398
96f4052b
AC
2399as_fn_append ac_header_list " stdlib.h"
2400as_fn_append ac_header_list " unistd.h"
2401as_fn_append ac_header_list " sys/param.h"
db137867
AC
2402# Check that the precious variables saved in the cache have kept the same
2403# value.
2404ac_cache_corrupted=false
2405for ac_var in $ac_precious_vars; do
2406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2407 eval ac_new_set=\$ac_env_${ac_var}_set
2408 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2409 eval ac_new_val=\$ac_env_${ac_var}_value
2410 case $ac_old_set,$ac_new_set in
2411 set,)
7083c021 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
030272f3 2413$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
db137867
AC
2414 ac_cache_corrupted=: ;;
2415 ,set)
7083c021 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
030272f3 2417$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
db137867
AC
2418 ac_cache_corrupted=: ;;
2419 ,);;
2420 *)
2421 if test "x$ac_old_val" != "x$ac_new_val"; then
030272f3
VY
2422 # differences in whitespace do not lead to failure.
2423 ac_old_val_w=`echo x $ac_old_val`
2424 ac_new_val_w=`echo x $ac_new_val`
2425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
7083c021 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
030272f3
VY
2427$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2428 ac_cache_corrupted=:
2429 else
7083c021 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
030272f3
VY
2431$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2432 eval $ac_var=\$ac_old_val
2433 fi
7083c021 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
030272f3 2435$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
7083c021 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
030272f3 2437$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
db137867
AC
2438 fi;;
2439 esac
2440 # Pass precious variables to config.status.
2441 if test "$ac_new_set" = set; then
2442 case $ac_new_val in
030272f3 2443 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
db137867
AC
2444 *) ac_arg=$ac_var=$ac_new_val ;;
2445 esac
2446 case " $ac_configure_args " in
2447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
7083c021 2448 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
db137867
AC
2449 esac
2450 fi
2451done
2452if $ac_cache_corrupted; then
7083c021 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 2454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083c021 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
030272f3 2456$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
08c2568c 2457 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
db137867 2458fi
7083c021
AC
2459## -------------------- ##
2460## Main body of script. ##
2461## -------------------- ##
db137867 2462
7083c021
AC
2463ac_ext=c
2464ac_cpp='$CPP $CPPFLAGS'
2465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467ac_compiler_gnu=$ac_cv_c_compiler_gnu
db137867
AC
2468
2469
7083c021 2470am__api_version='1.11'
db137867 2471
7083c021
AC
2472ac_aux_dir=
2473for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
08c2568c
EM
2474 if test -f "$ac_dir/install-sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 break
2478 elif test -f "$ac_dir/install.sh"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 break
2482 elif test -f "$ac_dir/shtool"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2485 break
2486 fi
7083c021
AC
2487done
2488if test -z "$ac_aux_dir"; then
08c2568c 2489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7083c021 2490fi
db137867 2491
7083c021
AC
2492# These three variables are undocumented and unsupported,
2493# and are intended to be withdrawn in a future Autoconf release.
2494# They can cause serious problems if a builder's source tree is in a directory
2495# whose full name contains unusual characters.
2496ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2497ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2498ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
db137867
AC
2499
2500
2501# Find a good install program. We prefer a C program (faster),
2502# so one script is as good as another. But avoid the broken or
2503# incompatible versions:
2504# SysV /etc/install, /usr/sbin/install
2505# SunOS /usr/etc/install
2506# IRIX /sbin/install
2507# AIX /bin/install
2508# AmigaOS /C/install, which installs bootblocks on floppy discs
2509# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2510# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2511# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2512# OS/2's system install, which has a completely different semantic
2513# ./install, which can be erroneously created by make from ./install.sh.
030272f3 2514# Reject install programs that cannot install multiple files.
7083c021 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
030272f3 2516$as_echo_n "checking for a BSD-compatible install... " >&6; }
db137867 2517if test -z "$INSTALL"; then
08c2568c 2518if ${ac_cv_path_install+:} false; then :
030272f3 2519 $as_echo_n "(cached) " >&6
db137867
AC
2520else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
7083c021
AC
2526 # Account for people who put trailing slashes in PATH elements.
2527case $as_dir/ in #((
2528 ./ | .// | /[cC]/* | \
db137867 2529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7083c021 2530 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
db137867
AC
2531 /usr/ucb/* ) ;;
2532 *)
2533 # OSF1 and SCO ODT 3.0 have their own names for install.
2534 # Don't use installbsd from OSF since it installs stuff as root
2535 # by default.
2536 for ac_prog in ginstall scoinst install; do
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2539 if test $ac_prog = install &&
2540 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541 # AIX install. It has an incompatible calling convention.
2542 :
2543 elif test $ac_prog = install &&
2544 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # program-specific install script used by HP pwplus--don't use.
2546 :
2547 else
030272f3
VY
2548 rm -rf conftest.one conftest.two conftest.dir
2549 echo one > conftest.one
2550 echo two > conftest.two
2551 mkdir conftest.dir
2552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2553 test -s conftest.one && test -s conftest.two &&
2554 test -s conftest.dir/conftest.one &&
2555 test -s conftest.dir/conftest.two
2556 then
2557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2558 break 3
2559 fi
db137867
AC
2560 fi
2561 fi
2562 done
2563 done
2564 ;;
2565esac
030272f3 2566
7083c021 2567 done
db137867
AC
2568IFS=$as_save_IFS
2569
030272f3 2570rm -rf conftest.one conftest.two conftest.dir
db137867
AC
2571
2572fi
2573 if test "${ac_cv_path_install+set}" = set; then
2574 INSTALL=$ac_cv_path_install
2575 else
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for INSTALL within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 INSTALL=$ac_install_sh
2581 fi
2582fi
7083c021 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
030272f3 2584$as_echo "$INSTALL" >&6; }
db137867
AC
2585
2586# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2587# It thinks the first close brace ends the variable substitution.
2588test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2589
2590test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2591
2592test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2593
7083c021 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
030272f3 2595$as_echo_n "checking whether build environment is sane... " >&6; }
db137867
AC
2596# Just in case
2597sleep 1
2598echo timestamp > conftest.file
7083c021
AC
2599# Reject unsafe characters in $srcdir or the absolute working directory
2600# name. Accept space and tab only in the latter.
2601am_lf='
2602'
2603case `pwd` in
2604 *[\\\"\#\$\&\'\`$am_lf]*)
08c2568c 2605 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
7083c021
AC
2606esac
2607case $srcdir in
2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
08c2568c 2609 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7083c021
AC
2610esac
2611
db137867
AC
2612# Do `set' in a subshell so we don't clobber the current shell's
2613# arguments. Must try -L first in case configure is actually a
2614# symlink; some systems play weird games with the mod time of symlinks
2615# (eg FreeBSD returns the mod time of the symlink's containing
2616# directory).
2617if (
7083c021 2618 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
db137867
AC
2619 if test "$*" = "X"; then
2620 # -L didn't work.
7083c021 2621 set X `ls -t "$srcdir/configure" conftest.file`
db137867
AC
2622 fi
2623 rm -f conftest.file
2624 if test "$*" != "X $srcdir/configure conftest.file" \
2625 && test "$*" != "X conftest.file $srcdir/configure"; then
2626
2627 # If neither matched, then we have a broken ls. This can happen
2628 # if, for instance, CONFIG_SHELL is bash and it inherits a
2629 # broken ls alias from the environment. This has actually
2630 # happened. Such a system could not be considered "sane".
08c2568c 2631 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
7083c021 2632alias in your environment" "$LINENO" 5
db137867
AC
2633 fi
2634
2635 test "$2" = conftest.file
2636 )
2637then
2638 # Ok.
2639 :
2640else
08c2568c 2641 as_fn_error $? "newly created file is older than distributed files!
7083c021 2642Check your system clock" "$LINENO" 5
db137867 2643fi
7083c021 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3 2645$as_echo "yes" >&6; }
db137867
AC
2646test "$program_prefix" != NONE &&
2647 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2648# Use a double $ so make ignores it.
2649test "$program_suffix" != NONE &&
2650 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
030272f3 2651# Double any \ or $.
db137867 2652# By default was `s,x,x', remove it if useless.
030272f3
VY
2653ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2654program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
db137867
AC
2655
2656# expand $ac_aux_dir to an absolute path
2657am_aux_dir=`cd $ac_aux_dir && pwd`
2658
7083c021
AC
2659if test x"${MISSING+set}" != xset; then
2660 case $am_aux_dir in
2661 *\ * | *\ *)
2662 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2663 *)
2664 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2665 esac
2666fi
db137867
AC
2667# Use eval to expand $SHELL
2668if eval "$MISSING --run true"; then
2669 am_missing_run="$MISSING --run "
2670else
2671 am_missing_run=
7083c021 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
030272f3 2673$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
db137867
AC
2674fi
2675
7083c021
AC
2676if test x"${install_sh}" != xset; then
2677 case $am_aux_dir in
2678 *\ * | *\ *)
2679 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2680 *)
2681 install_sh="\${SHELL} $am_aux_dir/install-sh"
2682 esac
2683fi
2684
2685# Installed binaries are usually stripped using `strip' when the user
2686# run `make install-strip'. However `strip' might not be the right
2687# tool to use in cross-compilation environments, therefore Automake
2688# will honor the `STRIP' environment variable to overrule this program.
2689if test "$cross_compiling" != no; then
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692set dummy ${ac_tool_prefix}strip; ac_word=$2
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2695if ${ac_cv_prog_STRIP+:} false; then :
7083c021
AC
2696 $as_echo_n "(cached) " >&6
2697else
2698 if test -n "$STRIP"; then
2699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712done
2713 done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
2718STRIP=$ac_cv_prog_STRIP
2719if test -n "$STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721$as_echo "$STRIP" >&6; }
2722else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725fi
2726
2727
2728fi
2729if test -z "$ac_cv_prog_STRIP"; then
2730 ac_ct_STRIP=$STRIP
2731 # Extract the first word of "strip", so it can be a program name with args.
2732set dummy strip; ac_word=$2
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2735if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7083c021
AC
2736 $as_echo_n "(cached) " >&6
2737else
2738 if test -n "$ac_ct_STRIP"; then
2739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_ac_ct_STRIP="strip"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752done
2753 done
2754IFS=$as_save_IFS
2755
2756fi
2757fi
2758ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2759if test -n "$ac_ct_STRIP"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761$as_echo "$ac_ct_STRIP" >&6; }
2762else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
2765fi
2766
2767 if test "x$ac_ct_STRIP" = x; then
2768 STRIP=":"
2769 else
2770 case $cross_compiling:$ac_tool_warned in
2771yes:)
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774ac_tool_warned=yes ;;
2775esac
2776 STRIP=$ac_ct_STRIP
2777 fi
2778else
2779 STRIP="$ac_cv_prog_STRIP"
2780fi
2781
2782fi
2783INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2784
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
030272f3 2786$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
db137867 2787if test -z "$MKDIR_P"; then
08c2568c 2788 if ${ac_cv_path_mkdir+:} false; then :
030272f3 2789 $as_echo_n "(cached) " >&6
db137867
AC
2790else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2793do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
7083c021 2796 for ac_prog in mkdir gmkdir; do
db137867
AC
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800 'mkdir (GNU coreutils) '* | \
2801 'mkdir (coreutils) '* | \
2802 'mkdir (fileutils) '4.1*)
2803 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2804 break 3;;
2805 esac
2806 done
2807 done
7083c021 2808 done
db137867
AC
2809IFS=$as_save_IFS
2810
2811fi
2812
96f4052b 2813 test -d ./--version && rmdir ./--version
db137867
AC
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 MKDIR_P="$ac_cv_path_mkdir -p"
2816 else
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for MKDIR_P within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
db137867
AC
2821 MKDIR_P="$ac_install_sh -d"
2822 fi
2823fi
7083c021 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
030272f3 2825$as_echo "$MKDIR_P" >&6; }
db137867
AC
2826
2827mkdir_p="$MKDIR_P"
2828case $mkdir_p in
2829 [\\/$]* | ?:[\\/]*) ;;
2830 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2831esac
2832
2833for ac_prog in gawk mawk nawk awk
2834do
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836set dummy $ac_prog; ac_word=$2
7083c021 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 2838$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 2839if ${ac_cv_prog_AWK+:} false; then :
030272f3 2840 $as_echo_n "(cached) " >&6
db137867
AC
2841else
2842 if test -n "$AWK"; then
2843 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
7083c021 2850 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_AWK="$ac_prog"
7083c021 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
2854 break 2
2855 fi
2856done
7083c021 2857 done
db137867
AC
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862AWK=$ac_cv_prog_AWK
2863if test -n "$AWK"; then
7083c021 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
030272f3 2865$as_echo "$AWK" >&6; }
db137867 2866else
7083c021 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2868$as_echo "no" >&6; }
db137867
AC
2869fi
2870
2871
2872 test -n "$AWK" && break
2873done
2874
7083c021 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
030272f3
VY
2876$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2877set x ${MAKE-make}
2878ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
08c2568c 2879if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
030272f3 2880 $as_echo_n "(cached) " >&6
db137867
AC
2881else
2882 cat >conftest.make <<\_ACEOF
2883SHELL = /bin/sh
2884all:
2885 @echo '@@@%%%=$(MAKE)=@@@%%%'
2886_ACEOF
08c2568c 2887# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
db137867
AC
2888case `${MAKE-make} -f conftest.make 2>/dev/null` in
2889 *@@@%%%=?*=@@@%%%*)
2890 eval ac_cv_prog_make_${ac_make}_set=yes;;
2891 *)
2892 eval ac_cv_prog_make_${ac_make}_set=no;;
2893esac
2894rm -f conftest.make
2895fi
2896if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7083c021 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3 2898$as_echo "yes" >&6; }
db137867
AC
2899 SET_MAKE=
2900else
7083c021 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2902$as_echo "no" >&6; }
db137867
AC
2903 SET_MAKE="MAKE=${MAKE-make}"
2904fi
2905
2906rm -rf .tst 2>/dev/null
2907mkdir .tst 2>/dev/null
2908if test -d .tst; then
2909 am__leading_dot=.
2910else
2911 am__leading_dot=_
2912fi
2913rmdir .tst 2>/dev/null
2914
2915if test "`cd $srcdir && pwd`" != "`pwd`"; then
2916 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2917 # is not polluted with repeated "-I."
2918 am__isrc=' -I$(srcdir)'
2919 # test to see if srcdir already configured
2920 if test -f $srcdir/config.status; then
08c2568c 2921 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
db137867
AC
2922 fi
2923fi
2924
2925# test whether we have cygpath
2926if test -z "$CYGPATH_W"; then
2927 if (cygpath --version) >/dev/null 2>/dev/null; then
2928 CYGPATH_W='cygpath -w'
2929 else
2930 CYGPATH_W=echo
2931 fi
2932fi
2933
2934
2935# Define the identity of the package.
2936 PACKAGE=libratbox
2937 VERSION=devel
2938
2939
2940# Some tools Automake needs.
2941
2942ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2943
2944
2945AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2946
2947
2948AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2949
2950
2951AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2952
2953
2954MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2955
db137867
AC
2956# We need awk for the "check" target. The system "awk" is bad on
2957# some platforms.
2958# Always define AMTAR for backward compatibility.
2959
2960AMTAR=${AMTAR-"${am_missing_run}tar"}
2961
2962am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963
2964
2965
2966
2967
2968
2969ac_config_headers="$ac_config_headers include/libratbox_config.h"
2970
2971
2972
db137867
AC
2973DEPDIR="${am__leading_dot}deps"
2974
2975ac_config_commands="$ac_config_commands depfiles"
2976
2977
2978am_make=${MAKE-make}
2979cat > confinc << 'END'
2980am__doit:
7083c021 2981 @echo this is the am__doit target
db137867
AC
2982.PHONY: am__doit
2983END
2984# If we don't find an include directive, just comment out the code.
7083c021 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
030272f3 2986$as_echo_n "checking for style of include used by $am_make... " >&6; }
db137867
AC
2987am__include="#"
2988am__quote=
2989_am_result=none
2990# First try GNU make style include.
2991echo "include confinc" > confmf
7083c021
AC
2992# Ignore all kinds of additional output from `make'.
2993case `$am_make -s -f confmf 2> /dev/null` in #(
2994*the\ am__doit\ target*)
2995 am__include=include
2996 am__quote=
2997 _am_result=GNU
2998 ;;
2999esac
db137867
AC
3000# Now try BSD make style include.
3001if test "$am__include" = "#"; then
3002 echo '.include "confinc"' > confmf
7083c021
AC
3003 case `$am_make -s -f confmf 2> /dev/null` in #(
3004 *the\ am__doit\ target*)
3005 am__include=.include
3006 am__quote="\""
3007 _am_result=BSD
3008 ;;
3009 esac
db137867
AC
3010fi
3011
3012
7083c021 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
030272f3 3014$as_echo "$_am_result" >&6; }
db137867
AC
3015rm -f confinc confmf
3016
3017# Check whether --enable-dependency-tracking was given.
7083c021 3018if test "${enable_dependency_tracking+set}" = set; then :
db137867
AC
3019 enableval=$enable_dependency_tracking;
3020fi
3021
3022if test "x$enable_dependency_tracking" != xno; then
3023 am_depcomp="$ac_aux_dir/depcomp"
3024 AMDEPBACKSLASH='\'
3025fi
3026 if test "x$enable_dependency_tracking" != xno; then
3027 AMDEP_TRUE=
3028 AMDEP_FALSE='#'
3029else
3030 AMDEP_TRUE='#'
3031 AMDEP_FALSE=
3032fi
3033
3034
3035ac_ext=c
3036ac_cpp='$CPP $CPPFLAGS'
3037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3042set dummy ${ac_tool_prefix}gcc; ac_word=$2
7083c021 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3044$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3045if ${ac_cv_prog_CC+:} false; then :
030272f3 3046 $as_echo_n "(cached) " >&6
db137867
AC
3047else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
7083c021 3056 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7083c021 3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3060 break 2
3061 fi
3062done
7083c021 3063 done
db137867
AC
3064IFS=$as_save_IFS
3065
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
7083c021 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3071$as_echo "$CC" >&6; }
db137867 3072else
7083c021 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3074$as_echo "no" >&6; }
db137867
AC
3075fi
3076
3077
3078fi
3079if test -z "$ac_cv_prog_CC"; then
3080 ac_ct_CC=$CC
3081 # Extract the first word of "gcc", so it can be a program name with args.
3082set dummy gcc; ac_word=$2
7083c021 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3084$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3085if ${ac_cv_prog_ac_ct_CC+:} false; then :
030272f3 3086 $as_echo_n "(cached) " >&6
db137867
AC
3087else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
7083c021 3096 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC="gcc"
7083c021 3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3100 break 2
3101 fi
3102done
7083c021 3103 done
db137867
AC
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109if test -n "$ac_ct_CC"; then
7083c021 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
030272f3 3111$as_echo "$ac_ct_CC" >&6; }
db137867 3112else
7083c021 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3114$as_echo "no" >&6; }
db137867
AC
3115fi
3116
3117 if test "x$ac_ct_CC" = x; then
3118 CC=""
3119 else
3120 case $cross_compiling:$ac_tool_warned in
3121yes:)
7083c021 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 3123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
3124ac_tool_warned=yes ;;
3125esac
3126 CC=$ac_ct_CC
3127 fi
3128else
3129 CC="$ac_cv_prog_CC"
3130fi
3131
3132if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3135set dummy ${ac_tool_prefix}cc; ac_word=$2
7083c021 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3137$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3138if ${ac_cv_prog_CC+:} false; then :
030272f3 3139 $as_echo_n "(cached) " >&6
db137867
AC
3140else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143else
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
7083c021 3149 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_CC="${ac_tool_prefix}cc"
7083c021 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3153 break 2
3154 fi
3155done
7083c021 3156 done
db137867
AC
3157IFS=$as_save_IFS
3158
3159fi
3160fi
3161CC=$ac_cv_prog_CC
3162if test -n "$CC"; then
7083c021 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3164$as_echo "$CC" >&6; }
db137867 3165else
7083c021 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3167$as_echo "no" >&6; }
db137867
AC
3168fi
3169
3170
3171 fi
3172fi
3173if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175set dummy cc; ac_word=$2
7083c021 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3177$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3178if ${ac_cv_prog_CC+:} false; then :
030272f3 3179 $as_echo_n "(cached) " >&6
db137867
AC
3180else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184 ac_prog_rejected=no
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
7083c021 3190 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193 ac_prog_rejected=yes
3194 continue
3195 fi
3196 ac_cv_prog_CC="cc"
7083c021 3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3198 break 2
3199 fi
3200done
7083c021 3201 done
db137867
AC
3202IFS=$as_save_IFS
3203
3204if test $ac_prog_rejected = yes; then
3205 # We found a bogon in the path, so make sure we never use it.
3206 set dummy $ac_cv_prog_CC
3207 shift
3208 if test $# != 0; then
3209 # We chose a different compiler from the bogus one.
3210 # However, it has the same basename, so the bogon will be chosen
3211 # first if we set CC to just the basename; use the full file name.
3212 shift
3213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3214 fi
3215fi
3216fi
3217fi
3218CC=$ac_cv_prog_CC
3219if test -n "$CC"; then
7083c021 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3221$as_echo "$CC" >&6; }
db137867 3222else
7083c021 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3224$as_echo "no" >&6; }
db137867
AC
3225fi
3226
3227
3228fi
3229if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 for ac_prog in cl.exe
3232 do
3233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7083c021 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3236$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3237if ${ac_cv_prog_CC+:} false; then :
030272f3 3238 $as_echo_n "(cached) " >&6
db137867
AC
3239else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
7083c021 3248 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7083c021 3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3252 break 2
3253 fi
3254done
7083c021 3255 done
db137867
AC
3256IFS=$as_save_IFS
3257
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
7083c021 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3263$as_echo "$CC" >&6; }
db137867 3264else
7083c021 3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3266$as_echo "no" >&6; }
db137867
AC
3267fi
3268
3269
3270 test -n "$CC" && break
3271 done
3272fi
3273if test -z "$CC"; then
3274 ac_ct_CC=$CC
3275 for ac_prog in cl.exe
3276do
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278set dummy $ac_prog; ac_word=$2
7083c021 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3280$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 3281if ${ac_cv_prog_ac_ct_CC+:} false; then :
030272f3 3282 $as_echo_n "(cached) " >&6
db137867
AC
3283else
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
7083c021 3292 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_ac_ct_CC="$ac_prog"
7083c021 3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3296 break 2
3297 fi
3298done
7083c021 3299 done
db137867
AC
3300IFS=$as_save_IFS
3301
3302fi
3303fi
3304ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305if test -n "$ac_ct_CC"; then
7083c021 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
030272f3 3307$as_echo "$ac_ct_CC" >&6; }
db137867 3308else
7083c021 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3310$as_echo "no" >&6; }
db137867
AC
3311fi
3312
3313
3314 test -n "$ac_ct_CC" && break
3315done
3316
3317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321yes:)
7083c021 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 3323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
3324ac_tool_warned=yes ;;
3325esac
3326 CC=$ac_ct_CC
3327 fi
3328fi
3329
3330fi
3331
3332
7083c021 3333test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3335as_fn_error $? "no acceptable C compiler found in \$PATH
3336See \`config.log' for more details" "$LINENO" 5; }
db137867
AC
3337
3338# Provide some information about the compiler.
7083c021 3339$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
030272f3
VY
3340set X $ac_compile
3341ac_compiler=$2
7083c021
AC
3342for ac_option in --version -v -V -qversion; do
3343 { { ac_try="$ac_compiler $ac_option >&5"
db137867
AC
3344case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347esac
7083c021
AC
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
db137867 3351 ac_status=$?
7083c021
AC
3352 if test -s conftest.err; then
3353 sed '10a\
3354... rest of stderr output deleted ...
3355 10q' conftest.err >conftest.er1
3356 cat conftest.er1 >&5
7083c021 3357 fi
96f4052b 3358 rm -f conftest.er1 conftest.err
7083c021
AC
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361done
db137867 3362
7083c021 3363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 3364/* end confdefs.h. */
96f4052b 3365
db137867
AC
3366int
3367main ()
3368{
3369
3370 ;
3371 return 0;
3372}
3373_ACEOF
3374ac_clean_files_save=$ac_clean_files
96f4052b 3375ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
db137867
AC
3376# Try to create an executable without -o first, disregard a.out.
3377# It will help us diagnose broken compilers, and finding out an intuition
3378# of exeext.
96f4052b
AC
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380$as_echo_n "checking whether the C compiler works... " >&6; }
030272f3
VY
3381ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3382
3383# The possible output files:
3384ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3385
db137867
AC
3386ac_rmfiles=
3387for ac_file in $ac_files
3388do
3389 case $ac_file in
030272f3 3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
db137867
AC
3391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3392 esac
3393done
3394rm -f $ac_rmfiles
3395
7083c021 3396if { { ac_try="$ac_link_default"
db137867
AC
3397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
7083c021
AC
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
db137867
AC
3403 (eval "$ac_link_default") 2>&5
3404 ac_status=$?
7083c021
AC
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
db137867
AC
3407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3408# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3409# in a Makefile. We should not override ac_cv_exeext if it was cached,
3410# so that the user can short-circuit this test for compilers unknown to
3411# Autoconf.
3412for ac_file in $ac_files ''
3413do
3414 test -f "$ac_file" || continue
3415 case $ac_file in
030272f3 3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
db137867
AC
3417 ;;
3418 [ab].out )
3419 # We found the default executable, but exeext='' is most
3420 # certainly right.
3421 break;;
3422 *.* )
7083c021 3423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
db137867
AC
3424 then :; else
3425 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426 fi
3427 # We set ac_cv_exeext here because the later test for it is not
3428 # safe: cross compilers may not add the suffix if given an `-o'
3429 # argument, so we may need to know it at that point already.
3430 # Even if this section looks crufty: it has the advantage of
3431 # actually working.
3432 break;;
3433 * )
3434 break;;
3435 esac
3436done
3437test "$ac_cv_exeext" = no && ac_cv_exeext=
3438
3439else
3440 ac_file=''
3441fi
7083c021 3442if test -z "$ac_file"; then :
96f4052b
AC
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445$as_echo "$as_me: failed program was:" >&5
db137867
AC
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
7083c021 3448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3450as_fn_error 77 "C compiler cannot create executables
3451See \`config.log' for more details" "$LINENO" 5; }
96f4052b
AC
3452else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454$as_echo "yes" >&6; }
db137867 3455fi
96f4052b
AC
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3457$as_echo_n "checking for C compiler default output file name... " >&6; }
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3459$as_echo "$ac_file" >&6; }
db137867
AC
3460ac_exeext=$ac_cv_exeext
3461
96f4052b 3462rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
db137867 3463ac_clean_files=$ac_clean_files_save
7083c021 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
030272f3 3465$as_echo_n "checking for suffix of executables... " >&6; }
7083c021 3466if { { ac_try="$ac_link"
db137867
AC
3467case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470esac
7083c021
AC
3471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472$as_echo "$ac_try_echo"; } >&5
db137867
AC
3473 (eval "$ac_link") 2>&5
3474 ac_status=$?
7083c021
AC
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
db137867
AC
3477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3478# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3479# work properly (i.e., refer to `conftest.exe'), while it won't with
3480# `rm'.
3481for ac_file in conftest.exe conftest conftest.*; do
3482 test -f "$ac_file" || continue
3483 case $ac_file in
030272f3 3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
db137867
AC
3485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486 break;;
3487 * ) break;;
3488 esac
3489done
3490else
7083c021 3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3493as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3494See \`config.log' for more details" "$LINENO" 5; }
db137867 3495fi
96f4052b 3496rm -f conftest conftest$ac_cv_exeext
7083c021 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
030272f3 3498$as_echo "$ac_cv_exeext" >&6; }
db137867
AC
3499
3500rm -f conftest.$ac_ext
3501EXEEXT=$ac_cv_exeext
3502ac_exeext=$EXEEXT
96f4052b
AC
3503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h. */
3505#include <stdio.h>
3506int
3507main ()
3508{
3509FILE *f = fopen ("conftest.out", "w");
3510 return ferror (f) || fclose (f) != 0;
3511
3512 ;
3513 return 0;
3514}
3515_ACEOF
3516ac_clean_files="$ac_clean_files conftest.out"
3517# Check that the compiler produces executables we can run. If not, either
3518# the compiler is broken, or we cross compile.
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3520$as_echo_n "checking whether we are cross compiling... " >&6; }
3521if test "$cross_compiling" != yes; then
3522 { { ac_try="$ac_link"
3523case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526esac
3527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528$as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_link") 2>&5
3530 ac_status=$?
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }
3533 if { ac_try='./conftest$ac_cv_exeext'
3534 { { case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537esac
3538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539$as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_try") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; }; then
3544 cross_compiling=no
3545 else
3546 if test "$cross_compiling" = maybe; then
3547 cross_compiling=yes
3548 else
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c 3551as_fn_error $? "cannot run C compiled programs.
96f4052b 3552If you meant to cross compile, use \`--host'.
08c2568c 3553See \`config.log' for more details" "$LINENO" 5; }
96f4052b
AC
3554 fi
3555 fi
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3558$as_echo "$cross_compiling" >&6; }
3559
3560rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3561ac_clean_files=$ac_clean_files_save
7083c021 3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
030272f3 3563$as_echo_n "checking for suffix of object files... " >&6; }
08c2568c 3564if ${ac_cv_objext+:} false; then :
030272f3 3565 $as_echo_n "(cached) " >&6
db137867 3566else
7083c021 3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3568/* end confdefs.h. */
3569
3570int
3571main ()
3572{
3573
3574 ;
3575 return 0;
3576}
3577_ACEOF
3578rm -f conftest.o conftest.obj
7083c021 3579if { { ac_try="$ac_compile"
db137867
AC
3580case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583esac
7083c021
AC
3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
db137867
AC
3586 (eval "$ac_compile") 2>&5
3587 ac_status=$?
7083c021
AC
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
db137867
AC
3590 for ac_file in conftest.o conftest.obj conftest.*; do
3591 test -f "$ac_file" || continue;
3592 case $ac_file in
030272f3 3593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
db137867
AC
3594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3595 break;;
3596 esac
3597done
3598else
030272f3 3599 $as_echo "$as_me: failed program was:" >&5
db137867
AC
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
7083c021 3602{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
3604as_fn_error $? "cannot compute suffix of object files: cannot compile
3605See \`config.log' for more details" "$LINENO" 5; }
db137867 3606fi
db137867
AC
3607rm -f conftest.$ac_cv_objext conftest.$ac_ext
3608fi
7083c021 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
030272f3 3610$as_echo "$ac_cv_objext" >&6; }
db137867
AC
3611OBJEXT=$ac_cv_objext
3612ac_objext=$OBJEXT
7083c021 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
030272f3 3614$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
08c2568c 3615if ${ac_cv_c_compiler_gnu+:} false; then :
030272f3 3616 $as_echo_n "(cached) " >&6
db137867 3617else
7083c021 3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3619/* end confdefs.h. */
3620
3621int
3622main ()
3623{
3624#ifndef __GNUC__
3625 choke me
3626#endif
3627
3628 ;
3629 return 0;
3630}
3631_ACEOF
7083c021 3632if ac_fn_c_try_compile "$LINENO"; then :
db137867
AC
3633 ac_compiler_gnu=yes
3634else
7083c021 3635 ac_compiler_gnu=no
db137867 3636fi
db137867
AC
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638ac_cv_c_compiler_gnu=$ac_compiler_gnu
3639
3640fi
7083c021 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
030272f3
VY
3642$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3643if test $ac_compiler_gnu = yes; then
3644 GCC=yes
3645else
3646 GCC=
3647fi
db137867
AC
3648ac_test_CFLAGS=${CFLAGS+set}
3649ac_save_CFLAGS=$CFLAGS
7083c021 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
030272f3 3651$as_echo_n "checking whether $CC accepts -g... " >&6; }
08c2568c 3652if ${ac_cv_prog_cc_g+:} false; then :
030272f3 3653 $as_echo_n "(cached) " >&6
db137867
AC
3654else
3655 ac_save_c_werror_flag=$ac_c_werror_flag
3656 ac_c_werror_flag=yes
3657 ac_cv_prog_cc_g=no
3658 CFLAGS="-g"
7083c021 3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3660/* end confdefs.h. */
3661
3662int
3663main ()
3664{
3665
3666 ;
3667 return 0;
3668}
3669_ACEOF
7083c021 3670if ac_fn_c_try_compile "$LINENO"; then :
db137867
AC
3671 ac_cv_prog_cc_g=yes
3672else
7083c021
AC
3673 CFLAGS=""
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3675/* end confdefs.h. */
3676
3677int
3678main ()
3679{
3680
3681 ;
3682 return 0;
3683}
3684_ACEOF
7083c021 3685if ac_fn_c_try_compile "$LINENO"; then :
db137867 3686
7083c021
AC
3687else
3688 ac_c_werror_flag=$ac_save_c_werror_flag
db137867 3689 CFLAGS="-g"
7083c021 3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3691/* end confdefs.h. */
3692
3693int
3694main ()
3695{
3696
3697 ;
3698 return 0;
3699}
3700_ACEOF
7083c021 3701if ac_fn_c_try_compile "$LINENO"; then :
db137867 3702 ac_cv_prog_cc_g=yes
db137867 3703fi
db137867
AC
3704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705fi
db137867
AC
3706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707fi
db137867
AC
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_c_werror_flag=$ac_save_c_werror_flag
3710fi
7083c021 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
030272f3 3712$as_echo "$ac_cv_prog_cc_g" >&6; }
db137867
AC
3713if test "$ac_test_CFLAGS" = set; then
3714 CFLAGS=$ac_save_CFLAGS
3715elif test $ac_cv_prog_cc_g = yes; then
3716 if test "$GCC" = yes; then
3717 CFLAGS="-g -O2"
3718 else
3719 CFLAGS="-g"
3720 fi
3721else
3722 if test "$GCC" = yes; then
3723 CFLAGS="-O2"
3724 else
3725 CFLAGS=
3726 fi
3727fi
7083c021 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
030272f3 3729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
08c2568c 3730if ${ac_cv_prog_cc_c89+:} false; then :
030272f3 3731 $as_echo_n "(cached) " >&6
db137867
AC
3732else
3733 ac_cv_prog_cc_c89=no
3734ac_save_CC=$CC
7083c021 3735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3736/* end confdefs.h. */
3737#include <stdarg.h>
3738#include <stdio.h>
3739#include <sys/types.h>
3740#include <sys/stat.h>
3741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3742struct buf { int x; };
3743FILE * (*rcsopen) (struct buf *, struct stat *, int);
3744static char *e (p, i)
3745 char **p;
3746 int i;
3747{
3748 return p[i];
3749}
3750static char *f (char * (*g) (char **, int), char **p, ...)
3751{
3752 char *s;
3753 va_list v;
3754 va_start (v,p);
3755 s = g (p, va_arg (v,int));
3756 va_end (v);
3757 return s;
3758}
3759
3760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3761 function prototypes and stuff, but not '\xHH' hex character constants.
3762 These don't provoke an error unfortunately, instead are silently treated
3763 as 'x'. The following induces an error, until -std is added to get
3764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3765 array size at least. It's necessary to write '\x00'==0 to get something
3766 that's true only with -std. */
3767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3768
3769/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3770 inside strings and character constants. */
3771#define FOO(x) 'x'
3772int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3773
3774int test (int i, double x);
3775struct s1 {int (*f) (int a);};
3776struct s2 {int (*f) (double a);};
3777int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778int argc;
3779char **argv;
3780int
3781main ()
3782{
3783return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3790do
3791 CC="$ac_save_CC $ac_arg"
7083c021 3792 if ac_fn_c_try_compile "$LINENO"; then :
db137867 3793 ac_cv_prog_cc_c89=$ac_arg
db137867 3794fi
db137867
AC
3795rm -f core conftest.err conftest.$ac_objext
3796 test "x$ac_cv_prog_cc_c89" != "xno" && break
3797done
3798rm -f conftest.$ac_ext
3799CC=$ac_save_CC
3800
3801fi
3802# AC_CACHE_VAL
3803case "x$ac_cv_prog_cc_c89" in
3804 x)
7083c021 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
030272f3 3806$as_echo "none needed" >&6; } ;;
db137867 3807 xno)
7083c021 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
030272f3 3809$as_echo "unsupported" >&6; } ;;
db137867
AC
3810 *)
3811 CC="$CC $ac_cv_prog_cc_c89"
7083c021 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
030272f3 3813$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
db137867 3814esac
7083c021 3815if test "x$ac_cv_prog_cc_c89" != xno; then :
db137867 3816
7083c021 3817fi
db137867
AC
3818
3819ac_ext=c
3820ac_cpp='$CPP $CPPFLAGS'
3821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824
3825depcc="$CC" am_compiler_list=
3826
7083c021 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
030272f3 3828$as_echo_n "checking dependency style of $depcc... " >&6; }
08c2568c 3829if ${am_cv_CC_dependencies_compiler_type+:} false; then :
030272f3 3830 $as_echo_n "(cached) " >&6
db137867
AC
3831else
3832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3833 # We make a subdir and do the tests there. Otherwise we can end up
3834 # making bogus files that we don't know about and never remove. For
3835 # instance it was reported that on HP-UX the gcc test will end up
3836 # making a dummy file named `D' -- because `-MD' means `put the output
3837 # in D'.
3838 mkdir conftest.dir
3839 # Copy depcomp to subdir because otherwise we won't find it if we're
3840 # using a relative directory.
3841 cp "$am_depcomp" conftest.dir
3842 cd conftest.dir
3843 # We will build objects and dependencies in a subdirectory because
3844 # it helps to detect inapplicable dependency modes. For instance
3845 # both Tru64's cc and ICC support -MD to output dependencies as a
3846 # side effect of compilation, but ICC will put the dependencies in
3847 # the current directory while Tru64 will put them in the object
3848 # directory.
3849 mkdir sub
3850
3851 am_cv_CC_dependencies_compiler_type=none
3852 if test "$am_compiler_list" = ""; then
3853 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3854 fi
7083c021
AC
3855 am__universal=false
3856 case " $depcc " in #(
3857 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3858 esac
3859
db137867
AC
3860 for depmode in $am_compiler_list; do
3861 # Setup a source with many dependencies, because some compilers
3862 # like to wrap large dependency lists on column 80 (with \), and
3863 # we should not choose a depcomp mode which is confused by this.
3864 #
3865 # We need to recreate these files for each test, as the compiler may
3866 # overwrite some of them when testing with obscure command lines.
3867 # This happens at least with the AIX C compiler.
3868 : > sub/conftest.c
3869 for i in 1 2 3 4 5 6; do
3870 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3871 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3872 # Solaris 8's {/usr,}/bin/sh.
3873 touch sub/conftst$i.h
3874 done
3875 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3876
7083c021
AC
3877 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3878 # mode. It turns out that the SunPro C++ compiler does not properly
3879 # handle `-M -o', and we need to detect this. Also, some Intel
3880 # versions had trouble with output in subdirs
3881 am__obj=sub/conftest.${OBJEXT-o}
3882 am__minus_obj="-o $am__obj"
db137867 3883 case $depmode in
7083c021
AC
3884 gcc)
3885 # This depmode causes a compiler race in universal mode.
3886 test "$am__universal" = false || continue
3887 ;;
db137867
AC
3888 nosideeffect)
3889 # after this tag, mechanisms are not by side-effect, so they'll
3890 # only be used when explicitly requested
3891 if test "x$enable_dependency_tracking" = xyes; then
3892 continue
3893 else
3894 break
3895 fi
3896 ;;
7083c021
AC
3897 msvisualcpp | msvcmsys)
3898 # This compiler won't grok `-c -o', but also, the minuso test has
3899 # not run yet. These depmodes are late enough in the game, and
3900 # so weak that their functioning should not be impacted.
3901 am__obj=conftest.${OBJEXT-o}
3902 am__minus_obj=
3903 ;;
db137867
AC
3904 none) break ;;
3905 esac
db137867 3906 if depmode=$depmode \
7083c021 3907 source=sub/conftest.c object=$am__obj \
db137867 3908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7083c021 3909 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
db137867
AC
3910 >/dev/null 2>conftest.err &&
3911 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7083c021 3913 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
db137867
AC
3914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3915 # icc doesn't choke on unknown options, it will just issue warnings
3916 # or remarks (even with -Werror). So we grep stderr for any message
3917 # that says an option was ignored or not supported.
3918 # When given -MP, icc 7.0 and 7.1 complain thusly:
3919 # icc: Command line warning: ignoring option '-M'; no argument required
3920 # The diagnosis changed in icc 8.0:
3921 # icc: Command line remark: option '-MP' not supported
3922 if (grep 'ignoring option' conftest.err ||
3923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3924 am_cv_CC_dependencies_compiler_type=$depmode
3925 break
3926 fi
3927 fi
3928 done
3929
3930 cd ..
3931 rm -rf conftest.dir
3932else
3933 am_cv_CC_dependencies_compiler_type=none
3934fi
3935
3936fi
7083c021 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
030272f3 3938$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
db137867
AC
3939CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3940
3941 if
3942 test "x$enable_dependency_tracking" != xno \
3943 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3944 am__fastdepCC_TRUE=
3945 am__fastdepCC_FALSE='#'
3946else
3947 am__fastdepCC_TRUE='#'
3948 am__fastdepCC_FALSE=
3949fi
3950
3951
030272f3
VY
3952
3953ac_ext=c
3954ac_cpp='$CPP $CPPFLAGS'
3955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083c021 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
030272f3
VY
3959$as_echo_n "checking how to run the C preprocessor... " >&6; }
3960# On Suns, sometimes $CPP names a directory.
3961if test -n "$CPP" && test -d "$CPP"; then
3962 CPP=
3963fi
3964if test -z "$CPP"; then
08c2568c 3965 if ${ac_cv_prog_CPP+:} false; then :
030272f3 3966 $as_echo_n "(cached) " >&6
db137867 3967else
030272f3
VY
3968 # Double quotes because CPP needs to be expanded
3969 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3970 do
3971 ac_preproc_ok=false
3972for ac_c_preproc_warn_flag in '' yes
3973do
3974 # Use a header file that comes with gcc, so configuring glibc
3975 # with a fresh cross-compiler works.
3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977 # <limits.h> exists even on freestanding compilers.
3978 # On the NeXT, cc -E runs the code through the compiler's parser,
3979 # not just through cpp. "Syntax error" is here to catch this case.
7083c021 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 3981/* end confdefs.h. */
030272f3
VY
3982#ifdef __STDC__
3983# include <limits.h>
db137867 3984#else
030272f3 3985# include <assert.h>
db137867 3986#endif
030272f3 3987 Syntax error
db137867 3988_ACEOF
7083c021 3989if ac_fn_c_try_cpp "$LINENO"; then :
db137867 3990
7083c021 3991else
030272f3
VY
3992 # Broken: fails on valid input.
3993continue
db137867 3994fi
08c2568c 3995rm -f conftest.err conftest.i conftest.$ac_ext
db137867 3996
030272f3
VY
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
7083c021 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4000/* end confdefs.h. */
4001#include <ac_nonexistent.h>
4002_ACEOF
7083c021 4003if ac_fn_c_try_cpp "$LINENO"; then :
030272f3
VY
4004 # Broken: success on invalid input.
4005continue
4006else
030272f3
VY
4007 # Passes both tests.
4008ac_preproc_ok=:
4009break
4010fi
08c2568c 4011rm -f conftest.err conftest.i conftest.$ac_ext
db137867 4012
030272f3
VY
4013done
4014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
08c2568c 4015rm -f conftest.i conftest.err conftest.$ac_ext
7083c021 4016if $ac_preproc_ok; then :
030272f3 4017 break
db137867
AC
4018fi
4019
030272f3
VY
4020 done
4021 ac_cv_prog_CPP=$CPP
db137867 4022
030272f3
VY
4023fi
4024 CPP=$ac_cv_prog_CPP
db137867 4025else
030272f3
VY
4026 ac_cv_prog_CPP=$CPP
4027fi
7083c021 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
030272f3
VY
4029$as_echo "$CPP" >&6; }
4030ac_preproc_ok=false
4031for ac_c_preproc_warn_flag in '' yes
db137867 4032do
030272f3
VY
4033 # Use a header file that comes with gcc, so configuring glibc
4034 # with a fresh cross-compiler works.
4035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 # <limits.h> exists even on freestanding compilers.
4037 # On the NeXT, cc -E runs the code through the compiler's parser,
4038 # not just through cpp. "Syntax error" is here to catch this case.
7083c021 4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4040/* end confdefs.h. */
4041#ifdef __STDC__
4042# include <limits.h>
4043#else
4044# include <assert.h>
4045#endif
4046 Syntax error
4047_ACEOF
7083c021 4048if ac_fn_c_try_cpp "$LINENO"; then :
db137867 4049
7083c021 4050else
030272f3
VY
4051 # Broken: fails on valid input.
4052continue
db137867 4053fi
08c2568c 4054rm -f conftest.err conftest.i conftest.$ac_ext
db137867 4055
030272f3
VY
4056 # OK, works on sane cases. Now check whether nonexistent headers
4057 # can be detected and how.
7083c021 4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4059/* end confdefs.h. */
4060#include <ac_nonexistent.h>
4061_ACEOF
7083c021 4062if ac_fn_c_try_cpp "$LINENO"; then :
030272f3
VY
4063 # Broken: success on invalid input.
4064continue
4065else
030272f3
VY
4066 # Passes both tests.
4067ac_preproc_ok=:
4068break
4069fi
08c2568c 4070rm -f conftest.err conftest.i conftest.$ac_ext
030272f3
VY
4071
4072done
4073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
08c2568c 4074rm -f conftest.i conftest.err conftest.$ac_ext
7083c021
AC
4075if $ac_preproc_ok; then :
4076
db137867 4077else
7083c021 4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 4079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
4080as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4081See \`config.log' for more details" "$LINENO" 5; }
030272f3
VY
4082fi
4083
4084ac_ext=c
4085ac_cpp='$CPP $CPPFLAGS'
4086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090
7083c021 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
030272f3 4092$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
08c2568c 4093if ${ac_cv_path_GREP+:} false; then :
030272f3 4094 $as_echo_n "(cached) " >&6
db137867 4095else
030272f3 4096 if test -z "$GREP"; then
db137867 4097 ac_path_GREP_found=false
030272f3
VY
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
db137867
AC
4100for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
7083c021 4104 for ac_prog in grep ggrep; do
030272f3
VY
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4108# Check for GNU ac_path_GREP and select it if it is found.
db137867
AC
4109 # Check for GNU $ac_path_GREP
4110case `"$ac_path_GREP" --version 2>&1` in
4111*GNU*)
4112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4113*)
4114 ac_count=0
030272f3 4115 $as_echo_n 0123456789 >"conftest.in"
db137867
AC
4116 while :
4117 do
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
030272f3 4121 $as_echo 'GREP' >> "conftest.nl"
db137867
AC
4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4124 as_fn_arith $ac_count + 1 && ac_count=$as_val
db137867
AC
4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_GREP="$ac_path_GREP"
4128 ac_path_GREP_max=$ac_count
4129 fi
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4132 done
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134esac
4135
030272f3
VY
4136 $ac_path_GREP_found && break 3
4137 done
db137867 4138 done
7083c021 4139 done
db137867 4140IFS=$as_save_IFS
030272f3 4141 if test -z "$ac_cv_path_GREP"; then
08c2568c 4142 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4143 fi
db137867
AC
4144else
4145 ac_cv_path_GREP=$GREP
4146fi
4147
db137867 4148fi
7083c021 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
030272f3 4150$as_echo "$ac_cv_path_GREP" >&6; }
db137867
AC
4151 GREP="$ac_cv_path_GREP"
4152
4153
7083c021 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
030272f3 4155$as_echo_n "checking for egrep... " >&6; }
08c2568c 4156if ${ac_cv_path_EGREP+:} false; then :
030272f3 4157 $as_echo_n "(cached) " >&6
db137867
AC
4158else
4159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4160 then ac_cv_path_EGREP="$GREP -E"
4161 else
030272f3 4162 if test -z "$EGREP"; then
db137867 4163 ac_path_EGREP_found=false
030272f3
VY
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
db137867
AC
4166for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
7083c021 4170 for ac_prog in egrep; do
030272f3
VY
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4173 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4174# Check for GNU ac_path_EGREP and select it if it is found.
db137867
AC
4175 # Check for GNU $ac_path_EGREP
4176case `"$ac_path_EGREP" --version 2>&1` in
4177*GNU*)
4178 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4179*)
4180 ac_count=0
030272f3 4181 $as_echo_n 0123456789 >"conftest.in"
db137867
AC
4182 while :
4183 do
4184 cat "conftest.in" "conftest.in" >"conftest.tmp"
4185 mv "conftest.tmp" "conftest.in"
4186 cp "conftest.in" "conftest.nl"
030272f3 4187 $as_echo 'EGREP' >> "conftest.nl"
db137867
AC
4188 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4190 as_fn_arith $ac_count + 1 && ac_count=$as_val
db137867
AC
4191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4192 # Best one so far, save it but keep looking for a better one
4193 ac_cv_path_EGREP="$ac_path_EGREP"
4194 ac_path_EGREP_max=$ac_count
4195 fi
4196 # 10*(2^10) chars as input seems more than enough
4197 test $ac_count -gt 10 && break
4198 done
4199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4200esac
4201
030272f3
VY
4202 $ac_path_EGREP_found && break 3
4203 done
db137867 4204 done
7083c021 4205 done
db137867 4206IFS=$as_save_IFS
030272f3 4207 if test -z "$ac_cv_path_EGREP"; then
08c2568c 4208 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4209 fi
db137867
AC
4210else
4211 ac_cv_path_EGREP=$EGREP
4212fi
4213
db137867
AC
4214 fi
4215fi
7083c021 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
030272f3 4217$as_echo "$ac_cv_path_EGREP" >&6; }
db137867
AC
4218 EGREP="$ac_cv_path_EGREP"
4219
4220
7083c021 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
030272f3 4222$as_echo_n "checking for ANSI C header files... " >&6; }
08c2568c 4223if ${ac_cv_header_stdc+:} false; then :
030272f3 4224 $as_echo_n "(cached) " >&6
db137867 4225else
7083c021 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4227/* end confdefs.h. */
030272f3
VY
4228#include <stdlib.h>
4229#include <stdarg.h>
4230#include <string.h>
4231#include <float.h>
db137867 4232
db137867
AC
4233int
4234main ()
4235{
030272f3 4236
db137867
AC
4237 ;
4238 return 0;
4239}
4240_ACEOF
7083c021 4241if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4242 ac_cv_header_stdc=yes
db137867 4243else
7083c021 4244 ac_cv_header_stdc=no
db137867 4245fi
030272f3
VY
4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247
4248if test $ac_cv_header_stdc = yes; then
4249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7083c021 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4251/* end confdefs.h. */
4252#include <string.h>
4253
4254_ACEOF
4255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021
AC
4256 $EGREP "memchr" >/dev/null 2>&1; then :
4257
db137867 4258else
030272f3 4259 ac_cv_header_stdc=no
db137867 4260fi
030272f3 4261rm -f conftest*
db137867
AC
4262
4263fi
4264
030272f3
VY
4265if test $ac_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7083c021 4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4268/* end confdefs.h. */
030272f3 4269#include <stdlib.h>
db137867
AC
4270
4271_ACEOF
030272f3 4272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021
AC
4273 $EGREP "free" >/dev/null 2>&1; then :
4274
db137867 4275else
030272f3 4276 ac_cv_header_stdc=no
db137867 4277fi
030272f3 4278rm -f conftest*
db137867
AC
4279
4280fi
db137867 4281
030272f3
VY
4282if test $ac_cv_header_stdc = yes; then
4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7083c021 4284 if test "$cross_compiling" = yes; then :
030272f3 4285 :
db137867 4286else
7083c021 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4288/* end confdefs.h. */
030272f3
VY
4289#include <ctype.h>
4290#include <stdlib.h>
4291#if ((' ' & 0x0FF) == 0x020)
4292# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4294#else
4295# define ISLOWER(c) \
4296 (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
db137867
AC
4300#endif
4301
030272f3
VY
4302#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4303int
4304main ()
4305{
4306 int i;
4307 for (i = 0; i < 256; i++)
4308 if (XOR (islower (i), ISLOWER (i))
4309 || toupper (i) != TOUPPER (i))
4310 return 2;
db137867
AC
4311 return 0;
4312}
4313_ACEOF
7083c021 4314if ac_fn_c_try_run "$LINENO"; then :
030272f3 4315
7083c021
AC
4316else
4317 ac_cv_header_stdc=no
030272f3 4318fi
7083c021
AC
4319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4320 conftest.$ac_objext conftest.beam conftest.$ac_ext
030272f3
VY
4321fi
4322
030272f3
VY
4323fi
4324fi
7083c021 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
030272f3
VY
4326$as_echo "$ac_cv_header_stdc" >&6; }
4327if test $ac_cv_header_stdc = yes; then
4328
7083c021 4329$as_echo "#define STDC_HEADERS 1" >>confdefs.h
030272f3
VY
4330
4331fi
4332
4333# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7083c021
AC
4334for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4335 inttypes.h stdint.h unistd.h
4336do :
4337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4338ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4339"
08c2568c 4340if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
4341 cat >>confdefs.h <<_ACEOF
4342#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4343_ACEOF
030272f3 4344
7083c021 4345fi
030272f3 4346
7083c021 4347done
030272f3
VY
4348
4349
4350
7083c021 4351 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
08c2568c 4352if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021
AC
4353 MINIX=yes
4354else
4355 MINIX=
4356fi
030272f3
VY
4357
4358
7083c021 4359 if test "$MINIX" = yes; then
030272f3 4360
7083c021 4361$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
030272f3 4362
db137867 4363
7083c021 4364$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
db137867 4365
db137867 4366
7083c021 4367$as_echo "#define _MINIX 1" >>confdefs.h
030272f3 4368
7083c021 4369 fi
030272f3
VY
4370
4371
7083c021 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
030272f3 4373$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
08c2568c 4374if ${ac_cv_safe_to_define___extensions__+:} false; then :
030272f3 4375 $as_echo_n "(cached) " >&6
db137867 4376else
7083c021 4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 4378/* end confdefs.h. */
db137867 4379
030272f3
VY
4380# define __EXTENSIONS__ 1
4381 $ac_includes_default
4382int
4383main ()
4384{
4385
4386 ;
4387 return 0;
4388}
4389_ACEOF
7083c021 4390if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4391 ac_cv_safe_to_define___extensions__=yes
db137867 4392else
7083c021 4393 ac_cv_safe_to_define___extensions__=no
db137867 4394fi
030272f3
VY
4395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396fi
7083c021 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
030272f3
VY
4398$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4399 test $ac_cv_safe_to_define___extensions__ = yes &&
7083c021 4400 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
db137867 4401
7083c021 4402 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
030272f3 4403
7083c021 4404 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
030272f3 4405
7083c021
AC
4406 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4407
4408 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
030272f3 4409
030272f3
VY
4410
4411
4412
7083c021 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
030272f3 4414$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
08c2568c 4415if ${ac_cv_prog_cc_c99+:} false; then :
030272f3 4416 $as_echo_n "(cached) " >&6
db137867 4417else
030272f3
VY
4418 ac_cv_prog_cc_c99=no
4419ac_save_CC=$CC
7083c021 4420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4421/* end confdefs.h. */
4422#include <stdarg.h>
4423#include <stdbool.h>
4424#include <stdlib.h>
4425#include <wchar.h>
4426#include <stdio.h>
db137867 4427
030272f3
VY
4428// Check varargs macros. These examples are taken from C99 6.10.3.5.
4429#define debug(...) fprintf (stderr, __VA_ARGS__)
4430#define showlist(...) puts (#__VA_ARGS__)
4431#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4432static void
4433test_varargs_macros (void)
4434{
4435 int x = 1234;
4436 int y = 5678;
4437 debug ("Flag");
4438 debug ("X = %d\n", x);
4439 showlist (The first, second, and third items.);
4440 report (x>y, "x is %d but y is %d", x, y);
4441}
db137867 4442
030272f3
VY
4443// Check long long types.
4444#define BIG64 18446744073709551615ull
4445#define BIG32 4294967295ul
4446#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4447#if !BIG_OK
4448 your preprocessor is broken;
4449#endif
4450#if BIG_OK
4451#else
4452 your preprocessor is broken;
4453#endif
4454static long long int bignum = -9223372036854775807LL;
4455static unsigned long long int ubignum = BIG64;
db137867 4456
030272f3
VY
4457struct incomplete_array
4458{
4459 int datasize;
4460 double data[];
4461};
db137867 4462
030272f3
VY
4463struct named_init {
4464 int number;
4465 const wchar_t *name;
4466 double average;
4467};
db137867 4468
030272f3 4469typedef const char *ccp;
db137867 4470
030272f3
VY
4471static inline int
4472test_restrict (ccp restrict text)
4473{
4474 // See if C++-style comments work.
4475 // Iterate through items via the restricted pointer.
4476 // Also check for declarations in for loops.
4477 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4478 continue;
4479 return 0;
4480}
db137867 4481
030272f3
VY
4482// Check varargs and va_copy.
4483static void
4484test_varargs (const char *format, ...)
4485{
4486 va_list args;
4487 va_start (args, format);
4488 va_list args_copy;
4489 va_copy (args_copy, args);
db137867 4490
030272f3
VY
4491 const char *str;
4492 int number;
4493 float fnumber;
db137867 4494
030272f3
VY
4495 while (*format)
4496 {
4497 switch (*format++)
4498 {
4499 case 's': // string
4500 str = va_arg (args_copy, const char *);
4501 break;
4502 case 'd': // int
4503 number = va_arg (args_copy, int);
4504 break;
4505 case 'f': // float
4506 fnumber = va_arg (args_copy, double);
4507 break;
4508 default:
4509 break;
4510 }
4511 }
4512 va_end (args_copy);
4513 va_end (args);
4514}
db137867 4515
030272f3
VY
4516int
4517main ()
4518{
db137867 4519
030272f3
VY
4520 // Check bool.
4521 _Bool success = false;
db137867 4522
030272f3
VY
4523 // Check restrict.
4524 if (test_restrict ("String literal") == 0)
4525 success = true;
4526 char *restrict newvar = "Another string";
db137867 4527
030272f3
VY
4528 // Check varargs.
4529 test_varargs ("s, d' f .", "string", 65, 34.234);
4530 test_varargs_macros ();
db137867 4531
030272f3
VY
4532 // Check flexible array members.
4533 struct incomplete_array *ia =
4534 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4535 ia->datasize = 10;
4536 for (int i = 0; i < ia->datasize; ++i)
4537 ia->data[i] = i * 1.234;
db137867 4538
030272f3
VY
4539 // Check named initializers.
4540 struct named_init ni = {
4541 .number = 34,
4542 .name = L"Test wide string",
4543 .average = 543.34343,
4544 };
db137867 4545
030272f3 4546 ni.number = 58;
db137867 4547
030272f3
VY
4548 int dynamic_array[ni.number];
4549 dynamic_array[ni.number - 1] = 543;
4550
4551 // work around unused variable warnings
4552 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4553 || dynamic_array[ni.number - 1] != 543);
4554
4555 ;
4556 return 0;
4557}
4558_ACEOF
4559for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4560do
4561 CC="$ac_save_CC $ac_arg"
7083c021 4562 if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4563 ac_cv_prog_cc_c99=$ac_arg
db137867 4564fi
030272f3
VY
4565rm -f core conftest.err conftest.$ac_objext
4566 test "x$ac_cv_prog_cc_c99" != "xno" && break
4567done
4568rm -f conftest.$ac_ext
4569CC=$ac_save_CC
4570
db137867 4571fi
030272f3
VY
4572# AC_CACHE_VAL
4573case "x$ac_cv_prog_cc_c99" in
4574 x)
7083c021 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
030272f3
VY
4576$as_echo "none needed" >&6; } ;;
4577 xno)
7083c021 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
030272f3
VY
4579$as_echo "unsupported" >&6; } ;;
4580 *)
4581 CC="$CC $ac_cv_prog_cc_c99"
7083c021 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
030272f3 4583$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
db137867 4584esac
7083c021 4585if test "x$ac_cv_prog_cc_c99" != xno; then :
db137867 4586
030272f3
VY
4587fi
4588
4589
030272f3 4590
7083c021 4591if test x"$ac_cv_prog_cc_c99" = "xno"; then
08c2568c 4592 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
030272f3 4593fi
db137867 4594
db137867
AC
4595
4596
7083c021 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
030272f3 4598$as_echo_n "checking for egrep... " >&6; }
08c2568c 4599if ${ac_cv_path_EGREP+:} false; then :
030272f3 4600 $as_echo_n "(cached) " >&6
db137867 4601else
030272f3
VY
4602 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4603 then ac_cv_path_EGREP="$GREP -E"
4604 else
4605 if test -z "$EGREP"; then
4606 ac_path_EGREP_found=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
7083c021 4613 for ac_prog in egrep; do
030272f3
VY
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4616 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4617# Check for GNU ac_path_EGREP and select it if it is found.
4618 # Check for GNU $ac_path_EGREP
4619case `"$ac_path_EGREP" --version 2>&1` in
4620*GNU*)
4621 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4622*)
4623 ac_count=0
4624 $as_echo_n 0123456789 >"conftest.in"
4625 while :
4626 do
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 $as_echo 'EGREP' >> "conftest.nl"
4631 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4633 as_fn_arith $ac_count + 1 && ac_count=$as_val
030272f3
VY
4634 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_EGREP="$ac_path_EGREP"
4637 ac_path_EGREP_max=$ac_count
4638 fi
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
4641 done
4642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643esac
db137867 4644
030272f3
VY
4645 $ac_path_EGREP_found && break 3
4646 done
4647 done
7083c021 4648 done
030272f3
VY
4649IFS=$as_save_IFS
4650 if test -z "$ac_cv_path_EGREP"; then
08c2568c 4651 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4652 fi
db137867 4653else
030272f3 4654 ac_cv_path_EGREP=$EGREP
db137867 4655fi
030272f3
VY
4656
4657 fi
4658fi
7083c021 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
030272f3
VY
4660$as_echo "$ac_cv_path_EGREP" >&6; }
4661 EGREP="$ac_cv_path_EGREP"
4662
4663
7083c021 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
030272f3 4665$as_echo_n "checking for a sed that does not truncate output... " >&6; }
08c2568c 4666if ${ac_cv_path_SED+:} false; then :
030272f3
VY
4667 $as_echo_n "(cached) " >&6
4668else
4669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4670 for ac_i in 1 2 3 4 5 6 7; do
4671 ac_script="$ac_script$as_nl$ac_script"
4672 done
4673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7083c021 4674 { ac_script=; unset ac_script;}
030272f3
VY
4675 if test -z "$SED"; then
4676 ac_path_SED_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
7083c021 4683 for ac_prog in sed gsed; do
030272f3
VY
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4686 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4687# Check for GNU ac_path_SED and select it if it is found.
4688 # Check for GNU $ac_path_SED
4689case `"$ac_path_SED" --version 2>&1` in
4690*GNU*)
4691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4692*)
4693 ac_count=0
4694 $as_echo_n 0123456789 >"conftest.in"
4695 while :
4696 do
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo '' >> "conftest.nl"
4701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
030272f3
VY
4704 if test $ac_count -gt ${ac_path_SED_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_SED="$ac_path_SED"
4707 ac_path_SED_max=$ac_count
db137867 4708 fi
030272f3
VY
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
db137867 4711 done
030272f3
VY
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713esac
4714
4715 $ac_path_SED_found && break 3
4716 done
4717 done
7083c021 4718 done
030272f3
VY
4719IFS=$as_save_IFS
4720 if test -z "$ac_cv_path_SED"; then
08c2568c 4721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
030272f3 4722 fi
db137867 4723else
030272f3 4724 ac_cv_path_SED=$SED
db137867 4725fi
030272f3 4726
db137867 4727fi
7083c021 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
030272f3
VY
4729$as_echo "$ac_cv_path_SED" >&6; }
4730 SED="$ac_cv_path_SED"
4731 rm -f conftest.sed
db137867 4732
030272f3
VY
4733
4734F77=no
4735CXX=no
4736GCJ=no
4737
4738# Check whether --enable-static was given.
7083c021 4739if test "${enable_static+set}" = set; then :
030272f3
VY
4740 enableval=$enable_static; p=${PACKAGE-default}
4741 case $enableval in
4742 yes) enable_static=yes ;;
4743 no) enable_static=no ;;
4744 *)
4745 enable_static=no
4746 # Look at the argument we got. We use all the common list separators.
4747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4748 for pkg in $enableval; do
4749 IFS="$lt_save_ifs"
4750 if test "X$pkg" = "X$p"; then
4751 enable_static=yes
4752 fi
4753 done
4754 IFS="$lt_save_ifs"
4755 ;;
4756 esac
db137867 4757else
030272f3 4758 enable_static=no
db137867 4759fi
030272f3
VY
4760
4761
4762
7083c021
AC
4763
4764
4765
4766
4767
4768
030272f3 4769# Check whether --enable-shared was given.
7083c021 4770if test "${enable_shared+set}" = set; then :
030272f3
VY
4771 enableval=$enable_shared; p=${PACKAGE-default}
4772 case $enableval in
4773 yes) enable_shared=yes ;;
4774 no) enable_shared=no ;;
4775 *)
4776 enable_shared=no
4777 # Look at the argument we got. We use all the common list separators.
4778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4779 for pkg in $enableval; do
4780 IFS="$lt_save_ifs"
4781 if test "X$pkg" = "X$p"; then
4782 enable_shared=yes
4783 fi
4784 done
4785 IFS="$lt_save_ifs"
4786 ;;
4787 esac
db137867 4788else
030272f3 4789 enable_shared=yes
db137867 4790fi
db137867
AC
4791
4792
7083c021
AC
4793
4794
4795
4796
4797
4798
4799
4800
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
030272f3
VY
4802$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4803 # Check whether --enable-maintainer-mode was given.
7083c021 4804if test "${enable_maintainer_mode+set}" = set; then :
030272f3 4805 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
db137867 4806else
030272f3 4807 USE_MAINTAINER_MODE=no
db137867 4808fi
030272f3 4809
7083c021 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
030272f3
VY
4811$as_echo "$USE_MAINTAINER_MODE" >&6; }
4812 if test $USE_MAINTAINER_MODE = yes; then
4813 MAINTAINER_MODE_TRUE=
4814 MAINTAINER_MODE_FALSE='#'
4815else
4816 MAINTAINER_MODE_TRUE='#'
4817 MAINTAINER_MODE_FALSE=
4818fi
4819
4820 MAINT=$MAINTAINER_MODE_TRUE
4821
4822
4823
7083c021 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
030272f3 4825$as_echo_n "checking for library containing strerror... " >&6; }
08c2568c 4826if ${ac_cv_search_strerror+:} false; then :
030272f3
VY
4827 $as_echo_n "(cached) " >&6
4828else
4829 ac_func_search_save_LIBS=$LIBS
7083c021 4830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4831/* end confdefs.h. */
4832
4833/* Override any GCC internal prototype to avoid an error.
4834 Use char because int might match the return type of a GCC
4835 builtin and then its argument prototype would still apply. */
4836#ifdef __cplusplus
4837extern "C"
4838#endif
4839char strerror ();
4840int
4841main ()
4842{
4843return strerror ();
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848for ac_lib in '' cposix; do
4849 if test -z "$ac_lib"; then
4850 ac_res="none required"
4851 else
4852 ac_res=-l$ac_lib
4853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4854 fi
7083c021 4855 if ac_fn_c_try_link "$LINENO"; then :
030272f3 4856 ac_cv_search_strerror=$ac_res
030272f3 4857fi
7083c021
AC
4858rm -f core conftest.err conftest.$ac_objext \
4859 conftest$ac_exeext
08c2568c 4860 if ${ac_cv_search_strerror+:} false; then :
030272f3
VY
4861 break
4862fi
4863done
08c2568c 4864if ${ac_cv_search_strerror+:} false; then :
7083c021 4865
030272f3
VY
4866else
4867 ac_cv_search_strerror=no
4868fi
4869rm conftest.$ac_ext
4870LIBS=$ac_func_search_save_LIBS
4871fi
7083c021 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
030272f3
VY
4873$as_echo "$ac_cv_search_strerror" >&6; }
4874ac_res=$ac_cv_search_strerror
7083c021 4875if test "$ac_res" != no; then :
030272f3
VY
4876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4877
4878fi
4879
7083c021 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
030272f3 4881$as_echo_n "checking for inline... " >&6; }
08c2568c 4882if ${ac_cv_c_inline+:} false; then :
030272f3
VY
4883 $as_echo_n "(cached) " >&6
4884else
4885 ac_cv_c_inline=no
4886for ac_kw in inline __inline__ __inline; do
7083c021 4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4888/* end confdefs.h. */
4889#ifndef __cplusplus
4890typedef int foo_t;
4891static $ac_kw foo_t static_foo () {return 0; }
4892$ac_kw foo_t foo () {return 0; }
4893#endif
4894
4895_ACEOF
7083c021 4896if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4897 ac_cv_c_inline=$ac_kw
030272f3 4898fi
030272f3
VY
4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 test "$ac_cv_c_inline" != no && break
4901done
4902
4903fi
7083c021 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
030272f3
VY
4905$as_echo "$ac_cv_c_inline" >&6; }
4906
030272f3
VY
4907case $ac_cv_c_inline in
4908 inline | yes) ;;
4909 *)
4910 case $ac_cv_c_inline in
4911 no) ac_val=;;
4912 *) ac_val=$ac_cv_c_inline;;
4913 esac
4914 cat >>confdefs.h <<_ACEOF
4915#ifndef __cplusplus
4916#define inline $ac_val
4917#endif
4918_ACEOF
db137867
AC
4919 ;;
4920esac
4921
7083c021 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
030272f3 4923$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
08c2568c 4924if ${ac_cv_c_const+:} false; then :
030272f3 4925 $as_echo_n "(cached) " >&6
db137867 4926else
7083c021 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4928/* end confdefs.h. */
4929
4930int
4931main ()
4932{
4933/* FIXME: Include the comments suggested by Paul. */
4934#ifndef __cplusplus
4935 /* Ultrix mips cc rejects this. */
4936 typedef int charset[2];
4937 const charset cs;
4938 /* SunOS 4.1.1 cc rejects this. */
4939 char const *const *pcpcc;
4940 char **ppc;
4941 /* NEC SVR4.0.2 mips cc rejects this. */
4942 struct point {int x, y;};
4943 static struct point const zero = {0,0};
4944 /* AIX XL C 1.02.0.0 rejects this.
4945 It does not let you subtract one const X* pointer from another in
4946 an arm of an if-expression whose if-part is not a constant
4947 expression */
4948 const char *g = "string";
4949 pcpcc = &g + (g ? g-g : 0);
4950 /* HPUX 7.0 cc rejects these. */
4951 ++pcpcc;
4952 ppc = (char**) pcpcc;
4953 pcpcc = (char const *const *) ppc;
4954 { /* SCO 3.2v4 cc rejects this. */
4955 char *t;
4956 char const *s = 0 ? (char *) 0 : (char const *) 0;
4957
4958 *t++ = 0;
4959 if (s) return 0;
4960 }
4961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4962 int x[] = {25, 17};
4963 const int *foo = &x[0];
4964 ++foo;
4965 }
4966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4967 typedef const int *iptr;
4968 iptr p = 0;
4969 ++p;
4970 }
4971 { /* AIX XL C 1.02.0.0 rejects this saying
4972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4973 struct s { int j; const int *ap[3]; };
4974 struct s *b; b->j = 5;
4975 }
4976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4977 const int foo = 10;
4978 if (!foo) return 0;
4979 }
4980 return !cs[0] && !zero.x;
4981#endif
4982
4983 ;
4984 return 0;
4985}
4986_ACEOF
7083c021 4987if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4988 ac_cv_c_const=yes
db137867 4989else
7083c021 4990 ac_cv_c_const=no
030272f3 4991fi
030272f3
VY
4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993fi
7083c021 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
030272f3
VY
4995$as_echo "$ac_cv_c_const" >&6; }
4996if test $ac_cv_c_const = no; then
4997
7083c021 4998$as_echo "#define const /**/" >>confdefs.h
030272f3
VY
4999
5000fi
5001
7083c021 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
030272f3
VY
5003$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5004set x ${MAKE-make}
5005ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
08c2568c 5006if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
030272f3
VY
5007 $as_echo_n "(cached) " >&6
5008else
5009 cat >conftest.make <<\_ACEOF
5010SHELL = /bin/sh
5011all:
5012 @echo '@@@%%%=$(MAKE)=@@@%%%'
5013_ACEOF
08c2568c 5014# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
030272f3
VY
5015case `${MAKE-make} -f conftest.make 2>/dev/null` in
5016 *@@@%%%=?*=@@@%%%*)
5017 eval ac_cv_prog_make_${ac_make}_set=yes;;
5018 *)
5019 eval ac_cv_prog_make_${ac_make}_set=no;;
5020esac
5021rm -f conftest.make
5022fi
5023if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7083c021 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3
VY
5025$as_echo "yes" >&6; }
5026 SET_MAKE=
5027else
7083c021 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5029$as_echo "no" >&6; }
5030 SET_MAKE="MAKE=${MAKE-make}"
5031fi
5032
db137867 5033
030272f3
VY
5034# Extract the first word of "automake", so it can be a program name with args.
5035set dummy automake; ac_word=$2
7083c021 5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5037$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5038if ${ac_cv_path_AUTOMAKE+:} false; then :
030272f3
VY
5039 $as_echo_n "(cached) " >&6
5040else
5041 case $AUTOMAKE in
5042 [\\/]* | ?:[\\/]*)
5043 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
db137867 5044 ;;
030272f3
VY
5045 *)
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
7083c021 5051 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
7083c021 5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5055 break 2
5056 fi
5057done
7083c021 5058 done
030272f3 5059IFS=$as_save_IFS
db137867 5060
db137867 5061 ;;
030272f3
VY
5062esac
5063fi
5064AUTOMAKE=$ac_cv_path_AUTOMAKE
5065if test -n "$AUTOMAKE"; then
7083c021 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
030272f3
VY
5067$as_echo "$AUTOMAKE" >&6; }
5068else
7083c021 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5070$as_echo "no" >&6; }
5071fi
db137867 5072
db137867 5073
030272f3
VY
5074# Extract the first word of "aclocal", so it can be a program name with args.
5075set dummy aclocal; ac_word=$2
7083c021 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5077$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5078if ${ac_cv_path_ACLOCAL+:} false; then :
030272f3
VY
5079 $as_echo_n "(cached) " >&6
5080else
5081 case $ACLOCAL in
5082 [\\/]* | ?:[\\/]*)
5083 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
db137867 5084 ;;
db137867 5085 *)
030272f3
VY
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
7083c021 5091 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
7083c021 5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5095 break 2
5096 fi
5097done
7083c021 5098 done
030272f3 5099IFS=$as_save_IFS
db137867 5100
db137867 5101 ;;
030272f3
VY
5102esac
5103fi
5104ACLOCAL=$ac_cv_path_ACLOCAL
5105if test -n "$ACLOCAL"; then
7083c021 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
030272f3
VY
5107$as_echo "$ACLOCAL" >&6; }
5108else
7083c021 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5110$as_echo "no" >&6; }
5111fi
db137867 5112
db137867 5113
030272f3
VY
5114# Extract the first word of "autoheader", so it can be a program name with args.
5115set dummy autoheader; ac_word=$2
7083c021 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5117$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5118if ${ac_cv_path_AUTOHEADER+:} false; then :
030272f3
VY
5119 $as_echo_n "(cached) " >&6
5120else
5121 case $AUTOHEADER in
5122 [\\/]* | ?:[\\/]*)
5123 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
db137867 5124 ;;
030272f3
VY
5125 *)
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
7083c021 5131 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
7083c021 5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3 5135 break 2
db137867 5136 fi
030272f3 5137done
7083c021 5138 done
030272f3
VY
5139IFS=$as_save_IFS
5140
db137867 5141 ;;
030272f3
VY
5142esac
5143fi
5144AUTOHEADER=$ac_cv_path_AUTOHEADER
5145if test -n "$AUTOHEADER"; then
7083c021 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
030272f3
VY
5147$as_echo "$AUTOHEADER" >&6; }
5148else
7083c021 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5150$as_echo "no" >&6; }
5151fi
db137867 5152
030272f3
VY
5153
5154# Extract the first word of "as", so it can be a program name with args.
5155set dummy as; ac_word=$2
7083c021 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5157$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5158if ${ac_cv_path_AS+:} false; then :
030272f3
VY
5159 $as_echo_n "(cached) " >&6
5160else
5161 case $AS in
5162 [\\/]* | ?:[\\/]*)
5163 ac_cv_path_AS="$AS" # Let the user override the test with a path.
db137867 5164 ;;
030272f3
VY
5165 *)
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
7083c021 5171 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
7083c021 5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5175 break 2
5176 fi
5177done
7083c021 5178 done
030272f3 5179IFS=$as_save_IFS
db137867 5180
db137867 5181 ;;
030272f3
VY
5182esac
5183fi
5184AS=$ac_cv_path_AS
5185if test -n "$AS"; then
7083c021 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
030272f3
VY
5187$as_echo "$AS" >&6; }
5188else
7083c021 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5190$as_echo "no" >&6; }
5191fi
db137867 5192
db137867 5193
030272f3
VY
5194# Extract the first word of "rm", so it can be a program name with args.
5195set dummy rm; ac_word=$2
7083c021 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5197$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5198if ${ac_cv_path_RM+:} false; then :
030272f3
VY
5199 $as_echo_n "(cached) " >&6
5200else
5201 case $RM in
5202 [\\/]* | ?:[\\/]*)
5203 ac_cv_path_RM="$RM" # Let the user override the test with a path.
db137867 5204 ;;
030272f3
VY
5205 *)
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
7083c021 5211 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7083c021 5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5215 break 2
5216 fi
5217done
7083c021 5218 done
030272f3 5219IFS=$as_save_IFS
db137867 5220
db137867 5221 ;;
030272f3
VY
5222esac
5223fi
5224RM=$ac_cv_path_RM
5225if test -n "$RM"; then
7083c021 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
030272f3
VY
5227$as_echo "$RM" >&6; }
5228else
7083c021 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5230$as_echo "no" >&6; }
5231fi
db137867 5232
db137867 5233
030272f3
VY
5234# Extract the first word of "cp", so it can be a program name with args.
5235set dummy cp; ac_word=$2
7083c021 5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5237$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5238if ${ac_cv_path_CP+:} false; then :
030272f3
VY
5239 $as_echo_n "(cached) " >&6
5240else
5241 case $CP in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_CP="$CP" # Let the user override the test with a path.
db137867 5244 ;;
030272f3
VY
5245 *)
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
7083c021 5251 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
7083c021 5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5255 break 2
5256 fi
5257done
7083c021 5258 done
030272f3 5259IFS=$as_save_IFS
db137867 5260
db137867
AC
5261 ;;
5262esac
db137867 5263fi
030272f3
VY
5264CP=$ac_cv_path_CP
5265if test -n "$CP"; then
7083c021 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
030272f3
VY
5267$as_echo "$CP" >&6; }
5268else
7083c021 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5270$as_echo "no" >&6; }
db137867
AC
5271fi
5272
db137867 5273
030272f3
VY
5274# Extract the first word of "mv", so it can be a program name with args.
5275set dummy mv; ac_word=$2
7083c021 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5277$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5278if ${ac_cv_path_MV+:} false; then :
030272f3
VY
5279 $as_echo_n "(cached) " >&6
5280else
5281 case $MV in
5282 [\\/]* | ?:[\\/]*)
5283 ac_cv_path_MV="$MV" # Let the user override the test with a path.
db137867 5284 ;;
030272f3
VY
5285 *)
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
7083c021 5291 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7083c021 5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3 5295 break 2
db137867 5296 fi
030272f3 5297done
7083c021 5298 done
030272f3 5299IFS=$as_save_IFS
db137867 5300
db137867 5301 ;;
030272f3
VY
5302esac
5303fi
5304MV=$ac_cv_path_MV
5305if test -n "$MV"; then
7083c021 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
030272f3
VY
5307$as_echo "$MV" >&6; }
5308else
7083c021 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5310$as_echo "no" >&6; }
5311fi
5312
5313
5314# Extract the first word of "ln", so it can be a program name with args.
5315set dummy ln; ac_word=$2
7083c021 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5317$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5318if ${ac_cv_path_LN+:} false; then :
030272f3
VY
5319 $as_echo_n "(cached) " >&6
5320else
5321 case $LN in
5322 [\\/]* | ?:[\\/]*)
5323 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5324 ;;
5325 *)
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
7083c021 5331 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7083c021 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5335 break 2
5336 fi
5337done
7083c021 5338 done
030272f3 5339IFS=$as_save_IFS
db137867 5340
030272f3
VY
5341 ;;
5342esac
5343fi
5344LN=$ac_cv_path_LN
5345if test -n "$LN"; then
7083c021 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
030272f3 5347$as_echo "$LN" >&6; }
db137867 5348else
7083c021 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5350$as_echo "no" >&6; }
5351fi
db137867 5352
db137867 5353
030272f3
VY
5354# Extract the first word of "touch", so it can be a program name with args.
5355set dummy touch; ac_word=$2
7083c021 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5357$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5358if ${ac_cv_path_TOUCH+:} false; then :
030272f3
VY
5359 $as_echo_n "(cached) " >&6
5360else
5361 case $TOUCH in
5362 [\\/]* | ?:[\\/]*)
5363 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5364 ;;
5365 *)
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
7083c021 5371 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
7083c021 5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5375 break 2
5376 fi
5377done
7083c021 5378 done
030272f3 5379IFS=$as_save_IFS
db137867 5380
030272f3 5381 ;;
db137867 5382esac
030272f3
VY
5383fi
5384TOUCH=$ac_cv_path_TOUCH
5385if test -n "$TOUCH"; then
7083c021 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
030272f3 5387$as_echo "$TOUCH" >&6; }
db137867 5388else
7083c021 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5390$as_echo "no" >&6; }
db137867
AC
5391fi
5392
030272f3
VY
5393
5394ac_ext=c
db137867
AC
5395ac_cpp='$CPP $CPPFLAGS'
5396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399
030272f3 5400
7083c021
AC
5401case `pwd` in
5402 *\ * | *\ *)
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5404$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5405esac
5406
5407
5408
96f4052b
AC
5409macro_version='2.2.6b'
5410macro_revision='1.3017'
7083c021
AC
5411
5412
5413
5414
5415
5416
5417
5418
5419
030272f3
VY
5420
5421
7083c021
AC
5422
5423
5424ltmain="$ac_aux_dir/ltmain.sh"
5425
030272f3
VY
5426# Make sure we can run config.sub.
5427$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
08c2568c 5428 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
030272f3 5429
7083c021 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
030272f3 5431$as_echo_n "checking build system type... " >&6; }
08c2568c 5432if ${ac_cv_build+:} false; then :
030272f3
VY
5433 $as_echo_n "(cached) " >&6
5434else
5435 ac_build_alias=$build_alias
5436test "x$ac_build_alias" = x &&
5437 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5438test "x$ac_build_alias" = x &&
08c2568c 5439 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
030272f3 5440ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
08c2568c 5441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
030272f3
VY
5442
5443fi
7083c021 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
030272f3
VY
5445$as_echo "$ac_cv_build" >&6; }
5446case $ac_cv_build in
5447*-*-*) ;;
08c2568c 5448*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
030272f3
VY
5449esac
5450build=$ac_cv_build
5451ac_save_IFS=$IFS; IFS='-'
5452set x $ac_cv_build
5453shift
5454build_cpu=$1
5455build_vendor=$2
5456shift; shift
5457# Remember, the first character of IFS is used to create $*,
5458# except with old shells:
5459build_os=$*
5460IFS=$ac_save_IFS
5461case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5462
5463
7083c021 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
030272f3 5465$as_echo_n "checking host system type... " >&6; }
08c2568c 5466if ${ac_cv_host+:} false; then :
030272f3
VY
5467 $as_echo_n "(cached) " >&6
5468else
5469 if test "x$host_alias" = x; then
5470 ac_cv_host=$ac_cv_build
5471else
5472 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
08c2568c 5473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
030272f3
VY
5474fi
5475
5476fi
7083c021 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
030272f3
VY
5478$as_echo "$ac_cv_host" >&6; }
5479case $ac_cv_host in
5480*-*-*) ;;
08c2568c 5481*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
030272f3
VY
5482esac
5483host=$ac_cv_host
5484ac_save_IFS=$IFS; IFS='-'
5485set x $ac_cv_host
5486shift
5487host_cpu=$1
5488host_vendor=$2
5489shift; shift
5490# Remember, the first character of IFS is used to create $*,
5491# except with old shells:
5492host_os=$*
5493IFS=$ac_save_IFS
5494case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5495
5496
7083c021 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
030272f3 5498$as_echo_n "checking for a sed that does not truncate output... " >&6; }
08c2568c 5499if ${ac_cv_path_SED+:} false; then :
030272f3
VY
5500 $as_echo_n "(cached) " >&6
5501else
7083c021
AC
5502 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5503 for ac_i in 1 2 3 4 5 6 7; do
5504 ac_script="$ac_script$as_nl$ac_script"
5505 done
5506 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5507 { ac_script=; unset ac_script;}
5508 if test -z "$SED"; then
5509 ac_path_SED_found=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
030272f3
VY
5512for as_dir in $PATH
5513do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
7083c021 5516 for ac_prog in sed gsed; do
030272f3 5517 for ac_exec_ext in '' $ac_executable_extensions; do
7083c021
AC
5518 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5519 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5520# Check for GNU ac_path_SED and select it if it is found.
5521 # Check for GNU $ac_path_SED
5522case `"$ac_path_SED" --version 2>&1` in
5523*GNU*)
5524 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5525*)
5526 ac_count=0
5527 $as_echo_n 0123456789 >"conftest.in"
5528 while :
5529 do
5530 cat "conftest.in" "conftest.in" >"conftest.tmp"
5531 mv "conftest.tmp" "conftest.in"
5532 cp "conftest.in" "conftest.nl"
5533 $as_echo '' >> "conftest.nl"
5534 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5536 as_fn_arith $ac_count + 1 && ac_count=$as_val
5537 if test $ac_count -gt ${ac_path_SED_max-0}; then
5538 # Best one so far, save it but keep looking for a better one
5539 ac_cv_path_SED="$ac_path_SED"
5540 ac_path_SED_max=$ac_count
5541 fi
5542 # 10*(2^10) chars as input seems more than enough
5543 test $ac_count -gt 10 && break
5544 done
5545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5546esac
5547
5548 $ac_path_SED_found && break 3
030272f3
VY
5549 done
5550 done
7083c021 5551 done
030272f3 5552IFS=$as_save_IFS
7083c021 5553 if test -z "$ac_cv_path_SED"; then
08c2568c 5554 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
db137867 5555 fi
7083c021
AC
5556else
5557 ac_cv_path_SED=$SED
5558fi
db137867 5559
030272f3 5560fi
7083c021
AC
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5562$as_echo "$ac_cv_path_SED" >&6; }
5563 SED="$ac_cv_path_SED"
5564 rm -f conftest.sed
db137867 5565
7083c021
AC
5566test -z "$SED" && SED=sed
5567Xsed="$SED -e 1s/^X//"
db137867 5568
db137867
AC
5569
5570
db137867 5571
7083c021
AC
5572
5573
5574
5575
5576
5577
5578
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5580$as_echo_n "checking for fgrep... " >&6; }
08c2568c 5581if ${ac_cv_path_FGREP+:} false; then :
7083c021
AC
5582 $as_echo_n "(cached) " >&6
5583else
5584 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5585 then ac_cv_path_FGREP="$GREP -F"
5586 else
5587 if test -z "$FGREP"; then
5588 ac_path_FGREP_found=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5592do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_prog in fgrep; do
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5598 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5599# Check for GNU ac_path_FGREP and select it if it is found.
5600 # Check for GNU $ac_path_FGREP
5601case `"$ac_path_FGREP" --version 2>&1` in
5602*GNU*)
5603 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5604*)
5605 ac_count=0
5606 $as_echo_n 0123456789 >"conftest.in"
5607 while :
5608 do
5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
5610 mv "conftest.tmp" "conftest.in"
5611 cp "conftest.in" "conftest.nl"
5612 $as_echo 'FGREP' >> "conftest.nl"
5613 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5615 as_fn_arith $ac_count + 1 && ac_count=$as_val
5616 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5617 # Best one so far, save it but keep looking for a better one
5618 ac_cv_path_FGREP="$ac_path_FGREP"
5619 ac_path_FGREP_max=$ac_count
5620 fi
5621 # 10*(2^10) chars as input seems more than enough
5622 test $ac_count -gt 10 && break
5623 done
5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5625esac
5626
5627 $ac_path_FGREP_found && break 3
5628 done
5629 done
5630 done
5631IFS=$as_save_IFS
5632 if test -z "$ac_cv_path_FGREP"; then
08c2568c 5633 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021
AC
5634 fi
5635else
5636 ac_cv_path_FGREP=$FGREP
5637fi
5638
5639 fi
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5642$as_echo "$ac_cv_path_FGREP" >&6; }
5643 FGREP="$ac_cv_path_FGREP"
5644
5645
5646test -z "$GREP" && GREP=grep
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666# Check whether --with-gnu-ld was given.
5667if test "${with_gnu_ld+set}" = set; then :
5668 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5669else
5670 with_gnu_ld=no
5671fi
5672
5673ac_prog=ld
5674if test "$GCC" = yes; then
5675 # Check if gcc -print-prog-name=ld gives a path.
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5677$as_echo_n "checking for ld used by $CC... " >&6; }
5678 case $host in
5679 *-*-mingw*)
5680 # gcc leaves a trailing carriage return which upsets mingw
5681 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5682 *)
5683 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5684 esac
5685 case $ac_prog in
5686 # Accept absolute paths.
5687 [\\/]* | ?:[\\/]*)
5688 re_direlt='/[^/][^/]*/\.\./'
5689 # Canonicalize the pathname of ld
5690 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5691 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5692 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5693 done
5694 test -z "$LD" && LD="$ac_prog"
5695 ;;
5696 "")
5697 # If it fails, then pretend we aren't using GCC.
5698 ac_prog=ld
5699 ;;
5700 *)
5701 # If it is relative, then search for the first ld in PATH.
5702 with_gnu_ld=unknown
5703 ;;
5704 esac
5705elif test "$with_gnu_ld" = yes; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5707$as_echo_n "checking for GNU ld... " >&6; }
5708else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
030272f3 5710$as_echo_n "checking for non-GNU ld... " >&6; }
db137867 5711fi
08c2568c 5712if ${lt_cv_path_LD+:} false; then :
030272f3
VY
5713 $as_echo_n "(cached) " >&6
5714else
5715 if test -z "$LD"; then
5716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5717 for ac_dir in $PATH; do
5718 IFS="$lt_save_ifs"
5719 test -z "$ac_dir" && ac_dir=.
5720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5721 lt_cv_path_LD="$ac_dir/$ac_prog"
5722 # Check to see if the program is GNU ld. I'd rather use --version,
5723 # but apparently some variants of GNU ld only accept -v.
5724 # Break only if it was the GNU/non-GNU ld that we prefer.
5725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5726 *GNU* | *'with BFD'*)
5727 test "$with_gnu_ld" != no && break
5728 ;;
5729 *)
5730 test "$with_gnu_ld" != yes && break
5731 ;;
5732 esac
5733 fi
5734 done
5735 IFS="$lt_save_ifs"
5736else
5737 lt_cv_path_LD="$LD" # Let the user override the test with a path.
db137867 5738fi
db137867 5739fi
030272f3
VY
5740
5741LD="$lt_cv_path_LD"
5742if test -n "$LD"; then
7083c021 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
030272f3 5744$as_echo "$LD" >&6; }
db137867 5745else
7083c021 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5747$as_echo "no" >&6; }
db137867 5748fi
08c2568c 5749test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7083c021 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
030272f3 5751$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
08c2568c 5752if ${lt_cv_prog_gnu_ld+:} false; then :
030272f3 5753 $as_echo_n "(cached) " >&6
db137867 5754else
030272f3
VY
5755 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5756case `$LD -v 2>&1 </dev/null` in
5757*GNU* | *'with BFD'*)
5758 lt_cv_prog_gnu_ld=yes
5759 ;;
5760*)
5761 lt_cv_prog_gnu_ld=no
5762 ;;
5763esac
db137867 5764fi
7083c021 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
030272f3
VY
5766$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5767with_gnu_ld=$lt_cv_prog_gnu_ld
db137867 5768
db137867 5769
db137867 5770
7083c021
AC
5771
5772
5773
5774
5775
5776
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5778$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
08c2568c 5779if ${lt_cv_path_NM+:} false; then :
030272f3
VY
5780 $as_echo_n "(cached) " >&6
5781else
5782 if test -n "$NM"; then
5783 # Let the user override the test.
5784 lt_cv_path_NM="$NM"
5785else
5786 lt_nm_to_check="${ac_tool_prefix}nm"
5787 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5788 lt_nm_to_check="$lt_nm_to_check nm"
5789 fi
5790 for lt_tmp_nm in $lt_nm_to_check; do
5791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5792 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5793 IFS="$lt_save_ifs"
5794 test -z "$ac_dir" && ac_dir=.
5795 tmp_nm="$ac_dir/$lt_tmp_nm"
5796 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5797 # Check to see if the nm accepts a BSD-compat flag.
5798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5799 # nm: unknown option "B" ignored
5800 # Tru64's nm complains that /dev/null is an invalid object file
5801 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5802 */dev/null* | *'Invalid file or object type'*)
5803 lt_cv_path_NM="$tmp_nm -B"
5804 break
5805 ;;
5806 *)
5807 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5808 */dev/null*)
5809 lt_cv_path_NM="$tmp_nm -p"
5810 break
5811 ;;
5812 *)
5813 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5814 continue # so that we can try to find one that supports BSD flags
5815 ;;
5816 esac
5817 ;;
5818 esac
5819 fi
5820 done
5821 IFS="$lt_save_ifs"
5822 done
7083c021 5823 : ${lt_cv_path_NM=no}
db137867 5824fi
030272f3 5825fi
7083c021 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
030272f3 5827$as_echo "$lt_cv_path_NM" >&6; }
7083c021
AC
5828if test "$lt_cv_path_NM" != "no"; then
5829 NM="$lt_cv_path_NM"
5830else
5831 # Didn't find any BSD compatible name lister, look for dumpbin.
5832 if test -n "$ac_tool_prefix"; then
5833 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5834 do
5835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5836set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5839if ${ac_cv_prog_DUMPBIN+:} false; then :
7083c021
AC
5840 $as_echo_n "(cached) " >&6
5841else
5842 if test -n "$DUMPBIN"; then
5843 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856done
5857 done
5858IFS=$as_save_IFS
db137867 5859
7083c021
AC
5860fi
5861fi
5862DUMPBIN=$ac_cv_prog_DUMPBIN
5863if test -n "$DUMPBIN"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5865$as_echo "$DUMPBIN" >&6; }
db137867 5866else
7083c021
AC
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
db137867
AC
5869fi
5870
7083c021
AC
5871
5872 test -n "$DUMPBIN" && break
5873 done
5874fi
5875if test -z "$DUMPBIN"; then
5876 ac_ct_DUMPBIN=$DUMPBIN
5877 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5878do
5879 # Extract the first word of "$ac_prog", so it can be a program name with args.
5880set dummy $ac_prog; ac_word=$2
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 5883if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
030272f3
VY
5884 $as_echo_n "(cached) " >&6
5885else
7083c021
AC
5886 if test -n "$ac_ct_DUMPBIN"; then
5887 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900done
5901 done
5902IFS=$as_save_IFS
db137867 5903
7083c021
AC
5904fi
5905fi
5906ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5907if test -n "$ac_ct_DUMPBIN"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5909$as_echo "$ac_ct_DUMPBIN" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
db137867 5914
db137867 5915
7083c021
AC
5916 test -n "$ac_ct_DUMPBIN" && break
5917done
db137867 5918
7083c021
AC
5919 if test "x$ac_ct_DUMPBIN" = x; then
5920 DUMPBIN=":"
030272f3 5921 else
7083c021
AC
5922 case $cross_compiling:$ac_tool_warned in
5923yes:)
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926ac_tool_warned=yes ;;
5927esac
5928 DUMPBIN=$ac_ct_DUMPBIN
030272f3 5929 fi
7083c021 5930fi
db137867 5931
db137867 5932
7083c021
AC
5933 if test "$DUMPBIN" != ":"; then
5934 NM="$DUMPBIN"
030272f3 5935 fi
7083c021
AC
5936fi
5937test -z "$NM" && NM=nm
db137867 5938
db137867 5939
db137867 5940
db137867 5941
030272f3 5942
030272f3 5943
7083c021
AC
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5945$as_echo_n "checking the name lister ($NM) interface... " >&6; }
08c2568c 5946if ${lt_cv_nm_interface+:} false; then :
7083c021
AC
5947 $as_echo_n "(cached) " >&6
5948else
5949 lt_cv_nm_interface="BSD nm"
5950 echo "int some_variable = 0;" > conftest.$ac_ext
08c2568c 5951 (eval echo "\"\$as_me:5951: $ac_compile\"" >&5)
7083c021
AC
5952 (eval "$ac_compile" 2>conftest.err)
5953 cat conftest.err >&5
08c2568c 5954 (eval echo "\"\$as_me:5954: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7083c021
AC
5955 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5956 cat conftest.err >&5
08c2568c 5957 (eval echo "\"\$as_me:5957: output\"" >&5)
7083c021
AC
5958 cat conftest.out >&5
5959 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5960 lt_cv_nm_interface="MS dumpbin"
030272f3 5961 fi
7083c021
AC
5962 rm -f conftest*
5963fi
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5965$as_echo "$lt_cv_nm_interface" >&6; }
db137867 5966
7083c021
AC
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5968$as_echo_n "checking whether ln -s works... " >&6; }
5969LN_S=$as_ln_s
5970if test "$LN_S" = "ln -s"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5972$as_echo "yes" >&6; }
5973else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5975$as_echo "no, using $LN_S" >&6; }
5976fi
db137867 5977
7083c021
AC
5978# find the maximum length of command line arguments
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5980$as_echo_n "checking the maximum length of command line arguments... " >&6; }
08c2568c 5981if ${lt_cv_sys_max_cmd_len+:} false; then :
7083c021
AC
5982 $as_echo_n "(cached) " >&6
5983else
5984 i=0
5985 teststring="ABCD"
db137867 5986
7083c021
AC
5987 case $build_os in
5988 msdosdjgpp*)
5989 # On DJGPP, this test can blow up pretty badly due to problems in libc
5990 # (any single argument exceeding 2000 bytes causes a buffer overrun
5991 # during glob expansion). Even if it were fixed, the result of this
5992 # check would be larger than it should be.
5993 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5994 ;;
db137867 5995
7083c021
AC
5996 gnu*)
5997 # Under GNU Hurd, this test is not required because there is
5998 # no limit to the length of command line arguments.
5999 # Libtool will interpret -1 as no limit whatsoever
6000 lt_cv_sys_max_cmd_len=-1;
6001 ;;
db137867 6002
7083c021
AC
6003 cygwin* | mingw* | cegcc*)
6004 # On Win9x/ME, this test blows up -- it succeeds, but takes
6005 # about 5 minutes as the teststring grows exponentially.
6006 # Worse, since 9x/ME are not pre-emptively multitasking,
6007 # you end up with a "frozen" computer, even though with patience
6008 # the test eventually succeeds (with a max line length of 256k).
6009 # Instead, let's just punt: use the minimum linelength reported by
6010 # all of the supported platforms: 8192 (on NT/2K/XP).
6011 lt_cv_sys_max_cmd_len=8192;
6012 ;;
db137867 6013
7083c021
AC
6014 amigaos*)
6015 # On AmigaOS with pdksh, this test takes hours, literally.
6016 # So we just punt and use a minimum line length of 8192.
6017 lt_cv_sys_max_cmd_len=8192;
6018 ;;
db137867 6019
7083c021
AC
6020 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6021 # This has been around since 386BSD, at least. Likely further.
6022 if test -x /sbin/sysctl; then
6023 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6024 elif test -x /usr/sbin/sysctl; then
6025 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6026 else
6027 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6028 fi
6029 # And add a safety zone
6030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
030272f3 6032 ;;
7083c021
AC
6033
6034 interix*)
6035 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6036 lt_cv_sys_max_cmd_len=196608
030272f3 6037 ;;
7083c021
AC
6038
6039 osf*)
6040 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6041 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6042 # nice to cause kernel panics so lets avoid the loop below.
6043 # First set a reasonable default.
6044 lt_cv_sys_max_cmd_len=16384
6045 #
6046 if test -x /sbin/sysconfig; then
6047 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6048 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6049 esac
6050 fi
030272f3 6051 ;;
7083c021
AC
6052 sco3.2v5*)
6053 lt_cv_sys_max_cmd_len=102400
030272f3 6054 ;;
7083c021
AC
6055 sysv5* | sco5v6* | sysv4.2uw2*)
6056 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6057 if test -n "$kargmax"; then
6058 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6059 else
6060 lt_cv_sys_max_cmd_len=32768
6061 fi
030272f3 6062 ;;
7083c021
AC
6063 *)
6064 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6065 if test -n "$lt_cv_sys_max_cmd_len"; then
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6068 else
6069 # Make teststring a little bigger before we do anything with it.
6070 # a 1K string should be a reasonable start.
6071 for i in 1 2 3 4 5 6 7 8 ; do
6072 teststring=$teststring$teststring
6073 done
6074 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6075 # If test is not a shell built-in, we'll probably end up computing a
6076 # maximum length that is only half of the actual maximum length, but
6077 # we can't tell.
6078 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6079 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6080 test $i != 17 # 1/2 MB should be enough
6081 do
6082 i=`expr $i + 1`
6083 teststring=$teststring$teststring
6084 done
6085 # Only check the string length outside the loop.
6086 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6087 teststring=
6088 # Add a significant safety factor because C++ compilers can tack on
6089 # massive amounts of additional arguments before passing them to the
6090 # linker. It appears as though 1/2 is a usable value.
6091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6092 fi
030272f3
VY
6093 ;;
6094 esac
030272f3 6095
7083c021 6096fi
db137867 6097
7083c021
AC
6098if test -n $lt_cv_sys_max_cmd_len ; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6100$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6101else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6103$as_echo "none" >&6; }
db137867 6104fi
7083c021 6105max_cmd_len=$lt_cv_sys_max_cmd_len
030272f3 6106
db137867 6107
db137867
AC
6108
6109
6110
6111
7083c021
AC
6112: ${CP="cp -f"}
6113: ${MV="mv -f"}
6114: ${RM="rm -f"}
db137867 6115
7083c021
AC
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6117$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6118# Try some XSI features
6119xsi_shell=no
6120( _lt_dummy="a/b/c"
6121 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6122 = c,a/b,, \
6123 && eval 'test $(( 1 + 1 )) -eq 2 \
6124 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6125 && xsi_shell=yes
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6127$as_echo "$xsi_shell" >&6; }
6128
6129
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6131$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6132lt_shell_append=no
6133( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6134 >/dev/null 2>&1 \
6135 && lt_shell_append=yes
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6137$as_echo "$lt_shell_append" >&6; }
6138
6139
6140if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6141 lt_unset=unset
6142else
6143 lt_unset=false
030272f3 6144fi
db137867
AC
6145
6146
7083c021
AC
6147
6148
6149
6150# test EBCDIC or ASCII
6151case `echo X|tr X '\101'` in
6152 A) # ASCII based system
6153 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6154 lt_SP2NL='tr \040 \012'
6155 lt_NL2SP='tr \015\012 \040\040'
030272f3 6156 ;;
7083c021
AC
6157 *) # EBCDIC based system
6158 lt_SP2NL='tr \100 \n'
6159 lt_NL2SP='tr \r\n \100\100'
030272f3 6160 ;;
7083c021 6161esac
db137867 6162
db137867 6163
db137867 6164
db137867 6165
030272f3 6166
030272f3 6167
db137867
AC
6168
6169
6170
7083c021
AC
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6172$as_echo_n "checking for $LD option to reload object files... " >&6; }
08c2568c 6173if ${lt_cv_ld_reload_flag+:} false; then :
030272f3 6174 $as_echo_n "(cached) " >&6
db137867 6175else
7083c021 6176 lt_cv_ld_reload_flag='-r'
db137867 6177fi
7083c021
AC
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6179$as_echo "$lt_cv_ld_reload_flag" >&6; }
6180reload_flag=$lt_cv_ld_reload_flag
6181case $reload_flag in
6182"" | " "*) ;;
6183*) reload_flag=" $reload_flag" ;;
6184esac
6185reload_cmds='$LD$reload_flag -o $output$reload_objs'
6186case $host_os in
6187 darwin*)
6188 if test "$GCC" = yes; then
6189 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6190 else
6191 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6192 fi
6193 ;;
db137867 6194esac
db137867 6195
db137867 6196
db137867 6197
db137867 6198
db137867 6199
db137867 6200
db137867 6201
db137867 6202
7083c021
AC
6203
6204if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6206set dummy ${ac_tool_prefix}objdump; ac_word=$2
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6208$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6209if ${ac_cv_prog_OBJDUMP+:} false; then :
030272f3 6210 $as_echo_n "(cached) " >&6
db137867 6211else
7083c021
AC
6212 if test -n "$OBJDUMP"; then
6213 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
db137867
AC
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
7083c021 6220 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6222 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6224 break 2
6225 fi
6226done
7083c021 6227 done
db137867
AC
6228IFS=$as_save_IFS
6229
6230fi
6231fi
7083c021
AC
6232OBJDUMP=$ac_cv_prog_OBJDUMP
6233if test -n "$OBJDUMP"; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6235$as_echo "$OBJDUMP" >&6; }
db137867 6236else
7083c021 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6238$as_echo "no" >&6; }
db137867
AC
6239fi
6240
6241
db137867 6242fi
7083c021
AC
6243if test -z "$ac_cv_prog_OBJDUMP"; then
6244 ac_ct_OBJDUMP=$OBJDUMP
6245 # Extract the first word of "objdump", so it can be a program name with args.
6246set dummy objdump; ac_word=$2
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6248$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6249if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
030272f3 6250 $as_echo_n "(cached) " >&6
db137867 6251else
7083c021
AC
6252 if test -n "$ac_ct_OBJDUMP"; then
6253 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
db137867
AC
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
7083c021 6260 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6262 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6264 break 2
6265 fi
6266done
7083c021 6267 done
db137867
AC
6268IFS=$as_save_IFS
6269
6270fi
6271fi
7083c021
AC
6272ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6273if test -n "$ac_ct_OBJDUMP"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6275$as_echo "$ac_ct_OBJDUMP" >&6; }
db137867 6276else
7083c021 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6278$as_echo "no" >&6; }
db137867
AC
6279fi
6280
7083c021
AC
6281 if test "x$ac_ct_OBJDUMP" = x; then
6282 OBJDUMP="false"
db137867
AC
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285yes:)
7083c021 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
6288ac_tool_warned=yes ;;
6289esac
7083c021 6290 OBJDUMP=$ac_ct_OBJDUMP
db137867 6291 fi
7083c021
AC
6292else
6293 OBJDUMP="$ac_cv_prog_OBJDUMP"
db137867 6294fi
db137867 6295
7083c021 6296test -z "$OBJDUMP" && OBJDUMP=objdump
db137867 6297
db137867 6298
db137867 6299
db137867 6300
db137867 6301
db137867 6302
db137867 6303
db137867 6304
db137867 6305
7083c021
AC
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6307$as_echo_n "checking how to recognize dependent libraries... " >&6; }
08c2568c 6308if ${lt_cv_deplibs_check_method+:} false; then :
7083c021 6309 $as_echo_n "(cached) " >&6
db137867 6310else
7083c021
AC
6311 lt_cv_file_magic_cmd='$MAGIC_CMD'
6312lt_cv_file_magic_test_file=
6313lt_cv_deplibs_check_method='unknown'
6314# Need to set the preceding variable on all platforms that support
6315# interlibrary dependencies.
6316# 'none' -- dependencies not supported.
6317# `unknown' -- same as none, but documents that we really don't know.
6318# 'pass_all' -- all dependencies passed with no checks.
6319# 'test_compile' -- check by making test program.
6320# 'file_magic [[regex]]' -- check by looking for files in library path
6321# which responds to the $file_magic_cmd with a given extended regex.
6322# If you have `file' or equivalent on your system and you're not sure
6323# whether `pass_all' will *always* work, you probably want this one.
db137867 6324
7083c021
AC
6325case $host_os in
6326aix[4-9]*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
db137867 6329
7083c021
AC
6330beos*)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
db137867 6333
7083c021
AC
6334bsdi[45]*)
6335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6336 lt_cv_file_magic_cmd='/usr/bin/file -L'
6337 lt_cv_file_magic_test_file=/shlib/libc.so
6338 ;;
db137867 6339
7083c021
AC
6340cygwin*)
6341 # func_win32_libid is a shell function defined in ltmain.sh
6342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6343 lt_cv_file_magic_cmd='func_win32_libid'
6344 ;;
db137867 6345
7083c021
AC
6346mingw* | pw32*)
6347 # Base MSYS/MinGW do not provide the 'file' command needed by
6348 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6349 # unless we find 'file', for example because we are cross-compiling.
6350 if ( file / ) >/dev/null 2>&1; then
6351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6352 lt_cv_file_magic_cmd='func_win32_libid'
6353 else
6354 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6355 lt_cv_file_magic_cmd='$OBJDUMP -f'
6356 fi
6357 ;;
db137867 6358
7083c021
AC
6359cegcc)
6360 # use the weaker test based on 'objdump'. See mingw*.
6361 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6362 lt_cv_file_magic_cmd='$OBJDUMP -f'
6363 ;;
db137867 6364
7083c021
AC
6365darwin* | rhapsody*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
db137867 6368
7083c021
AC
6369freebsd* | dragonfly*)
6370 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6371 case $host_cpu in
6372 i*86 )
6373 # Not sure whether the presence of OpenBSD here was a mistake.
6374 # Let's accept both of them until this is cleared up.
6375 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6376 lt_cv_file_magic_cmd=/usr/bin/file
6377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6378 ;;
6379 esac
db137867 6380 else
7083c021 6381 lt_cv_deplibs_check_method=pass_all
db137867 6382 fi
7083c021 6383 ;;
db137867 6384
7083c021
AC
6385gnu*)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
db137867 6388
7083c021
AC
6389hpux10.20* | hpux11*)
6390 lt_cv_file_magic_cmd=/usr/bin/file
6391 case $host_cpu in
6392 ia64*)
6393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6394 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6395 ;;
6396 hppa*64*)
6397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6398 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6399 ;;
6400 *)
6401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6402 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6403 ;;
6404 esac
6405 ;;
db137867 6406
7083c021
AC
6407interix[3-9]*)
6408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6410 ;;
db137867 6411
7083c021
AC
6412irix5* | irix6* | nonstopux*)
6413 case $LD in
6414 *-32|*"-32 ") libmagic=32-bit;;
6415 *-n32|*"-n32 ") libmagic=N32;;
6416 *-64|*"-64 ") libmagic=64-bit;;
6417 *) libmagic=never-match;;
6418 esac
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
db137867 6421
7083c021
AC
6422# This must be Linux ELF.
6423linux* | k*bsd*-gnu)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
db137867 6426
96f4052b 6427netbsd*)
7083c021
AC
6428 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6430 else
6431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6432 fi
6433 ;;
db137867 6434
7083c021
AC
6435newos6*)
6436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6437 lt_cv_file_magic_cmd=/usr/bin/file
6438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6439 ;;
db137867 6440
7083c021
AC
6441*nto* | *qnx*)
6442 lt_cv_deplibs_check_method=pass_all
6443 ;;
db137867 6444
7083c021
AC
6445openbsd*)
6446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6448 else
6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6450 fi
6451 ;;
db137867 6452
7083c021
AC
6453osf3* | osf4* | osf5*)
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
db137867 6456
7083c021
AC
6457rdos*)
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
db137867 6460
7083c021
AC
6461solaris*)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
db137867 6464
7083c021
AC
6465sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6466 lt_cv_deplibs_check_method=pass_all
6467 ;;
db137867 6468
7083c021
AC
6469sysv4 | sysv4.3*)
6470 case $host_vendor in
6471 motorola)
6472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6474 ;;
6475 ncr)
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478 sequent)
6479 lt_cv_file_magic_cmd='/bin/file'
6480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6481 ;;
6482 sni)
6483 lt_cv_file_magic_cmd='/bin/file'
6484 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6485 lt_cv_file_magic_test_file=/lib/libc.so
6486 ;;
6487 siemens)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490 pc)
6491 lt_cv_deplibs_check_method=pass_all
6492 ;;
6493 esac
6494 ;;
db137867 6495
7083c021
AC
6496tpf*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499esac
db137867 6500
db137867 6501fi
7083c021
AC
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6503$as_echo "$lt_cv_deplibs_check_method" >&6; }
6504file_magic_cmd=$lt_cv_file_magic_cmd
6505deplibs_check_method=$lt_cv_deplibs_check_method
6506test -z "$deplibs_check_method" && deplibs_check_method=unknown
db137867 6507
db137867 6508
db137867 6509
db137867 6510
db137867 6511
db137867 6512
db137867 6513
db137867 6514
db137867 6515
db137867 6516
db137867
AC
6517
6518
db137867 6519if test -n "$ac_tool_prefix"; then
7083c021
AC
6520 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6521set dummy ${ac_tool_prefix}ar; ac_word=$2
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6523$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6524if ${ac_cv_prog_AR+:} false; then :
030272f3 6525 $as_echo_n "(cached) " >&6
db137867 6526else
7083c021
AC
6527 if test -n "$AR"; then
6528 ac_cv_prog_AR="$AR" # Let the user override the test.
db137867
AC
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
7083c021 6535 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6537 ac_cv_prog_AR="${ac_tool_prefix}ar"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6539 break 2
6540 fi
6541done
7083c021 6542 done
db137867
AC
6543IFS=$as_save_IFS
6544
6545fi
6546fi
7083c021
AC
6547AR=$ac_cv_prog_AR
6548if test -n "$AR"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6550$as_echo "$AR" >&6; }
db137867 6551else
7083c021 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6553$as_echo "no" >&6; }
db137867
AC
6554fi
6555
6556
db137867 6557fi
7083c021
AC
6558if test -z "$ac_cv_prog_AR"; then
6559 ac_ct_AR=$AR
6560 # Extract the first word of "ar", so it can be a program name with args.
6561set dummy ar; ac_word=$2
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6563$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6564if ${ac_cv_prog_ac_ct_AR+:} false; then :
030272f3 6565 $as_echo_n "(cached) " >&6
db137867 6566else
7083c021
AC
6567 if test -n "$ac_ct_AR"; then
6568 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
db137867
AC
6569else
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
7083c021 6575 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6577 ac_cv_prog_ac_ct_AR="ar"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6579 break 2
6580 fi
6581done
7083c021 6582 done
db137867
AC
6583IFS=$as_save_IFS
6584
6585fi
6586fi
7083c021
AC
6587ac_ct_AR=$ac_cv_prog_ac_ct_AR
6588if test -n "$ac_ct_AR"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6590$as_echo "$ac_ct_AR" >&6; }
db137867 6591else
7083c021 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6593$as_echo "no" >&6; }
db137867
AC
6594fi
6595
7083c021
AC
6596 if test "x$ac_ct_AR" = x; then
6597 AR="false"
db137867
AC
6598 else
6599 case $cross_compiling:$ac_tool_warned in
6600yes:)
7083c021 6601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 6602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
6603ac_tool_warned=yes ;;
6604esac
7083c021 6605 AR=$ac_ct_AR
db137867 6606 fi
7083c021
AC
6607else
6608 AR="$ac_cv_prog_AR"
db137867
AC
6609fi
6610
7083c021
AC
6611test -z "$AR" && AR=ar
6612test -z "$AR_FLAGS" && AR_FLAGS=cru
db137867 6613
db137867 6614
db137867 6615
db137867 6616
db137867 6617
db137867 6618
db137867 6619
db137867 6620
7083c021
AC
6621
6622
6623
6624if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6626set dummy ${ac_tool_prefix}strip; ac_word=$2
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6629if ${ac_cv_prog_STRIP+:} false; then :
7083c021
AC
6630 $as_echo_n "(cached) " >&6
6631else
6632 if test -n "$STRIP"; then
6633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
db137867 6645 fi
7083c021
AC
6646done
6647 done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
6652STRIP=$ac_cv_prog_STRIP
6653if test -n "$STRIP"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6655$as_echo "$STRIP" >&6; }
db137867 6656else
7083c021
AC
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661
6662fi
6663if test -z "$ac_cv_prog_STRIP"; then
6664 ac_ct_STRIP=$STRIP
6665 # Extract the first word of "strip", so it can be a program name with args.
6666set dummy strip; ac_word=$2
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6669if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7083c021
AC
6670 $as_echo_n "(cached) " >&6
6671else
6672 if test -n "$ac_ct_STRIP"; then
6673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_STRIP="strip"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
db137867 6685 fi
7083c021
AC
6686done
6687 done
6688IFS=$as_save_IFS
6689
6690fi
6691fi
6692ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6693if test -n "$ac_ct_STRIP"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6695$as_echo "$ac_ct_STRIP" >&6; }
6696else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698$as_echo "no" >&6; }
db137867
AC
6699fi
6700
7083c021
AC
6701 if test "x$ac_ct_STRIP" = x; then
6702 STRIP=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705yes:)
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708ac_tool_warned=yes ;;
6709esac
6710 STRIP=$ac_ct_STRIP
6711 fi
030272f3 6712else
7083c021 6713 STRIP="$ac_cv_prog_STRIP"
030272f3 6714fi
db137867 6715
7083c021 6716test -z "$STRIP" && STRIP=:
db137867
AC
6717
6718
db137867 6719
db137867 6720
db137867 6721
db137867 6722
7083c021
AC
6723if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6725set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6728if ${ac_cv_prog_RANLIB+:} false; then :
7083c021
AC
6729 $as_echo_n "(cached) " >&6
6730else
6731 if test -n "$RANLIB"; then
6732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6733else
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745done
6746 done
6747IFS=$as_save_IFS
db137867 6748
7083c021
AC
6749fi
6750fi
6751RANLIB=$ac_cv_prog_RANLIB
6752if test -n "$RANLIB"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6754$as_echo "$RANLIB" >&6; }
6755else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757$as_echo "no" >&6; }
6758fi
db137867 6759
db137867 6760
7083c021
AC
6761fi
6762if test -z "$ac_cv_prog_RANLIB"; then
6763 ac_ct_RANLIB=$RANLIB
6764 # Extract the first word of "ranlib", so it can be a program name with args.
6765set dummy ranlib; ac_word=$2
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 6768if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7083c021
AC
6769 $as_echo_n "(cached) " >&6
6770else
6771 if test -n "$ac_ct_RANLIB"; then
6772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6773else
6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_RANLIB="ranlib"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785done
6786 done
6787IFS=$as_save_IFS
db137867 6788
7083c021
AC
6789fi
6790fi
6791ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6792if test -n "$ac_ct_RANLIB"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6794$as_echo "$ac_ct_RANLIB" >&6; }
6795else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797$as_echo "no" >&6; }
db137867
AC
6798fi
6799
7083c021
AC
6800 if test "x$ac_ct_RANLIB" = x; then
6801 RANLIB=":"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804yes:)
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807ac_tool_warned=yes ;;
6808esac
6809 RANLIB=$ac_ct_RANLIB
6810 fi
db137867 6811else
7083c021 6812 RANLIB="$ac_cv_prog_RANLIB"
db137867
AC
6813fi
6814
7083c021 6815test -z "$RANLIB" && RANLIB=:
db137867
AC
6816
6817
6818
6819
7083c021
AC
6820
6821
6822# Determine commands to create old-style static archives.
6823old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6824old_postinstall_cmds='chmod 644 $oldlib'
6825old_postuninstall_cmds=
6826
6827if test -n "$RANLIB"; then
6828 case $host_os in
6829 openbsd*)
6830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6831 ;;
6832 *)
6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6834 ;;
6835 esac
6836 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6837fi
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872# If no C compiler was specified, use CC.
6873LTCC=${LTCC-"$CC"}
6874
6875# If no C compiler flags were specified, use CFLAGS.
6876LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6877
6878# Allow CC to be a program name with arguments.
6879compiler=$CC
6880
6881
6882# Check for command to grab the raw symbol name followed by C symbol from nm.
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6884$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
08c2568c 6885if ${lt_cv_sys_global_symbol_pipe+:} false; then :
030272f3 6886 $as_echo_n "(cached) " >&6
db137867
AC
6887else
6888
6889# These are sane defaults that work on at least a few old systems.
6890# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891
6892# Character class describing NM global symbol codes.
6893symcode='[BCDEGRST]'
6894
6895# Regexp to match symbols that can be accessed directly from C.
6896sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897
db137867
AC
6898# Define system-specific variables.
6899case $host_os in
6900aix*)
6901 symcode='[BCDT]'
6902 ;;
7083c021 6903cygwin* | mingw* | pw32* | cegcc*)
db137867
AC
6904 symcode='[ABCDGISTW]'
6905 ;;
7083c021 6906hpux*)
db137867
AC
6907 if test "$host_cpu" = ia64; then
6908 symcode='[ABCDEGRST]'
6909 fi
db137867
AC
6910 ;;
6911irix* | nonstopux*)
6912 symcode='[BCDEGRST]'
6913 ;;
6914osf*)
6915 symcode='[BCDEGQRST]'
6916 ;;
6917solaris*)
6918 symcode='[BDRT]'
6919 ;;
6920sco3.2v5*)
6921 symcode='[DT]'
6922 ;;
6923sysv4.2uw2*)
6924 symcode='[DT]'
6925 ;;
6926sysv5* | sco5v6* | unixware* | OpenUNIX*)
6927 symcode='[ABDT]'
6928 ;;
6929sysv4)
6930 symcode='[DFNSTU]'
6931 ;;
6932esac
6933
7083c021
AC
6934# If we're using GNU nm, then use its standard symbol codes.
6935case `$NM -V 2>&1` in
6936*GNU* | *'with BFD'*)
6937 symcode='[ABCDGIRSTW]' ;;
6938esac
6939
6940# Transform an extracted symbol line into a proper C declaration.
6941# Some systems (esp. on ia64) link data and code symbols differently,
6942# so use this general approach.
6943lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6944
6945# Transform an extracted symbol line into symbol name and symbol address
6946lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6947lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6948
db137867
AC
6949# Handle CRLF in mingw tool chain
6950opt_cr=
6951case $build_os in
6952mingw*)
7083c021 6953 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
db137867
AC
6954 ;;
6955esac
6956
7083c021 6957# Try without a prefix underscore, then with it.
db137867
AC
6958for ac_symprfx in "" "_"; do
6959
6960 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6961 symxfrm="\\1 $ac_symprfx\\2 \\2"
6962
6963 # Write the raw and C identifiers.
7083c021
AC
6964 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6965 # Fake it for dumpbin and say T for any non-static function
6966 # and D for any global variable.
6967 # Also find C++ and __fastcall symbols from MSVC++,
6968 # which start with @ or ?.
6969 lt_cv_sys_global_symbol_pipe="$AWK '"\
6970" {last_section=section; section=\$ 3};"\
6971" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6972" \$ 0!~/External *\|/{next};"\
6973" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6974" {if(hide[section]) next};"\
6975" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6976" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6977" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6978" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6979" ' prfx=^$ac_symprfx"
6980 else
6981 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6982 fi
db137867
AC
6983
6984 # Check to see that the pipe works correctly.
6985 pipe_works=no
6986
6987 rm -f conftest*
7083c021 6988 cat > conftest.$ac_ext <<_LT_EOF
db137867
AC
6989#ifdef __cplusplus
6990extern "C" {
6991#endif
6992char nm_test_var;
7083c021
AC
6993void nm_test_func(void);
6994void nm_test_func(void){}
db137867
AC
6995#ifdef __cplusplus
6996}
6997#endif
6998int main(){nm_test_var='a';nm_test_func();return(0);}
7083c021 6999_LT_EOF
db137867 7000
7083c021 7001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
db137867
AC
7002 (eval $ac_compile) 2>&5
7003 ac_status=$?
7083c021
AC
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; then
db137867
AC
7006 # Now try to grab the symbols.
7007 nlist=conftest.nm
7083c021 7008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
db137867
AC
7009 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7010 ac_status=$?
7083c021
AC
7011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012 test $ac_status = 0; } && test -s "$nlist"; then
db137867
AC
7013 # Try sorting and uniquifying the output.
7014 if sort "$nlist" | uniq > "$nlist"T; then
7015 mv -f "$nlist"T "$nlist"
7016 else
7017 rm -f "$nlist"T
7018 fi
7019
7020 # Make sure that we snagged all the symbols we need.
7083c021
AC
7021 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7022 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7023 cat <<_LT_EOF > conftest.$ac_ext
db137867
AC
7024#ifdef __cplusplus
7025extern "C" {
7026#endif
7027
7083c021 7028_LT_EOF
db137867 7029 # Now generate the symbol file.
7083c021 7030 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
db137867 7031
7083c021 7032 cat <<_LT_EOF >> conftest.$ac_ext
db137867 7033
7083c021 7034/* The mapping between symbol names and symbols. */
db137867
AC
7035const struct {
7036 const char *name;
7083c021 7037 void *address;
db137867 7038}
7083c021 7039lt__PROGRAM__LTX_preloaded_symbols[] =
db137867 7040{
7083c021
AC
7041 { "@PROGRAM@", (void *) 0 },
7042_LT_EOF
7043 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7044 cat <<\_LT_EOF >> conftest.$ac_ext
7045 {0, (void *) 0}
db137867
AC
7046};
7047
7083c021
AC
7048/* This works around a problem in FreeBSD linker */
7049#ifdef FREEBSD_WORKAROUND
7050static const void *lt_preloaded_setup() {
7051 return lt__PROGRAM__LTX_preloaded_symbols;
7052}
7053#endif
7054
db137867
AC
7055#ifdef __cplusplus
7056}
7057#endif
7083c021 7058_LT_EOF
db137867
AC
7059 # Now try linking the two files.
7060 mv conftest.$ac_objext conftstm.$ac_objext
7061 lt_save_LIBS="$LIBS"
7062 lt_save_CFLAGS="$CFLAGS"
7063 LIBS="conftstm.$ac_objext"
7064 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7083c021 7065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
db137867
AC
7066 (eval $ac_link) 2>&5
7067 ac_status=$?
7083c021
AC
7068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
db137867
AC
7070 pipe_works=yes
7071 fi
7072 LIBS="$lt_save_LIBS"
7073 CFLAGS="$lt_save_CFLAGS"
7074 else
7075 echo "cannot find nm_test_func in $nlist" >&5
7076 fi
7077 else
7078 echo "cannot find nm_test_var in $nlist" >&5
7079 fi
7080 else
7081 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7082 fi
7083 else
7084 echo "$progname: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7086 fi
b676ea3b 7087 rm -rf conftest* conftst*
db137867
AC
7088
7089 # Do not use the global_symbol_pipe unless it works.
7090 if test "$pipe_works" = yes; then
7091 break
7092 else
7093 lt_cv_sys_global_symbol_pipe=
7094 fi
7095done
7096
7097fi
7098
7099if test -z "$lt_cv_sys_global_symbol_pipe"; then
7100 lt_cv_sys_global_symbol_to_cdecl=
7101fi
7102if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7083c021 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
030272f3 7104$as_echo "failed" >&6; }
db137867 7105else
7083c021 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
030272f3 7107$as_echo "ok" >&6; }
db137867
AC
7108fi
7109
db137867
AC
7110
7111
7112
7113
7114
db137867 7115
db137867 7116
db137867 7117
db137867 7118
db137867 7119
db137867 7120
db137867 7121
db137867 7122
db137867 7123
db137867
AC
7124
7125
db137867 7126
db137867 7127
db137867 7128
db137867 7129
7083c021
AC
7130
7131# Check whether --enable-libtool-lock was given.
7132if test "${enable_libtool_lock+set}" = set; then :
7133 enableval=$enable_libtool_lock;
db137867
AC
7134fi
7135
7083c021 7136test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
db137867 7137
7083c021
AC
7138# Some flags need to be propagated to the compiler or linker for good
7139# libtool support.
7140case $host in
7141ia64-*-hpux*)
7142 # Find out which ABI we are using.
7143 echo 'int i;' > conftest.$ac_ext
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145 (eval $ac_compile) 2>&5
7146 ac_status=$?
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; }; then
7149 case `/usr/bin/file conftest.$ac_objext` in
7150 *ELF-32*)
7151 HPUX_IA64_MODE="32"
7152 ;;
7153 *ELF-64*)
7154 HPUX_IA64_MODE="64"
7155 ;;
7156 esac
7157 fi
7158 rm -rf conftest*
7159 ;;
7160*-*-irix6*)
7161 # Find out which ABI we are using.
08c2568c 7162 echo '#line 7162 "configure"' > conftest.$ac_ext
7083c021
AC
7163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7164 (eval $ac_compile) 2>&5
7165 ac_status=$?
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167 test $ac_status = 0; }; then
7168 if test "$lt_cv_prog_gnu_ld" = yes; then
7169 case `/usr/bin/file conftest.$ac_objext` in
7170 *32-bit*)
7171 LD="${LD-ld} -melf32bsmip"
7172 ;;
7173 *N32*)
7174 LD="${LD-ld} -melf32bmipn32"
7175 ;;
7176 *64-bit*)
7177 LD="${LD-ld} -melf64bmip"
7178 ;;
7179 esac
7180 else
7181 case `/usr/bin/file conftest.$ac_objext` in
7182 *32-bit*)
7183 LD="${LD-ld} -32"
7184 ;;
7185 *N32*)
7186 LD="${LD-ld} -n32"
7187 ;;
7188 *64-bit*)
7189 LD="${LD-ld} -64"
7190 ;;
7191 esac
7192 fi
7193 fi
7194 rm -rf conftest*
7195 ;;
7196
7197x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7198s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7199 # Find out which ABI we are using.
7200 echo 'int i;' > conftest.$ac_ext
7201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7202 (eval $ac_compile) 2>&5
7203 ac_status=$?
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; then
7206 case `/usr/bin/file conftest.o` in
7207 *32-bit*)
7208 case $host in
7209 x86_64-*kfreebsd*-gnu)
7210 LD="${LD-ld} -m elf_i386_fbsd"
7211 ;;
7212 x86_64-*linux*)
7213 LD="${LD-ld} -m elf_i386"
7214 ;;
7215 ppc64-*linux*|powerpc64-*linux*)
7216 LD="${LD-ld} -m elf32ppclinux"
7217 ;;
7218 s390x-*linux*)
7219 LD="${LD-ld} -m elf_s390"
7220 ;;
7221 sparc64-*linux*)
7222 LD="${LD-ld} -m elf32_sparc"
7223 ;;
7224 esac
7225 ;;
7226 *64-bit*)
7227 case $host in
7228 x86_64-*kfreebsd*-gnu)
7229 LD="${LD-ld} -m elf_x86_64_fbsd"
7230 ;;
7231 x86_64-*linux*)
7232 LD="${LD-ld} -m elf_x86_64"
7233 ;;
7234 ppc*-*linux*|powerpc*-*linux*)
7235 LD="${LD-ld} -m elf64ppc"
7236 ;;
7237 s390*-*linux*|s390*-*tpf*)
7238 LD="${LD-ld} -m elf64_s390"
7239 ;;
7240 sparc*-*linux*)
7241 LD="${LD-ld} -m elf64_sparc"
7242 ;;
7243 esac
7244 ;;
7245 esac
7246 fi
7247 rm -rf conftest*
7248 ;;
7249
7250*-*-sco3.2v5*)
7251 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7252 SAVE_CFLAGS="$CFLAGS"
7253 CFLAGS="$CFLAGS -belf"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7255$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
08c2568c 7256if ${lt_cv_cc_needs_belf+:} false; then :
7083c021
AC
7257 $as_echo_n "(cached) " >&6
7258else
7259 ac_ext=c
7260ac_cpp='$CPP $CPPFLAGS'
7261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h. */
7267
7268int
7269main ()
7270{
7271
7272 ;
7273 return 0;
7274}
7275_ACEOF
7276if ac_fn_c_try_link "$LINENO"; then :
7277 lt_cv_cc_needs_belf=yes
7278else
7279 lt_cv_cc_needs_belf=no
7280fi
7281rm -f core conftest.err conftest.$ac_objext \
7282 conftest$ac_exeext conftest.$ac_ext
7283 ac_ext=c
7284ac_cpp='$CPP $CPPFLAGS'
7285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7291$as_echo "$lt_cv_cc_needs_belf" >&6; }
7292 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7293 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7294 CFLAGS="$SAVE_CFLAGS"
7295 fi
7296 ;;
7297sparc*-*solaris*)
7298 # Find out which ABI we are using.
7299 echo 'int i;' > conftest.$ac_ext
7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7301 (eval $ac_compile) 2>&5
7302 ac_status=$?
7303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304 test $ac_status = 0; }; then
7305 case `/usr/bin/file conftest.o` in
7306 *64-bit*)
7307 case $lt_cv_prog_gnu_ld in
7308 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7309 *)
7310 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7311 LD="${LD-ld} -64"
7312 fi
7313 ;;
7314 esac
7315 ;;
7316 esac
7317 fi
7318 rm -rf conftest*
7319 ;;
7320esac
7321
7322need_locks="$enable_libtool_lock"
7323
7324
7325 case $host_os in
7326 rhapsody* | darwin*)
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7329set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7332if ${ac_cv_prog_DSYMUTIL+:} false; then :
7083c021
AC
7333 $as_echo_n "(cached) " >&6
7334else
7335 if test -n "$DSYMUTIL"; then
7336 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7337else
7338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
db137867
AC
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7083c021 7343 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7345 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
7347 break 2
7348 fi
7349done
7083c021
AC
7350 done
7351IFS=$as_save_IFS
7352
7353fi
7354fi
7355DSYMUTIL=$ac_cv_prog_DSYMUTIL
7356if test -n "$DSYMUTIL"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7358$as_echo "$DSYMUTIL" >&6; }
7359else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361$as_echo "no" >&6; }
7362fi
7363
7364
7365fi
7366if test -z "$ac_cv_prog_DSYMUTIL"; then
7367 ac_ct_DSYMUTIL=$DSYMUTIL
7368 # Extract the first word of "dsymutil", so it can be a program name with args.
7369set dummy dsymutil; ac_word=$2
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7372if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7083c021
AC
7373 $as_echo_n "(cached) " >&6
7374else
7375 if test -n "$ac_ct_DSYMUTIL"; then
7376 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7377else
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
db137867 7389done
7083c021 7390 done
db137867
AC
7391IFS=$as_save_IFS
7392
7393fi
7394fi
7083c021
AC
7395ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7396if test -n "$ac_ct_DSYMUTIL"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7398$as_echo "$ac_ct_DSYMUTIL" >&6; }
db137867 7399else
7083c021 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7401$as_echo "no" >&6; }
db137867
AC
7402fi
7403
7083c021
AC
7404 if test "x$ac_ct_DSYMUTIL" = x; then
7405 DSYMUTIL=":"
db137867
AC
7406 else
7407 case $cross_compiling:$ac_tool_warned in
7408yes:)
7083c021 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 7410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
7411ac_tool_warned=yes ;;
7412esac
7083c021 7413 DSYMUTIL=$ac_ct_DSYMUTIL
db137867
AC
7414 fi
7415else
7083c021 7416 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
db137867
AC
7417fi
7418
7083c021
AC
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7421set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7423$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7424if ${ac_cv_prog_NMEDIT+:} false; then :
030272f3 7425 $as_echo_n "(cached) " >&6
db137867 7426else
7083c021
AC
7427 if test -n "$NMEDIT"; then
7428 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
db137867
AC
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7083c021 7435 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7437 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
7439 break 2
7440 fi
7441done
7083c021 7442 done
db137867
AC
7443IFS=$as_save_IFS
7444
7445fi
7446fi
7083c021
AC
7447NMEDIT=$ac_cv_prog_NMEDIT
7448if test -n "$NMEDIT"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7450$as_echo "$NMEDIT" >&6; }
db137867 7451else
7083c021 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7453$as_echo "no" >&6; }
db137867
AC
7454fi
7455
7456
7457fi
7083c021
AC
7458if test -z "$ac_cv_prog_NMEDIT"; then
7459 ac_ct_NMEDIT=$NMEDIT
7460 # Extract the first word of "nmedit", so it can be a program name with args.
7461set dummy nmedit; ac_word=$2
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7463$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7464if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
030272f3 7465 $as_echo_n "(cached) " >&6
db137867 7466else
7083c021
AC
7467 if test -n "$ac_ct_NMEDIT"; then
7468 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
db137867
AC
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7083c021 7475 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7477 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
7479 break 2
7480 fi
7481done
7083c021 7482 done
db137867
AC
7483IFS=$as_save_IFS
7484
7485fi
7486fi
7083c021
AC
7487ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7488if test -n "$ac_ct_NMEDIT"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7490$as_echo "$ac_ct_NMEDIT" >&6; }
db137867 7491else
7083c021 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7493$as_echo "no" >&6; }
db137867
AC
7494fi
7495
7083c021
AC
7496 if test "x$ac_ct_NMEDIT" = x; then
7497 NMEDIT=":"
db137867
AC
7498 else
7499 case $cross_compiling:$ac_tool_warned in
7500yes:)
7083c021 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 7502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
7503ac_tool_warned=yes ;;
7504esac
7083c021 7505 NMEDIT=$ac_ct_NMEDIT
db137867
AC
7506 fi
7507else
7083c021 7508 NMEDIT="$ac_cv_prog_NMEDIT"
db137867
AC
7509fi
7510
7083c021
AC
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7513set dummy ${ac_tool_prefix}lipo; ac_word=$2
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7516if ${ac_cv_prog_LIPO+:} false; then :
7083c021
AC
7517 $as_echo_n "(cached) " >&6
7518else
7519 if test -n "$LIPO"; then
7520 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7521else
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533done
7534 done
7535IFS=$as_save_IFS
db137867 7536
db137867 7537fi
db137867 7538fi
7083c021
AC
7539LIPO=$ac_cv_prog_LIPO
7540if test -n "$LIPO"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7542$as_echo "$LIPO" >&6; }
db137867 7543else
7083c021 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7545$as_echo "no" >&6; }
db137867
AC
7546fi
7547
7083c021
AC
7548
7549fi
7550if test -z "$ac_cv_prog_LIPO"; then
7551 ac_ct_LIPO=$LIPO
7552 # Extract the first word of "lipo", so it can be a program name with args.
7553set dummy lipo; ac_word=$2
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7556if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
030272f3 7557 $as_echo_n "(cached) " >&6
db137867 7558else
7083c021
AC
7559 if test -n "$ac_ct_LIPO"; then
7560 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_ac_ct_LIPO="lipo"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573done
db137867 7574 done
7083c021 7575IFS=$as_save_IFS
db137867 7576
7083c021
AC
7577fi
7578fi
7579ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7580if test -n "$ac_ct_LIPO"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7582$as_echo "$ac_ct_LIPO" >&6; }
db137867 7583else
7083c021 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7585$as_echo "no" >&6; }
db137867
AC
7586fi
7587
7083c021
AC
7588 if test "x$ac_ct_LIPO" = x; then
7589 LIPO=":"
db137867 7590 else
7083c021
AC
7591 case $cross_compiling:$ac_tool_warned in
7592yes:)
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595ac_tool_warned=yes ;;
7596esac
7597 LIPO=$ac_ct_LIPO
db137867 7598 fi
7083c021
AC
7599else
7600 LIPO="$ac_cv_prog_LIPO"
db137867
AC
7601fi
7602
b676ea3b 7603 if test -n "$ac_tool_prefix"; then
7083c021
AC
7604 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7605set dummy ${ac_tool_prefix}otool; ac_word=$2
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7607$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7608if ${ac_cv_prog_OTOOL+:} false; then :
030272f3 7609 $as_echo_n "(cached) " >&6
b676ea3b 7610else
7083c021
AC
7611 if test -n "$OTOOL"; then
7612 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
b676ea3b
AC
7613else
7614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7083c021 7619 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7621 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
7623 break 2
7624 fi
7625done
7083c021 7626 done
b676ea3b
AC
7627IFS=$as_save_IFS
7628
7629fi
7630fi
7083c021
AC
7631OTOOL=$ac_cv_prog_OTOOL
7632if test -n "$OTOOL"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7634$as_echo "$OTOOL" >&6; }
b676ea3b 7635else
7083c021 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7637$as_echo "no" >&6; }
b676ea3b
AC
7638fi
7639
7640
7641fi
7083c021
AC
7642if test -z "$ac_cv_prog_OTOOL"; then
7643 ac_ct_OTOOL=$OTOOL
7644 # Extract the first word of "otool", so it can be a program name with args.
7645set dummy otool; ac_word=$2
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7647$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7648if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
030272f3 7649 $as_echo_n "(cached) " >&6
b676ea3b 7650else
7083c021
AC
7651 if test -n "$ac_ct_OTOOL"; then
7652 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
b676ea3b
AC
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7083c021 7659 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7661 ac_cv_prog_ac_ct_OTOOL="otool"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
7663 break 2
7664 fi
7665done
7083c021 7666 done
b676ea3b
AC
7667IFS=$as_save_IFS
7668
7669fi
7670fi
7083c021
AC
7671ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7672if test -n "$ac_ct_OTOOL"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7674$as_echo "$ac_ct_OTOOL" >&6; }
b676ea3b 7675else
7083c021 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7677$as_echo "no" >&6; }
b676ea3b
AC
7678fi
7679
7083c021
AC
7680 if test "x$ac_ct_OTOOL" = x; then
7681 OTOOL=":"
b676ea3b
AC
7682 else
7683 case $cross_compiling:$ac_tool_warned in
7684yes:)
7083c021 7685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 7686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b676ea3b
AC
7687ac_tool_warned=yes ;;
7688esac
7083c021 7689 OTOOL=$ac_ct_OTOOL
b676ea3b
AC
7690 fi
7691else
7083c021 7692 OTOOL="$ac_cv_prog_OTOOL"
b676ea3b
AC
7693fi
7694
7695 if test -n "$ac_tool_prefix"; then
7083c021
AC
7696 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7697set dummy ${ac_tool_prefix}otool64; ac_word=$2
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7699$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7700if ${ac_cv_prog_OTOOL64+:} false; then :
030272f3 7701 $as_echo_n "(cached) " >&6
b676ea3b 7702else
7083c021
AC
7703 if test -n "$OTOOL64"; then
7704 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
b676ea3b
AC
7705else
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7083c021 7711 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7713 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
7715 break 2
7716 fi
7717done
7083c021 7718 done
b676ea3b
AC
7719IFS=$as_save_IFS
7720
7721fi
7722fi
7083c021
AC
7723OTOOL64=$ac_cv_prog_OTOOL64
7724if test -n "$OTOOL64"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7726$as_echo "$OTOOL64" >&6; }
b676ea3b 7727else
7083c021 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7729$as_echo "no" >&6; }
b676ea3b
AC
7730fi
7731
7732
7733fi
7083c021
AC
7734if test -z "$ac_cv_prog_OTOOL64"; then
7735 ac_ct_OTOOL64=$OTOOL64
7736 # Extract the first word of "otool64", so it can be a program name with args.
7737set dummy otool64; ac_word=$2
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7739$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 7740if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
030272f3 7741 $as_echo_n "(cached) " >&6
b676ea3b 7742else
7083c021
AC
7743 if test -n "$ac_ct_OTOOL64"; then
7744 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
b676ea3b
AC
7745else
7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7083c021 7751 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7753 ac_cv_prog_ac_ct_OTOOL64="otool64"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
7755 break 2
7756 fi
7757done
7083c021 7758 done
b676ea3b
AC
7759IFS=$as_save_IFS
7760
7761fi
7762fi
7083c021
AC
7763ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7764if test -n "$ac_ct_OTOOL64"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7766$as_echo "$ac_ct_OTOOL64" >&6; }
b676ea3b 7767else
7083c021 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7769$as_echo "no" >&6; }
b676ea3b
AC
7770fi
7771
7083c021
AC
7772 if test "x$ac_ct_OTOOL64" = x; then
7773 OTOOL64=":"
b676ea3b
AC
7774 else
7775 case $cross_compiling:$ac_tool_warned in
7776yes:)
7083c021 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 7778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b676ea3b
AC
7779ac_tool_warned=yes ;;
7780esac
7083c021 7781 OTOOL64=$ac_ct_OTOOL64
b676ea3b
AC
7782 fi
7783else
7083c021 7784 OTOOL64="$ac_cv_prog_OTOOL64"
b676ea3b
AC
7785fi
7786
7787
b676ea3b 7788
b676ea3b 7789
7083c021
AC
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7814$as_echo_n "checking for -single_module linker flag... " >&6; }
08c2568c 7815if ${lt_cv_apple_cc_single_mod+:} false; then :
7083c021
AC
7816 $as_echo_n "(cached) " >&6
7817else
7818 lt_cv_apple_cc_single_mod=no
7819 if test -z "${LT_MULTI_MODULE}"; then
7820 # By default we will add the -single_module flag. You can override
7821 # by either setting the environment variable LT_MULTI_MODULE
7822 # non-empty at configure time, or by adding -multi_module to the
7823 # link flags.
7824 rm -rf libconftest.dylib*
7825 echo "int foo(void){return 1;}" > conftest.c
7826 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7827-dynamiclib -Wl,-single_module conftest.c" >&5
7828 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7829 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7830 _lt_result=$?
7831 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7832 lt_cv_apple_cc_single_mod=yes
7833 else
7834 cat conftest.err >&5
7835 fi
7836 rm -rf libconftest.dylib*
7837 rm -f conftest.*
7838 fi
7839fi
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7841$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7843$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
08c2568c 7844if ${lt_cv_ld_exported_symbols_list+:} false; then :
7083c021
AC
7845 $as_echo_n "(cached) " >&6
7846else
7847 lt_cv_ld_exported_symbols_list=no
7848 save_LDFLAGS=$LDFLAGS
7849 echo "_main" > conftest.sym
7850 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h. */
7853
7854int
7855main ()
7856{
7857
7858 ;
7859 return 0;
b676ea3b
AC
7860}
7861_ACEOF
7083c021 7862if ac_fn_c_try_link "$LINENO"; then :
b676ea3b
AC
7863 lt_cv_ld_exported_symbols_list=yes
7864else
7083c021 7865 lt_cv_ld_exported_symbols_list=no
b676ea3b 7866fi
7083c021
AC
7867rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 LDFLAGS="$save_LDFLAGS"
b676ea3b
AC
7870
7871fi
7083c021 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
030272f3 7873$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b676ea3b 7874 case $host_os in
7083c021 7875 rhapsody* | darwin1.[012])
b676ea3b
AC
7876 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7877 darwin1.*)
7083c021
AC
7878 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7879 darwin*) # darwin 5.x on
b676ea3b
AC
7880 # if running on 10.5 or later, the deployment target defaults
7881 # to the OS version, if on x86, and 10.4, the deployment
7882 # target defaults to 10.4. Don't you love it?
7883 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7083c021
AC
7884 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7885 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7886 10.[012]*)
7887 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7888 10.*)
7889 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
b676ea3b
AC
7890 esac
7891 ;;
7892 esac
7893 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7894 _lt_dar_single_mod='$single_module'
7895 fi
7896 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7897 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7898 else
7083c021 7899 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
b676ea3b
AC
7900 fi
7901 if test "$DSYMUTIL" != ":"; then
7083c021 7902 _lt_dsymutil='~$DSYMUTIL $lib || :'
b676ea3b
AC
7903 else
7904 _lt_dsymutil=
7905 fi
7906 ;;
7907 esac
7908
7083c021
AC
7909for ac_header in dlfcn.h
7910do :
7911 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7912"
08c2568c 7913if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7083c021
AC
7914 cat >>confdefs.h <<_ACEOF
7915#define HAVE_DLFCN_H 1
7916_ACEOF
b676ea3b 7917
db137867
AC
7918fi
7919
7083c021
AC
7920done
7921
7922
7923
7924# Set options
7925
7926
7927
7928 enable_dlopen=no
7929
7930
7931 enable_win32_dll=no
7932
7933
7934
db137867
AC
7935
7936
7937# Check whether --with-pic was given.
7083c021 7938if test "${with_pic+set}" = set; then :
db137867
AC
7939 withval=$with_pic; pic_mode="$withval"
7940else
7941 pic_mode=default
7942fi
7943
7083c021 7944
db137867
AC
7945test -z "$pic_mode" && pic_mode=default
7946
db137867
AC
7947
7948
db137867 7949
db137867 7950
db137867 7951
db137867 7952
7083c021
AC
7953 # Check whether --enable-fast-install was given.
7954if test "${enable_fast_install+set}" = set; then :
7955 enableval=$enable_fast_install; p=${PACKAGE-default}
7956 case $enableval in
7957 yes) enable_fast_install=yes ;;
7958 no) enable_fast_install=no ;;
7959 *)
7960 enable_fast_install=no
7961 # Look at the argument we got. We use all the common list separators.
7962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7963 for pkg in $enableval; do
7964 IFS="$lt_save_ifs"
7965 if test "X$pkg" = "X$p"; then
7966 enable_fast_install=yes
7967 fi
7968 done
7969 IFS="$lt_save_ifs"
7970 ;;
7971 esac
7972else
7973 enable_fast_install=yes
7974fi
db137867 7975
db137867 7976
db137867 7977
db137867
AC
7978
7979
db137867 7980
db137867
AC
7981
7982
7983
db137867 7984
db137867 7985
7083c021
AC
7986# This can be used to rebuild libtool when needed
7987LIBTOOL_DEPS="$ltmain"
db137867 7988
7083c021
AC
7989# Always use our own libtool.
7990LIBTOOL='$(SHELL) $(top_builddir)/libtool'
db137867 7991
db137867 7992
db137867 7993
db137867 7994
db137867 7995
db137867 7996
db137867 7997
db137867 7998
db137867 7999
db137867 8000
db137867 8001
db137867 8002
db137867 8003
db137867 8004
db137867 8005
db137867 8006
db137867 8007
db137867 8008
db137867 8009
db137867 8010
db137867 8011
db137867 8012
db137867 8013
db137867 8014
db137867 8015
7083c021 8016test -z "$LN_S" && LN_S="ln -s"
db137867 8017
db137867 8018
db137867 8019
db137867 8020
db137867 8021
db137867 8022
db137867 8023
db137867 8024
db137867 8025
db137867 8026
db137867 8027
db137867 8028
db137867 8029
db137867 8030
7083c021
AC
8031if test -n "${ZSH_VERSION+set}" ; then
8032 setopt NO_GLOB_SUBST
db137867 8033fi
db137867 8034
7083c021
AC
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8036$as_echo_n "checking for objdir... " >&6; }
08c2568c 8037if ${lt_cv_objdir+:} false; then :
7083c021 8038 $as_echo_n "(cached) " >&6
db137867 8039else
7083c021
AC
8040 rm -f .libs 2>/dev/null
8041mkdir .libs 2>/dev/null
8042if test -d .libs; then
8043 lt_cv_objdir=.libs
8044else
8045 # MS-DOS does not allow filenames that begin with a dot.
8046 lt_cv_objdir=_libs
8047fi
8048rmdir .libs 2>/dev/null
db137867 8049fi
7083c021
AC
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8051$as_echo "$lt_cv_objdir" >&6; }
8052objdir=$lt_cv_objdir
db137867
AC
8053
8054
db137867 8055
db137867 8056
db137867 8057
7083c021
AC
8058cat >>confdefs.h <<_ACEOF
8059#define LT_OBJDIR "$lt_cv_objdir/"
8060_ACEOF
db137867 8061
db137867 8062
db137867 8063
db137867 8064
db137867 8065
db137867 8066
db137867 8067
db137867 8068
db137867 8069
db137867 8070
db137867 8071
db137867 8072
db137867 8073
db137867 8074
db137867 8075
db137867 8076
db137867 8077
7083c021
AC
8078case $host_os in
8079aix3*)
8080 # AIX sometimes has problems with the GCC collect2 program. For some
8081 # reason, if we set the COLLECT_NAMES environment variable, the problems
8082 # vanish in a puff of smoke.
8083 if test "X${COLLECT_NAMES+set}" != Xset; then
8084 COLLECT_NAMES=
8085 export COLLECT_NAMES
8086 fi
8087 ;;
8088esac
db137867 8089
7083c021
AC
8090# Sed substitution that helps us do robust quoting. It backslashifies
8091# metacharacters that are still active within double-quoted strings.
8092sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
db137867 8093
7083c021
AC
8094# Same as above, but do not quote variable references.
8095double_quote_subst='s/\(["`\\]\)/\\\1/g'
db137867 8096
7083c021
AC
8097# Sed substitution to delay expansion of an escaped shell variable in a
8098# double_quote_subst'ed string.
8099delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
db137867 8100
7083c021
AC
8101# Sed substitution to delay expansion of an escaped single quote.
8102delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
db137867 8103
7083c021
AC
8104# Sed substitution to avoid accidental globbing in evaled expressions
8105no_glob_subst='s/\*/\\\*/g'
db137867 8106
7083c021
AC
8107# Global variables:
8108ofile=libtool
8109can_build_shared=yes
db137867 8110
7083c021
AC
8111# All known linkers require a `.a' archive for static linking (except MSVC,
8112# which needs '.lib').
8113libext=a
db137867 8114
7083c021 8115with_gnu_ld="$lt_cv_prog_gnu_ld"
db137867 8116
7083c021
AC
8117old_CC="$CC"
8118old_CFLAGS="$CFLAGS"
db137867 8119
7083c021
AC
8120# Set sane defaults for various variables
8121test -z "$CC" && CC=cc
8122test -z "$LTCC" && LTCC=$CC
8123test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8124test -z "$LD" && LD=ld
8125test -z "$ac_objext" && ac_objext=o
db137867 8126
7083c021
AC
8127for cc_temp in $compiler""; do
8128 case $cc_temp in
8129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8131 \-*) ;;
8132 *) break;;
8133 esac
8134done
8135cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
db137867 8136
db137867 8137
7083c021
AC
8138# Only perform the check for file, if the check method requires it
8139test -z "$MAGIC_CMD" && MAGIC_CMD=file
8140case $deplibs_check_method in
8141file_magic*)
8142 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8144$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
08c2568c 8145if ${lt_cv_path_MAGIC_CMD+:} false; then :
7083c021
AC
8146 $as_echo_n "(cached) " >&6
8147else
8148 case $MAGIC_CMD in
8149[\\/*] | ?:[\\/]*)
8150 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8151 ;;
8152*)
8153 lt_save_MAGIC_CMD="$MAGIC_CMD"
8154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8156 for ac_dir in $ac_dummy; do
8157 IFS="$lt_save_ifs"
8158 test -z "$ac_dir" && ac_dir=.
8159 if test -f $ac_dir/${ac_tool_prefix}file; then
8160 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8161 if test -n "$file_magic_test_file"; then
8162 case $deplibs_check_method in
8163 "file_magic "*)
8164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8167 $EGREP "$file_magic_regex" > /dev/null; then
8168 :
8169 else
8170 cat <<_LT_EOF 1>&2
db137867 8171
7083c021
AC
8172*** Warning: the command libtool uses to detect shared libraries,
8173*** $file_magic_cmd, produces output that libtool cannot recognize.
8174*** The result is that libtool may fail to recognize shared libraries
8175*** as such. This will affect the creation of libtool libraries that
8176*** depend on shared libraries, but programs linked with such libtool
8177*** libraries will work regardless of this problem. Nevertheless, you
8178*** may want to report the problem to your system manager and/or to
8179*** bug-libtool@gnu.org
db137867 8180
7083c021
AC
8181_LT_EOF
8182 fi ;;
db137867 8183 esac
db137867 8184 fi
7083c021
AC
8185 break
8186 fi
8187 done
8188 IFS="$lt_save_ifs"
8189 MAGIC_CMD="$lt_save_MAGIC_CMD"
8190 ;;
8191esac
8192fi
db137867 8193
7083c021
AC
8194MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195if test -n "$MAGIC_CMD"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8197$as_echo "$MAGIC_CMD" >&6; }
8198else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
8201fi
db137867 8202
db137867 8203
db137867 8204
7083c021
AC
8205
8206
8207if test -z "$lt_cv_path_MAGIC_CMD"; then
8208 if test -n "$ac_tool_prefix"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8210$as_echo_n "checking for file... " >&6; }
08c2568c 8211if ${lt_cv_path_MAGIC_CMD+:} false; then :
7083c021 8212 $as_echo_n "(cached) " >&6
db137867 8213else
7083c021
AC
8214 case $MAGIC_CMD in
8215[\\/*] | ?:[\\/]*)
8216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8217 ;;
8218*)
8219 lt_save_MAGIC_CMD="$MAGIC_CMD"
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir in $ac_dummy; do
8223 IFS="$lt_save_ifs"
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/file; then
8226 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8229 "file_magic "*)
8230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233 $EGREP "$file_magic_regex" > /dev/null; then
8234 :
8235 else
8236 cat <<_LT_EOF 1>&2
db137867 8237
7083c021
AC
8238*** Warning: the command libtool uses to detect shared libraries,
8239*** $file_magic_cmd, produces output that libtool cannot recognize.
8240*** The result is that libtool may fail to recognize shared libraries
8241*** as such. This will affect the creation of libtool libraries that
8242*** depend on shared libraries, but programs linked with such libtool
8243*** libraries will work regardless of this problem. Nevertheless, you
8244*** may want to report the problem to your system manager and/or to
8245*** bug-libtool@gnu.org
db137867 8246
7083c021
AC
8247_LT_EOF
8248 fi ;;
8249 esac
8250 fi
8251 break
8252 fi
8253 done
8254 IFS="$lt_save_ifs"
8255 MAGIC_CMD="$lt_save_MAGIC_CMD"
8256 ;;
8257esac
db137867
AC
8258fi
8259
7083c021
AC
8260MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261if test -n "$MAGIC_CMD"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263$as_echo "$MAGIC_CMD" >&6; }
8264else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
8267fi
db137867 8268
db137867 8269
7083c021
AC
8270 else
8271 MAGIC_CMD=:
8272 fi
8273fi
db137867 8274
7083c021
AC
8275 fi
8276 ;;
db137867 8277esac
db137867 8278
7083c021
AC
8279# Use C for the default configuration in the libtool script
8280
8281lt_save_CC="$CC"
8282ac_ext=c
8283ac_cpp='$CPP $CPPFLAGS'
8284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286ac_compiler_gnu=$ac_cv_c_compiler_gnu
8287
8288
8289# Source file extension for C test sources.
8290ac_ext=c
8291
8292# Object file extension for compiled C test sources.
8293objext=o
8294objext=$objext
8295
8296# Code to be used in simple compile tests
8297lt_simple_compile_test_code="int some_variable = 0;"
8298
8299# Code to be used in simple link tests
8300lt_simple_link_test_code='int main(){return(0);}'
8301
8302
8303
8304
8305
8306
8307
8308# If no C compiler was specified, use CC.
8309LTCC=${LTCC-"$CC"}
8310
8311# If no C compiler flags were specified, use CFLAGS.
8312LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8313
8314# Allow CC to be a program name with arguments.
8315compiler=$CC
8316
8317# Save the default compiler, since it gets overwritten when the other
8318# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8319compiler_DEFAULT=$CC
8320
8321# save warnings/boilerplate of simple test code
8322ac_outfile=conftest.$ac_objext
8323echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8324eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8325_lt_compiler_boilerplate=`cat conftest.err`
8326$RM conftest*
8327
8328ac_outfile=conftest.$ac_objext
8329echo "$lt_simple_link_test_code" >conftest.$ac_ext
8330eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8331_lt_linker_boilerplate=`cat conftest.err`
8332$RM -r conftest*
8333
8334
8335if test -n "$compiler"; then
8336
8337lt_prog_compiler_no_builtin_flag=
8338
8339if test "$GCC" = yes; then
8340 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8341
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8343$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
08c2568c 8344if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7083c021 8345 $as_echo_n "(cached) " >&6
db137867 8346else
7083c021
AC
8347 lt_cv_prog_compiler_rtti_exceptions=no
8348 ac_outfile=conftest.$ac_objext
8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350 lt_compiler_flag="-fno-rtti -fno-exceptions"
8351 # Insert the option either (1) after the last *FLAGS variable, or
8352 # (2) before a word containing "conftest.", or (3) at the end.
8353 # Note that $ac_compile itself does not contain backslashes and begins
8354 # with a dollar sign (not a hyphen), so the echo should work correctly.
8355 # The option is referenced via a variable to avoid confusing sed.
8356 lt_compile=`echo "$ac_compile" | $SED \
8357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359 -e 's:$: $lt_compiler_flag:'`
08c2568c 8360 (eval echo "\"\$as_me:8360: $lt_compile\"" >&5)
7083c021
AC
8361 (eval "$lt_compile" 2>conftest.err)
8362 ac_status=$?
8363 cat conftest.err >&5
08c2568c 8364 echo "$as_me:8364: \$? = $ac_status" >&5
7083c021
AC
8365 if (exit $ac_status) && test -s "$ac_outfile"; then
8366 # The compiler can only warn and ignore the option if not recognized
8367 # So say no if there are warnings other than the usual output.
8368 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8370 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8371 lt_cv_prog_compiler_rtti_exceptions=yes
8372 fi
8373 fi
8374 $RM conftest*
db137867 8375
7083c021
AC
8376fi
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8378$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
db137867 8379
7083c021
AC
8380if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8381 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8382else
8383 :
db137867
AC
8384fi
8385
7083c021 8386fi
db137867 8387
7083c021
AC
8388
8389
8390
8391
8392
8393 lt_prog_compiler_wl=
8394lt_prog_compiler_pic=
8395lt_prog_compiler_static=
8396
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8398$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8399
8400 if test "$GCC" = yes; then
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_static='-static'
8403
8404 case $host_os in
8405 aix*)
8406 # All AIX code is PIC.
8407 if test "$host_cpu" = ia64; then
8408 # AIX 5 now supports IA64 processor
8409 lt_prog_compiler_static='-Bstatic'
db137867
AC
8410 fi
8411 ;;
8412
8413 amigaos*)
7083c021
AC
8414 case $host_cpu in
8415 powerpc)
8416 # see comment about AmigaOS4 .so support
8417 lt_prog_compiler_pic='-fPIC'
8418 ;;
8419 m68k)
8420 # FIXME: we need at least 68020 code to build shared libraries, but
8421 # adding the `-m68020' flag to GCC prevents building anything better,
8422 # like `-m68040'.
8423 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8424 ;;
8425 esac
db137867
AC
8426 ;;
8427
7083c021
AC
8428 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8429 # PIC is the default for these OSes.
db137867
AC
8430 ;;
8431
7083c021
AC
8432 mingw* | cygwin* | pw32* | os2* | cegcc*)
8433 # This hack is so that the source file can tell whether it is being
8434 # built for inclusion in a dll (and should export symbols for example).
8435 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8436 # (--disable-auto-import) libraries
8437 lt_prog_compiler_pic='-DDLL_EXPORT'
db137867
AC
8438 ;;
8439
8440 darwin* | rhapsody*)
7083c021
AC
8441 # PIC is the default on this platform
8442 # Common symbols not allowed in MH_DYLIB files
8443 lt_prog_compiler_pic='-fno-common'
db137867
AC
8444 ;;
8445
7083c021
AC
8446 hpux*)
8447 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8448 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8449 # sets the default TLS model and affects inlining.
8450 case $host_cpu in
8451 hppa*64*)
8452 # +Z the default
8453 ;;
8454 *)
8455 lt_prog_compiler_pic='-fPIC'
8456 ;;
8457 esac
db137867
AC
8458 ;;
8459
7083c021
AC
8460 interix[3-9]*)
8461 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8462 # Instead, we relocate shared libraries at runtime.
db137867
AC
8463 ;;
8464
7083c021
AC
8465 msdosdjgpp*)
8466 # Just because we use GCC doesn't mean we suddenly get shared libraries
8467 # on systems that don't support them.
8468 lt_prog_compiler_can_build_shared=no
8469 enable_shared=no
db137867
AC
8470 ;;
8471
7083c021
AC
8472 *nto* | *qnx*)
8473 # QNX uses GNU C++, but need to define -shared option too, otherwise
8474 # it will coredump.
8475 lt_prog_compiler_pic='-fPIC -shared'
db137867
AC
8476 ;;
8477
7083c021
AC
8478 sysv4*MP*)
8479 if test -d /usr/nec; then
8480 lt_prog_compiler_pic=-Kconform_pic
8481 fi
db137867
AC
8482 ;;
8483
7083c021
AC
8484 *)
8485 lt_prog_compiler_pic='-fPIC'
8486 ;;
8487 esac
8488 else
8489 # PORTME Check for flag to pass linker flags through the system compiler.
8490 case $host_os in
8491 aix*)
8492 lt_prog_compiler_wl='-Wl,'
8493 if test "$host_cpu" = ia64; then
8494 # AIX 5 now supports IA64 processor
8495 lt_prog_compiler_static='-Bstatic'
db137867 8496 else
7083c021 8497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
db137867 8498 fi
db137867
AC
8499 ;;
8500
7083c021
AC
8501 mingw* | cygwin* | pw32* | os2* | cegcc*)
8502 # This hack is so that the source file can tell whether it is being
8503 # built for inclusion in a dll (and should export symbols for example).
8504 lt_prog_compiler_pic='-DDLL_EXPORT'
8505 ;;
db137867 8506
7083c021
AC
8507 hpux9* | hpux10* | hpux11*)
8508 lt_prog_compiler_wl='-Wl,'
8509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8510 # not for PA HP-UX.
8511 case $host_cpu in
8512 hppa*64*|ia64*)
8513 # +Z the default
8514 ;;
8515 *)
8516 lt_prog_compiler_pic='+Z'
8517 ;;
8518 esac
8519 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8520 lt_prog_compiler_static='${wl}-a ${wl}archive'
8521 ;;
db137867 8522
7083c021
AC
8523 irix5* | irix6* | nonstopux*)
8524 lt_prog_compiler_wl='-Wl,'
8525 # PIC (with -KPIC) is the default.
8526 lt_prog_compiler_static='-non_shared'
db137867
AC
8527 ;;
8528
7083c021
AC
8529 linux* | k*bsd*-gnu)
8530 case $cc_basename in
8531 # old Intel for x86_64 which still supported -KPIC.
8532 ecc*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-KPIC'
8535 lt_prog_compiler_static='-static'
8536 ;;
8537 # icc used to be incompatible with GCC.
8538 # ICC 10 doesn't accept -KPIC any more.
8539 icc* | ifort*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-fPIC'
8542 lt_prog_compiler_static='-static'
8543 ;;
8544 # Lahey Fortran 8.1.
8545 lf95*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='--shared'
8548 lt_prog_compiler_static='--static'
8549 ;;
8550 pgcc* | pgf77* | pgf90* | pgf95*)
8551 # Portland Group compilers (*not* the Pentium gcc compiler,
8552 # which looks to be a dead project)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-fpic'
8555 lt_prog_compiler_static='-Bstatic'
8556 ;;
8557 ccc*)
8558 lt_prog_compiler_wl='-Wl,'
8559 # All Alpha code is PIC.
8560 lt_prog_compiler_static='-non_shared'
8561 ;;
8562 xl*)
8563 # IBM XL C 8.0/Fortran 10.1 on PPC
8564 lt_prog_compiler_wl='-Wl,'
8565 lt_prog_compiler_pic='-qpic'
8566 lt_prog_compiler_static='-qstaticlink'
8567 ;;
8568 *)
8569 case `$CC -V 2>&1 | sed 5q` in
8570 *Sun\ C*)
8571 # Sun C 5.9
8572 lt_prog_compiler_pic='-KPIC'
8573 lt_prog_compiler_static='-Bstatic'
8574 lt_prog_compiler_wl='-Wl,'
db137867 8575 ;;
7083c021
AC
8576 *Sun\ F*)
8577 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8578 lt_prog_compiler_pic='-KPIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 lt_prog_compiler_wl=''
db137867
AC
8581 ;;
8582 esac
7083c021
AC
8583 ;;
8584 esac
8585 ;;
db137867 8586
7083c021
AC
8587 newsos6)
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-Bstatic'
8590 ;;
db137867 8591
7083c021
AC
8592 *nto* | *qnx*)
8593 # QNX uses GNU C++, but need to define -shared option too, otherwise
8594 # it will coredump.
8595 lt_prog_compiler_pic='-fPIC -shared'
db137867
AC
8596 ;;
8597
7083c021
AC
8598 osf3* | osf4* | osf5*)
8599 lt_prog_compiler_wl='-Wl,'
8600 # All OSF/1 code is PIC.
8601 lt_prog_compiler_static='-non_shared'
db137867
AC
8602 ;;
8603
7083c021
AC
8604 rdos*)
8605 lt_prog_compiler_static='-non_shared'
db137867
AC
8606 ;;
8607
7083c021
AC
8608 solaris*)
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 case $cc_basename in
8612 f77* | f90* | f95*)
8613 lt_prog_compiler_wl='-Qoption ld ';;
8614 *)
8615 lt_prog_compiler_wl='-Wl,';;
8616 esac
db137867
AC
8617 ;;
8618
7083c021
AC
8619 sunos4*)
8620 lt_prog_compiler_wl='-Qoption ld '
8621 lt_prog_compiler_pic='-PIC'
8622 lt_prog_compiler_static='-Bstatic'
db137867
AC
8623 ;;
8624
7083c021
AC
8625 sysv4 | sysv4.2uw2* | sysv4.3*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
db137867
AC
8629 ;;
8630
7083c021
AC
8631 sysv4*MP*)
8632 if test -d /usr/nec ;then
8633 lt_prog_compiler_pic='-Kconform_pic'
8634 lt_prog_compiler_static='-Bstatic'
db137867 8635 fi
db137867
AC
8636 ;;
8637
7083c021
AC
8638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-Bstatic'
8642 ;;
db137867 8643
7083c021
AC
8644 unicos*)
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_can_build_shared=no
db137867
AC
8647 ;;
8648
7083c021
AC
8649 uts4*)
8650 lt_prog_compiler_pic='-pic'
8651 lt_prog_compiler_static='-Bstatic'
db137867
AC
8652 ;;
8653
7083c021
AC
8654 *)
8655 lt_prog_compiler_can_build_shared=no
db137867 8656 ;;
7083c021
AC
8657 esac
8658 fi
db137867 8659
7083c021
AC
8660case $host_os in
8661 # For platforms which do not support PIC, -DPIC is meaningless:
8662 *djgpp*)
8663 lt_prog_compiler_pic=
8664 ;;
8665 *)
8666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8667 ;;
8668esac
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8670$as_echo "$lt_prog_compiler_pic" >&6; }
db137867 8671
db137867 8672
db137867 8673
db137867 8674
db137867 8675
db137867 8676
7083c021
AC
8677#
8678# Check to make sure the PIC flag actually works.
8679#
8680if test -n "$lt_prog_compiler_pic"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8682$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
08c2568c 8683if ${lt_cv_prog_compiler_pic_works+:} false; then :
7083c021
AC
8684 $as_echo_n "(cached) " >&6
8685else
8686 lt_cv_prog_compiler_pic_works=no
8687 ac_outfile=conftest.$ac_objext
8688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8689 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8690 # Insert the option either (1) after the last *FLAGS variable, or
8691 # (2) before a word containing "conftest.", or (3) at the end.
8692 # Note that $ac_compile itself does not contain backslashes and begins
8693 # with a dollar sign (not a hyphen), so the echo should work correctly.
8694 # The option is referenced via a variable to avoid confusing sed.
8695 lt_compile=`echo "$ac_compile" | $SED \
8696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698 -e 's:$: $lt_compiler_flag:'`
08c2568c 8699 (eval echo "\"\$as_me:8699: $lt_compile\"" >&5)
7083c021
AC
8700 (eval "$lt_compile" 2>conftest.err)
8701 ac_status=$?
8702 cat conftest.err >&5
08c2568c 8703 echo "$as_me:8703: \$? = $ac_status" >&5
7083c021
AC
8704 if (exit $ac_status) && test -s "$ac_outfile"; then
8705 # The compiler can only warn and ignore the option if not recognized
8706 # So say no if there are warnings other than the usual output.
8707 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8710 lt_cv_prog_compiler_pic_works=yes
8711 fi
8712 fi
8713 $RM conftest*
8714
8715fi
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8717$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8718
8719if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8720 case $lt_prog_compiler_pic in
8721 "" | " "*) ;;
8722 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8723 esac
8724else
8725 lt_prog_compiler_pic=
8726 lt_prog_compiler_can_build_shared=no
8727fi
8728
8729fi
8730
8731
db137867 8732
db137867 8733
db137867 8734
db137867
AC
8735
8736#
7083c021 8737# Check to make sure the static flag actually works.
db137867 8738#
7083c021
AC
8739wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8741$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
08c2568c 8742if ${lt_cv_prog_compiler_static_works+:} false; then :
7083c021
AC
8743 $as_echo_n "(cached) " >&6
8744else
8745 lt_cv_prog_compiler_static_works=no
8746 save_LDFLAGS="$LDFLAGS"
8747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8750 # The linker can only warn and ignore the option if not recognized
8751 # So say no if there are warnings
8752 if test -s conftest.err; then
8753 # Append any errors to the config.log.
8754 cat conftest.err 1>&5
8755 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8757 if diff conftest.exp conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_static_works=yes
8759 fi
8760 else
8761 lt_cv_prog_compiler_static_works=yes
8762 fi
8763 fi
8764 $RM -r conftest*
8765 LDFLAGS="$save_LDFLAGS"
db137867 8766
7083c021
AC
8767fi
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8769$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
db137867 8770
7083c021
AC
8771if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8772 :
8773else
8774 lt_prog_compiler_static=
8775fi
db137867 8776
db137867 8777
db137867 8778
db137867 8779
db137867 8780
db137867 8781
db137867 8782
7083c021
AC
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8784$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
08c2568c 8785if ${lt_cv_prog_compiler_c_o+:} false; then :
7083c021
AC
8786 $as_echo_n "(cached) " >&6
8787else
8788 lt_cv_prog_compiler_c_o=no
8789 $RM -r conftest 2>/dev/null
8790 mkdir conftest
8791 cd conftest
8792 mkdir out
8793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 8794
7083c021
AC
8795 lt_compiler_flag="-o out/conftest2.$ac_objext"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 lt_compile=`echo "$ac_compile" | $SED \
8801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8803 -e 's:$: $lt_compiler_flag:'`
08c2568c 8804 (eval echo "\"\$as_me:8804: $lt_compile\"" >&5)
7083c021
AC
8805 (eval "$lt_compile" 2>out/conftest.err)
8806 ac_status=$?
8807 cat out/conftest.err >&5
08c2568c 8808 echo "$as_me:8808: \$? = $ac_status" >&5
7083c021
AC
8809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8810 then
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings
8813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_c_o=yes
8817 fi
8818 fi
8819 chmod u+w . 2>&5
8820 $RM conftest*
8821 # SGI C++ compiler will create directory out/ii_files/ for
8822 # template instantiation
8823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8824 $RM out/* && rmdir out
8825 cd ..
8826 $RM -r conftest
8827 $RM conftest*
db137867 8828
7083c021
AC
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8831$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
db137867 8832
db137867 8833
db137867 8834
db137867 8835
db137867 8836
db137867 8837
7083c021
AC
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
08c2568c 8840if ${lt_cv_prog_compiler_c_o+:} false; then :
7083c021
AC
8841 $as_echo_n "(cached) " >&6
8842else
8843 lt_cv_prog_compiler_c_o=no
8844 $RM -r conftest 2>/dev/null
8845 mkdir conftest
8846 cd conftest
8847 mkdir out
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 8849
7083c021
AC
8850 lt_compiler_flag="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
08c2568c 8859 (eval echo "\"\$as_me:8859: $lt_compile\"" >&5)
7083c021
AC
8860 (eval "$lt_compile" 2>out/conftest.err)
8861 ac_status=$?
8862 cat out/conftest.err >&5
08c2568c 8863 echo "$as_me:8863: \$? = $ac_status" >&5
7083c021
AC
8864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 then
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler_c_o=yes
8872 fi
8873 fi
8874 chmod u+w . 2>&5
8875 $RM conftest*
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8879 $RM out/* && rmdir out
8880 cd ..
8881 $RM -r conftest
8882 $RM conftest*
db137867 8883
7083c021
AC
8884fi
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8887
8888
8889
8890
8891hard_links="nottested"
8892if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8893 # do not overwrite the value of need_locks provided by the user
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8895$as_echo_n "checking if we can lock with hard links... " >&6; }
8896 hard_links=yes
8897 $RM conftest*
8898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899 touch conftest.a
8900 ln conftest.a conftest.b 2>&5 || hard_links=no
8901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8903$as_echo "$hard_links" >&6; }
8904 if test "$hard_links" = no; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8906$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8907 need_locks=warn
8908 fi
8909else
8910 need_locks=no
8911fi
8912
8913
8914
8915
8916
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8919$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8920
8921 runpath_var=
8922 allow_undefined_flag=
8923 always_export_symbols=no
8924 archive_cmds=
8925 archive_expsym_cmds=
8926 compiler_needs_object=no
8927 enable_shared_with_static_runtimes=no
8928 export_dynamic_flag_spec=
8929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8930 hardcode_automatic=no
8931 hardcode_direct=no
8932 hardcode_direct_absolute=no
8933 hardcode_libdir_flag_spec=
8934 hardcode_libdir_flag_spec_ld=
8935 hardcode_libdir_separator=
8936 hardcode_minus_L=no
8937 hardcode_shlibpath_var=unsupported
8938 inherit_rpath=no
8939 link_all_deplibs=unknown
8940 module_cmds=
8941 module_expsym_cmds=
8942 old_archive_from_new_cmds=
8943 old_archive_from_expsyms_cmds=
8944 thread_safe_flag_spec=
8945 whole_archive_flag_spec=
8946 # include_expsyms should be a list of space-separated symbols to be *always*
8947 # included in the symbol list
8948 include_expsyms=
8949 # exclude_expsyms can be an extended regexp of symbols to exclude
8950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8952 # as well as any symbol that contains `d'.
8953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8955 # platforms (ab)use it in PIC code, but their linkers get confused if
8956 # the symbol is explicitly referenced. Since portable code cannot
8957 # rely on this symbol name, it's probably fine to never include it in
8958 # preloaded symbol tables.
8959 # Exclude shared library initialization/finalization symbols.
8960 extract_expsyms_cmds=
db137867 8961
db137867 8962 case $host_os in
7083c021
AC
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 if test "$GCC" != yes; then
8968 with_gnu_ld=no
8969 fi
db137867 8970 ;;
7083c021
AC
8971 interix*)
8972 # we just hope/assume this is gcc and not c89 (= MSVC++)
8973 with_gnu_ld=yes
db137867 8974 ;;
7083c021
AC
8975 openbsd*)
8976 with_gnu_ld=no
db137867 8977 ;;
db137867 8978 esac
db137867 8979
7083c021
AC
8980 ld_shlibs=yes
8981 if test "$with_gnu_ld" = yes; then
8982 # If archive_cmds runs LD, not CC, wlarc should be empty
8983 wlarc='${wl}'
db137867 8984
7083c021
AC
8985 # Set some defaults for GNU ld with shared library support. These
8986 # are reset later if shared libraries are not supported. Putting them
8987 # here allows them to be overridden if necessary.
8988 runpath_var=LD_RUN_PATH
8989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8990 export_dynamic_flag_spec='${wl}--export-dynamic'
8991 # ancient GNU ld didn't support --whole-archive et. al.
8992 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8993 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
db137867 8994 else
7083c021 8995 whole_archive_flag_spec=
db137867 8996 fi
7083c021
AC
8997 supports_anon_versioning=no
8998 case `$LD -v 2>&1` in
8999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9002 *\ 2.11.*) ;; # other 2.11 versions
9003 *) supports_anon_versioning=yes ;;
db137867 9004 esac
db137867 9005
7083c021
AC
9006 # See if GNU ld supports shared libraries.
9007 case $host_os in
9008 aix[3-9]*)
9009 # On AIX/PPC, the GNU linker is very broken
9010 if test "$host_cpu" != ia64; then
9011 ld_shlibs=no
9012 cat <<_LT_EOF 1>&2
db137867 9013
7083c021
AC
9014*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9015*** to be unable to reliably create shared libraries on AIX.
9016*** Therefore, libtool is disabling shared libraries support. If you
9017*** really care for shared libraries, you may want to modify your PATH
9018*** so that a non-GNU linker is found, and then restart.
db137867 9019
7083c021
AC
9020_LT_EOF
9021 fi
9022 ;;
db137867
AC
9023
9024 amigaos*)
7083c021
AC
9025 case $host_cpu in
9026 powerpc)
9027 # see comment about AmigaOS4 .so support
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds=''
9030 ;;
9031 m68k)
9032 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9033 hardcode_libdir_flag_spec='-L$libdir'
9034 hardcode_minus_L=yes
9035 ;;
9036 esac
db137867
AC
9037 ;;
9038
9039 beos*)
7083c021
AC
9040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9041 allow_undefined_flag=unsupported
db137867
AC
9042 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9043 # support --undefined. This deserves some investigation. FIXME
7083c021 9044 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
db137867 9045 else
7083c021 9046 ld_shlibs=no
db137867
AC
9047 fi
9048 ;;
9049
7083c021
AC
9050 cygwin* | mingw* | pw32* | cegcc*)
9051 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
db137867 9052 # as there is no search path for DLLs.
7083c021
AC
9053 hardcode_libdir_flag_spec='-L$libdir'
9054 allow_undefined_flag=unsupported
9055 always_export_symbols=no
9056 enable_shared_with_static_runtimes=yes
9057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9058
9059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
db137867
AC
9061 # If the export-symbols file already is a .def file (1st line
9062 # is EXPORTS), use it as is; otherwise, prepend...
7083c021 9063 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
db137867
AC
9064 cp $export_symbols $output_objdir/$soname.def;
9065 else
9066 echo EXPORTS > $output_objdir/$soname.def;
9067 cat $export_symbols >> $output_objdir/$soname.def;
9068 fi~
9069 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9070 else
7083c021 9071 ld_shlibs=no
db137867
AC
9072 fi
9073 ;;
9074
9075 interix[3-9]*)
7083c021
AC
9076 hardcode_direct=no
9077 hardcode_shlibpath_var=no
9078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9079 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9080 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9081 # Instead, shared libraries are loaded at an image base (0x10000000 by
9082 # default) and relocated if they conflict, which is a slow very memory
9083 # consuming and fragmenting process. To avoid this, we pick a random,
9084 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9085 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7083c021
AC
9086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9087 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
db137867
AC
9088 ;;
9089
7083c021
AC
9090 gnu* | linux* | tpf* | k*bsd*-gnu)
9091 tmp_diet=no
9092 if test "$host_os" = linux-dietlibc; then
9093 case $cc_basename in
9094 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9095 esac
9096 fi
9097 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9098 && test "$tmp_diet" = no
9099 then
db137867 9100 tmp_addflag=
7083c021 9101 tmp_sharedflag='-shared'
db137867 9102 case $cc_basename,$host_cpu in
7083c021
AC
9103 pgcc*) # Portland Group C compiler
9104 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
db137867
AC
9105 tmp_addflag=' $pic_flag'
9106 ;;
9107 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7083c021 9108 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
db137867 9109 tmp_addflag=' $pic_flag -Mnomain' ;;
7083c021 9110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
db137867
AC
9111 tmp_addflag=' -i_dynamic' ;;
9112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9113 tmp_addflag=' -i_dynamic -nofor_main' ;;
9114 ifc* | ifort*) # Intel Fortran compiler
9115 tmp_addflag=' -nofor_main' ;;
7083c021
AC
9116 lf95*) # Lahey Fortran 8.1
9117 whole_archive_flag_spec=
9118 tmp_sharedflag='--shared' ;;
9119 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9120 tmp_sharedflag='-qmkshrobj'
9121 tmp_addflag= ;;
db137867
AC
9122 esac
9123 case `$CC -V 2>&1 | sed 5q` in
9124 *Sun\ C*) # Sun C 5.9
7083c021
AC
9125 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9126 compiler_needs_object=yes
db137867
AC
9127 tmp_sharedflag='-G' ;;
9128 *Sun\ F*) # Sun Fortran 8.3
9129 tmp_sharedflag='-G' ;;
db137867 9130 esac
7083c021 9131 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
db137867 9132
7083c021
AC
9133 if test "x$supports_anon_versioning" = xyes; then
9134 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9136 echo "local: *; };" >> $output_objdir/$libname.ver~
9137 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9138 fi
9139
9140 case $cc_basename in
9141 xlf*)
9142 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9143 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9144 hardcode_libdir_flag_spec=
9145 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9146 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9147 if test "x$supports_anon_versioning" = xyes; then
9148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9150 echo "local: *; };" >> $output_objdir/$libname.ver~
9151 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9152 fi
9153 ;;
9154 esac
db137867 9155 else
7083c021 9156 ld_shlibs=no
db137867
AC
9157 fi
9158 ;;
9159
96f4052b 9160 netbsd*)
7083c021
AC
9161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
db137867
AC
9163 wlarc=
9164 else
7083c021
AC
9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867
AC
9167 fi
9168 ;;
9169
9170 solaris*)
7083c021
AC
9171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9172 ld_shlibs=no
9173 cat <<_LT_EOF 1>&2
db137867
AC
9174
9175*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9176*** create shared libraries on Solaris systems. Therefore, libtool
9177*** is disabling shared libraries support. We urge you to upgrade GNU
9178*** binutils to release 2.9.1 or newer. Another option is to modify
9179*** your PATH or compiler configuration so that the native linker is
9180*** used, and then restart.
9181
7083c021
AC
9182_LT_EOF
9183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867 9186 else
7083c021 9187 ld_shlibs=no
db137867
AC
9188 fi
9189 ;;
9190
9191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9192 case `$LD -v 2>&1` in
9193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7083c021 9194 ld_shlibs=no
db137867
AC
9195 cat <<_LT_EOF 1>&2
9196
9197*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9198*** reliably create shared libraries on SCO systems. Therefore, libtool
9199*** is disabling shared libraries support. We urge you to upgrade GNU
9200*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9201*** your PATH or compiler configuration so that the native linker is
9202*** used, and then restart.
9203
9204_LT_EOF
9205 ;;
9206 *)
7083c021
AC
9207 # For security reasons, it is highly recommended that you always
9208 # use absolute paths for naming shared libraries, and exclude the
9209 # DT_RUNPATH tag from executables and libraries. But doing so
9210 # requires that you compile everything twice, which is a pain.
9211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867 9215 else
7083c021 9216 ld_shlibs=no
db137867
AC
9217 fi
9218 ;;
9219 esac
9220 ;;
9221
9222 sunos4*)
7083c021 9223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
db137867 9224 wlarc=
7083c021
AC
9225 hardcode_direct=yes
9226 hardcode_shlibpath_var=no
db137867
AC
9227 ;;
9228
9229 *)
7083c021
AC
9230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867 9233 else
7083c021 9234 ld_shlibs=no
db137867
AC
9235 fi
9236 ;;
9237 esac
9238
7083c021 9239 if test "$ld_shlibs" = no; then
db137867 9240 runpath_var=
7083c021
AC
9241 hardcode_libdir_flag_spec=
9242 export_dynamic_flag_spec=
9243 whole_archive_flag_spec=
db137867
AC
9244 fi
9245 else
9246 # PORTME fill in a description of your system's linker (not GNU ld)
9247 case $host_os in
9248 aix3*)
7083c021
AC
9249 allow_undefined_flag=unsupported
9250 always_export_symbols=yes
9251 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
db137867
AC
9252 # Note: this linker hardcodes the directories in LIBPATH if there
9253 # are no directories specified by -L.
7083c021 9254 hardcode_minus_L=yes
db137867
AC
9255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9256 # Neither direct hardcoding nor static linking is supported with a
9257 # broken collect2.
7083c021 9258 hardcode_direct=unsupported
db137867
AC
9259 fi
9260 ;;
9261
b676ea3b 9262 aix[4-9]*)
db137867
AC
9263 if test "$host_cpu" = ia64; then
9264 # On IA64, the linker does run time linking by default, so we don't
9265 # have to do anything special.
9266 aix_use_runtimelinking=no
9267 exp_sym_flag='-Bexport'
9268 no_entry_flag=""
9269 else
9270 # If we're using GNU nm, then we don't want the "-C" option.
9271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7083c021
AC
9272 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9273 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
db137867 9274 else
7083c021 9275 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
db137867
AC
9276 fi
9277 aix_use_runtimelinking=no
9278
9279 # Test if we are trying to use run time linking or normal
9280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9281 # need to do runtime linking.
b676ea3b 9282 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
db137867 9283 for ld_flag in $LDFLAGS; do
7083c021
AC
9284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9285 aix_use_runtimelinking=yes
9286 break
9287 fi
db137867
AC
9288 done
9289 ;;
9290 esac
9291
9292 exp_sym_flag='-bexport'
9293 no_entry_flag='-bnoentry'
9294 fi
9295
9296 # When large executables or shared objects are built, AIX ld can
9297 # have problems creating the table of contents. If linking a library
9298 # or program results in "error TOC overflow" add -mminimal-toc to
9299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9301
7083c021
AC
9302 archive_cmds=''
9303 hardcode_direct=yes
9304 hardcode_direct_absolute=yes
9305 hardcode_libdir_separator=':'
9306 link_all_deplibs=yes
9307 file_list_spec='${wl}-f,'
db137867
AC
9308
9309 if test "$GCC" = yes; then
9310 case $host_os in aix4.[012]|aix4.[012].*)
9311 # We only want to do this on AIX 4.2 and lower, the check
9312 # below for broken collect2 doesn't work under 4.3+
9313 collect2name=`${CC} -print-prog-name=collect2`
7083c021
AC
9314 if test -f "$collect2name" &&
9315 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
db137867 9316 then
7083c021
AC
9317 # We have reworked collect2
9318 :
db137867 9319 else
7083c021
AC
9320 # We have old collect2
9321 hardcode_direct=unsupported
9322 # It fails to find uninstalled libraries when the uninstalled
9323 # path is not listed in the libpath. Setting hardcode_minus_L
9324 # to unsupported forces relinking
9325 hardcode_minus_L=yes
9326 hardcode_libdir_flag_spec='-L$libdir'
9327 hardcode_libdir_separator=
db137867
AC
9328 fi
9329 ;;
9330 esac
9331 shared_flag='-shared'
9332 if test "$aix_use_runtimelinking" = yes; then
9333 shared_flag="$shared_flag "'${wl}-G'
9334 fi
9335 else
9336 # not using gcc
9337 if test "$host_cpu" = ia64; then
7083c021
AC
9338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9339 # chokes on -Wl,-G. The following line is correct:
db137867
AC
9340 shared_flag='-G'
9341 else
9342 if test "$aix_use_runtimelinking" = yes; then
9343 shared_flag='${wl}-G'
9344 else
9345 shared_flag='${wl}-bM:SRE'
9346 fi
9347 fi
9348 fi
9349
7083c021 9350 export_dynamic_flag_spec='${wl}-bexpall'
db137867
AC
9351 # It seems that -bexpall does not export symbols beginning with
9352 # underscore (_), so it is better to generate a list of symbols to export.
7083c021 9353 always_export_symbols=yes
db137867
AC
9354 if test "$aix_use_runtimelinking" = yes; then
9355 # Warning - without using the other runtime loading flags (-brtl),
9356 # -berok will link without error, but may produce a broken library.
7083c021
AC
9357 allow_undefined_flag='-berok'
9358 # Determine the default libpath from the value encoded in an
9359 # empty executable.
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
9361/* end confdefs.h. */
9362
9363int
9364main ()
9365{
9366
9367 ;
9368 return 0;
9369}
9370_ACEOF
7083c021 9371if ac_fn_c_try_link "$LINENO"; then :
db137867
AC
9372
9373lt_aix_libpath_sed='
9374 /Import File Strings/,/^$/ {
9375 /^0/ {
9376 s/^0 *\(.*\)$/\1/
9377 p
9378 }
9379 }'
9380aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9381# Check for a 64-bit object if we didn't find anything.
9382if test -z "$aix_libpath"; then
9383 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9384fi
db137867 9385fi
7083c021
AC
9386rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
db137867
AC
9388if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9389
7083c021
AC
9390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9391 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9392 else
db137867 9393 if test "$host_cpu" = ia64; then
7083c021
AC
9394 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9395 allow_undefined_flag="-z nodefs"
9396 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
db137867 9397 else
7083c021
AC
9398 # Determine the default libpath from the value encoded in an
9399 # empty executable.
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
9401/* end confdefs.h. */
9402
9403int
9404main ()
9405{
9406
9407 ;
9408 return 0;
9409}
9410_ACEOF
7083c021 9411if ac_fn_c_try_link "$LINENO"; then :
db137867
AC
9412
9413lt_aix_libpath_sed='
9414 /Import File Strings/,/^$/ {
9415 /^0/ {
9416 s/^0 *\(.*\)$/\1/
9417 p
9418 }
9419 }'
9420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421# Check for a 64-bit object if we didn't find anything.
9422if test -z "$aix_libpath"; then
9423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9424fi
db137867 9425fi
7083c021
AC
9426rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
db137867
AC
9428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9429
7083c021 9430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
db137867
AC
9431 # Warning - without using the other run time loading flags,
9432 # -berok will link without error, but may produce a broken library.
7083c021
AC
9433 no_undefined_flag=' ${wl}-bernotok'
9434 allow_undefined_flag=' ${wl}-berok'
db137867 9435 # Exported symbols can be pulled into shared objects from archives
7083c021
AC
9436 whole_archive_flag_spec='$convenience'
9437 archive_cmds_need_lc=yes
db137867 9438 # This is similar to how AIX traditionally builds its shared libraries.
7083c021 9439 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
db137867
AC
9440 fi
9441 fi
9442 ;;
9443
9444 amigaos*)
7083c021
AC
9445 case $host_cpu in
9446 powerpc)
9447 # see comment about AmigaOS4 .so support
9448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 archive_expsym_cmds=''
9450 ;;
9451 m68k)
9452 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_minus_L=yes
9455 ;;
9456 esac
db137867
AC
9457 ;;
9458
9459 bsdi[45]*)
7083c021 9460 export_dynamic_flag_spec=-rdynamic
db137867
AC
9461 ;;
9462
7083c021 9463 cygwin* | mingw* | pw32* | cegcc*)
db137867
AC
9464 # When not using gcc, we currently assume that we are using
9465 # Microsoft Visual C++.
9466 # hardcode_libdir_flag_spec is actually meaningless, as there is
9467 # no search path for DLLs.
7083c021
AC
9468 hardcode_libdir_flag_spec=' '
9469 allow_undefined_flag=unsupported
db137867
AC
9470 # Tell ltmain to make .lib files, not .a files.
9471 libext=lib
9472 # Tell ltmain to make .dll files, not .so files.
9473 shrext_cmds=".dll"
9474 # FIXME: Setting linknames here is a bad hack.
7083c021 9475 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
db137867 9476 # The linker will automatically build a .lib file if we build a DLL.
7083c021 9477 old_archive_from_new_cmds='true'
db137867 9478 # FIXME: Should let the user specify the lib program.
7083c021
AC
9479 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9480 fix_srcfile_path='`cygpath -w "$srcfile"`'
9481 enable_shared_with_static_runtimes=yes
db137867
AC
9482 ;;
9483
7083c021
AC
9484 darwin* | rhapsody*)
9485
9486
9487 archive_cmds_need_lc=no
9488 hardcode_direct=no
9489 hardcode_automatic=yes
9490 hardcode_shlibpath_var=unsupported
9491 whole_archive_flag_spec=''
9492 link_all_deplibs=yes
9493 allow_undefined_flag="$_lt_dar_allow_undefined"
9494 case $cc_basename in
9495 ifort*) _lt_dar_can_shared=yes ;;
9496 *) _lt_dar_can_shared=$GCC ;;
9497 esac
9498 if test "$_lt_dar_can_shared" = "yes"; then
9499 output_verbose_link_cmd=echo
9500 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9501 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9502 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9503 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9504
9505 else
9506 ld_shlibs=no
9507 fi
9508
db137867
AC
9509 ;;
9510
9511 dgux*)
7083c021
AC
9512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 hardcode_libdir_flag_spec='-L$libdir'
9514 hardcode_shlibpath_var=no
db137867
AC
9515 ;;
9516
9517 freebsd1*)
7083c021 9518 ld_shlibs=no
db137867
AC
9519 ;;
9520
9521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9522 # support. Future versions do this automatically, but an explicit c++rt0.o
9523 # does not break anything, and helps significantly (at the cost of a little
9524 # extra space).
9525 freebsd2.2*)
7083c021
AC
9526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9527 hardcode_libdir_flag_spec='-R$libdir'
9528 hardcode_direct=yes
9529 hardcode_shlibpath_var=no
db137867
AC
9530 ;;
9531
9532 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9533 freebsd2*)
7083c021
AC
9534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_direct=yes
9536 hardcode_minus_L=yes
9537 hardcode_shlibpath_var=no
db137867
AC
9538 ;;
9539
9540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9541 freebsd* | dragonfly*)
7083c021
AC
9542 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9543 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_direct=yes
9545 hardcode_shlibpath_var=no
db137867
AC
9546 ;;
9547
9548 hpux9*)
9549 if test "$GCC" = yes; then
7083c021 9550 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
db137867 9551 else
7083c021 9552 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
db137867 9553 fi
7083c021
AC
9554 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9555 hardcode_libdir_separator=:
9556 hardcode_direct=yes
db137867
AC
9557
9558 # hardcode_minus_L: Not really in the search PATH,
9559 # but as the default location of the library.
7083c021
AC
9560 hardcode_minus_L=yes
9561 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9562 ;;
9563
9564 hpux10*)
9565 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7083c021 9566 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867 9567 else
7083c021 9568 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
db137867
AC
9569 fi
9570 if test "$with_gnu_ld" = no; then
7083c021
AC
9571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9572 hardcode_libdir_flag_spec_ld='+b $libdir'
9573 hardcode_libdir_separator=:
9574 hardcode_direct=yes
9575 hardcode_direct_absolute=yes
9576 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9577 # hardcode_minus_L: Not really in the search PATH,
9578 # but as the default location of the library.
7083c021 9579 hardcode_minus_L=yes
db137867
AC
9580 fi
9581 ;;
9582
9583 hpux11*)
9584 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9585 case $host_cpu in
9586 hppa*64*)
7083c021 9587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9588 ;;
9589 ia64*)
7083c021 9590 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9591 ;;
9592 *)
7083c021 9593 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9594 ;;
9595 esac
9596 else
9597 case $host_cpu in
9598 hppa*64*)
7083c021 9599 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9600 ;;
9601 ia64*)
7083c021 9602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9603 ;;
9604 *)
7083c021 9605 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9606 ;;
9607 esac
9608 fi
9609 if test "$with_gnu_ld" = no; then
7083c021
AC
9610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9611 hardcode_libdir_separator=:
db137867
AC
9612
9613 case $host_cpu in
9614 hppa*64*|ia64*)
7083c021
AC
9615 hardcode_direct=no
9616 hardcode_shlibpath_var=no
db137867
AC
9617 ;;
9618 *)
7083c021
AC
9619 hardcode_direct=yes
9620 hardcode_direct_absolute=yes
9621 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9622
9623 # hardcode_minus_L: Not really in the search PATH,
9624 # but as the default location of the library.
7083c021 9625 hardcode_minus_L=yes
db137867
AC
9626 ;;
9627 esac
9628 fi
9629 ;;
9630
9631 irix5* | irix6* | nonstopux*)
9632 if test "$GCC" = yes; then
7083c021
AC
9633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9634 # Try to use the -exported_symbol ld option, if it does not
9635 # work, assume that -exports_file does not work either and
9636 # implicitly export all symbols.
9637 save_LDFLAGS="$LDFLAGS"
9638 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h. */
9641int foo(void) {}
9642_ACEOF
9643if ac_fn_c_try_link "$LINENO"; then :
9644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9645
9646fi
9647rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LDFLAGS="$save_LDFLAGS"
db137867 9650 else
7083c021
AC
9651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
db137867 9653 fi
7083c021
AC
9654 archive_cmds_need_lc='no'
9655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9656 hardcode_libdir_separator=:
9657 inherit_rpath=yes
9658 link_all_deplibs=yes
db137867
AC
9659 ;;
9660
96f4052b 9661 netbsd*)
7083c021
AC
9662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
db137867 9664 else
7083c021 9665 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
db137867 9666 fi
7083c021
AC
9667 hardcode_libdir_flag_spec='-R$libdir'
9668 hardcode_direct=yes
9669 hardcode_shlibpath_var=no
db137867
AC
9670 ;;
9671
9672 newsos6)
7083c021
AC
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_direct=yes
9675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 hardcode_libdir_separator=:
9677 hardcode_shlibpath_var=no
9678 ;;
9679
9680 *nto* | *qnx*)
db137867
AC
9681 ;;
9682
9683 openbsd*)
9684 if test -f /usr/libexec/ld.so; then
7083c021
AC
9685 hardcode_direct=yes
9686 hardcode_shlibpath_var=no
9687 hardcode_direct_absolute=yes
9688 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9692 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9693 else
9694 case $host_os in
9695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7083c021
AC
9696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_libdir_flag_spec='-R$libdir'
db137867
AC
9698 ;;
9699 *)
7083c021
AC
9700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
db137867
AC
9702 ;;
9703 esac
7083c021 9704 fi
db137867 9705 else
7083c021 9706 ld_shlibs=no
db137867
AC
9707 fi
9708 ;;
9709
9710 os2*)
7083c021
AC
9711 hardcode_libdir_flag_spec='-L$libdir'
9712 hardcode_minus_L=yes
9713 allow_undefined_flag=unsupported
9714 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9715 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
db137867
AC
9716 ;;
9717
9718 osf3*)
9719 if test "$GCC" = yes; then
7083c021
AC
9720 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9721 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
db137867 9722 else
7083c021
AC
9723 allow_undefined_flag=' -expect_unresolved \*'
9724 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
db137867 9725 fi
7083c021
AC
9726 archive_cmds_need_lc='no'
9727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9728 hardcode_libdir_separator=:
db137867
AC
9729 ;;
9730
9731 osf4* | osf5*) # as osf3* with the addition of -msym flag
9732 if test "$GCC" = yes; then
7083c021
AC
9733 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9734 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
db137867 9736 else
7083c021
AC
9737 allow_undefined_flag=' -expect_unresolved \*'
9738 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9739 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9740 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
db137867
AC
9741
9742 # Both c and cxx compiler support -rpath directly
7083c021 9743 hardcode_libdir_flag_spec='-rpath $libdir'
db137867 9744 fi
7083c021
AC
9745 archive_cmds_need_lc='no'
9746 hardcode_libdir_separator=:
db137867
AC
9747 ;;
9748
9749 solaris*)
7083c021 9750 no_undefined_flag=' -z defs'
db137867
AC
9751 if test "$GCC" = yes; then
9752 wlarc='${wl}'
7083c021
AC
9753 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9755 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
db137867 9756 else
7083c021
AC
9757 case `$CC -V 2>&1` in
9758 *"Compilers 5.0"*)
9759 wlarc=''
9760 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9763 ;;
9764 *)
9765 wlarc='${wl}'
9766 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9768 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9769 ;;
9770 esac
db137867 9771 fi
7083c021
AC
9772 hardcode_libdir_flag_spec='-R$libdir'
9773 hardcode_shlibpath_var=no
db137867
AC
9774 case $host_os in
9775 solaris2.[0-5] | solaris2.[0-5].*) ;;
9776 *)
9777 # The compiler driver will combine and reorder linker options,
9778 # but understands `-z linker_flag'. GCC discards it without `$wl',
9779 # but is careful enough not to reorder.
7083c021 9780 # Supported since Solaris 2.6 (maybe 2.5.1?)
db137867 9781 if test "$GCC" = yes; then
7083c021 9782 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
db137867 9783 else
7083c021 9784 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
db137867
AC
9785 fi
9786 ;;
9787 esac
7083c021 9788 link_all_deplibs=yes
db137867
AC
9789 ;;
9790
9791 sunos4*)
9792 if test "x$host_vendor" = xsequent; then
9793 # Use $CC to link under sequent, because it throws in some extra .o
9794 # files that make .init and .fini sections work.
7083c021 9795 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 9796 else
7083c021 9797 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
db137867 9798 fi
7083c021
AC
9799 hardcode_libdir_flag_spec='-L$libdir'
9800 hardcode_direct=yes
9801 hardcode_minus_L=yes
9802 hardcode_shlibpath_var=no
db137867
AC
9803 ;;
9804
9805 sysv4)
9806 case $host_vendor in
9807 sni)
7083c021
AC
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_direct=yes # is this really true???
db137867
AC
9810 ;;
9811 siemens)
9812 ## LD is ld it makes a PLAMLIB
9813 ## CC just makes a GrossModule.
7083c021
AC
9814 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9815 reload_cmds='$CC -r -o $output$reload_objs'
9816 hardcode_direct=no
db137867
AC
9817 ;;
9818 motorola)
7083c021
AC
9819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
db137867
AC
9821 ;;
9822 esac
9823 runpath_var='LD_RUN_PATH'
7083c021 9824 hardcode_shlibpath_var=no
db137867
AC
9825 ;;
9826
9827 sysv4.3*)
7083c021
AC
9828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_shlibpath_var=no
9830 export_dynamic_flag_spec='-Bexport'
db137867
AC
9831 ;;
9832
9833 sysv4*MP*)
9834 if test -d /usr/nec; then
7083c021
AC
9835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_shlibpath_var=no
db137867
AC
9837 runpath_var=LD_RUN_PATH
9838 hardcode_runpath_var=yes
7083c021 9839 ld_shlibs=yes
db137867
AC
9840 fi
9841 ;;
9842
9843 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7083c021
AC
9844 no_undefined_flag='${wl}-z,text'
9845 archive_cmds_need_lc=no
9846 hardcode_shlibpath_var=no
db137867
AC
9847 runpath_var='LD_RUN_PATH'
9848
9849 if test "$GCC" = yes; then
7083c021
AC
9850 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 9852 else
7083c021
AC
9853 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9855 fi
9856 ;;
9857
9858 sysv5* | sco3.2v5* | sco5v6*)
9859 # Note: We can NOT use -z defs as we might desire, because we do not
9860 # link with -lc, and that would cause any symbols used from libc to
9861 # always be unresolved, which means just about no library would
9862 # ever link correctly. If we're not using GNU ld we use -z text
9863 # though, which does catch some bad symbols but isn't as heavy-handed
9864 # as -z defs.
7083c021
AC
9865 no_undefined_flag='${wl}-z,text'
9866 allow_undefined_flag='${wl}-z,nodefs'
9867 archive_cmds_need_lc=no
9868 hardcode_shlibpath_var=no
9869 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9870 hardcode_libdir_separator=':'
9871 link_all_deplibs=yes
9872 export_dynamic_flag_spec='${wl}-Bexport'
db137867
AC
9873 runpath_var='LD_RUN_PATH'
9874
9875 if test "$GCC" = yes; then
7083c021
AC
9876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 9878 else
7083c021
AC
9879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9881 fi
9882 ;;
9883
9884 uts4*)
7083c021
AC
9885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 hardcode_libdir_flag_spec='-L$libdir'
9887 hardcode_shlibpath_var=no
db137867
AC
9888 ;;
9889
9890 *)
7083c021 9891 ld_shlibs=no
db137867
AC
9892 ;;
9893 esac
7083c021
AC
9894
9895 if test x$host_vendor = xsni; then
9896 case $host in
9897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9898 export_dynamic_flag_spec='${wl}-Blargedynsym'
9899 ;;
9900 esac
9901 fi
db137867
AC
9902 fi
9903
7083c021
AC
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9905$as_echo "$ld_shlibs" >&6; }
9906test "$ld_shlibs" = no && can_build_shared=no
9907
9908with_gnu_ld=$with_gnu_ld
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
db137867
AC
9923
9924#
9925# Do we need to explicitly link libc?
9926#
7083c021 9927case "x$archive_cmds_need_lc" in
db137867
AC
9928x|xyes)
9929 # Assume -lc should be added
7083c021 9930 archive_cmds_need_lc=yes
db137867
AC
9931
9932 if test "$enable_shared" = yes && test "$GCC" = yes; then
7083c021 9933 case $archive_cmds in
db137867
AC
9934 *'~'*)
9935 # FIXME: we may have to deal with multi-command sequences.
9936 ;;
9937 '$CC '*)
9938 # Test whether the compiler implicitly links with -lc since on some
9939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9940 # to ld, don't add -lc before -lgcc.
7083c021 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
030272f3 9942$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7083c021 9943 $RM conftest*
db137867
AC
9944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9945
7083c021 9946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
db137867
AC
9947 (eval $ac_compile) 2>&5
9948 ac_status=$?
7083c021
AC
9949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9950 test $ac_status = 0; } 2>conftest.err; then
db137867
AC
9951 soname=conftest
9952 lib=conftest
9953 libobjs=conftest.$ac_objext
9954 deplibs=
7083c021
AC
9955 wl=$lt_prog_compiler_wl
9956 pic_flag=$lt_prog_compiler_pic
db137867
AC
9957 compiler_flags=-v
9958 linker_flags=-v
9959 verstring=
9960 output_objdir=.
9961 libname=conftest
7083c021
AC
9962 lt_save_allow_undefined_flag=$allow_undefined_flag
9963 allow_undefined_flag=
9964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9965 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
db137867 9966 ac_status=$?
7083c021
AC
9967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9968 test $ac_status = 0; }
db137867 9969 then
7083c021 9970 archive_cmds_need_lc=no
db137867 9971 else
7083c021 9972 archive_cmds_need_lc=yes
db137867 9973 fi
7083c021 9974 allow_undefined_flag=$lt_save_allow_undefined_flag
db137867
AC
9975 else
9976 cat conftest.err 1>&5
9977 fi
7083c021
AC
9978 $RM conftest*
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9980$as_echo "$archive_cmds_need_lc" >&6; }
db137867
AC
9981 ;;
9982 esac
9983 fi
9984 ;;
9985esac
9986
db137867 9987
db137867 9988
db137867 9989
db137867 9990
db137867 9991
db137867 9992
db137867 9993
db137867 9994
db137867 9995
db137867 9996
db137867 9997
db137867 9998
db137867 9999
db137867 10000
db137867 10001
db137867 10002
db137867 10003
db137867 10004
db137867 10005
db137867 10006
db137867 10007
db137867 10008
db137867 10009
db137867 10010
db137867 10011
db137867 10012
db137867 10013
db137867 10014
db137867 10015
db137867 10016
db137867 10017
db137867 10018
db137867 10019
db137867 10020
db137867 10021
db137867 10022
db137867 10023
db137867 10024
db137867 10025
db137867 10026
db137867 10027
b676ea3b 10028
b676ea3b 10029
b676ea3b 10030
db137867 10031
db137867 10032
db137867 10033
db137867
AC
10034
10035
db137867 10036
db137867 10037
db137867 10038
db137867 10039
db137867 10040
db137867 10041
db137867 10042
db137867 10043
db137867 10044
db137867 10045
db137867 10046
db137867 10047
db137867 10048
db137867 10049
db137867 10050
db137867 10051
db137867 10052
db137867 10053
db137867 10054
db137867 10055
db137867 10056
db137867 10057
db137867 10058
db137867 10059
db137867 10060
db137867 10061
db137867 10062
db137867 10063
db137867 10064
db137867 10065
db137867 10066
db137867 10067
db137867 10068
db137867 10069
db137867 10070
db137867 10071
db137867 10072
db137867 10073
db137867 10074
db137867 10075
db137867 10076
db137867 10077
db137867 10078
db137867 10079
db137867 10080
db137867 10081
db137867 10082
db137867 10083
db137867 10084
db137867 10085
db137867 10086
db137867 10087
db137867 10088
db137867 10089
db137867 10090
db137867 10091
db137867 10092
db137867 10093
db137867 10094
db137867 10095
db137867 10096
db137867 10097
db137867 10098
b676ea3b 10099
db137867 10100
db137867 10101
db137867 10102
db137867 10103
db137867 10104
db137867 10105
db137867 10106
db137867 10107
db137867 10108
db137867 10109
db137867 10110
db137867 10111
db137867 10112
db137867 10113
db137867 10114
db137867 10115
db137867 10116
db137867 10117
db137867 10118
db137867 10119
db137867 10120
db137867 10121
db137867 10122
db137867 10123
db137867 10124
db137867 10125
db137867 10126
db137867 10127
db137867 10128
db137867 10129
db137867 10130
db137867 10131
db137867 10132
db137867
AC
10133
10134
7083c021
AC
10135
10136
10137
10138
10139
10140
10141
10142
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10144$as_echo_n "checking dynamic linker characteristics... " >&6; }
10145
10146if test "$GCC" = yes; then
10147 case $host_os in
10148 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10149 *) lt_awk_arg="/^libraries:/" ;;
10150 esac
10151 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10152 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10153 # if the path contains ";" then we assume it to be the separator
10154 # otherwise default to the standard path separator (i.e. ":") - it is
10155 # assumed that no part of a normal pathname contains ";" but that should
10156 # okay in the real world where ";" in dirpaths is itself problematic.
10157 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10158 else
10159 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10160 fi
10161 # Ok, now we have the path, separated by spaces, we can step through it
10162 # and add multilib dir if necessary.
10163 lt_tmp_lt_search_path_spec=
10164 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10165 for lt_sys_path in $lt_search_path_spec; do
10166 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10167 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10168 else
10169 test -d "$lt_sys_path" && \
10170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10171 fi
10172 done
10173 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10174BEGIN {RS=" "; FS="/|\n";} {
10175 lt_foo="";
10176 lt_count=0;
10177 for (lt_i = NF; lt_i > 0; lt_i--) {
10178 if ($lt_i != "" && $lt_i != ".") {
10179 if ($lt_i == "..") {
10180 lt_count++;
10181 } else {
10182 if (lt_count == 0) {
10183 lt_foo="/" $lt_i lt_foo;
10184 } else {
10185 lt_count--;
10186 }
10187 }
10188 }
10189 }
10190 if (lt_foo != "") { lt_freq[lt_foo]++; }
10191 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10192}'`
10193 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10194else
10195 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10196fi
10197library_names_spec=
10198libname_spec='lib$name'
10199soname_spec=
10200shrext_cmds=".so"
10201postinstall_cmds=
10202postuninstall_cmds=
10203finish_cmds=
10204finish_eval=
10205shlibpath_var=
10206shlibpath_overrides_runpath=unknown
10207version_type=none
10208dynamic_linker="$host_os ld.so"
10209sys_lib_dlsearch_path_spec="/lib /usr/lib"
10210need_lib_prefix=unknown
10211hardcode_into_libs=no
10212
10213# when you set need_version to no, make sure it does not cause -set_version
10214# flags to be left without arguments
10215need_version=unknown
10216
10217case $host_os in
10218aix3*)
10219 version_type=linux
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10221 shlibpath_var=LIBPATH
10222
10223 # AIX 3 has no versioning support, so we append a major version to the name.
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 ;;
10226
10227aix[4-9]*)
10228 version_type=linux
10229 need_lib_prefix=no
10230 need_version=no
10231 hardcode_into_libs=yes
10232 if test "$host_cpu" = ia64; then
10233 # AIX 5 supports IA64
10234 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 else
10237 # With GCC up to 2.95.x, collect2 would create an import file
10238 # for dependence libraries. The import file would start with
10239 # the line `#! .'. This would cause the generated library to
10240 # depend on `.', always an invalid library. This was fixed in
10241 # development snapshots of GCC prior to 3.0.
10242 case $host_os in
10243 aix4 | aix4.[01] | aix4.[01].*)
10244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10245 echo ' yes '
10246 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10247 :
10248 else
10249 can_build_shared=no
10250 fi
10251 ;;
10252 esac
10253 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10254 # soname into executable. Probably we can add versioning support to
10255 # collect2, so additional links can be useful in future.
10256 if test "$aix_use_runtimelinking" = yes; then
10257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10258 # instead of lib<name>.a to let people know that these are not
10259 # typical AIX shared libraries.
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 else
10262 # We preserve .a as extension for shared libraries through AIX4.2
10263 # and later when we are not doing run time linking.
10264 library_names_spec='${libname}${release}.a $libname.a'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 fi
10267 shlibpath_var=LIBPATH
10268 fi
10269 ;;
10270
10271amigaos*)
10272 case $host_cpu in
10273 powerpc)
10274 # Since July 2007 AmigaOS4 officially supports .so libraries.
10275 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 ;;
10278 m68k)
10279 library_names_spec='$libname.ixlibrary $libname.a'
10280 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10281 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10282 ;;
10283 esac
10284 ;;
10285
10286beos*)
10287 library_names_spec='${libname}${shared_ext}'
10288 dynamic_linker="$host_os ld.so"
10289 shlibpath_var=LIBRARY_PATH
10290 ;;
10291
10292bsdi[45]*)
10293 version_type=linux
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10300 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10301 # the default ld.so.conf also contains /usr/contrib/lib and
10302 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10303 # libtool to hard-code these into programs
10304 ;;
10305
10306cygwin* | mingw* | pw32* | cegcc*)
10307 version_type=windows
10308 shrext_cmds=".dll"
10309 need_version=no
10310 need_lib_prefix=no
10311
10312 case $GCC,$host_os in
10313 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10314 library_names_spec='$libname.dll.a'
10315 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10316 postinstall_cmds='base_file=`basename \${file}`~
10317 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10318 dldir=$destdir/`dirname \$dlpath`~
10319 test -d \$dldir || mkdir -p \$dldir~
10320 $install_prog $dir/$dlname \$dldir/$dlname~
10321 chmod a+x \$dldir/$dlname~
10322 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10323 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10324 fi'
10325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10326 dlpath=$dir/\$dldll~
10327 $RM \$dlpath'
10328 shlibpath_overrides_runpath=yes
10329
10330 case $host_os in
10331 cygwin*)
10332 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10334 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10335 ;;
10336 mingw* | cegcc*)
10337 # MinGW DLLs use traditional 'lib' prefix
10338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10339 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10340 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10341 # It is most probably a Windows format PATH printed by
10342 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10343 # path with ; separators, and with drive letters. We can handle the
10344 # drive letters (cygwin fileutils understands them), so leave them,
10345 # especially as we might pass files found there to a mingw objdump,
10346 # which wouldn't understand a cygwinified path. Ahh.
10347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10348 else
10349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10350 fi
10351 ;;
10352 pw32*)
10353 # pw32 DLLs use 'pw' prefix rather than 'lib'
10354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10355 ;;
10356 esac
10357 ;;
10358
10359 *)
10360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10361 ;;
10362 esac
10363 dynamic_linker='Win32 ld.exe'
10364 # FIXME: first we should search . and the directory the executable is in
10365 shlibpath_var=PATH
10366 ;;
10367
10368darwin* | rhapsody*)
10369 dynamic_linker="$host_os dyld"
10370 version_type=darwin
10371 need_lib_prefix=no
10372 need_version=no
10373 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10374 soname_spec='${libname}${release}${major}$shared_ext'
10375 shlibpath_overrides_runpath=yes
10376 shlibpath_var=DYLD_LIBRARY_PATH
10377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10378
10379 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10380 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10381 ;;
10382
10383dgux*)
10384 version_type=linux
10385 need_lib_prefix=no
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 ;;
10391
10392freebsd1*)
10393 dynamic_linker=no
10394 ;;
10395
10396freebsd* | dragonfly*)
10397 # DragonFly does not have aout. When/if they implement a new
10398 # versioning mechanism, adjust this.
10399 if test -x /usr/bin/objformat; then
10400 objformat=`/usr/bin/objformat`
10401 else
10402 case $host_os in
10403 freebsd[123]*) objformat=aout ;;
10404 *) objformat=elf ;;
10405 esac
db137867 10406 fi
5a241f54 10407 version_type=freebsd-$objformat
7083c021
AC
10408 case $version_type in
10409 freebsd-elf*)
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10411 need_version=no
10412 need_lib_prefix=no
10413 ;;
10414 freebsd-*)
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10416 need_version=yes
10417 ;;
10418 esac
10419 shlibpath_var=LD_LIBRARY_PATH
10420 case $host_os in
10421 freebsd2*)
10422 shlibpath_overrides_runpath=yes
10423 ;;
10424 freebsd3.[01]* | freebsdelf3.[01]*)
10425 shlibpath_overrides_runpath=yes
10426 hardcode_into_libs=yes
10427 ;;
10428 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10429 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10430 shlibpath_overrides_runpath=no
10431 hardcode_into_libs=yes
10432 ;;
10433 *) # from 4.6 on, and DragonFly
10434 shlibpath_overrides_runpath=yes
10435 hardcode_into_libs=yes
10436 ;;
10437 esac
10438 ;;
db137867 10439
7083c021
AC
10440gnu*)
10441 version_type=linux
10442 need_lib_prefix=no
10443 need_version=no
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 shlibpath_var=LD_LIBRARY_PATH
10447 hardcode_into_libs=yes
10448 ;;
db137867 10449
7083c021
AC
10450hpux9* | hpux10* | hpux11*)
10451 # Give a soname corresponding to the major version so that dld.sl refuses to
10452 # link against other versions.
10453 version_type=sunos
10454 need_lib_prefix=no
10455 need_version=no
10456 case $host_cpu in
10457 ia64*)
10458 shrext_cmds='.so'
10459 hardcode_into_libs=yes
10460 dynamic_linker="$host_os dld.so"
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 if test "X$HPUX_IA64_MODE" = X32; then
10466 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10467 else
10468 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10469 fi
10470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10471 ;;
10472 hppa*64*)
10473 shrext_cmds='.sl'
10474 hardcode_into_libs=yes
10475 dynamic_linker="$host_os dld.sl"
10476 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10477 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482 ;;
10483 *)
10484 shrext_cmds='.sl'
10485 dynamic_linker="$host_os dld.sl"
10486 shlibpath_var=SHLIB_PATH
10487 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 ;;
10491 esac
10492 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10493 postinstall_cmds='chmod 555 $lib'
10494 ;;
db137867 10495
7083c021
AC
10496interix[3-9]*)
10497 version_type=linux
10498 need_lib_prefix=no
10499 need_version=no
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=no
10505 hardcode_into_libs=yes
10506 ;;
db137867 10507
7083c021
AC
10508irix5* | irix6* | nonstopux*)
10509 case $host_os in
10510 nonstopux*) version_type=nonstopux ;;
10511 *)
10512 if test "$lt_cv_prog_gnu_ld" = yes; then
10513 version_type=linux
db137867 10514 else
7083c021
AC
10515 version_type=irix
10516 fi ;;
10517 esac
10518 need_lib_prefix=no
10519 need_version=no
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10522 case $host_os in
10523 irix5* | nonstopux*)
10524 libsuff= shlibsuff=
10525 ;;
10526 *)
10527 case $LD in # libtool.m4 will add one of these switches to LD
10528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10529 libsuff= shlibsuff= libmagic=32-bit;;
10530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10531 libsuff=32 shlibsuff=N32 libmagic=N32;;
10532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10533 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10534 *) libsuff= shlibsuff= libmagic=never-match;;
10535 esac
10536 ;;
10537 esac
10538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10539 shlibpath_overrides_runpath=no
10540 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10541 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10542 hardcode_into_libs=yes
10543 ;;
db137867 10544
7083c021
AC
10545# No shared lib support for Linux oldld, aout, or coff.
10546linux*oldld* | linux*aout* | linux*coff*)
10547 dynamic_linker=no
10548 ;;
db137867 10549
7083c021
AC
10550# This must be Linux ELF.
10551linux* | k*bsd*-gnu)
10552 version_type=linux
10553 need_lib_prefix=no
10554 need_version=no
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=no
10560 # Some binutils ld are patched to set DT_RUNPATH
10561 save_LDFLAGS=$LDFLAGS
10562 save_libdir=$libdir
10563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h. */
db137867 10567
7083c021
AC
10568int
10569main ()
10570{
db137867 10571
7083c021
AC
10572 ;
10573 return 0;
10574}
10575_ACEOF
10576if ac_fn_c_try_link "$LINENO"; then :
10577 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10578 shlibpath_overrides_runpath=yes
10579fi
10580fi
10581rm -f core conftest.err conftest.$ac_objext \
10582 conftest$ac_exeext conftest.$ac_ext
10583 LDFLAGS=$save_LDFLAGS
10584 libdir=$save_libdir
db137867 10585
7083c021
AC
10586 # This implies no fast_install, which is unacceptable.
10587 # Some rework will be needed to allow for fast_install
10588 # before this can be enabled.
10589 hardcode_into_libs=yes
db137867 10590
5a241f54
AC
10591 # Add ABI-specific directories to the system library path.
10592 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10593
7083c021
AC
10594 # Append ld.so.conf contents to the search path
10595 if test -f /etc/ld.so.conf; then
10596 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' ' '`
5a241f54 10597 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
db137867 10598 fi
db137867 10599
7083c021
AC
10600 # We used to test for /lib/ld.so.1 and disable shared libraries on
10601 # powerpc, because MkLinux only supported shared libraries with the
10602 # GNU dynamic linker. Since this was broken with cross compilers,
10603 # most powerpc-linux boxes support dynamic linking these days and
10604 # people can always --disable-shared, the test was removed, and we
10605 # assume the GNU/Linux dynamic linker is in use.
10606 dynamic_linker='GNU/Linux ld.so'
10607 ;;
10608
7083c021
AC
10609netbsd*)
10610 version_type=sunos
10611 need_lib_prefix=no
10612 need_version=no
10613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10616 dynamic_linker='NetBSD (a.out) ld.so'
10617 else
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 dynamic_linker='NetBSD ld.elf_so'
10621 fi
10622 shlibpath_var=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath=yes
10624 hardcode_into_libs=yes
10625 ;;
db137867 10626
7083c021
AC
10627newsos6)
10628 version_type=linux
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10632 ;;
db137867 10633
7083c021
AC
10634*nto* | *qnx*)
10635 version_type=qnx
10636 need_lib_prefix=no
10637 need_version=no
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=no
10642 hardcode_into_libs=yes
10643 dynamic_linker='ldqnx.so'
10644 ;;
db137867 10645
7083c021
AC
10646openbsd*)
10647 version_type=sunos
10648 sys_lib_dlsearch_path_spec="/usr/lib"
10649 need_lib_prefix=no
10650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10651 case $host_os in
10652 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10653 *) need_version=no ;;
10654 esac
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10659 case $host_os in
10660 openbsd2.[89] | openbsd2.[89].*)
10661 shlibpath_overrides_runpath=no
10662 ;;
10663 *)
10664 shlibpath_overrides_runpath=yes
10665 ;;
10666 esac
10667 else
10668 shlibpath_overrides_runpath=yes
10669 fi
10670 ;;
db137867 10671
7083c021
AC
10672os2*)
10673 libname_spec='$name'
10674 shrext_cmds=".dll"
10675 need_lib_prefix=no
10676 library_names_spec='$libname${shared_ext} $libname.a'
10677 dynamic_linker='OS/2 ld.exe'
10678 shlibpath_var=LIBPATH
10679 ;;
db137867 10680
7083c021
AC
10681osf3* | osf4* | osf5*)
10682 version_type=osf
10683 need_lib_prefix=no
10684 need_version=no
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10690 ;;
db137867 10691
7083c021
AC
10692rdos*)
10693 dynamic_linker=no
10694 ;;
db137867 10695
7083c021
AC
10696solaris*)
10697 version_type=linux
10698 need_lib_prefix=no
10699 need_version=no
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath=yes
10704 hardcode_into_libs=yes
10705 # ldd complains unless libraries are executable
10706 postinstall_cmds='chmod +x $lib'
10707 ;;
db137867 10708
7083c021
AC
10709sunos4*)
10710 version_type=sunos
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes
10715 if test "$with_gnu_ld" = yes; then
10716 need_lib_prefix=no
10717 fi
10718 need_version=yes
10719 ;;
db137867 10720
7083c021
AC
10721sysv4 | sysv4.3*)
10722 version_type=linux
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 case $host_vendor in
10727 sni)
10728 shlibpath_overrides_runpath=no
10729 need_lib_prefix=no
10730 runpath_var=LD_RUN_PATH
10731 ;;
10732 siemens)
10733 need_lib_prefix=no
10734 ;;
10735 motorola)
10736 need_lib_prefix=no
10737 need_version=no
10738 shlibpath_overrides_runpath=no
10739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10740 ;;
10741 esac
10742 ;;
db137867 10743
7083c021
AC
10744sysv4*MP*)
10745 if test -d /usr/nec ;then
10746 version_type=linux
10747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10748 soname_spec='$libname${shared_ext}.$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 fi
10751 ;;
db137867 10752
7083c021
AC
10753sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10754 version_type=freebsd-elf
10755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=yes
10761 hardcode_into_libs=yes
10762 if test "$with_gnu_ld" = yes; then
10763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10764 else
10765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10766 case $host_os in
10767 sco3.2v5*)
10768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10769 ;;
10770 esac
10771 fi
10772 sys_lib_dlsearch_path_spec='/usr/lib'
10773 ;;
db137867 10774
7083c021
AC
10775tpf*)
10776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10777 version_type=linux
10778 need_lib_prefix=no
10779 need_version=no
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=no
10783 hardcode_into_libs=yes
10784 ;;
db137867 10785
7083c021
AC
10786uts4*)
10787 version_type=linux
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 ;;
db137867 10792
7083c021
AC
10793*)
10794 dynamic_linker=no
10795 ;;
10796esac
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10798$as_echo "$dynamic_linker" >&6; }
10799test "$dynamic_linker" = no && can_build_shared=no
db137867 10800
7083c021
AC
10801variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10802if test "$GCC" = yes; then
10803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10804fi
db137867 10805
7083c021
AC
10806if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10807 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10808fi
10809if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10811fi
db137867 10812
db137867 10813
db137867 10814
db137867 10815
db137867 10816
db137867 10817
db137867 10818
db137867 10819
db137867 10820
db137867 10821
db137867 10822
db137867 10823
db137867 10824
db137867 10825
db137867 10826
db137867 10827
db137867 10828
db137867 10829
db137867 10830
db137867 10831
db137867 10832
db137867 10833
db137867 10834
db137867 10835
db137867 10836
db137867 10837
db137867 10838
db137867 10839
db137867 10840
db137867 10841
db137867 10842
db137867 10843
db137867 10844
db137867 10845
db137867 10846
db137867 10847
db137867 10848
db137867 10849
db137867 10850
db137867 10851
db137867 10852
db137867 10853
db137867 10854
db137867 10855
db137867 10856
b676ea3b 10857
db137867 10858
db137867 10859
db137867 10860
db137867 10861
db137867 10862
db137867 10863
db137867 10864
db137867 10865
db137867 10866
db137867 10867
db137867 10868
db137867 10869
db137867 10870
db137867 10871
db137867 10872
db137867 10873
db137867 10874
db137867 10875
db137867 10876
db137867 10877
db137867 10878
db137867 10879
db137867 10880
db137867 10881
db137867 10882
db137867 10883
db137867 10884
db137867 10885
db137867 10886
db137867 10887
db137867 10888
db137867 10889
db137867 10890
db137867
AC
10891
10892
db137867
AC
10893
10894
db137867 10895
db137867 10896
db137867 10897
db137867 10898
7083c021
AC
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10900$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10901hardcode_action=
10902if test -n "$hardcode_libdir_flag_spec" ||
10903 test -n "$runpath_var" ||
10904 test "X$hardcode_automatic" = "Xyes" ; then
db137867 10905
7083c021
AC
10906 # We can hardcode non-existent directories.
10907 if test "$hardcode_direct" != no &&
10908 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10909 # have to relink, otherwise we might link with an installed library
10910 # when we should be linking with a yet-to-be-installed one
10911 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10912 test "$hardcode_minus_L" != no; then
10913 # Linking always hardcodes the temporary library directory.
10914 hardcode_action=relink
db137867 10915 else
7083c021
AC
10916 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10917 hardcode_action=immediate
db137867 10918 fi
7083c021
AC
10919else
10920 # We cannot hardcode anything, or else we can only hardcode existing
10921 # directories.
10922 hardcode_action=unsupported
10923fi
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10925$as_echo "$hardcode_action" >&6; }
10926
10927if test "$hardcode_action" = relink ||
10928 test "$inherit_rpath" = yes; then
10929 # Fast installation is not supported
10930 enable_fast_install=no
10931elif test "$shlibpath_overrides_runpath" = yes ||
10932 test "$enable_shared" = no; then
10933 # Fast installation is not necessary
10934 enable_fast_install=needless
db137867
AC
10935fi
10936
10937
10938
db137867 10939
db137867 10940
db137867 10941
7083c021
AC
10942 if test "x$enable_dlopen" != xyes; then
10943 enable_dlopen=unknown
10944 enable_dlopen_self=unknown
10945 enable_dlopen_self_static=unknown
10946else
10947 lt_cv_dlopen=no
10948 lt_cv_dlopen_libs=
db137867 10949
7083c021
AC
10950 case $host_os in
10951 beos*)
10952 lt_cv_dlopen="load_add_on"
10953 lt_cv_dlopen_libs=
10954 lt_cv_dlopen_self=yes
10955 ;;
db137867 10956
7083c021
AC
10957 mingw* | pw32* | cegcc*)
10958 lt_cv_dlopen="LoadLibrary"
10959 lt_cv_dlopen_libs=
10960 ;;
db137867 10961
7083c021
AC
10962 cygwin*)
10963 lt_cv_dlopen="dlopen"
10964 lt_cv_dlopen_libs=
10965 ;;
db137867 10966
7083c021
AC
10967 darwin*)
10968 # if libdl is installed we need to link against it
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10970$as_echo_n "checking for dlopen in -ldl... " >&6; }
08c2568c 10971if ${ac_cv_lib_dl_dlopen+:} false; then :
7083c021
AC
10972 $as_echo_n "(cached) " >&6
10973else
10974 ac_check_lib_save_LIBS=$LIBS
10975LIBS="-ldl $LIBS"
10976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977/* end confdefs.h. */
db137867 10978
7083c021
AC
10979/* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10982#ifdef __cplusplus
10983extern "C"
10984#endif
10985char dlopen ();
10986int
10987main ()
10988{
10989return dlopen ();
10990 ;
10991 return 0;
10992}
10993_ACEOF
10994if ac_fn_c_try_link "$LINENO"; then :
10995 ac_cv_lib_dl_dlopen=yes
10996else
10997 ac_cv_lib_dl_dlopen=no
10998fi
10999rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001LIBS=$ac_check_lib_save_LIBS
11002fi
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11004$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
08c2568c 11005if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7083c021
AC
11006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007else
db137867 11008
7083c021
AC
11009 lt_cv_dlopen="dyld"
11010 lt_cv_dlopen_libs=
11011 lt_cv_dlopen_self=yes
db137867 11012
7083c021 11013fi
db137867 11014
7083c021 11015 ;;
db137867 11016
7083c021
AC
11017 *)
11018 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
08c2568c 11019if test "x$ac_cv_func_shl_load" = xyes; then :
7083c021
AC
11020 lt_cv_dlopen="shl_load"
11021else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11023$as_echo_n "checking for shl_load in -ldld... " >&6; }
08c2568c 11024if ${ac_cv_lib_dld_shl_load+:} false; then :
7083c021
AC
11025 $as_echo_n "(cached) " >&6
11026else
11027 ac_check_lib_save_LIBS=$LIBS
11028LIBS="-ldld $LIBS"
11029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030/* end confdefs.h. */
db137867 11031
7083c021
AC
11032/* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035#ifdef __cplusplus
11036extern "C"
11037#endif
11038char shl_load ();
11039int
11040main ()
11041{
11042return shl_load ();
11043 ;
11044 return 0;
11045}
11046_ACEOF
11047if ac_fn_c_try_link "$LINENO"; then :
11048 ac_cv_lib_dld_shl_load=yes
11049else
11050 ac_cv_lib_dld_shl_load=no
11051fi
11052rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054LIBS=$ac_check_lib_save_LIBS
11055fi
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11057$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
08c2568c 11058if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7083c021
AC
11059 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11060else
11061 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
08c2568c 11062if test "x$ac_cv_func_dlopen" = xyes; then :
7083c021
AC
11063 lt_cv_dlopen="dlopen"
11064else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11066$as_echo_n "checking for dlopen in -ldl... " >&6; }
08c2568c 11067if ${ac_cv_lib_dl_dlopen+:} false; then :
7083c021
AC
11068 $as_echo_n "(cached) " >&6
11069else
11070 ac_check_lib_save_LIBS=$LIBS
11071LIBS="-ldl $LIBS"
11072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073/* end confdefs.h. */
db137867 11074
7083c021
AC
11075/* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11078#ifdef __cplusplus
11079extern "C"
11080#endif
11081char dlopen ();
11082int
11083main ()
11084{
11085return dlopen ();
11086 ;
11087 return 0;
11088}
11089_ACEOF
11090if ac_fn_c_try_link "$LINENO"; then :
11091 ac_cv_lib_dl_dlopen=yes
11092else
11093 ac_cv_lib_dl_dlopen=no
11094fi
11095rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
11097LIBS=$ac_check_lib_save_LIBS
11098fi
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11100$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
08c2568c 11101if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7083c021
AC
11102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11103else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11105$as_echo_n "checking for dlopen in -lsvld... " >&6; }
08c2568c 11106if ${ac_cv_lib_svld_dlopen+:} false; then :
7083c021
AC
11107 $as_echo_n "(cached) " >&6
11108else
11109 ac_check_lib_save_LIBS=$LIBS
11110LIBS="-lsvld $LIBS"
11111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112/* end confdefs.h. */
db137867 11113
7083c021
AC
11114/* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11117#ifdef __cplusplus
11118extern "C"
11119#endif
11120char dlopen ();
11121int
11122main ()
11123{
11124return dlopen ();
11125 ;
11126 return 0;
11127}
11128_ACEOF
11129if ac_fn_c_try_link "$LINENO"; then :
11130 ac_cv_lib_svld_dlopen=yes
11131else
11132 ac_cv_lib_svld_dlopen=no
11133fi
11134rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
11136LIBS=$ac_check_lib_save_LIBS
11137fi
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11139$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
08c2568c 11140if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7083c021
AC
11141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11142else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11144$as_echo_n "checking for dld_link in -ldld... " >&6; }
08c2568c 11145if ${ac_cv_lib_dld_dld_link+:} false; then :
7083c021
AC
11146 $as_echo_n "(cached) " >&6
11147else
11148 ac_check_lib_save_LIBS=$LIBS
11149LIBS="-ldld $LIBS"
11150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151/* end confdefs.h. */
db137867 11152
7083c021
AC
11153/* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11156#ifdef __cplusplus
11157extern "C"
11158#endif
11159char dld_link ();
11160int
11161main ()
11162{
11163return dld_link ();
11164 ;
11165 return 0;
11166}
11167_ACEOF
11168if ac_fn_c_try_link "$LINENO"; then :
11169 ac_cv_lib_dld_dld_link=yes
11170else
11171 ac_cv_lib_dld_dld_link=no
11172fi
11173rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
11175LIBS=$ac_check_lib_save_LIBS
11176fi
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11178$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
08c2568c 11179if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
7083c021
AC
11180 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11181fi
db137867
AC
11182
11183
7083c021 11184fi
db137867
AC
11185
11186
7083c021 11187fi
db137867
AC
11188
11189
7083c021 11190fi
db137867 11191
db137867 11192
7083c021 11193fi
db137867 11194
db137867 11195
7083c021 11196fi
db137867 11197
7083c021
AC
11198 ;;
11199 esac
db137867 11200
7083c021
AC
11201 if test "x$lt_cv_dlopen" != xno; then
11202 enable_dlopen=yes
11203 else
11204 enable_dlopen=no
11205 fi
db137867 11206
7083c021
AC
11207 case $lt_cv_dlopen in
11208 dlopen)
11209 save_CPPFLAGS="$CPPFLAGS"
11210 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
db137867 11211
7083c021
AC
11212 save_LDFLAGS="$LDFLAGS"
11213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
db137867 11214
7083c021
AC
11215 save_LIBS="$LIBS"
11216 LIBS="$lt_cv_dlopen_libs $LIBS"
db137867 11217
7083c021
AC
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11219$as_echo_n "checking whether a program can dlopen itself... " >&6; }
08c2568c 11220if ${lt_cv_dlopen_self+:} false; then :
030272f3 11221 $as_echo_n "(cached) " >&6
db137867 11222else
7083c021
AC
11223 if test "$cross_compiling" = yes; then :
11224 lt_cv_dlopen_self=cross
db137867 11225else
7083c021
AC
11226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11227 lt_status=$lt_dlunknown
11228 cat > conftest.$ac_ext <<_LT_EOF
08c2568c 11229#line 11229 "configure"
7083c021 11230#include "confdefs.h"
db137867 11231
7083c021
AC
11232#if HAVE_DLFCN_H
11233#include <dlfcn.h>
11234#endif
db137867 11235
7083c021 11236#include <stdio.h>
db137867 11237
7083c021
AC
11238#ifdef RTLD_GLOBAL
11239# define LT_DLGLOBAL RTLD_GLOBAL
11240#else
11241# ifdef DL_GLOBAL
11242# define LT_DLGLOBAL DL_GLOBAL
11243# else
11244# define LT_DLGLOBAL 0
11245# endif
11246#endif
db137867 11247
7083c021
AC
11248/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11249 find out it does not work in some platform. */
11250#ifndef LT_DLLAZY_OR_NOW
11251# ifdef RTLD_LAZY
11252# define LT_DLLAZY_OR_NOW RTLD_LAZY
11253# else
11254# ifdef DL_LAZY
11255# define LT_DLLAZY_OR_NOW DL_LAZY
11256# else
11257# ifdef RTLD_NOW
11258# define LT_DLLAZY_OR_NOW RTLD_NOW
11259# else
11260# ifdef DL_NOW
11261# define LT_DLLAZY_OR_NOW DL_NOW
11262# else
11263# define LT_DLLAZY_OR_NOW 0
11264# endif
11265# endif
11266# endif
11267# endif
11268#endif
db137867 11269
7083c021
AC
11270void fnord() { int i=42;}
11271int main ()
11272{
11273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11274 int status = $lt_dlunknown;
db137867 11275
7083c021
AC
11276 if (self)
11277 {
11278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11279 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11280 /* dlclose (self); */
11281 }
11282 else
11283 puts (dlerror ());
db137867 11284
7083c021
AC
11285 return status;
11286}
11287_LT_EOF
11288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11289 (eval $ac_link) 2>&5
11290 ac_status=$?
11291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11292 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11293 (./conftest; exit; ) >&5 2>/dev/null
11294 lt_status=$?
11295 case x$lt_status in
11296 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11297 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11298 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11299 esac
11300 else :
11301 # compilation failed
11302 lt_cv_dlopen_self=no
11303 fi
db137867 11304fi
7083c021 11305rm -fr conftest*
db137867 11306
db137867 11307
7083c021
AC
11308fi
11309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11310$as_echo "$lt_cv_dlopen_self" >&6; }
db137867 11311
7083c021
AC
11312 if test "x$lt_cv_dlopen_self" = xyes; then
11313 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11315$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
08c2568c 11316if ${lt_cv_dlopen_self_static+:} false; then :
030272f3 11317 $as_echo_n "(cached) " >&6
db137867 11318else
7083c021
AC
11319 if test "$cross_compiling" = yes; then :
11320 lt_cv_dlopen_self_static=cross
db137867 11321else
7083c021
AC
11322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11323 lt_status=$lt_dlunknown
11324 cat > conftest.$ac_ext <<_LT_EOF
08c2568c 11325#line 11325 "configure"
7083c021 11326#include "confdefs.h"
db137867 11327
7083c021
AC
11328#if HAVE_DLFCN_H
11329#include <dlfcn.h>
11330#endif
db137867 11331
7083c021 11332#include <stdio.h>
db137867 11333
7083c021
AC
11334#ifdef RTLD_GLOBAL
11335# define LT_DLGLOBAL RTLD_GLOBAL
11336#else
11337# ifdef DL_GLOBAL
11338# define LT_DLGLOBAL DL_GLOBAL
11339# else
11340# define LT_DLGLOBAL 0
11341# endif
11342#endif
db137867 11343
7083c021
AC
11344/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11345 find out it does not work in some platform. */
11346#ifndef LT_DLLAZY_OR_NOW
11347# ifdef RTLD_LAZY
11348# define LT_DLLAZY_OR_NOW RTLD_LAZY
11349# else
11350# ifdef DL_LAZY
11351# define LT_DLLAZY_OR_NOW DL_LAZY
11352# else
11353# ifdef RTLD_NOW
11354# define LT_DLLAZY_OR_NOW RTLD_NOW
11355# else
11356# ifdef DL_NOW
11357# define LT_DLLAZY_OR_NOW DL_NOW
11358# else
11359# define LT_DLLAZY_OR_NOW 0
11360# endif
11361# endif
11362# endif
11363# endif
11364#endif
db137867 11365
7083c021
AC
11366void fnord() { int i=42;}
11367int main ()
11368{
11369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11370 int status = $lt_dlunknown;
db137867 11371
7083c021
AC
11372 if (self)
11373 {
11374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11376 /* dlclose (self); */
11377 }
11378 else
11379 puts (dlerror ());
db137867 11380
7083c021
AC
11381 return status;
11382}
11383_LT_EOF
11384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11385 (eval $ac_link) 2>&5
11386 ac_status=$?
11387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11389 (./conftest; exit; ) >&5 2>/dev/null
11390 lt_status=$?
11391 case x$lt_status in
11392 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11393 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11394 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11395 esac
11396 else :
11397 # compilation failed
11398 lt_cv_dlopen_self_static=no
11399 fi
db137867 11400fi
7083c021 11401rm -fr conftest*
3202e249 11402
db137867 11403
db137867 11404fi
7083c021
AC
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11406$as_echo "$lt_cv_dlopen_self_static" >&6; }
11407 fi
db137867 11408
7083c021
AC
11409 CPPFLAGS="$save_CPPFLAGS"
11410 LDFLAGS="$save_LDFLAGS"
11411 LIBS="$save_LIBS"
11412 ;;
11413 esac
db137867 11414
7083c021
AC
11415 case $lt_cv_dlopen_self in
11416 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11417 *) enable_dlopen_self=unknown ;;
11418 esac
db137867 11419
7083c021
AC
11420 case $lt_cv_dlopen_self_static in
11421 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11422 *) enable_dlopen_self_static=unknown ;;
11423 esac
db137867
AC
11424fi
11425
db137867 11426
db137867 11427
030272f3
VY
11428
11429
030272f3 11430
db137867 11431
db137867 11432
db137867 11433
030272f3 11434
030272f3 11435
db137867 11436
030272f3 11437
db137867 11438
db137867 11439
db137867 11440
db137867 11441
7083c021
AC
11442striplib=
11443old_striplib=
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11445$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11446if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11448 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11450$as_echo "yes" >&6; }
030272f3 11451else
7083c021
AC
11452# FIXME - insert some real tests, host_os isn't really good enough
11453 case $host_os in
11454 darwin*)
11455 if test -n "$STRIP" ; then
11456 striplib="$STRIP -x"
11457 old_striplib="$STRIP -S"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11459$as_echo "yes" >&6; }
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
11463 fi
11464 ;;
11465 *)
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467$as_echo "no" >&6; }
11468 ;;
11469 esac
030272f3
VY
11470fi
11471
db137867 11472
030272f3 11473
db137867 11474
db137867 11475
db137867 11476
db137867 11477
db137867 11478
db137867 11479
db137867 11480
db137867
AC
11481
11482
7083c021
AC
11483 # Report which library types will actually be built
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11485$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11487$as_echo "$can_build_shared" >&6; }
db137867 11488
7083c021
AC
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11490$as_echo_n "checking whether to build shared libraries... " >&6; }
11491 test "$can_build_shared" = "no" && enable_shared=no
db137867 11492
7083c021
AC
11493 # On AIX, shared libraries and static libraries use the same namespace, and
11494 # are all built from PIC.
11495 case $host_os in
11496 aix3*)
11497 test "$enable_shared" = yes && enable_static=no
11498 if test -n "$RANLIB"; then
11499 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11500 postinstall_cmds='$RANLIB $lib'
11501 fi
11502 ;;
db137867 11503
7083c021
AC
11504 aix[4-9]*)
11505 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11506 test "$enable_shared" = yes && enable_static=no
11507 fi
11508 ;;
11509 esac
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11511$as_echo "$enable_shared" >&6; }
11512
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11514$as_echo_n "checking whether to build static libraries... " >&6; }
11515 # Make sure either enable_shared or enable_static is yes.
11516 test "$enable_shared" = yes || enable_static=yes
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11518$as_echo "$enable_static" >&6; }
db137867 11519
db137867 11520
db137867 11521
db137867 11522
db137867 11523fi
7083c021
AC
11524ac_ext=c
11525ac_cpp='$CPP $CPPFLAGS'
11526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528ac_compiler_gnu=$ac_cv_c_compiler_gnu
db137867 11529
7083c021 11530CC="$lt_save_CC"
db137867 11531
db137867 11532
db137867 11533
db137867 11534
db137867 11535
db137867 11536
db137867 11537
db137867 11538
db137867 11539
db137867
AC
11540
11541
db137867 11542
db137867 11543
7083c021 11544 ac_config_commands="$ac_config_commands libtool"
db137867
AC
11545
11546
11547
11548
7083c021 11549# Only expand once:
db137867
AC
11550
11551
11552
7083c021 11553LIBTOOL="$LIBTOOL --silent"
db137867 11554
7083c021
AC
11555case "$host_os" in
11556*cygwin*)
db137867 11557
7083c021
AC
11558cat >>confdefs.h <<_ACEOF
11559#define CYGWIN 1
11560_ACEOF
db137867
AC
11561
11562
7083c021
AC
11563cat >>confdefs.h <<_ACEOF
11564#define WINDOWS 1
11565_ACEOF
db137867 11566
7083c021
AC
11567 ;;
11568*mingw*)
db137867 11569
7083c021
AC
11570cat >>confdefs.h <<_ACEOF
11571#define MINGW 1
11572_ACEOF
db137867
AC
11573
11574
7083c021
AC
11575cat >>confdefs.h <<_ACEOF
11576#define WINDOWS 1
11577_ACEOF
db137867 11578
7083c021 11579 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
08c2568c 11580if test "x$ac_cv_header_windows_h" = xyes; then :
db137867 11581
7083c021 11582else
08c2568c 11583 as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5
7083c021 11584fi
db137867
AC
11585
11586
7083c021 11587 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
08c2568c 11588if test "x$ac_cv_header_winsock2_h" = xyes; then :
db137867 11589
7083c021 11590else
08c2568c 11591 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5
7083c021 11592fi
db137867 11593
3202e249 11594
7083c021
AC
11595
11596cat >>confdefs.h <<_ACEOF
11597#define HAVE_WINSOCK2_H 1
db137867 11598_ACEOF
7083c021
AC
11599
11600
11601cat >>confdefs.h <<_ACEOF
11602#define HAVE_WINSOCK_H 1
db137867 11603_ACEOF
7083c021
AC
11604
11605 LIBS="$LIBS -lws2_32 -liphlpapi"
11606 is_mingw="yes"
11607 ;;
11608*interix*)
11609 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
11610 ;;
11611*solaris*)
11612 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
11613 ;;
11614*)
11615 ;;
db137867 11616esac
db137867 11617
7083c021
AC
11618 if test "$is_mingw" = "yes"; then
11619 MINGW_TRUE=
11620 MINGW_FALSE='#'
11621else
11622 MINGW_TRUE='#'
11623 MINGW_FALSE=
db137867
AC
11624fi
11625
db137867 11626
db137867 11627
7083c021
AC
11628# backwards support for IRC_CFLAGS
11629CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
11630
11631if test "$libexecdir" = '${exec_prefix}/libexec' &&
11632 test "$localstatedir" = '${prefix}/var'; then
11633 libexecdir='${bindir}'
11634 localstatedir='${prefix}'
db137867
AC
11635fi
11636
7083c021 11637ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
08c2568c 11638if test "x$ac_cv_type_pid_t" = xyes; then :
db137867 11639
db137867 11640else
7083c021
AC
11641
11642cat >>confdefs.h <<_ACEOF
11643#define pid_t int
11644_ACEOF
db137867
AC
11645
11646fi
7083c021
AC
11647
11648ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
08c2568c 11649if test "x$ac_cv_type_size_t" = xyes; then :
7083c021
AC
11650
11651else
11652
11653cat >>confdefs.h <<_ACEOF
11654#define size_t unsigned int
db137867
AC
11655_ACEOF
11656
11657fi
11658
7083c021 11659ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
08c2568c 11660if test "x$ac_cv_type_ssize_t" = xyes; then :
db137867 11661
db137867 11662else
7083c021
AC
11663
11664cat >>confdefs.h <<_ACEOF
11665#define ssize_t int
db137867 11666_ACEOF
7083c021
AC
11667
11668fi
11669
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11671$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
08c2568c 11672if ${ac_cv_type_uid_t+:} false; then :
7083c021
AC
11673 $as_echo_n "(cached) " >&6
11674else
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
11676/* end confdefs.h. */
11677#include <sys/types.h>
db137867 11678
db137867 11679_ACEOF
7083c021
AC
11680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11681 $EGREP "uid_t" >/dev/null 2>&1; then :
11682 ac_cv_type_uid_t=yes
db137867 11683else
7083c021 11684 ac_cv_type_uid_t=no
db137867 11685fi
7083c021 11686rm -f conftest*
db137867 11687
db137867 11688fi
7083c021
AC
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11690$as_echo "$ac_cv_type_uid_t" >&6; }
11691if test $ac_cv_type_uid_t = no; then
db137867 11692
7083c021
AC
11693$as_echo "#define uid_t int" >>confdefs.h
11694
11695
11696$as_echo "#define gid_t int" >>confdefs.h
db137867
AC
11697
11698fi
11699
11700
11701
7083c021
AC
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11703$as_echo_n "checking for ANSI C header files... " >&6; }
08c2568c 11704if ${ac_cv_header_stdc+:} false; then :
030272f3 11705 $as_echo_n "(cached) " >&6
db137867 11706else
7083c021 11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 11708/* end confdefs.h. */
7083c021
AC
11709#include <stdlib.h>
11710#include <stdarg.h>
11711#include <string.h>
11712#include <float.h>
db137867 11713
db137867
AC
11714int
11715main ()
11716{
7083c021 11717
db137867
AC
11718 ;
11719 return 0;
11720}
11721_ACEOF
7083c021
AC
11722if ac_fn_c_try_compile "$LINENO"; then :
11723 ac_cv_header_stdc=yes
db137867 11724else
7083c021
AC
11725 ac_cv_header_stdc=no
11726fi
11727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db137867 11728
7083c021
AC
11729if test $ac_cv_header_stdc = yes; then
11730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732/* end confdefs.h. */
11733#include <string.h>
db137867 11734
7083c021
AC
11735_ACEOF
11736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11737 $EGREP "memchr" >/dev/null 2>&1; then :
db137867 11738
db137867 11739else
7083c021 11740 ac_cv_header_stdc=no
db137867 11741fi
7083c021 11742rm -f conftest*
db137867
AC
11743
11744fi
11745
7083c021
AC
11746if test $ac_cv_header_stdc = yes; then
11747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749/* end confdefs.h. */
11750#include <stdlib.h>
db137867 11751
db137867 11752_ACEOF
7083c021
AC
11753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11754 $EGREP "free" >/dev/null 2>&1; then :
db137867 11755
7083c021
AC
11756else
11757 ac_cv_header_stdc=no
11758fi
11759rm -f conftest*
db137867 11760
7083c021 11761fi
db137867 11762
7083c021
AC
11763if test $ac_cv_header_stdc = yes; then
11764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11765 if test "$cross_compiling" = yes; then :
11766 :
db137867 11767else
7083c021 11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 11769/* end confdefs.h. */
7083c021
AC
11770#include <ctype.h>
11771#include <stdlib.h>
11772#if ((' ' & 0x0FF) == 0x020)
11773# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11774# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11775#else
11776# define ISLOWER(c) \
11777 (('a' <= (c) && (c) <= 'i') \
11778 || ('j' <= (c) && (c) <= 'r') \
11779 || ('s' <= (c) && (c) <= 'z'))
11780# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
db137867
AC
11781#endif
11782
7083c021 11783#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
db137867
AC
11784int
11785main ()
11786{
7083c021
AC
11787 int i;
11788 for (i = 0; i < 256; i++)
11789 if (XOR (islower (i), ISLOWER (i))
11790 || toupper (i) != TOUPPER (i))
11791 return 2;
db137867
AC
11792 return 0;
11793}
11794_ACEOF
7083c021 11795if ac_fn_c_try_run "$LINENO"; then :
db137867 11796
7083c021
AC
11797else
11798 ac_cv_header_stdc=no
11799fi
11800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11801 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
11802fi
11803
db137867 11804fi
7083c021
AC
11805fi
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11807$as_echo "$ac_cv_header_stdc" >&6; }
11808if test $ac_cv_header_stdc = yes; then
11809
11810$as_echo "#define STDC_HEADERS 1" >>confdefs.h
db137867 11811
db137867 11812fi
db137867 11813
7083c021
AC
11814
11815for 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
11816do :
11817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
08c2568c 11819if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
11820 cat >>confdefs.h <<_ACEOF
11821#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
db137867
AC
11822_ACEOF
11823
11824fi
11825
7083c021 11826done
db137867 11827
7083c021
AC
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11829$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
08c2568c 11830if ${ac_cv_header_time+:} false; then :
030272f3 11831 $as_echo_n "(cached) " >&6
db137867 11832else
7083c021 11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 11834/* end confdefs.h. */
db137867 11835#include <sys/types.h>
7083c021
AC
11836#include <sys/time.h>
11837#include <time.h>
db137867 11838
db137867
AC
11839int
11840main ()
11841{
7083c021
AC
11842if ((struct tm *) 0)
11843return 0;
030272f3 11844 ;
db137867 11845 return 0;
7083c021 11846}
030272f3 11847_ACEOF
7083c021
AC
11848if ac_fn_c_try_compile "$LINENO"; then :
11849 ac_cv_header_time=yes
11850else
11851 ac_cv_header_time=no
11852fi
11853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854fi
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11856$as_echo "$ac_cv_header_time" >&6; }
11857if test $ac_cv_header_time = yes; then
11858
11859$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11860
11861fi
11862
11863
11864
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11866$as_echo_n "checking for library containing socket... " >&6; }
08c2568c 11867if ${ac_cv_search_socket+:} false; then :
7083c021
AC
11868 $as_echo_n "(cached) " >&6
11869else
11870 ac_func_search_save_LIBS=$LIBS
11871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 11872/* end confdefs.h. */
030272f3 11873
7083c021
AC
11874/* Override any GCC internal prototype to avoid an error.
11875 Use char because int might match the return type of a GCC
11876 builtin and then its argument prototype would still apply. */
11877#ifdef __cplusplus
11878extern "C"
11879#endif
11880char socket ();
030272f3
VY
11881int
11882main ()
11883{
7083c021 11884return socket ();
db137867
AC
11885 ;
11886 return 0;
11887}
11888_ACEOF
7083c021
AC
11889for ac_lib in '' socket; do
11890 if test -z "$ac_lib"; then
11891 ac_res="none required"
11892 else
11893 ac_res=-l$ac_lib
11894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11895 fi
11896 if ac_fn_c_try_link "$LINENO"; then :
11897 ac_cv_search_socket=$ac_res
11898fi
11899rm -f core conftest.err conftest.$ac_objext \
11900 conftest$ac_exeext
08c2568c 11901 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
11902 break
11903fi
11904done
08c2568c 11905if ${ac_cv_search_socket+:} false; then :
7083c021 11906
db137867 11907else
7083c021
AC
11908 ac_cv_search_socket=no
11909fi
11910rm conftest.$ac_ext
11911LIBS=$ac_func_search_save_LIBS
11912fi
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11914$as_echo "$ac_cv_search_socket" >&6; }
11915ac_res=$ac_cv_search_socket
11916if test "$ac_res" != no; then :
11917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
db137867 11918
db137867
AC
11919fi
11920
030272f3
VY
11921
11922
7083c021
AC
11923ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11924#ifdef HAVE_SYS_TYPES_H
11925#include <sys/types.h>
11926#endif
11927#ifdef HAVE_SYS_SOCKET_H
11928#include <sys/socket.h>
11929#endif
11930#ifdef HAVE_WINSOCK2_H
11931#include <winsock2.h>
11932#endif
11933
11934"
08c2568c 11935if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7083c021
AC
11936
11937$as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
030272f3 11938
030272f3 11939fi
7083c021
AC
11940
11941
11942ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11943#include <sys/socket.h>
11944"
08c2568c 11945if test "x$ac_cv_type_socklen_t" = xyes; then :
030272f3 11946 rb_cv_socklen_t=socklen_t
db137867
AC
11947else
11948
7083c021 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
030272f3 11950$as_echo_n "checking for socklen_t equivalent... " >&6; }
08c2568c 11951 if ${rb_cv_socklen_t+:} false; then :
030272f3 11952 $as_echo_n "(cached) " >&6
a9fb3ed0
VY
11953else
11954
11955 # Systems have either "struct sockaddr *" or
11956 # "void *" as the second argument to getpeername
030272f3 11957 rb_cv_socklen_t=
a9fb3ed0
VY
11958 for arg2 in "struct sockaddr" void; do
11959 for t in int size_t unsigned long "unsigned long"; do
7083c021 11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9fb3ed0
VY
11961/* end confdefs.h. */
11962
3202e249 11963#ifdef HAVE_SYS_TYPES_H
a9fb3ed0 11964#include <sys/types.h>
3202e249
VY
11965#endif
11966#ifdef HAVE_SYS_SOCKET_H
a9fb3ed0 11967#include <sys/socket.h>
3202e249
VY
11968#endif
11969#ifdef HAVE_WINSOCK2_H
11970#include <winsock2.h>
11971#endif
a9fb3ed0
VY
11972int getpeername (int, $arg2 *, $t *);
11973
11974int
11975main ()
11976{
11977
11978$t len;
11979getpeername(0,0,&len);
11980
11981 ;
11982 return 0;
11983}
db137867 11984_ACEOF
7083c021 11985if ac_fn_c_try_compile "$LINENO"; then :
a9fb3ed0 11986
030272f3 11987 rb_cv_socklen_t="$t"
a9fb3ed0
VY
11988 break
11989
a9fb3ed0 11990fi
a9fb3ed0
VY
11991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 done
11993 done
11994
030272f3 11995 if test "x$rb_cv_socklen_t" = x; then
7083c021 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
030272f3
VY
11997$as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
11998 rb_cv_socklen_t=int
a9fb3ed0
VY
11999 fi
12000
12001fi
12002
7083c021
AC
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
12004$as_echo "$rb_cv_socklen_t" >&6; }
12005fi
12006
12007
12008rb_socklen_t=$rb_cv_socklen_t
12009
12010
12011
12012
12013
12014# Check whether --enable-ipv6 was given.
12015if test "${enable_ipv6+set}" = set; then :
12016 enableval=$enable_ipv6; ipv6=$enableval
12017else
12018 ipv6=yes
12019fi
12020
12021
12022if test x$ipv6 != xyes; then
12023 have_v6="no"
12024else
12025
12026have_v6=yes
12027
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
12029$as_echo_n "checking for INET6 protocol support... " >&6; }
08c2568c 12030if ${rb_cv_proto_inet6+:} false; then :
7083c021
AC
12031 $as_echo_n "(cached) " >&6
12032else
12033
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035/* end confdefs.h. */
12036
12037#include <sys/types.h>
12038#include <sys/socket.h>
12039
12040#ifndef PF_INET6
12041#error Missing PF_INET6
12042#endif
12043#ifndef AF_INET6
12044#error Mlssing AF_INET6
12045#endif
12046
12047_ACEOF
12048if ac_fn_c_try_cpp "$LINENO"; then :
12049
12050 rb_cv_proto_inet6=yes
12051
12052else
12053
12054 rb_cv_proto_inet6=no
12055
12056fi
08c2568c 12057rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
12058
12059fi
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
12061$as_echo "$rb_cv_proto_inet6" >&6; }
12062
12063 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
12064
12065 else :
12066
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
12068$as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
12069 have_v6=no
12070
12071 fi
12072
12073
12074 if test "X$have_v6" = "Xyes"; then
12075
12076 rb_have_sockaddr_in6=
12077 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
12078#include <sys/types.h>
12079#include <sys/socket.h>
12080#include <netinet/in.h>
12081
12082"
08c2568c 12083if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7083c021
AC
12084
12085cat >>confdefs.h <<_ACEOF
12086#define HAVE_STRUCT_SOCKADDR_IN6 1
12087_ACEOF
12088
12089
12090 rb_have_sockaddr_in6=yes
12091
12092else
12093
12094 rb_have_sockaddr_in6=no
12095
12096fi
12097
12098
12099 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
12100
12101 else :
12102
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
12104$as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
12105 have_v6=no
12106
12107 fi
12108
12109 fi
12110
12111fi
12112
12113ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12114 #include <sys/types.h>
12115 #include <sys/socket.h>
12116
12117"
08c2568c 12118if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7083c021
AC
12119
12120cat >>confdefs.h <<_ACEOF
12121#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12122_ACEOF
12123
12124
12125 rb_have_sockaddr_storage=yes
12126
12127fi
12128
12129
12130
7083c021 12131ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
08c2568c 12132if test "x$ac_cv_header_stdarg_h" = xyes; then :
db137867 12133
7083c021 12134else
08c2568c 12135 as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
7083c021 12136fi
db137867 12137
db137867 12138
db137867 12139
7083c021
AC
12140ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
12141#include <sys/socket.h>
12142"
08c2568c 12143if test "x$ac_cv_type_sa_family_t" = xyes; then :
db137867
AC
12144
12145else
db137867 12146
7083c021 12147$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
db137867
AC
12148
12149fi
db137867 12150
db137867 12151
db137867 12152
7083c021
AC
12153for 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
12154do :
12155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12156ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 12157if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
12158 cat >>confdefs.h <<_ACEOF
12159#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12160_ACEOF
db137867 12161
7083c021
AC
12162fi
12163done
db137867 12164
db137867 12165
7083c021
AC
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12167$as_echo_n "checking for library containing nanosleep... " >&6; }
08c2568c 12168if ${ac_cv_search_nanosleep+:} false; then :
030272f3 12169 $as_echo_n "(cached) " >&6
db137867 12170else
7083c021
AC
12171 ac_func_search_save_LIBS=$LIBS
12172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
12173/* end confdefs.h. */
12174
7083c021
AC
12175/* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12178#ifdef __cplusplus
12179extern "C"
12180#endif
12181char nanosleep ();
db137867
AC
12182int
12183main ()
12184{
7083c021 12185return nanosleep ();
030272f3 12186 ;
db137867 12187 return 0;
030272f3
VY
12188}
12189_ACEOF
7083c021
AC
12190for ac_lib in '' rt posix4; do
12191 if test -z "$ac_lib"; then
12192 ac_res="none required"
12193 else
12194 ac_res=-l$ac_lib
12195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12196 fi
12197 if ac_fn_c_try_link "$LINENO"; then :
12198 ac_cv_search_nanosleep=$ac_res
12199fi
12200rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext
08c2568c 12202 if ${ac_cv_search_nanosleep+:} false; then :
7083c021
AC
12203 break
12204fi
12205done
08c2568c 12206if ${ac_cv_search_nanosleep+:} false; then :
030272f3 12207
7083c021
AC
12208else
12209 ac_cv_search_nanosleep=no
12210fi
12211rm conftest.$ac_ext
12212LIBS=$ac_func_search_save_LIBS
12213fi
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12215$as_echo "$ac_cv_search_nanosleep" >&6; }
12216ac_res=$ac_cv_search_nanosleep
12217if test "$ac_res" != no; then :
12218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
030272f3 12219
7083c021
AC
12220$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
12221
12222fi
12223
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
12225$as_echo_n "checking for library containing timer_create... " >&6; }
08c2568c 12226if ${ac_cv_search_timer_create+:} false; then :
7083c021
AC
12227 $as_echo_n "(cached) " >&6
12228else
12229 ac_func_search_save_LIBS=$LIBS
12230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231/* end confdefs.h. */
030272f3 12232
7083c021
AC
12233/* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236#ifdef __cplusplus
12237extern "C"
12238#endif
12239char timer_create ();
030272f3
VY
12240int
12241main ()
12242{
7083c021 12243return timer_create ();
db137867
AC
12244 ;
12245 return 0;
12246}
12247_ACEOF
7083c021
AC
12248for ac_lib in '' rt; do
12249 if test -z "$ac_lib"; then
12250 ac_res="none required"
12251 else
12252 ac_res=-l$ac_lib
12253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12254 fi
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 ac_cv_search_timer_create=$ac_res
12257fi
12258rm -f core conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext
08c2568c 12260 if ${ac_cv_search_timer_create+:} false; then :
7083c021 12261 break
030272f3 12262fi
7083c021 12263done
08c2568c 12264if ${ac_cv_search_timer_create+:} false; then :
030272f3 12265
db137867 12266else
7083c021 12267 ac_cv_search_timer_create=no
db137867 12268fi
7083c021
AC
12269rm conftest.$ac_ext
12270LIBS=$ac_func_search_save_LIBS
db137867 12271fi
7083c021
AC
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
12273$as_echo "$ac_cv_search_timer_create" >&6; }
12274ac_res=$ac_cv_search_timer_create
12275if test "$ac_res" != no; then :
12276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
db137867 12277
7083c021 12278$as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
db137867 12279
7083c021 12280fi
db137867 12281
7083c021
AC
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
12283$as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
08c2568c 12284if ${rb__cv_timer_create_works+:} false; then :
7083c021
AC
12285 $as_echo_n "(cached) " >&6
12286else
12287 if test "$cross_compiling" = yes; then :
12288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
12290as_fn_error $? "cannot run test program while cross compiling
12291See \`config.log' for more details" "$LINENO" 5; }
db137867 12292else
7083c021
AC
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294/* end confdefs.h. */
db137867 12295
7083c021
AC
12296#ifdef HAVE_TIME_H
12297#include <time.h>
12298#endif
12299#ifdef HAVE_SIGNAL_H
12300#include <signal.h>
12301#endif
12302#ifdef HAVE_UNISTD_H
12303#include <unistd.h>
12304#endif
12305int main(int argc, char *argv[])
12306{
12307#if HAVE_TIMER_CREATE
12308 struct sigevent ev;
12309 timer_t timer;
12310 ev.sigev_notify = SIGEV_SIGNAL;
12311 ev.sigev_signo = SIGVTALRM;
12312 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
12313 return 1;
12314 }
12315#else
12316 return 1;
12317#endif
12318 return 0;
12319}
db137867 12320
7083c021
AC
12321_ACEOF
12322if ac_fn_c_try_run "$LINENO"; then :
12323 rb__cv_timer_create_works=yes
12324else
12325 rb__cv_timer_create_works=no
12326fi
12327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12328 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
12329fi
12330
12331
7083c021
AC
12332fi
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
12334$as_echo "$rb__cv_timer_create_works" >&6; }
12335case $rb__cv_timer_create_works in
12336 yes)
12337$as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
12338;;
12339esac
db137867 12340
7083c021
AC
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
12342$as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
08c2568c 12343if ${rb__cv_timerfd_create_works+:} false; then :
7083c021
AC
12344 $as_echo_n "(cached) " >&6
12345else
12346 if test "$cross_compiling" = yes; then :
12347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
08c2568c
EM
12349as_fn_error $? "cannot run test program while cross compiling
12350See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
12351else
12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353/* end confdefs.h. */
db137867 12354
7083c021
AC
12355#ifdef HAVE_TIME_H
12356#include <time.h>
12357#endif
12358#ifdef HAVE_SIGNAL_H
12359#include <signal.h>
12360#endif
12361#ifdef HAVE_UNISTD_H
12362#include <unistd.h>
12363#endif
12364#ifdef HAVE_SYS_TIMERFD_H
12365#include <sys/timerfd.h>
12366#endif
12367int main(int argc, char *argv[])
12368{
12369#if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
12370 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
12371 return 1;
12372 }
12373#else
12374 return 1;
12375#endif
12376 return 0;
12377}
db137867 12378
7083c021
AC
12379_ACEOF
12380if ac_fn_c_try_run "$LINENO"; then :
12381 rb__cv_timerfd_create_works=yes
12382else
12383 rb__cv_timerfd_create_works=no
12384fi
12385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12386 conftest.$ac_objext conftest.beam conftest.$ac_ext
12387fi
db137867 12388
db137867
AC
12389
12390fi
7083c021
AC
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
12392$as_echo "$rb__cv_timerfd_create_works" >&6; }
12393case $rb__cv_timerfd_create_works in
12394 yes)
12395$as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
12396;;
12397esac
db137867 12398
7083c021
AC
12399
12400# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12401# for constant arguments. Useless!
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12403$as_echo_n "checking for working alloca.h... " >&6; }
08c2568c 12404if ${ac_cv_working_alloca_h+:} false; then :
030272f3 12405 $as_echo_n "(cached) " >&6
db137867 12406else
7083c021 12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 12408/* end confdefs.h. */
7083c021 12409#include <alloca.h>
030272f3
VY
12410int
12411main ()
12412{
7083c021
AC
12413char *p = (char *) alloca (2 * sizeof (int));
12414 if (p) return 0;
db137867
AC
12415 ;
12416 return 0;
12417}
12418_ACEOF
7083c021
AC
12419if ac_fn_c_try_link "$LINENO"; then :
12420 ac_cv_working_alloca_h=yes
030272f3 12421else
7083c021 12422 ac_cv_working_alloca_h=no
db137867 12423fi
7083c021
AC
12424rm -f core conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
030272f3 12426fi
7083c021
AC
12427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12428$as_echo "$ac_cv_working_alloca_h" >&6; }
12429if test $ac_cv_working_alloca_h = yes; then
db137867 12430
7083c021 12431$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
db137867
AC
12432
12433fi
12434
7083c021
AC
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12436$as_echo_n "checking for alloca... " >&6; }
08c2568c 12437if ${ac_cv_func_alloca_works+:} false; then :
030272f3 12438 $as_echo_n "(cached) " >&6
db137867 12439else
7083c021 12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12441/* end confdefs.h. */
7083c021
AC
12442#ifdef __GNUC__
12443# define alloca __builtin_alloca
12444#else
12445# ifdef _MSC_VER
12446# include <malloc.h>
12447# define alloca _alloca
12448# else
12449# ifdef HAVE_ALLOCA_H
12450# include <alloca.h>
12451# else
12452# ifdef _AIX
12453 #pragma alloca
12454# else
12455# ifndef alloca /* predefined by HP cc +Olibcalls */
08c2568c 12456void *alloca (size_t);
7083c021
AC
12457# endif
12458# endif
12459# endif
12460# endif
db137867 12461#endif
7083c021 12462
db137867
AC
12463int
12464main ()
12465{
7083c021
AC
12466char *p = (char *) alloca (1);
12467 if (p) return 0;
db137867
AC
12468 ;
12469 return 0;
12470}
12471_ACEOF
7083c021
AC
12472if ac_fn_c_try_link "$LINENO"; then :
12473 ac_cv_func_alloca_works=yes
db137867 12474else
7083c021 12475 ac_cv_func_alloca_works=no
db137867 12476fi
7083c021
AC
12477rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
db137867 12479fi
7083c021
AC
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12481$as_echo "$ac_cv_func_alloca_works" >&6; }
db137867 12482
7083c021 12483if test $ac_cv_func_alloca_works = yes; then
db137867 12484
7083c021 12485$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
db137867 12486
db137867 12487else
7083c021
AC
12488 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12489# that cause trouble. Some versions do not even contain alloca or
12490# contain a buggy version. If you still want to use their alloca,
12491# use ar to extract alloca.o from them instead of compiling alloca.c.
db137867 12492
7083c021 12493ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
db137867 12494
7083c021 12495$as_echo "#define C_ALLOCA 1" >>confdefs.h
db137867
AC
12496
12497
7083c021
AC
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12499$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
08c2568c 12500if ${ac_cv_os_cray+:} false; then :
030272f3 12501 $as_echo_n "(cached) " >&6
db137867 12502else
7083c021 12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12504/* end confdefs.h. */
7083c021
AC
12505#if defined CRAY && ! defined CRAY2
12506webecray
12507#else
12508wenotbecray
12509#endif
db137867 12510
db137867 12511_ACEOF
7083c021
AC
12512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12513 $EGREP "webecray" >/dev/null 2>&1; then :
12514 ac_cv_os_cray=yes
db137867 12515else
7083c021 12516 ac_cv_os_cray=no
db137867 12517fi
7083c021 12518rm -f conftest*
db137867 12519
db137867 12520fi
7083c021
AC
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12522$as_echo "$ac_cv_os_cray" >&6; }
12523if test $ac_cv_os_cray = yes; then
12524 for ac_func in _getb67 GETB67 getb67; do
12525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12526ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 12527if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
db137867 12528
7083c021
AC
12529cat >>confdefs.h <<_ACEOF
12530#define CRAY_STACKSEG_END $ac_func
12531_ACEOF
db137867 12532
7083c021
AC
12533 break
12534fi
db137867 12535
7083c021
AC
12536 done
12537fi
db137867 12538
7083c021
AC
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12540$as_echo_n "checking stack direction for C alloca... " >&6; }
08c2568c 12541if ${ac_cv_c_stack_direction+:} false; then :
030272f3 12542 $as_echo_n "(cached) " >&6
db137867 12543else
7083c021
AC
12544 if test "$cross_compiling" = yes; then :
12545 ac_cv_c_stack_direction=0
12546else
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12548/* end confdefs.h. */
7083c021 12549$ac_includes_default
db137867 12550int
7083c021 12551find_stack_direction ()
db137867 12552{
7083c021
AC
12553 static char *addr = 0;
12554 auto char dummy;
12555 if (addr == 0)
12556 {
12557 addr = &dummy;
12558 return find_stack_direction ();
12559 }
12560 else
12561 return (&dummy > addr) ? 1 : -1;
030272f3 12562}
030272f3
VY
12563
12564int
12565main ()
12566{
7083c021 12567 return find_stack_direction () < 0;
db137867
AC
12568}
12569_ACEOF
7083c021
AC
12570if ac_fn_c_try_run "$LINENO"; then :
12571 ac_cv_c_stack_direction=1
030272f3 12572else
7083c021 12573 ac_cv_c_stack_direction=-1
030272f3 12574fi
7083c021
AC
12575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12576 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
12577fi
12578
db137867 12579fi
7083c021
AC
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12581$as_echo "$ac_cv_c_stack_direction" >&6; }
12582cat >>confdefs.h <<_ACEOF
12583#define STACK_DIRECTION $ac_cv_c_stack_direction
db137867
AC
12584_ACEOF
12585
db137867 12586
7083c021 12587fi
db137867 12588
7083c021
AC
12589for ac_header in vfork.h
12590do :
12591 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
08c2568c 12592if test "x$ac_cv_header_vfork_h" = xyes; then :
7083c021
AC
12593 cat >>confdefs.h <<_ACEOF
12594#define HAVE_VFORK_H 1
12595_ACEOF
db137867 12596
7083c021 12597fi
db137867 12598
7083c021 12599done
a9fb3ed0 12600
7083c021
AC
12601for ac_func in fork vfork
12602do :
12603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12604ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
08c2568c 12605if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
12606 cat >>confdefs.h <<_ACEOF
12607#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12608_ACEOF
a9fb3ed0 12609
7083c021
AC
12610fi
12611done
3202e249 12612
7083c021
AC
12613if test "x$ac_cv_func_fork" = xyes; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12615$as_echo_n "checking for working fork... " >&6; }
08c2568c 12616if ${ac_cv_func_fork_works+:} false; then :
030272f3 12617 $as_echo_n "(cached) " >&6
db137867 12618else
7083c021
AC
12619 if test "$cross_compiling" = yes; then :
12620 ac_cv_func_fork_works=cross
12621else
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12623/* end confdefs.h. */
7083c021 12624$ac_includes_default
db137867
AC
12625int
12626main ()
12627{
7083c021
AC
12628
12629 /* By Ruediger Kuhlmann. */
12630 return fork () < 0;
12631
db137867
AC
12632 ;
12633 return 0;
12634}
12635_ACEOF
7083c021
AC
12636if ac_fn_c_try_run "$LINENO"; then :
12637 ac_cv_func_fork_works=yes
db137867 12638else
7083c021 12639 ac_cv_func_fork_works=no
db137867 12640fi
7083c021
AC
12641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12642 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867 12643fi
db137867
AC
12644
12645fi
7083c021
AC
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12647$as_echo "$ac_cv_func_fork_works" >&6; }
db137867 12648
7083c021
AC
12649else
12650 ac_cv_func_fork_works=$ac_cv_func_fork
12651fi
12652if test "x$ac_cv_func_fork_works" = xcross; then
12653 case $host in
12654 *-*-amigaos* | *-*-msdosdjgpp*)
12655 # Override, as these systems have only a dummy fork() stub
12656 ac_cv_func_fork_works=no
12657 ;;
12658 *)
12659 ac_cv_func_fork_works=yes
12660 ;;
12661 esac
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12663$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12664fi
12665ac_cv_func_vfork_works=$ac_cv_func_vfork
12666if test "x$ac_cv_func_vfork" = xyes; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12668$as_echo_n "checking for working vfork... " >&6; }
08c2568c 12669if ${ac_cv_func_vfork_works+:} false; then :
030272f3 12670 $as_echo_n "(cached) " >&6
db137867 12671else
7083c021
AC
12672 if test "$cross_compiling" = yes; then :
12673 ac_cv_func_vfork_works=cross
12674else
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12676/* end confdefs.h. */
7083c021
AC
12677/* Thanks to Paul Eggert for this test. */
12678$ac_includes_default
12679#include <sys/wait.h>
12680#ifdef HAVE_VFORK_H
12681# include <vfork.h>
12682#endif
12683/* On some sparc systems, changes by the child to local and incoming
12684 argument registers are propagated back to the parent. The compiler
12685 is told about this with #include <vfork.h>, but some compilers
12686 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12687 static variable whose address is put into a register that is
12688 clobbered by the vfork. */
12689static void
db137867 12690#ifdef __cplusplus
7083c021
AC
12691sparc_address_test (int arg)
12692# else
12693sparc_address_test (arg) int arg;
db137867 12694#endif
7083c021
AC
12695{
12696 static pid_t child;
12697 if (!child) {
12698 child = vfork ();
12699 if (child < 0) {
12700 perror ("vfork");
12701 _exit(2);
12702 }
12703 if (!child) {
12704 arg = getpid();
12705 write(-1, "", 0);
12706 _exit (arg);
12707 }
12708 }
12709}
12710
db137867
AC
12711int
12712main ()
12713{
7083c021
AC
12714 pid_t parent = getpid ();
12715 pid_t child;
12716
12717 sparc_address_test (0);
12718
12719 child = vfork ();
12720
12721 if (child == 0) {
12722 /* Here is another test for sparc vfork register problems. This
12723 test uses lots of local variables, at least as many local
12724 variables as main has allocated so far including compiler
12725 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12726 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12727 reuse the register of parent for one of the local variables,
12728 since it will think that parent can't possibly be used any more
12729 in this routine. Assigning to the local variable will thus
12730 munge parent in the parent process. */
12731 pid_t
12732 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12733 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12734 /* Convince the compiler that p..p7 are live; otherwise, it might
12735 use the same hardware register for all 8 local variables. */
12736 if (p != p1 || p != p2 || p != p3 || p != p4
12737 || p != p5 || p != p6 || p != p7)
12738 _exit(1);
db137867 12739
7083c021
AC
12740 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12741 from child file descriptors. If the child closes a descriptor
12742 before it execs or exits, this munges the parent's descriptor
12743 as well. Test for this by closing stdout in the child. */
12744 _exit(close(fileno(stdout)) != 0);
12745 } else {
12746 int status;
12747 struct stat st;
db137867 12748
7083c021
AC
12749 while (wait(&status) != child)
12750 ;
12751 return (
12752 /* Was there some problem with vforking? */
12753 child < 0
db137867 12754
7083c021
AC
12755 /* Did the child fail? (This shouldn't happen.) */
12756 || status
12757
12758 /* Did the vfork/compiler bug occur? */
12759 || parent != getpid()
12760
12761 /* Did the file descriptor bug occur? */
12762 || fstat(fileno(stdout), &st) != 0
12763 );
12764 }
12765}
12766_ACEOF
12767if ac_fn_c_try_run "$LINENO"; then :
12768 ac_cv_func_vfork_works=yes
db137867 12769else
7083c021 12770 ac_cv_func_vfork_works=no
db137867 12771fi
7083c021
AC
12772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12773 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867 12774fi
db137867 12775
7083c021
AC
12776fi
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12778$as_echo "$ac_cv_func_vfork_works" >&6; }
db137867 12779
7083c021
AC
12780fi;
12781if test "x$ac_cv_func_fork_works" = xcross; then
12782 ac_cv_func_vfork_works=$ac_cv_func_vfork
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12784$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
db137867
AC
12785fi
12786
7083c021
AC
12787if test "x$ac_cv_func_vfork_works" = xyes; then
12788
12789$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
db137867 12790
db137867 12791else
db137867 12792
7083c021 12793$as_echo "#define vfork fork" >>confdefs.h
db137867
AC
12794
12795fi
7083c021
AC
12796if test "x$ac_cv_func_fork_works" = xyes; then
12797
12798$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
db137867 12799
db137867 12800fi
7083c021 12801
96f4052b
AC
12802
12803
12804
12805 for ac_header in $ac_header_list
7083c021
AC
12806do :
12807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
96f4052b
AC
12808ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12809"
08c2568c 12810if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
12811 cat >>confdefs.h <<_ACEOF
12812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12813_ACEOF
12814
db137867 12815fi
db137867 12816
7083c021
AC
12817done
12818
96f4052b
AC
12819
12820
12821
12822
12823
12824
12825
7083c021
AC
12826for ac_func in getpagesize
12827do :
12828 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
08c2568c 12829if test "x$ac_cv_func_getpagesize" = xyes; then :
7083c021
AC
12830 cat >>confdefs.h <<_ACEOF
12831#define HAVE_GETPAGESIZE 1
db137867
AC
12832_ACEOF
12833
12834fi
7083c021 12835done
db137867 12836
7083c021
AC
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12838$as_echo_n "checking for working mmap... " >&6; }
08c2568c 12839if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
030272f3 12840 $as_echo_n "(cached) " >&6
db137867 12841else
7083c021
AC
12842 if test "$cross_compiling" = yes; then :
12843 ac_cv_func_mmap_fixed_mapped=no
12844else
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12846/* end confdefs.h. */
7083c021
AC
12847$ac_includes_default
12848/* malloc might have been renamed as rpl_malloc. */
12849#undef malloc
db137867 12850
7083c021
AC
12851/* Thanks to Mike Haertel and Jim Avera for this test.
12852 Here is a matrix of mmap possibilities:
12853 mmap private not fixed
12854 mmap private fixed at somewhere currently unmapped
12855 mmap private fixed at somewhere already mapped
12856 mmap shared not fixed
12857 mmap shared fixed at somewhere currently unmapped
12858 mmap shared fixed at somewhere already mapped
12859 For private mappings, we should verify that changes cannot be read()
12860 back from the file, nor mmap's back from the file at a different
12861 address. (There have been systems where private was not correctly
12862 implemented like the infamous i386 svr4.0, and systems where the
12863 VM page cache was not coherent with the file system buffer cache
12864 like early versions of FreeBSD and possibly contemporary NetBSD.)
12865 For shared mappings, we should conversely verify that changes get
12866 propagated back to all the places they're supposed to be.
12867
12868 Grep wants private fixed already mapped.
12869 The main things grep needs to know about mmap are:
12870 * does it exist and is it safe to write into the mmap'd area
12871 * how to use it (BSD variants) */
12872
12873#include <fcntl.h>
12874#include <sys/mman.h>
12875
12876#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12877char *malloc ();
db137867 12878#endif
7083c021
AC
12879
12880/* This mess was copied from the GNU getpagesize.h. */
12881#ifndef HAVE_GETPAGESIZE
7083c021
AC
12882# ifdef _SC_PAGESIZE
12883# define getpagesize() sysconf(_SC_PAGESIZE)
12884# else /* no _SC_PAGESIZE */
12885# ifdef HAVE_SYS_PARAM_H
12886# include <sys/param.h>
12887# ifdef EXEC_PAGESIZE
12888# define getpagesize() EXEC_PAGESIZE
12889# else /* no EXEC_PAGESIZE */
12890# ifdef NBPG
12891# define getpagesize() NBPG * CLSIZE
12892# ifndef CLSIZE
12893# define CLSIZE 1
12894# endif /* no CLSIZE */
12895# else /* no NBPG */
12896# ifdef NBPC
12897# define getpagesize() NBPC
12898# else /* no NBPC */
12899# ifdef PAGESIZE
12900# define getpagesize() PAGESIZE
12901# endif /* PAGESIZE */
12902# endif /* no NBPC */
12903# endif /* no NBPG */
12904# endif /* no EXEC_PAGESIZE */
12905# else /* no HAVE_SYS_PARAM_H */
12906# define getpagesize() 8192 /* punt totally */
12907# endif /* no HAVE_SYS_PARAM_H */
12908# endif /* no _SC_PAGESIZE */
12909
12910#endif /* no HAVE_GETPAGESIZE */
12911
12912int
12913main ()
db137867 12914{
7083c021 12915 char *data, *data2, *data3;
5a241f54 12916 const char *cdata2;
7083c021 12917 int i, pagesize;
96f4052b 12918 int fd, fd2;
7083c021
AC
12919
12920 pagesize = getpagesize ();
12921
12922 /* First, make a file with some known garbage in it. */
12923 data = (char *) malloc (pagesize);
12924 if (!data)
12925 return 1;
12926 for (i = 0; i < pagesize; ++i)
12927 *(data + i) = rand ();
12928 umask (0);
12929 fd = creat ("conftest.mmap", 0600);
12930 if (fd < 0)
96f4052b 12931 return 2;
7083c021 12932 if (write (fd, data, pagesize) != pagesize)
96f4052b 12933 return 3;
7083c021
AC
12934 close (fd);
12935
96f4052b
AC
12936 /* Next, check that the tail of a page is zero-filled. File must have
12937 non-zero length, otherwise we risk SIGBUS for entire page. */
12938 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12939 if (fd2 < 0)
12940 return 4;
5a241f54
AC
12941 cdata2 = "";
12942 if (write (fd2, cdata2, 1) != 1)
96f4052b 12943 return 5;
5a241f54 12944 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
96f4052b
AC
12945 if (data2 == MAP_FAILED)
12946 return 6;
12947 for (i = 0; i < pagesize; ++i)
12948 if (*(data2 + i))
12949 return 7;
12950 close (fd2);
12951 if (munmap (data2, pagesize))
12952 return 8;
12953
7083c021
AC
12954 /* Next, try to mmap the file at a fixed address which already has
12955 something else allocated at it. If we can, also make sure that
12956 we see the same garbage. */
12957 fd = open ("conftest.mmap", O_RDWR);
12958 if (fd < 0)
96f4052b 12959 return 9;
7083c021
AC
12960 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
96f4052b 12962 return 10;
7083c021
AC
12963 for (i = 0; i < pagesize; ++i)
12964 if (*(data + i) != *(data2 + i))
96f4052b 12965 return 11;
7083c021
AC
12966
12967 /* Finally, make sure that changes to the mapped area do not
12968 percolate back to the file as seen by read(). (This is a bug on
12969 some variants of i386 svr4.0.) */
12970 for (i = 0; i < pagesize; ++i)
12971 *(data2 + i) = *(data2 + i) + 1;
12972 data3 = (char *) malloc (pagesize);
12973 if (!data3)
96f4052b 12974 return 12;
7083c021 12975 if (read (fd, data3, pagesize) != pagesize)
96f4052b 12976 return 13;
7083c021
AC
12977 for (i = 0; i < pagesize; ++i)
12978 if (*(data + i) != *(data3 + i))
96f4052b 12979 return 14;
7083c021
AC
12980 close (fd);
12981 return 0;
db137867 12982}
db137867 12983_ACEOF
7083c021
AC
12984if ac_fn_c_try_run "$LINENO"; then :
12985 ac_cv_func_mmap_fixed_mapped=yes
db137867 12986else
7083c021 12987 ac_cv_func_mmap_fixed_mapped=no
db137867 12988fi
7083c021
AC
12989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12990 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
12991fi
12992
7083c021
AC
12993fi
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12995$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12996if test $ac_cv_func_mmap_fixed_mapped = yes; then
db137867 12997
7083c021 12998$as_echo "#define HAVE_MMAP 1" >>confdefs.h
db137867
AC
12999
13000fi
96f4052b 13001rm -f conftest.mmap conftest.txt
db137867 13002
3202e249 13003
7083c021
AC
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
13005$as_echo_n "checking for /dev/poll... " >&6; }
13006if test -c "/dev/poll"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008$as_echo "yes" >&6; }
3202e249 13009
7083c021 13010$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
3202e249 13011
7083c021
AC
13012else
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014$as_echo "no" >&6; }
3202e249
VY
13015fi
13016
13017
7083c021
AC
13018if test "$is_mingw" = "yes"; then
13019
13020$as_echo "#define HAVE_WIN32 1" >>confdefs.h
3202e249
VY
13021
13022fi
3202e249 13023
db137867 13024
7083c021
AC
13025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13026$as_echo_n "checking for OpenSSL... " >&6; }
13027# Check whether --enable-openssl was given.
13028if test "${enable_openssl+set}" = set; then :
13029 enableval=$enable_openssl; cf_enable_openssl=$enableval
db137867 13030else
7083c021 13031 cf_enable_openssl="auto"
db137867
AC
13032fi
13033
db137867 13034
7083c021
AC
13035if test "$cf_enable_openssl" != "no" ; then
13036 cf_openssl_basedir=""
13037 if test "$cf_enable_openssl" != "auto" &&
13038 test "$cf_enable_openssl" != "yes" ; then
13039 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
13040 else
13041 for dirs in /usr/local/ssl /usr/pkg /usr/local \
13042 /usr/local/openssl ; do
13043 if test -f "${dirs}/include/openssl/opensslv.h" ; then
13044 cf_openssl_basedir="${dirs}"
13045 break
13046 fi
13047 done
13048 unset dirs
13049 fi
13050 if test ! -z "$cf_openssl_basedir"; then
13051 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
13052 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
13053 SSL_LIBS="-L${cf_openssl_basedir}/lib"
13054 else
13055 cf_openssl_basedir=""
13056 fi
13057 else
13058 if test -f "/usr/include/openssl/opensslv.h" ; then
13059 cf_openssl_basedir="/usr"
13060 fi
13061 fi
db137867 13062
7083c021
AC
13063 if test ! -z "$cf_openssl_basedir"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13065$as_echo "$cf_openssl_basedir" >&6; }
13066 cf_enable_openssl="yes"
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
13069$as_echo "not found. Specify a correct path?" >&6; }
13070 cf_enable_openssl="no"
13071 fi
13072 unset cf_openssl_basedir
13073else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13075$as_echo "disabled" >&6; }
db137867
AC
13076fi
13077
7083c021
AC
13078save_CPPFLAGS="$CPPFLAGS"
13079CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
13080save_LIBS="$LIBS"
13081LIBS="$LIBS $SSL_LIBS"
13082if test "$cf_enable_openssl" != no; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13084$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13085 if test "$cross_compiling" = yes; then :
13086 cf_enable_openssl=no
db137867 13087else
7083c021 13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13089/* end confdefs.h. */
7083c021
AC
13090#include <openssl/opensslv.h>
13091 #include <stdlib.h>
db137867
AC
13092int
13093main ()
13094{
7083c021
AC
13095if (OPENSSL_VERSION_NUMBER >= 0x00907000)
13096 exit(0); else exit(1);
13097 ;
13098 return 0;
13099}
db137867 13100_ACEOF
7083c021
AC
13101if ac_fn_c_try_run "$LINENO"; then :
13102 cf_enable_openssl=yes
13103else
13104 cf_enable_openssl=no
13105fi
13106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13107 conftest.$ac_objext conftest.beam conftest.$ac_ext
13108fi
db137867
AC
13109
13110
7083c021
AC
13111 if test "$cf_enable_openssl" != no; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13113$as_echo "found" >&6; }
13114 else
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13116$as_echo "no - OpenSSL support disabled" >&6; }
13117 fi
db137867 13118
db137867 13119fi
db137867 13120
7083c021
AC
13121
13122if test "$cf_enable_openssl" != no; then
13123 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
13125$as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
08c2568c 13126if ${ac_cv_lib_crypto_RAND_status+:} false; then :
030272f3 13127 $as_echo_n "(cached) " >&6
db137867 13128else
7083c021
AC
13129 ac_check_lib_save_LIBS=$LIBS
13130LIBS="-lcrypto $LIBS"
13131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13132/* end confdefs.h. */
db137867
AC
13133
13134/* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13137#ifdef __cplusplus
13138extern "C"
13139#endif
7083c021 13140char RAND_status ();
db137867
AC
13141int
13142main ()
13143{
7083c021 13144return RAND_status ();
db137867
AC
13145 ;
13146 return 0;
13147}
13148_ACEOF
7083c021
AC
13149if ac_fn_c_try_link "$LINENO"; then :
13150 ac_cv_lib_crypto_RAND_status=yes
db137867 13151else
7083c021 13152 ac_cv_lib_crypto_RAND_status=no
db137867 13153fi
7083c021
AC
13154rm -f core conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156LIBS=$ac_check_lib_save_LIBS
db137867 13157fi
7083c021
AC
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
13159$as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
08c2568c 13160if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then :
7083c021
AC
13161 cf_enable_openssl=yes
13162else
13163 cf_enable_openssl=no
db137867
AC
13164fi
13165
db137867
AC
13166fi
13167
7083c021
AC
13168if test "$cf_enable_openssl" != no; then
13169 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
13171$as_echo_n "checking for SSL_read in -lssl... " >&6; }
08c2568c 13172if ${ac_cv_lib_ssl_SSL_read+:} false; then :
030272f3 13173 $as_echo_n "(cached) " >&6
db137867 13174else
7083c021
AC
13175 ac_check_lib_save_LIBS=$LIBS
13176LIBS="-lssl -lcrypto $LIBS"
13177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13178/* end confdefs.h. */
db137867 13179
7083c021
AC
13180/* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183#ifdef __cplusplus
13184extern "C"
13185#endif
13186char SSL_read ();
db137867
AC
13187int
13188main ()
13189{
7083c021
AC
13190return SSL_read ();
13191 ;
13192 return 0;
db137867
AC
13193}
13194_ACEOF
7083c021
AC
13195if ac_fn_c_try_link "$LINENO"; then :
13196 ac_cv_lib_ssl_SSL_read=yes
db137867 13197else
7083c021 13198 ac_cv_lib_ssl_SSL_read=no
db137867 13199fi
7083c021
AC
13200rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202LIBS=$ac_check_lib_save_LIBS
13203fi
13204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
13205$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
08c2568c 13206if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
7083c021
AC
13207 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
13208else
13209 cf_enable_openssl=no
db137867 13210fi
db137867
AC
13211
13212fi
db137867 13213
db137867
AC
13214
13215
7083c021
AC
13216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
13217$as_echo_n "checking for GnuTLS... " >&6; }
13218# Check whether --enable-gnutls was given.
13219if test "${enable_gnutls+set}" = set; then :
13220 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
13221else
13222 cf_enable_gnutls="auto"
db137867
AC
13223fi
13224
13225
7083c021
AC
13226if test "$cf_enable_gnutls" != no; then
13227
13228
13229if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13230 if test -n "$ac_tool_prefix"; then
13231 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13232set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 13235if ${ac_cv_path_PKG_CONFIG+:} false; then :
030272f3 13236 $as_echo_n "(cached) " >&6
db137867 13237else
7083c021
AC
13238 case $PKG_CONFIG in
13239 [\\/]* | ?:[\\/]*)
13240 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13241 ;;
13242 *)
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244for as_dir in $PATH
13245do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13253 fi
13254done
13255 done
13256IFS=$as_save_IFS
13257
13258 ;;
db137867 13259esac
7083c021
AC
13260fi
13261PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13262if test -n "$PKG_CONFIG"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13264$as_echo "$PKG_CONFIG" >&6; }
db137867 13265else
7083c021
AC
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267$as_echo "no" >&6; }
13268fi
13269
db137867 13270
db137867 13271fi
7083c021
AC
13272if test -z "$ac_cv_path_PKG_CONFIG"; then
13273 ac_pt_PKG_CONFIG=$PKG_CONFIG
13274 # Extract the first word of "pkg-config", so it can be a program name with args.
13275set dummy pkg-config; ac_word=$2
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277$as_echo_n "checking for $ac_word... " >&6; }
08c2568c 13278if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7083c021
AC
13279 $as_echo_n "(cached) " >&6
13280else
13281 case $ac_pt_PKG_CONFIG in
13282 [\\/]* | ?:[\\/]*)
13283 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13284 ;;
13285 *)
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287for as_dir in $PATH
13288do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13293 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 break 2
13296 fi
13297done
13298 done
13299IFS=$as_save_IFS
db137867 13300
7083c021
AC
13301 ;;
13302esac
13303fi
13304ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13305if test -n "$ac_pt_PKG_CONFIG"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13307$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13308else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310$as_echo "no" >&6; }
13311fi
db137867 13312
7083c021
AC
13313 if test "x$ac_pt_PKG_CONFIG" = x; then
13314 PKG_CONFIG=""
13315 else
13316 case $cross_compiling:$ac_tool_warned in
13317yes:)
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13320ac_tool_warned=yes ;;
db137867 13321esac
7083c021
AC
13322 PKG_CONFIG=$ac_pt_PKG_CONFIG
13323 fi
db137867 13324else
7083c021
AC
13325 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13326fi
db137867 13327
db137867 13328fi
7083c021
AC
13329if test -n "$PKG_CONFIG"; then
13330 _pkg_min_version=0.9.0
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13332$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13333 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335$as_echo "yes" >&6; }
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338$as_echo "no" >&6; }
13339 PKG_CONFIG=""
13340 fi
db137867 13341
7083c021 13342fi
db137867 13343
7083c021
AC
13344pkg_failed=no
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13346$as_echo_n "checking for GNUTLS... " >&6; }
db137867 13347
96f4052b
AC
13348if test -n "$GNUTLS_CFLAGS"; then
13349 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13350 elif test -n "$PKG_CONFIG"; then
13351 if test -n "$PKG_CONFIG" && \
7083c021
AC
13352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13353 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13354 ac_status=$?
13355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13356 test $ac_status = 0; }; then
13357 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
db137867 13358else
7083c021 13359 pkg_failed=yes
db137867 13360fi
96f4052b
AC
13361 else
13362 pkg_failed=untried
db137867 13363fi
96f4052b
AC
13364if test -n "$GNUTLS_LIBS"; then
13365 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13366 elif test -n "$PKG_CONFIG"; then
13367 if test -n "$PKG_CONFIG" && \
7083c021
AC
13368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13369 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13370 ac_status=$?
13371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13372 test $ac_status = 0; }; then
13373 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13374else
13375 pkg_failed=yes
13376fi
96f4052b
AC
13377 else
13378 pkg_failed=untried
db137867
AC
13379fi
13380
db137867
AC
13381
13382
7083c021 13383if test $pkg_failed = yes; then
db137867 13384
7083c021
AC
13385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13386 _pkg_short_errors_supported=yes
db137867 13387else
7083c021
AC
13388 _pkg_short_errors_supported=no
13389fi
13390 if test $_pkg_short_errors_supported = yes; then
96f4052b 13391 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1`
7083c021 13392 else
96f4052b 13393 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls" 2>&1`
7083c021
AC
13394 fi
13395 # Put the nasty error message in config.log where it belongs
13396 echo "$GNUTLS_PKG_ERRORS" >&5
db137867 13397
7083c021
AC
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399$as_echo "no" >&6; }
13400 cf_enable_gnutls="no"
13401elif test $pkg_failed = untried; then
13402 cf_enable_gnutls="no"
13403else
13404 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13405 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407$as_echo "yes" >&6; }
db137867 13408
7083c021 13409 cf_enable_gnutls="yes"
db137867 13410
7083c021
AC
13411fi
13412fi
db137867 13413
7083c021
AC
13414if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
13415 cf_enable_gnutls="no"
13416fi
db137867 13417
7083c021 13418if test x"$cf_enable_openssl" != xno; then
db137867 13419
7083c021 13420$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
db137867 13421
7083c021
AC
13422 GNUTLS_CFLAGS=""
13423 GNUTLS_LIBS=""
13424 SSL_TYPE="openssl"
13425elif test x"$cf_enable_gnutls" != xno; then
13426
13427$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
db137867 13428
7083c021
AC
13429 SSL_LIBS=""
13430 SSL_CFLAGS=""
13431 SSL_TYPE="gnutls"
db137867 13432fi
db137867 13433
db137867 13434
db137867 13435
db137867 13436
7083c021
AC
13437CPPFLAGS="$save_CPPFLAGS"
13438LIBS="$save_LIBS"
13439
13440
db137867
AC
13441
13442
db137867 13443
db137867 13444
7083c021
AC
13445# Check whether --enable-assert was given.
13446if test "${enable_assert+set}" = set; then :
13447 enableval=$enable_assert; assert=$enableval
13448else
13449 assert=no
13450fi
db137867 13451
db137867 13452
7083c021 13453if test "$assert" = no; then
db137867 13454
7083c021 13455$as_echo "#define NDEBUG 1" >>confdefs.h
db137867 13456
7083c021 13457elif test "$assert" = soft; then
db137867 13458
7083c021 13459$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
db137867 13460
db137867 13461
7083c021 13462$as_echo "#define NDEBUG 1" >>confdefs.h
db137867 13463
7083c021
AC
13464elif test "$assert" = yes; then
13465 assert = "hard";
13466fi
13467
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
13469$as_echo_n "checking if you want to do a profile build... " >&6; }
13470# Check whether --enable-profile was given.
13471if test "${enable_profile+set}" = set; then :
13472 enableval=$enable_profile; profile=$enableval
db137867 13473else
7083c021
AC
13474 profile=no
13475fi
13476
13477
13478if test "$profile" = yes; then
13479 if test "$ac_cv_c_compiler_gnu" = yes; then
13480 CFLAGS="$CFLAGS -pg -static"
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
13482$as_echo "yes, adding -pg -static" >&6; }
db137867 13483
7083c021
AC
13484$as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
13485
13486 else
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
13488$as_echo "no, profile builds only work with gcc" >&6; }
13489 fi
13490else
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492$as_echo "no" >&6; }
db137867 13493fi
7083c021
AC
13494
13495# Check whether --enable-balloc was given.
13496if test "${enable_balloc+set}" = set; then :
13497 enableval=$enable_balloc; balloc=$enableval
13498else
13499 balloc=yes
db137867
AC
13500fi
13501
13502
7083c021
AC
13503if test "$balloc" = no; then
13504
13505$as_echo "#define NOBALLOC 1" >>confdefs.h
13506
db137867 13507fi
db137867 13508
7083c021
AC
13509# Check whether --enable-warnings was given.
13510if test "${enable_warnings+set}" = set; then :
13511 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
db137867
AC
13512fi
13513
db137867 13514
db137867 13515
db137867 13516
db137867 13517
db137867 13518
db137867 13519
db137867
AC
13520
13521
13522
7083c021
AC
13523
13524if test "$prefix" = "NONE"; then
13525
13526cat >>confdefs.h <<_ACEOF
13527#define RB_PREFIX "$ac_default_prefix"
db137867 13528_ACEOF
7083c021
AC
13529
13530
db137867 13531else
db137867 13532
db137867 13533
7083c021 13534 prefix=`echo $prefix | sed 's/\/$//'`
db137867 13535
7083c021
AC
13536cat >>confdefs.h <<_ACEOF
13537#define RB_PREFIX "$prefix"
db137867 13538_ACEOF
db137867 13539
7083c021 13540
db137867
AC
13541fi
13542
db137867 13543
db137867 13544
7083c021 13545ac_config_commands="$ac_config_commands include/librb-config.h"
db137867 13546
db137867 13547
db137867 13548
7083c021 13549ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
db137867
AC
13550
13551
7083c021
AC
13552cat >confcache <<\_ACEOF
13553# This file is a shell script that caches the results of configure
13554# tests run on this system so they can be shared between configure
13555# scripts and configure runs, see configure's option --config-cache.
13556# It is not useful on other systems. If it contains results you don't
13557# want to keep, you may remove or edit it.
13558#
13559# config.status only pays attention to the cache file if you give it
13560# the --recheck option to rerun configure.
13561#
13562# `ac_cv_env_foo' variables (set or unset) will be overridden when
13563# loading this file, other *unset* `ac_cv_foo' will be assigned the
13564# following values.
13565
db137867 13566_ACEOF
db137867 13567
7083c021
AC
13568# The following way of writing the cache mishandles newlines in values,
13569# but we know of no workaround that is simple, portable, and efficient.
13570# So, we kill variables containing newlines.
13571# Ultrix sh set writes to stderr and can't be redirected directly,
13572# and sets the high bit in the cache file unless we assign to the vars.
13573(
13574 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13575 eval ac_val=\$$ac_var
13576 case $ac_val in #(
13577 *${as_nl}*)
13578 case $ac_var in #(
13579 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13580$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13581 esac
13582 case $ac_var in #(
13583 _ | IFS | as_nl) ;; #(
13584 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13585 *) { eval $ac_var=; unset $ac_var;} ;;
13586 esac ;;
13587 esac
13588 done
13589
13590 (set) 2>&1 |
13591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13592 *${as_nl}ac_space=\ *)
13593 # `set' does not quote correctly, so add quotes: double-quote
13594 # substitution turns \\\\ into \\, and sed turns \\ into \.
13595 sed -n \
13596 "s/'/'\\\\''/g;
13597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13598 ;; #(
13599 *)
13600 # `set' quotes correctly as required by POSIX, so do not add quotes.
13601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13602 ;;
13603 esac |
13604 sort
13605) |
13606 sed '
13607 /^ac_cv_env_/b end
13608 t clear
13609 :clear
13610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13611 t end
13612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13613 :end' >>confcache
13614if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13615 if test -w "$cache_file"; then
08c2568c 13616 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13618$as_echo "$as_me: updating cache $cache_file" >&6;}
08c2568c
EM
13619 if test ! -f "$cache_file" || test -h "$cache_file"; then
13620 cat confcache >"$cache_file"
13621 else
13622 case $cache_file in #(
13623 */* | ?:*)
13624 mv -f confcache "$cache_file"$$ &&
13625 mv -f "$cache_file"$$ "$cache_file" ;; #(
13626 *)
13627 mv -f confcache "$cache_file" ;;
13628 esac
13629 fi
13630 fi
7083c021
AC
13631 else
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13633$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13634 fi
13635fi
13636rm -f confcache
13637
13638test "x$prefix" = xNONE && prefix=$ac_default_prefix
13639# Let make expand exec_prefix.
13640test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
db137867 13641
7083c021 13642DEFS=-DHAVE_CONFIG_H
db137867 13643
7083c021
AC
13644ac_libobjs=
13645ac_ltlibobjs=
08c2568c 13646U=
7083c021
AC
13647for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13648 # 1. Remove the extension, and $U if already installed.
13649 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13650 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13652 # will be set to the directory where LIBOBJS objects are built.
13653 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13654 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13655done
13656LIBOBJS=$ac_libobjs
db137867 13657
7083c021 13658LTLIBOBJS=$ac_ltlibobjs
db137867 13659
db137867 13660
7083c021
AC
13661 if test -n "$EXEEXT"; then
13662 am__EXEEXT_TRUE=
13663 am__EXEEXT_FALSE='#'
13664else
13665 am__EXEEXT_TRUE='#'
13666 am__EXEEXT_FALSE=
db137867
AC
13667fi
13668
7083c021 13669if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
08c2568c 13670 as_fn_error $? "conditional \"AMDEP\" was never defined.
7083c021 13671Usually this means the macro was only invoked conditionally." "$LINENO" 5
db137867 13672fi
7083c021 13673if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
08c2568c 13674 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7083c021
AC
13675Usually this means the macro was only invoked conditionally." "$LINENO" 5
13676fi
13677if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
08c2568c 13678 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7083c021
AC
13679Usually this means the macro was only invoked conditionally." "$LINENO" 5
13680fi
13681if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
08c2568c 13682 as_fn_error $? "conditional \"MINGW\" was never defined.
7083c021 13683Usually this means the macro was only invoked conditionally." "$LINENO" 5
db137867 13684fi
db137867 13685
08c2568c 13686: "${CONFIG_STATUS=./config.status}"
7083c021
AC
13687ac_write_fail=0
13688ac_clean_files_save=$ac_clean_files
13689ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13691$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13692as_write_fail=0
13693cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13694#! $SHELL
13695# Generated by $as_me.
13696# Run this file to recreate the current configuration.
13697# Compiler output produced by configure, useful for debugging
13698# configure, is in config.log if it exists.
db137867 13699
7083c021
AC
13700debug=false
13701ac_cs_recheck=false
13702ac_cs_silent=false
db137867 13703
7083c021
AC
13704SHELL=\${CONFIG_SHELL-$SHELL}
13705export SHELL
13706_ASEOF
13707cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13708## -------------------- ##
13709## M4sh Initialization. ##
13710## -------------------- ##
db137867 13711
7083c021
AC
13712# Be more Bourne compatible
13713DUALCASE=1; export DUALCASE # for MKS sh
13714if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13715 emulate sh
13716 NULLCMD=:
13717 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13718 # is contrary to our usage. Disable this feature.
13719 alias -g '${1+"$@"}'='"$@"'
13720 setopt NO_GLOB_SUBST
13721else
13722 case `(set -o) 2>/dev/null` in #(
13723 *posix*) :
13724 set -o posix ;; #(
13725 *) :
13726 ;;
13727esac
13728fi
db137867 13729
db137867 13730
7083c021
AC
13731as_nl='
13732'
13733export as_nl
13734# Printing a long string crashes Solaris 7 /usr/bin/printf.
13735as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13736as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13737as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13738# Prefer a ksh shell builtin over an external printf program on Solaris,
13739# but without wasting forks for bash or zsh.
13740if test -z "$BASH_VERSION$ZSH_VERSION" \
13741 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13742 as_echo='print -r --'
13743 as_echo_n='print -rn --'
13744elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13745 as_echo='printf %s\n'
13746 as_echo_n='printf %s'
db137867 13747else
7083c021
AC
13748 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13749 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13750 as_echo_n='/usr/ucb/echo -n'
13751 else
13752 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13753 as_echo_n_body='eval
13754 arg=$1;
13755 case $arg in #(
13756 *"$as_nl"*)
13757 expr "X$arg" : "X\\(.*\\)$as_nl";
13758 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13759 esac;
13760 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13761 '
13762 export as_echo_n_body
13763 as_echo_n='sh -c $as_echo_n_body as_echo'
13764 fi
13765 export as_echo_body
13766 as_echo='sh -c $as_echo_body as_echo'
db137867 13767fi
7083c021
AC
13768
13769# The user is always right.
13770if test "${PATH_SEPARATOR+set}" != set; then
13771 PATH_SEPARATOR=:
13772 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13773 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13774 PATH_SEPARATOR=';'
13775 }
db137867
AC
13776fi
13777
13778
7083c021
AC
13779# IFS
13780# We need space, tab and new line, in precisely that order. Quoting is
13781# there to prevent editors from complaining about space-tab.
13782# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13783# splitting by setting IFS to empty value.)
13784IFS=" "" $as_nl"
db137867 13785
7083c021 13786# Find who we are. Look in the path if we contain no directory separator.
08c2568c 13787as_myself=
7083c021
AC
13788case $0 in #((
13789 *[\\/]* ) as_myself=$0 ;;
13790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13791for as_dir in $PATH
13792do
13793 IFS=$as_save_IFS
13794 test -z "$as_dir" && as_dir=.
13795 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13796 done
13797IFS=$as_save_IFS
db137867 13798
7083c021
AC
13799 ;;
13800esac
13801# We did not find ourselves, most probably we were run as `sh COMMAND'
13802# in which case we are not to be found in the path.
13803if test "x$as_myself" = x; then
13804 as_myself=$0
13805fi
13806if test ! -f "$as_myself"; then
13807 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13808 exit 1
db137867 13809fi
db137867 13810
7083c021
AC
13811# Unset variables that we do not need and which cause bugs (e.g. in
13812# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13813# suppresses any "Segmentation fault" message there. '((' could
13814# trigger a bug in pdksh 5.2.14.
13815for as_var in BASH_ENV ENV MAIL MAILPATH
13816do eval test x\${$as_var+set} = xset \
13817 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13818done
13819PS1='$ '
13820PS2='> '
13821PS4='+ '
db137867 13822
7083c021
AC
13823# NLS nuisances.
13824LC_ALL=C
13825export LC_ALL
13826LANGUAGE=C
13827export LANGUAGE
db137867 13828
7083c021
AC
13829# CDPATH.
13830(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
db137867 13831
db137867 13832
08c2568c
EM
13833# as_fn_error STATUS ERROR [LINENO LOG_FD]
13834# ----------------------------------------
7083c021
AC
13835# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13836# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
08c2568c 13837# script with STATUS, using 1 if that was 0.
7083c021
AC
13838as_fn_error ()
13839{
08c2568c
EM
13840 as_status=$1; test $as_status -eq 0 && as_status=1
13841 if test "$4"; then
13842 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13843 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 13844 fi
08c2568c 13845 $as_echo "$as_me: error: $2" >&2
7083c021
AC
13846 as_fn_exit $as_status
13847} # as_fn_error
db137867 13848
db137867 13849
7083c021
AC
13850# as_fn_set_status STATUS
13851# -----------------------
13852# Set $? to STATUS, without forking.
13853as_fn_set_status ()
13854{
13855 return $1
13856} # as_fn_set_status
13857
13858# as_fn_exit STATUS
13859# -----------------
13860# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13861as_fn_exit ()
13862{
13863 set +e
13864 as_fn_set_status $1
13865 exit $1
13866} # as_fn_exit
13867
13868# as_fn_unset VAR
13869# ---------------
13870# Portably unset VAR.
13871as_fn_unset ()
13872{
13873 { eval $1=; unset $1;}
13874}
13875as_unset=as_fn_unset
13876# as_fn_append VAR VALUE
13877# ----------------------
13878# Append the text in VALUE to the end of the definition contained in VAR. Take
13879# advantage of any shell optimizations that allow amortized linear growth over
13880# repeated appends, instead of the typical quadratic growth present in naive
13881# implementations.
13882if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13883 eval 'as_fn_append ()
13884 {
13885 eval $1+=\$2
13886 }'
13887else
13888 as_fn_append ()
13889 {
13890 eval $1=\$$1\$2
13891 }
13892fi # as_fn_append
13893
13894# as_fn_arith ARG...
13895# ------------------
13896# Perform arithmetic evaluation on the ARGs, and store the result in the
13897# global $as_val. Take advantage of shells that can avoid forks. The arguments
13898# must be portable across $(()) and expr.
13899if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13900 eval 'as_fn_arith ()
13901 {
13902 as_val=$(( $* ))
13903 }'
13904else
13905 as_fn_arith ()
13906 {
13907 as_val=`expr "$@" || test $? -eq 1`
13908 }
13909fi # as_fn_arith
13910
db137867 13911
7083c021
AC
13912if expr a : '\(a\)' >/dev/null 2>&1 &&
13913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13914 as_expr=expr
13915else
13916 as_expr=false
db137867
AC
13917fi
13918
7083c021
AC
13919if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13920 as_basename=basename
13921else
13922 as_basename=false
13923fi
db137867 13924
7083c021
AC
13925if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13926 as_dirname=dirname
db137867 13927else
7083c021 13928 as_dirname=false
db137867
AC
13929fi
13930
7083c021
AC
13931as_me=`$as_basename -- "$0" ||
13932$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13933 X"$0" : 'X\(//\)$' \| \
13934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13935$as_echo X/"$0" |
13936 sed '/^.*\/\([^/][^/]*\)\/*$/{
13937 s//\1/
13938 q
13939 }
13940 /^X\/\(\/\/\)$/{
13941 s//\1/
13942 q
13943 }
13944 /^X\/\(\/\).*/{
13945 s//\1/
13946 q
13947 }
13948 s/.*/./; q'`
db137867 13949
7083c021
AC
13950# Avoid depending upon Character Ranges.
13951as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13952as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13953as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13954as_cr_digits='0123456789'
13955as_cr_alnum=$as_cr_Letters$as_cr_digits
db137867 13956
7083c021
AC
13957ECHO_C= ECHO_N= ECHO_T=
13958case `echo -n x` in #(((((
13959-n*)
13960 case `echo 'xy\c'` in
13961 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13962 xy) ECHO_C='\c';;
13963 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13964 ECHO_T=' ';;
13965 esac;;
13966*)
13967 ECHO_N='-n';;
13968esac
13969
13970rm -f conf$$ conf$$.exe conf$$.file
13971if test -d conf$$.dir; then
13972 rm -f conf$$.dir/conf$$.file
db137867 13973else
7083c021
AC
13974 rm -f conf$$.dir
13975 mkdir conf$$.dir 2>/dev/null
db137867 13976fi
7083c021
AC
13977if (echo >conf$$.file) 2>/dev/null; then
13978 if ln -s conf$$.file conf$$ 2>/dev/null; then
13979 as_ln_s='ln -s'
13980 # ... but there are two gotchas:
13981 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13982 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13983 # In both cases, we have to default to `cp -p'.
13984 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13985 as_ln_s='cp -p'
13986 elif ln conf$$.file conf$$ 2>/dev/null; then
13987 as_ln_s=ln
13988 else
13989 as_ln_s='cp -p'
13990 fi
db137867 13991else
7083c021
AC
13992 as_ln_s='cp -p'
13993fi
13994rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13995rmdir conf$$.dir 2>/dev/null
13996
13997
13998# as_fn_mkdir_p
13999# -------------
14000# Create "$as_dir" as a directory, including parents if necessary.
14001as_fn_mkdir_p ()
db137867 14002{
db137867 14003
7083c021
AC
14004 case $as_dir in #(
14005 -*) as_dir=./$as_dir;;
14006 esac
14007 test -d "$as_dir" || eval $as_mkdir_p || {
14008 as_dirs=
14009 while :; do
14010 case $as_dir in #(
14011 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14012 *) as_qdir=$as_dir;;
14013 esac
14014 as_dirs="'$as_qdir' $as_dirs"
14015 as_dir=`$as_dirname -- "$as_dir" ||
14016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14017 X"$as_dir" : 'X\(//\)[^/]' \| \
14018 X"$as_dir" : 'X\(//\)$' \| \
14019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14020$as_echo X"$as_dir" |
14021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14022 s//\1/
14023 q
14024 }
14025 /^X\(\/\/\)[^/].*/{
14026 s//\1/
14027 q
14028 }
14029 /^X\(\/\/\)$/{
14030 s//\1/
14031 q
14032 }
14033 /^X\(\/\).*/{
14034 s//\1/
14035 q
14036 }
14037 s/.*/./; q'`
14038 test -d "$as_dir" && break
14039 done
14040 test -z "$as_dirs" || eval "mkdir $as_dirs"
08c2568c 14041 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
14042
14043
14044} # as_fn_mkdir_p
14045if mkdir -p . 2>/dev/null; then
14046 as_mkdir_p='mkdir -p "$as_dir"'
14047else
14048 test -d ./-p && rmdir ./-p
14049 as_mkdir_p=false
db137867 14050fi
7083c021
AC
14051
14052if test -x / >/dev/null 2>&1; then
14053 as_test_x='test -x'
14054else
14055 if ls -dL / >/dev/null 2>&1; then
14056 as_ls_L_option=L
14057 else
14058 as_ls_L_option=
14059 fi
14060 as_test_x='
14061 eval sh -c '\''
14062 if test -d "$1"; then
14063 test -d "$1/.";
14064 else
14065 case $1 in #(
14066 -*)set "./$1";;
14067 esac;
14068 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14069 ???[sx]*):;;*)false;;esac;fi
14070 '\'' sh
14071 '
db137867 14072fi
7083c021 14073as_executable_p=$as_test_x
db137867 14074
7083c021
AC
14075# Sed expression to map a string onto a valid CPP name.
14076as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
db137867 14077
7083c021
AC
14078# Sed expression to map a string onto a valid variable name.
14079as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
db137867 14080
db137867 14081
7083c021
AC
14082exec 6>&1
14083## ----------------------------------- ##
14084## Main body of $CONFIG_STATUS script. ##
14085## ----------------------------------- ##
14086_ASEOF
14087test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
db137867 14088
7083c021
AC
14089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14090# Save the log message, to keep $0 and so on meaningful, and to
14091# report actual input values of CONFIG_FILES etc. instead of their
14092# values after options handling.
14093ac_log="
14094This file was extended by libratbox $as_me devel, which was
08c2568c 14095generated by GNU Autoconf 2.68. Invocation command line was
db137867 14096
7083c021
AC
14097 CONFIG_FILES = $CONFIG_FILES
14098 CONFIG_HEADERS = $CONFIG_HEADERS
14099 CONFIG_LINKS = $CONFIG_LINKS
14100 CONFIG_COMMANDS = $CONFIG_COMMANDS
14101 $ $0 $@
14102
14103on `(hostname || uname -n) 2>/dev/null | sed 1q`
14104"
db137867 14105
db137867 14106_ACEOF
7083c021
AC
14107
14108case $ac_config_files in *"
14109"*) set x $ac_config_files; shift; ac_config_files=$*;;
db137867 14110esac
db137867 14111
7083c021
AC
14112case $ac_config_headers in *"
14113"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14114esac
db137867 14115
db137867 14116
7083c021
AC
14117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14118# Files that config.status was made for.
14119config_files="$ac_config_files"
14120config_headers="$ac_config_headers"
14121config_commands="$ac_config_commands"
db137867 14122
db137867 14123_ACEOF
db137867 14124
7083c021
AC
14125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14126ac_cs_usage="\
14127\`$as_me' instantiates files and other configuration actions
14128from templates according to the current configuration. Unless the files
14129and actions are specified as TAGs, all are instantiated by default.
14130
14131Usage: $0 [OPTION]... [TAG]...
14132
14133 -h, --help print this help, then exit
14134 -V, --version print version number and configuration settings, then exit
96f4052b 14135 --config print configuration, then exit
7083c021
AC
14136 -q, --quiet, --silent
14137 do not print progress messages
14138 -d, --debug don't remove temporary files
14139 --recheck update $as_me by reconfiguring in the same conditions
14140 --file=FILE[:TEMPLATE]
14141 instantiate the configuration file FILE
14142 --header=FILE[:TEMPLATE]
14143 instantiate the configuration header FILE
14144
14145Configuration files:
14146$config_files
14147
14148Configuration headers:
14149$config_headers
14150
14151Configuration commands:
14152$config_commands
14153
14154Report bugs to the package provider."
14155
db137867 14156_ACEOF
7083c021 14157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
96f4052b 14158ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7083c021
AC
14159ac_cs_version="\\
14160libratbox config.status devel
08c2568c 14161configured by $0, generated by GNU Autoconf 2.68,
96f4052b 14162 with options \\"\$ac_cs_config\\"
db137867 14163
08c2568c 14164Copyright (C) 2010 Free Software Foundation, Inc.
7083c021
AC
14165This config.status script is free software; the Free Software Foundation
14166gives unlimited permission to copy, distribute and modify it."
db137867 14167
7083c021
AC
14168ac_pwd='$ac_pwd'
14169srcdir='$srcdir'
14170INSTALL='$INSTALL'
14171MKDIR_P='$MKDIR_P'
14172AWK='$AWK'
14173test -n "\$AWK" || AWK=awk
14174_ACEOF
db137867 14175
7083c021
AC
14176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14177# The default lists apply if the user does not specify any file.
14178ac_need_defaults=:
14179while test $# != 0
14180do
14181 case $1 in
08c2568c 14182 --*=?*)
7083c021
AC
14183 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14184 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14185 ac_shift=:
14186 ;;
08c2568c
EM
14187 --*=)
14188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14189 ac_optarg=
14190 ac_shift=:
14191 ;;
7083c021
AC
14192 *)
14193 ac_option=$1
14194 ac_optarg=$2
14195 ac_shift=shift
14196 ;;
14197 esac
14198
14199 case $ac_option in
14200 # Handling of the options.
14201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14202 ac_cs_recheck=: ;;
14203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14204 $as_echo "$ac_cs_version"; exit ;;
96f4052b
AC
14205 --config | --confi | --conf | --con | --co | --c )
14206 $as_echo "$ac_cs_config"; exit ;;
7083c021
AC
14207 --debug | --debu | --deb | --de | --d | -d )
14208 debug=: ;;
14209 --file | --fil | --fi | --f )
14210 $ac_shift
14211 case $ac_optarg in
14212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
08c2568c 14213 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
14214 esac
14215 as_fn_append CONFIG_FILES " '$ac_optarg'"
14216 ac_need_defaults=false;;
14217 --header | --heade | --head | --hea )
14218 $ac_shift
14219 case $ac_optarg in
14220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14221 esac
14222 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14223 ac_need_defaults=false;;
14224 --he | --h)
14225 # Conflict between --help and --header
08c2568c 14226 as_fn_error $? "ambiguous option: \`$1'
7083c021
AC
14227Try \`$0 --help' for more information.";;
14228 --help | --hel | -h )
14229 $as_echo "$ac_cs_usage"; exit ;;
14230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14232 ac_cs_silent=: ;;
14233
14234 # This is an error.
08c2568c 14235 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021
AC
14236Try \`$0 --help' for more information." ;;
14237
14238 *) as_fn_append ac_config_targets " $1"
14239 ac_need_defaults=false ;;
14240
14241 esac
14242 shift
14243done
db137867 14244
7083c021 14245ac_configure_extra_args=
c2ac22cc 14246
7083c021
AC
14247if $ac_cs_silent; then
14248 exec 6>/dev/null
14249 ac_configure_extra_args="$ac_configure_extra_args --silent"
14250fi
c2ac22cc 14251
7083c021
AC
14252_ACEOF
14253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14254if \$ac_cs_recheck; then
14255 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14256 shift
14257 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14258 CONFIG_SHELL='$SHELL'
14259 export CONFIG_SHELL
14260 exec "\$@"
c2ac22cc
VY
14261fi
14262
7083c021
AC
14263_ACEOF
14264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14265exec 5>>config.log
14266{
14267 echo
14268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14269## Running $as_me. ##
14270_ASBOX
14271 $as_echo "$ac_log"
14272} >&5
c2ac22cc 14273
7083c021
AC
14274_ACEOF
14275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14276#
14277# INIT-COMMANDS
14278#
14279AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
c2ac22cc
VY
14280
14281
7083c021
AC
14282# The HP-UX ksh and POSIX shell print the target directory to stdout
14283# if CDPATH is set.
14284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14285
14286sed_quote_subst='$sed_quote_subst'
14287double_quote_subst='$double_quote_subst'
14288delay_variable_subst='$delay_variable_subst'
14289enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14290enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14291macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14292macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14293pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14294enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14295host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14296host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14297host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14298build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14299build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14300build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14301SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14302Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14303GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14304EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14305FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14306LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14307NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14308LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14309max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14310ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14311exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14312lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14313lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14314lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14315reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14316reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14317OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14318deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14319file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14320AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14321AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14322STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14323RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14324old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14325old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14326old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14327CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14328CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14329compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14330GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14331lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14332lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14333lt_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"`'
14334lt_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"`'
14335objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14336SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14337ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14338MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14339lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14340lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14341lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14342lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14343lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14344need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14345DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14346NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14347LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14348OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14349OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14350libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14351shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14352extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14353archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14354enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14355export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14356whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14357compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14358old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14359old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14360archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14361archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14362module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14363module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14364with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14365allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14366no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14367hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14368hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14369hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14370hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14371hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14372hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14373hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14374hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14375inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14376link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14377fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14378always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14379export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14380exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14381include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14382prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14383file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14384variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14385need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14386need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14387version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14388runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14389shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14390shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14391libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14392library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14393soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14394postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14395postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14396finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14397finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14398hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14399sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14400sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14401hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14402enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14403enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14404enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14405old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14406striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14407
14408LTCC='$LTCC'
14409LTCFLAGS='$LTCFLAGS'
14410compiler='$compiler_DEFAULT'
14411
14412# Quote evaled strings.
14413for var in SED \
14414GREP \
14415EGREP \
14416FGREP \
14417LD \
14418NM \
14419LN_S \
14420lt_SP2NL \
14421lt_NL2SP \
14422reload_flag \
14423OBJDUMP \
14424deplibs_check_method \
14425file_magic_cmd \
14426AR \
14427AR_FLAGS \
14428STRIP \
14429RANLIB \
14430CC \
14431CFLAGS \
14432compiler \
14433lt_cv_sys_global_symbol_pipe \
14434lt_cv_sys_global_symbol_to_cdecl \
14435lt_cv_sys_global_symbol_to_c_name_address \
14436lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14437SHELL \
14438ECHO \
14439lt_prog_compiler_no_builtin_flag \
14440lt_prog_compiler_wl \
14441lt_prog_compiler_pic \
14442lt_prog_compiler_static \
14443lt_cv_prog_compiler_c_o \
14444need_locks \
14445DSYMUTIL \
14446NMEDIT \
14447LIPO \
14448OTOOL \
14449OTOOL64 \
14450shrext_cmds \
14451export_dynamic_flag_spec \
14452whole_archive_flag_spec \
14453compiler_needs_object \
14454with_gnu_ld \
14455allow_undefined_flag \
14456no_undefined_flag \
14457hardcode_libdir_flag_spec \
14458hardcode_libdir_flag_spec_ld \
14459hardcode_libdir_separator \
14460fix_srcfile_path \
14461exclude_expsyms \
14462include_expsyms \
14463file_list_spec \
14464variables_saved_for_relink \
14465libname_spec \
14466library_names_spec \
14467soname_spec \
14468finish_eval \
14469old_striplib \
14470striplib; do
14471 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14472 *[\\\\\\\`\\"\\\$]*)
14473 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14474 ;;
14475 *)
14476 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14477 ;;
14478 esac
c2ac22cc 14479done
7083c021
AC
14480
14481# Double-quote double-evaled strings.
14482for var in reload_cmds \
14483old_postinstall_cmds \
14484old_postuninstall_cmds \
14485old_archive_cmds \
14486extract_expsyms_cmds \
14487old_archive_from_new_cmds \
14488old_archive_from_expsyms_cmds \
14489archive_cmds \
14490archive_expsym_cmds \
14491module_cmds \
14492module_expsym_cmds \
14493export_symbols_cmds \
14494prelink_cmds \
14495postinstall_cmds \
14496postuninstall_cmds \
14497finish_cmds \
14498sys_lib_search_path_spec \
14499sys_lib_dlsearch_path_spec; do
14500 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14501 *[\\\\\\\`\\"\\\$]*)
14502 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14503 ;;
14504 *)
14505 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14506 ;;
14507 esac
c2ac22cc 14508done
c2ac22cc 14509
7083c021
AC
14510# Fix-up fallback echo if it was mangled by the above quoting rules.
14511case \$lt_ECHO in
14512*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
c2ac22cc
VY
14513 ;;
14514esac
c2ac22cc 14515
7083c021
AC
14516ac_aux_dir='$ac_aux_dir'
14517xsi_shell='$xsi_shell'
14518lt_shell_append='$lt_shell_append'
c2ac22cc 14519
7083c021
AC
14520# See if we are running on zsh, and set the options which allow our
14521# commands through without removal of \ escapes INIT.
14522if test -n "\${ZSH_VERSION+set}" ; then
14523 setopt NO_GLOB_SUBST
c2ac22cc 14524fi
c2ac22cc 14525
c2ac22cc 14526
7083c021
AC
14527 PACKAGE='$PACKAGE'
14528 VERSION='$VERSION'
14529 TIMESTAMP='$TIMESTAMP'
14530 RM='$RM'
14531 ofile='$ofile'
c2ac22cc 14532
c2ac22cc 14533
c2ac22cc 14534
c2ac22cc 14535
7083c021
AC
14536 if test x$ac_cv_header_stdc = xyes; then
14537 rb_header_stdc=yes
14538 fi
14539 if test x$ac_cv_header_stdlib_h = xyes; then
14540 rb_header_stdlib_h=yes
14541 fi
14542 if test x$ac_cv_header_string_h = xyes; then
14543 rb_header_string_h=yes
14544 fi
14545 if test x$ac_cv_header_memory_h = xyes; then
14546 rb_header_memory_h=yes
14547 fi
14548 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
14549 rb_alloca_h="$ac_cv_working_alloca_h"
14550 else
14551 rb_alloc_h="$ac_cv_header_alloca_h"
14552 fi
14553 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
14554 rb_sockaddr_sa_len=yes
14555 fi
14556 if test x$ac_cv_header_sys_socket_h = xyes; then
14557 rb_sys_socket_h=yes
14558 fi
14559 if test x$ac_cv_header_sys_types_h = xyes; then
14560 rb_sys_types_h=yes
14561 fi
14562 if test x$ac_cv_header_sys_stat_h = xyes; then
14563 rb_sys_stat_h=yes
14564 fi
14565 if test x$ac_cv_header_sys_time_h = xyes; then
14566 rb_sys_time_h=yes
14567 fi
14568 if test x$ac_cv_header_time = xyes; then
14569 rb_time_h=yes
14570 fi
c2ac22cc 14571
7083c021
AC
14572 if test x$ac_cv_header_stdint_h = xyes; then
14573 rb_stdint_h=yes
14574 fi
14575 if test x$ac_cv_header_inttypes_h = xyes; then
14576 rb_inttypes_h=yes
14577 fi
14578 if test x$ac_cv_header_netinet_in_h = xyes; then
14579 rb_netinet_in_h=yes
14580 fi
c2ac22cc 14581
7083c021
AC
14582 if test x$ac_cv_header_crypt_h = xyes; then
14583 rb_crypt_h=yes
14584 fi
14585 if test x$ac_cv_header_errno_h = xyes; then
14586 rb_errno_h=yes
14587 fi
14588 if test x$ac_cv_header_unistd_h = xyes; then
14589 rb_unistd_h=yes
14590 fi
14591 if test x$ac_cv_header_windows_h = xyes; then
14592 rb_windows_h=yes
14593 fi
14594 if test x$ac_cv_header_winsock2_h = xyes; then
14595 rb_winsock2_h=yes
14596 fi
c2ac22cc 14597
7083c021 14598 rb_socklen_t=$rb_socklen_t
c2ac22cc 14599
7083c021
AC
14600 if test "x$rb_have_sockaddr_storage" = "xyes"; then
14601 rb_sockaddr_storage="yes"
14602 else
14603 rb_sockaddr_storage="no"
14604 fi
c2ac22cc 14605
7083c021 14606 rb_have_ipv6="$have_v6"
c2ac22cc 14607
7083c021
AC
14608 rb_mv="$MV"
14609 rb_rm="$RM"
c2ac22cc 14610
c2ac22cc 14611
c2ac22cc 14612
db137867 14613
db137867 14614
c2ac22cc 14615
c2ac22cc
VY
14616_ACEOF
14617
7083c021 14618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
db137867 14619
7083c021
AC
14620# Handling of arguments.
14621for ac_config_target in $ac_config_targets
14622do
14623 case $ac_config_target in
14624 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
14625 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14626 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14627 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
14628 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14629 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14630 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
c2ac22cc 14631
08c2568c 14632 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7083c021
AC
14633 esac
14634done
c2ac22cc 14635
db137867 14636
7083c021
AC
14637# If the user did not use the arguments to specify the items to instantiate,
14638# then the envvar interface is used. Set only those that are not.
14639# We use the long form for the default assignment because of an extremely
14640# bizarre bug on SunOS 4.1.3.
14641if $ac_need_defaults; then
14642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14645fi
db137867 14646
7083c021
AC
14647# Have a temporary directory for convenience. Make it in the build tree
14648# simply because there is no reason against having it here, and in addition,
14649# creating and moving files from /tmp can sometimes cause problems.
14650# Hook for its removal unless debugging.
14651# Note that there is a small window in which the directory will not be cleaned:
14652# after its creation but before its name has been assigned to `$tmp'.
14653$debug ||
14654{
08c2568c 14655 tmp= ac_tmp=
7083c021 14656 trap 'exit_status=$?
08c2568c
EM
14657 : "${ac_tmp:=$tmp}"
14658 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7083c021
AC
14659' 0
14660 trap 'as_fn_exit 1' 1 2 13 15
14661}
14662# Create a (secure) tmp directory for tmp files.
db137867 14663
7083c021
AC
14664{
14665 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
08c2568c 14666 test -d "$tmp"
7083c021
AC
14667} ||
14668{
14669 tmp=./conf$$-$RANDOM
14670 (umask 077 && mkdir "$tmp")
08c2568c
EM
14671} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14672ac_tmp=$tmp
db137867 14673
7083c021
AC
14674# Set up the scripts for CONFIG_FILES section.
14675# No need to generate them if there are no CONFIG_FILES.
14676# This happens for instance with `./config.status config.h'.
14677if test -n "$CONFIG_FILES"; then
db137867
AC
14678
14679
7083c021
AC
14680ac_cr=`echo X | tr X '\015'`
14681# On cygwin, bash can eat \r inside `` if the user requested igncr.
14682# But we know of no other shell where ac_cr would be empty at this
14683# point, so we can use a bashism as a fallback.
14684if test "x$ac_cr" = x; then
14685 eval ac_cr=\$\'\\r\'
14686fi
14687ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14688if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
08c2568c 14689 ac_cs_awk_cr='\\r'
db137867 14690else
7083c021 14691 ac_cs_awk_cr=$ac_cr
db137867
AC
14692fi
14693
08c2568c 14694echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
db137867
AC
14695_ACEOF
14696
db137867 14697
7083c021
AC
14698{
14699 echo "cat >conf$$subs.awk <<_ACEOF" &&
14700 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14701 echo "_ACEOF"
14702} >conf$$subs.sh ||
08c2568c
EM
14703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14704ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7083c021
AC
14705ac_delim='%!_!# '
14706for ac_last_try in false false false false false :; do
14707 . ./conf$$subs.sh ||
08c2568c 14708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
db137867 14709
7083c021
AC
14710 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14711 if test $ac_delim_n = $ac_delim_num; then
14712 break
14713 elif $ac_last_try; then
08c2568c 14714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
14715 else
14716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14717 fi
14718done
14719rm -f conf$$subs.sh
db137867 14720
7083c021 14721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
08c2568c 14722cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
db137867 14723_ACEOF
7083c021
AC
14724sed -n '
14725h
14726s/^/S["/; s/!.*/"]=/
14727p
14728g
14729s/^[^!]*!//
14730:repl
14731t repl
14732s/'"$ac_delim"'$//
14733t delim
14734:nl
14735h
96f4052b 14736s/\(.\{148\}\)..*/\1/
7083c021
AC
14737t more1
14738s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14739p
14740n
14741b repl
14742:more1
14743s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14744p
14745g
14746s/.\{148\}//
14747t nl
14748:delim
14749h
96f4052b 14750s/\(.\{148\}\)..*/\1/
7083c021
AC
14751t more2
14752s/["\\]/\\&/g; s/^/"/; s/$/"/
14753p
14754b
14755:more2
14756s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14757p
14758g
14759s/.\{148\}//
14760t delim
14761' <conf$$subs.awk | sed '
14762/^[^""]/{
14763 N
14764 s/\n//
14765}
14766' >>$CONFIG_STATUS || ac_write_fail=1
14767rm -f conf$$subs.awk
14768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14769_ACAWK
08c2568c 14770cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
14771 for (key in S) S_is_set[key] = 1
14772 FS = "\a"
db137867 14773
7083c021
AC
14774}
14775{
14776 line = $ 0
14777 nfields = split(line, field, "@")
14778 substed = 0
14779 len = length(field[1])
14780 for (i = 2; i < nfields; i++) {
14781 key = field[i]
14782 keylen = length(key)
14783 if (S_is_set[key]) {
14784 value = S[key]
14785 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14786 len += length(value) + length(field[++i])
14787 substed = 1
14788 } else
14789 len += 1 + keylen
14790 }
db137867 14791
7083c021
AC
14792 print line
14793}
14794
14795_ACAWK
14796_ACEOF
14797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14798if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14799 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
db137867 14800else
7083c021 14801 cat
08c2568c
EM
14802fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14803 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7083c021 14804_ACEOF
db137867 14805
08c2568c
EM
14806# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14807# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7083c021
AC
14808# trailing colons and then remove the whole line if VPATH becomes empty
14809# (actually we leave an empty line to preserve line numbers).
14810if test "x$srcdir" = x.; then
08c2568c
EM
14811 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14812h
14813s///
14814s/^/:/
14815s/[ ]*$/:/
14816s/:\$(srcdir):/:/g
14817s/:\${srcdir}:/:/g
14818s/:@srcdir@:/:/g
14819s/^:*//
7083c021 14820s/:*$//
08c2568c
EM
14821x
14822s/\(=[ ]*\).*/\1/
14823G
14824s/\n//
7083c021
AC
14825s/^[^=]*=[ ]*$//
14826}'
14827fi
db137867 14828
7083c021
AC
14829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14830fi # test -n "$CONFIG_FILES"
db137867 14831
7083c021
AC
14832# Set up the scripts for CONFIG_HEADERS section.
14833# No need to generate them if there are no CONFIG_HEADERS.
14834# This happens for instance with `./config.status Makefile'.
14835if test -n "$CONFIG_HEADERS"; then
08c2568c 14836cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021 14837BEGIN {
db137867
AC
14838_ACEOF
14839
7083c021
AC
14840# Transform confdefs.h into an awk script `defines.awk', embedded as
14841# here-document in config.status, that substitutes the proper values into
14842# config.h.in to produce config.h.
db137867 14843
7083c021
AC
14844# Create a delimiter string that does not exist in confdefs.h, to ease
14845# handling of long lines.
14846ac_delim='%!_!# '
14847for ac_last_try in false false :; do
08c2568c
EM
14848 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14849 if test -z "$ac_tt"; then
7083c021
AC
14850 break
14851 elif $ac_last_try; then
08c2568c 14852 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
14853 else
14854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14855 fi
14856done
db137867 14857
7083c021
AC
14858# For the awk script, D is an array of macro values keyed by name,
14859# likewise P contains macro parameters if any. Preserve backslash
14860# newline sequences.
db137867 14861
7083c021
AC
14862ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14863sed -n '
14864s/.\{148\}/&'"$ac_delim"'/g
14865t rset
14866:rset
14867s/^[ ]*#[ ]*define[ ][ ]*/ /
14868t def
14869d
14870:def
14871s/\\$//
14872t bsnl
14873s/["\\]/\\&/g
14874s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14875D["\1"]=" \3"/p
14876s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14877d
14878:bsnl
14879s/["\\]/\\&/g
14880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14881D["\1"]=" \3\\\\\\n"\\/p
14882t cont
14883s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14884t cont
14885d
14886:cont
14887n
14888s/.\{148\}/&'"$ac_delim"'/g
14889t clear
14890:clear
14891s/\\$//
14892t bsnlc
14893s/["\\]/\\&/g; s/^/"/; s/$/"/p
14894d
14895:bsnlc
14896s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14897b cont
14898' <confdefs.h | sed '
14899s/'"$ac_delim"'/"\\\
14900"/g' >>$CONFIG_STATUS || ac_write_fail=1
db137867 14901
7083c021
AC
14902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14903 for (key in D) D_is_set[key] = 1
14904 FS = "\a"
14905}
14906/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14907 line = \$ 0
14908 split(line, arg, " ")
14909 if (arg[1] == "#") {
14910 defundef = arg[2]
14911 mac1 = arg[3]
14912 } else {
14913 defundef = substr(arg[1], 2)
14914 mac1 = arg[2]
14915 }
14916 split(mac1, mac2, "(") #)
14917 macro = mac2[1]
14918 prefix = substr(line, 1, index(line, defundef) - 1)
14919 if (D_is_set[macro]) {
14920 # Preserve the white space surrounding the "#".
14921 print prefix "define", macro P[macro] D[macro]
14922 next
14923 } else {
14924 # Replace #undef with comments. This is necessary, for example,
14925 # in the case of _POSIX_SOURCE, which is predefined and required
14926 # on some systems where configure will not decide to define it.
14927 if (defundef == "undef") {
14928 print "/*", prefix defundef, macro, "*/"
14929 next
14930 }
14931 }
14932}
14933{ print }
14934_ACAWK
db137867 14935_ACEOF
7083c021 14936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
08c2568c 14937 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021 14938fi # test -n "$CONFIG_HEADERS"
db137867
AC
14939
14940
7083c021
AC
14941eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14942shift
14943for ac_tag
14944do
14945 case $ac_tag in
14946 :[FHLC]) ac_mode=$ac_tag; continue;;
14947 esac
14948 case $ac_mode$ac_tag in
14949 :[FHL]*:*);;
08c2568c 14950 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7083c021
AC
14951 :[FH]-) ac_tag=-:-;;
14952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14953 esac
14954 ac_save_IFS=$IFS
14955 IFS=:
14956 set x $ac_tag
14957 IFS=$ac_save_IFS
14958 shift
14959 ac_file=$1
14960 shift
db137867 14961
7083c021
AC
14962 case $ac_mode in
14963 :L) ac_source=$1;;
14964 :[FH])
14965 ac_file_inputs=
14966 for ac_f
14967 do
14968 case $ac_f in
08c2568c 14969 -) ac_f="$ac_tmp/stdin";;
7083c021
AC
14970 *) # Look for the file first in the build tree, then in the source tree
14971 # (if the path is not absolute). The absolute path cannot be DOS-style,
14972 # because $ac_f cannot contain `:'.
14973 test -f "$ac_f" ||
14974 case $ac_f in
14975 [\\/$]*) false;;
14976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14977 esac ||
08c2568c 14978 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7083c021
AC
14979 esac
14980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14981 as_fn_append ac_file_inputs " '$ac_f'"
14982 done
db137867 14983
7083c021
AC
14984 # Let's still pretend it is `configure' which instantiates (i.e., don't
14985 # use $as_me), people would be surprised to read:
14986 # /* config.h. Generated by config.status. */
14987 configure_input='Generated from '`
14988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14989 `' by configure.'
14990 if test x"$ac_file" != x-; then
14991 configure_input="$ac_file. $configure_input"
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14993$as_echo "$as_me: creating $ac_file" >&6;}
14994 fi
14995 # Neutralize special characters interpreted by sed in replacement strings.
14996 case $configure_input in #(
14997 *\&* | *\|* | *\\* )
14998 ac_sed_conf_input=`$as_echo "$configure_input" |
14999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15000 *) ac_sed_conf_input=$configure_input;;
15001 esac
db137867 15002
7083c021 15003 case $ac_tag in
08c2568c
EM
15004 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7083c021
AC
15006 esac
15007 ;;
15008 esac
db137867 15009
7083c021
AC
15010 ac_dir=`$as_dirname -- "$ac_file" ||
15011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15012 X"$ac_file" : 'X\(//\)[^/]' \| \
15013 X"$ac_file" : 'X\(//\)$' \| \
15014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15015$as_echo X"$ac_file" |
15016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15017 s//\1/
15018 q
15019 }
15020 /^X\(\/\/\)[^/].*/{
15021 s//\1/
15022 q
15023 }
15024 /^X\(\/\/\)$/{
15025 s//\1/
15026 q
15027 }
15028 /^X\(\/\).*/{
15029 s//\1/
15030 q
15031 }
15032 s/.*/./; q'`
15033 as_dir="$ac_dir"; as_fn_mkdir_p
15034 ac_builddir=.
db137867 15035
7083c021
AC
15036case "$ac_dir" in
15037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15038*)
15039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15040 # A ".." for each directory in $ac_dir_suffix.
15041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15042 case $ac_top_builddir_sub in
15043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15045 esac ;;
15046esac
15047ac_abs_top_builddir=$ac_pwd
15048ac_abs_builddir=$ac_pwd$ac_dir_suffix
15049# for backward compatibility:
15050ac_top_builddir=$ac_top_build_prefix
db137867 15051
7083c021
AC
15052case $srcdir in
15053 .) # We are building in place.
15054 ac_srcdir=.
15055 ac_top_srcdir=$ac_top_builddir_sub
15056 ac_abs_top_srcdir=$ac_pwd ;;
15057 [\\/]* | ?:[\\/]* ) # Absolute name.
15058 ac_srcdir=$srcdir$ac_dir_suffix;
15059 ac_top_srcdir=$srcdir
15060 ac_abs_top_srcdir=$srcdir ;;
15061 *) # Relative name.
15062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15063 ac_top_srcdir=$ac_top_build_prefix$srcdir
15064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15065esac
15066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
db137867 15067
c2ac22cc 15068
7083c021
AC
15069 case $ac_mode in
15070 :F)
15071 #
15072 # CONFIG_FILE
15073 #
db137867 15074
7083c021
AC
15075 case $INSTALL in
15076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15078 esac
15079 ac_MKDIR_P=$MKDIR_P
15080 case $MKDIR_P in
15081 [\\/$]* | ?:[\\/]* ) ;;
15082 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15083 esac
db137867
AC
15084_ACEOF
15085
7083c021
AC
15086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15087# If the template does not know about datarootdir, expand it.
15088# FIXME: This hack should be removed a few years after 2.60.
15089ac_datarootdir_hack=; ac_datarootdir_seen=
15090ac_sed_dataroot='
15091/datarootdir/ {
15092 p
15093 q
15094}
15095/@datadir@/p
15096/@docdir@/p
15097/@infodir@/p
15098/@localedir@/p
15099/@mandir@/p'
15100case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15101*datarootdir*) ac_datarootdir_seen=yes;;
15102*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15104$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15105_ACEOF
15106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15107 ac_datarootdir_hack='
15108 s&@datadir@&$datadir&g
15109 s&@docdir@&$docdir&g
15110 s&@infodir@&$infodir&g
15111 s&@localedir@&$localedir&g
15112 s&@mandir@&$mandir&g
15113 s&\\\${datarootdir}&$datarootdir&g' ;;
15114esac
db137867
AC
15115_ACEOF
15116
7083c021
AC
15117# Neutralize VPATH when `$srcdir' = `.'.
15118# Shell code in configure.ac might set extrasub.
15119# FIXME: do we really want to maintain this feature?
15120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121ac_sed_extra="$ac_vpsub
15122$extrasub
15123_ACEOF
15124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15125:t
15126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15127s|@configure_input@|$ac_sed_conf_input|;t t
15128s&@top_builddir@&$ac_top_builddir_sub&;t t
15129s&@top_build_prefix@&$ac_top_build_prefix&;t t
15130s&@srcdir@&$ac_srcdir&;t t
15131s&@abs_srcdir@&$ac_abs_srcdir&;t t
15132s&@top_srcdir@&$ac_top_srcdir&;t t
15133s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15134s&@builddir@&$ac_builddir&;t t
15135s&@abs_builddir@&$ac_abs_builddir&;t t
15136s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15137s&@INSTALL@&$ac_INSTALL&;t t
15138s&@MKDIR_P@&$ac_MKDIR_P&;t t
15139$ac_datarootdir_hack
15140"
08c2568c
EM
15141eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15142 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
db137867 15143
7083c021 15144test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
08c2568c
EM
15145 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15147 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
08c2568c 15149which seems to be undefined. Please make sure it is defined" >&5
7083c021 15150$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
08c2568c 15151which seems to be undefined. Please make sure it is defined" >&2;}
db137867 15152
08c2568c 15153 rm -f "$ac_tmp/stdin"
7083c021 15154 case $ac_file in
08c2568c
EM
15155 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15156 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 15157 esac \
08c2568c 15158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7083c021
AC
15159 ;;
15160 :H)
15161 #
15162 # CONFIG_HEADER
15163 #
15164 if test x"$ac_file" != x-; then
15165 {
15166 $as_echo "/* $configure_input */" \
08c2568c
EM
15167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15168 } >"$ac_tmp/config.h" \
15169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15170 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15172$as_echo "$as_me: $ac_file is unchanged" >&6;}
15173 else
15174 rm -f "$ac_file"
08c2568c
EM
15175 mv "$ac_tmp/config.h" "$ac_file" \
15176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7083c021
AC
15177 fi
15178 else
15179 $as_echo "/* $configure_input */" \
08c2568c
EM
15180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15181 || as_fn_error $? "could not create -" "$LINENO" 5
7083c021
AC
15182 fi
15183# Compute "$ac_file"'s index in $config_headers.
15184_am_arg="$ac_file"
15185_am_stamp_count=1
15186for _am_header in $config_headers :; do
15187 case $_am_header in
15188 $_am_arg | $_am_arg:* )
15189 break ;;
15190 * )
15191 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15192 esac
15193done
15194echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15195$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15196 X"$_am_arg" : 'X\(//\)[^/]' \| \
15197 X"$_am_arg" : 'X\(//\)$' \| \
15198 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15199$as_echo X"$_am_arg" |
15200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15201 s//\1/
15202 q
15203 }
15204 /^X\(\/\/\)[^/].*/{
15205 s//\1/
15206 q
15207 }
15208 /^X\(\/\/\)$/{
15209 s//\1/
15210 q
15211 }
15212 /^X\(\/\).*/{
15213 s//\1/
15214 q
15215 }
15216 s/.*/./; q'`/stamp-h$_am_stamp_count
15217 ;;
db137867 15218
7083c021
AC
15219 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15220$as_echo "$as_me: executing $ac_file commands" >&6;}
15221 ;;
15222 esac
db137867 15223
db137867 15224
7083c021
AC
15225 case $ac_file$ac_mode in
15226 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15227 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15228 # are listed without --file. Let's play safe and only enable the eval
15229 # if we detect the quoting.
15230 case $CONFIG_FILES in
15231 *\'*) eval set x "$CONFIG_FILES" ;;
15232 *) set x $CONFIG_FILES ;;
15233 esac
15234 shift
15235 for mf
15236 do
15237 # Strip MF so we end up with the name of the file.
15238 mf=`echo "$mf" | sed -e 's/:.*$//'`
15239 # Check whether this is an Automake generated Makefile or not.
15240 # We used to match only the files named `Makefile.in', but
15241 # some people rename them; so instead we look at the file content.
15242 # Grep'ing the first line is not enough: some people post-process
15243 # each Makefile.in and add a new line on top of each file to say so.
15244 # Grep'ing the whole file is not good either: AIX grep has a line
15245 # limit of 2048, but all sed's we know have understand at least 4000.
15246 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15247 dirpart=`$as_dirname -- "$mf" ||
15248$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15249 X"$mf" : 'X\(//\)[^/]' \| \
15250 X"$mf" : 'X\(//\)$' \| \
15251 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15252$as_echo X"$mf" |
15253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15254 s//\1/
15255 q
15256 }
15257 /^X\(\/\/\)[^/].*/{
15258 s//\1/
15259 q
15260 }
15261 /^X\(\/\/\)$/{
15262 s//\1/
15263 q
15264 }
15265 /^X\(\/\).*/{
15266 s//\1/
15267 q
15268 }
15269 s/.*/./; q'`
15270 else
15271 continue
15272 fi
15273 # Extract the definition of DEPDIR, am__include, and am__quote
15274 # from the Makefile without running `make'.
15275 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15276 test -z "$DEPDIR" && continue
15277 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15278 test -z "am__include" && continue
15279 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15280 # When using ansi2knr, U may be empty or an underscore; expand it
15281 U=`sed -n 's/^U = //p' < "$mf"`
15282 # Find all dependency output files, they are included files with
15283 # $(DEPDIR) in their names. We invoke sed twice because it is the
15284 # simplest approach to changing $(DEPDIR) to its actual value in the
15285 # expansion.
15286 for file in `sed -n "
15287 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15288 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15289 # Make sure the directory exists.
15290 test -f "$dirpart/$file" && continue
15291 fdir=`$as_dirname -- "$file" ||
15292$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15293 X"$file" : 'X\(//\)[^/]' \| \
15294 X"$file" : 'X\(//\)$' \| \
15295 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15296$as_echo X"$file" |
15297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15298 s//\1/
15299 q
15300 }
15301 /^X\(\/\/\)[^/].*/{
15302 s//\1/
15303 q
15304 }
15305 /^X\(\/\/\)$/{
15306 s//\1/
15307 q
15308 }
15309 /^X\(\/\).*/{
15310 s//\1/
15311 q
15312 }
15313 s/.*/./; q'`
15314 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15315 # echo "creating $dirpart/$file"
15316 echo '# dummy' > "$dirpart/$file"
15317 done
15318 done
15319}
15320 ;;
15321 "libtool":C)
db137867 15322
7083c021
AC
15323 # See if we are running on zsh, and set the options which allow our
15324 # commands through without removal of \ escapes.
15325 if test -n "${ZSH_VERSION+set}" ; then
15326 setopt NO_GLOB_SUBST
15327 fi
c2ac22cc 15328
7083c021
AC
15329 cfgfile="${ofile}T"
15330 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15331 $RM "$cfgfile"
db137867 15332
7083c021
AC
15333 cat <<_LT_EOF >> "$cfgfile"
15334#! $SHELL
db137867 15335
7083c021
AC
15336# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15337# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15338# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15339# NOTE: Changes made to this file will be lost: look at ltmain.sh.
db137867 15340#
7083c021
AC
15341# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15342# 2006, 2007, 2008 Free Software Foundation, Inc.
15343# Written by Gordon Matzigkeit, 1996
db137867 15344#
7083c021
AC
15345# This file is part of GNU Libtool.
15346#
15347# GNU Libtool is free software; you can redistribute it and/or
15348# modify it under the terms of the GNU General Public License as
15349# published by the Free Software Foundation; either version 2 of
15350# the License, or (at your option) any later version.
15351#
15352# As a special exception to the GNU General Public License,
15353# if you distribute this file as part of a program or library that
15354# is built using GNU Libtool, you may include this file under the
15355# same distribution terms that you use for the rest of that program.
15356#
15357# GNU Libtool is distributed in the hope that it will be useful,
15358# but WITHOUT ANY WARRANTY; without even the implied warranty of
15359# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15360# GNU General Public License for more details.
15361#
15362# You should have received a copy of the GNU General Public License
15363# along with GNU Libtool; see the file COPYING. If not, a copy
15364# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15365# obtained by writing to the Free Software Foundation, Inc.,
15366# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
db137867 15367
db137867 15368
7083c021
AC
15369# The names of the tagged configurations supported by this script.
15370available_tags=""
db137867 15371
7083c021 15372# ### BEGIN LIBTOOL CONFIG
db137867 15373
7083c021
AC
15374# Whether or not to build static libraries.
15375build_old_libs=$enable_static
db137867 15376
7083c021
AC
15377# Whether or not to build shared libraries.
15378build_libtool_libs=$enable_shared
db137867 15379
7083c021
AC
15380# Which release of libtool.m4 was used?
15381macro_version=$macro_version
15382macro_revision=$macro_revision
db137867 15383
7083c021
AC
15384# What type of objects to build.
15385pic_mode=$pic_mode
db137867 15386
7083c021
AC
15387# Whether or not to optimize for fast installation.
15388fast_install=$enable_fast_install
db137867 15389
7083c021
AC
15390# The host system.
15391host_alias=$host_alias
15392host=$host
15393host_os=$host_os
db137867 15394
7083c021
AC
15395# The build system.
15396build_alias=$build_alias
15397build=$build
15398build_os=$build_os
db137867 15399
7083c021
AC
15400# A sed program that does not truncate output.
15401SED=$lt_SED
db137867 15402
7083c021
AC
15403# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15404Xsed="\$SED -e 1s/^X//"
db137867 15405
7083c021
AC
15406# A grep program that handles long lines.
15407GREP=$lt_GREP
db137867 15408
7083c021
AC
15409# An ERE matcher.
15410EGREP=$lt_EGREP
db137867 15411
7083c021
AC
15412# A literal string matcher.
15413FGREP=$lt_FGREP
db137867 15414
7083c021
AC
15415# A BSD- or MS-compatible name lister.
15416NM=$lt_NM
030272f3 15417
7083c021
AC
15418# Whether we need soft or hard links.
15419LN_S=$lt_LN_S
db137867 15420
7083c021
AC
15421# What is the maximum length of a command?
15422max_cmd_len=$max_cmd_len
db137867 15423
7083c021
AC
15424# Object file suffix (normally "o").
15425objext=$ac_objext
db137867 15426
7083c021
AC
15427# Executable file suffix (normally "").
15428exeext=$exeext
db137867 15429
7083c021
AC
15430# whether the shell understands "unset".
15431lt_unset=$lt_unset
db137867 15432
7083c021
AC
15433# turn spaces into newlines.
15434SP2NL=$lt_lt_SP2NL
db137867 15435
7083c021
AC
15436# turn newlines into spaces.
15437NL2SP=$lt_lt_NL2SP
db137867 15438
7083c021
AC
15439# How to create reloadable object files.
15440reload_flag=$lt_reload_flag
15441reload_cmds=$lt_reload_cmds
db137867 15442
7083c021
AC
15443# An object symbol dumper.
15444OBJDUMP=$lt_OBJDUMP
db137867 15445
7083c021
AC
15446# Method to check whether dependent libraries are shared objects.
15447deplibs_check_method=$lt_deplibs_check_method
db137867 15448
7083c021
AC
15449# Command to use when deplibs_check_method == "file_magic".
15450file_magic_cmd=$lt_file_magic_cmd
db137867 15451
7083c021
AC
15452# The archiver.
15453AR=$lt_AR
15454AR_FLAGS=$lt_AR_FLAGS
db137867 15455
7083c021
AC
15456# A symbol stripping program.
15457STRIP=$lt_STRIP
db137867 15458
7083c021
AC
15459# Commands used to install an old-style archive.
15460RANLIB=$lt_RANLIB
15461old_postinstall_cmds=$lt_old_postinstall_cmds
15462old_postuninstall_cmds=$lt_old_postuninstall_cmds
db137867 15463
7083c021
AC
15464# A C compiler.
15465LTCC=$lt_CC
db137867 15466
7083c021
AC
15467# LTCC compiler flags.
15468LTCFLAGS=$lt_CFLAGS
db137867 15469
7083c021
AC
15470# Take the output of nm and produce a listing of raw symbols and C names.
15471global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
db137867 15472
7083c021
AC
15473# Transform the output of nm in a proper C declaration.
15474global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
db137867 15475
7083c021
AC
15476# Transform the output of nm in a C name address pair.
15477global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
db137867 15478
7083c021
AC
15479# Transform the output of nm in a C name address pair when lib prefix is needed.
15480global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
db137867 15481
7083c021
AC
15482# The name of the directory that contains temporary libtool files.
15483objdir=$objdir
db137867 15484
7083c021
AC
15485# Shell to use when invoking shell scripts.
15486SHELL=$lt_SHELL
db137867 15487
7083c021
AC
15488# An echo program that does not interpret backslashes.
15489ECHO=$lt_ECHO
db137867 15490
7083c021
AC
15491# Used to examine libraries when file_magic_cmd begins with "file".
15492MAGIC_CMD=$MAGIC_CMD
15493
15494# Must we lock files when doing compilation?
15495need_locks=$lt_need_locks
db137867 15496
7083c021
AC
15497# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15498DSYMUTIL=$lt_DSYMUTIL
db137867 15499
7083c021
AC
15500# Tool to change global to local symbols on Mac OS X.
15501NMEDIT=$lt_NMEDIT
db137867 15502
7083c021
AC
15503# Tool to manipulate fat objects and archives on Mac OS X.
15504LIPO=$lt_LIPO
db137867 15505
7083c021
AC
15506# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15507OTOOL=$lt_OTOOL
db137867 15508
7083c021
AC
15509# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15510OTOOL64=$lt_OTOOL64
db137867 15511
7083c021
AC
15512# Old archive suffix (normally "a").
15513libext=$libext
db137867 15514
7083c021
AC
15515# Shared library suffix (normally ".so").
15516shrext_cmds=$lt_shrext_cmds
db137867 15517
7083c021
AC
15518# The commands to extract the exported symbol list from a shared archive.
15519extract_expsyms_cmds=$lt_extract_expsyms_cmds
db137867 15520
7083c021
AC
15521# Variables whose values should be saved in libtool wrapper scripts and
15522# restored at link time.
15523variables_saved_for_relink=$lt_variables_saved_for_relink
030272f3 15524
7083c021
AC
15525# Do we need the "lib" prefix for modules?
15526need_lib_prefix=$need_lib_prefix
030272f3 15527
7083c021
AC
15528# Do we need a version for libraries?
15529need_version=$need_version
030272f3 15530
7083c021
AC
15531# Library versioning type.
15532version_type=$version_type
db137867 15533
7083c021
AC
15534# Shared library runtime path variable.
15535runpath_var=$runpath_var
db137867 15536
7083c021
AC
15537# Shared library path variable.
15538shlibpath_var=$shlibpath_var
db137867 15539
7083c021
AC
15540# Is shlibpath searched before the hard-coded library search path?
15541shlibpath_overrides_runpath=$shlibpath_overrides_runpath
db137867 15542
7083c021
AC
15543# Format of library name prefix.
15544libname_spec=$lt_libname_spec
db137867 15545
7083c021
AC
15546# List of archive names. First name is the real one, the rest are links.
15547# The last name is the one that the linker finds with -lNAME
15548library_names_spec=$lt_library_names_spec
db137867 15549
7083c021
AC
15550# The coded name of the library, if different from the real name.
15551soname_spec=$lt_soname_spec
db137867 15552
7083c021
AC
15553# Command to use after installation of a shared archive.
15554postinstall_cmds=$lt_postinstall_cmds
db137867 15555
7083c021
AC
15556# Command to use after uninstallation of a shared archive.
15557postuninstall_cmds=$lt_postuninstall_cmds
db137867 15558
7083c021
AC
15559# Commands used to finish a libtool library installation in a directory.
15560finish_cmds=$lt_finish_cmds
db137867 15561
7083c021
AC
15562# As "finish_cmds", except a single script fragment to be evaled but
15563# not shown.
15564finish_eval=$lt_finish_eval
db137867 15565
7083c021
AC
15566# Whether we should hardcode library paths into libraries.
15567hardcode_into_libs=$hardcode_into_libs
db137867 15568
7083c021
AC
15569# Compile-time system search path for libraries.
15570sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
db137867 15571
7083c021
AC
15572# Run-time system search path for libraries.
15573sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
db137867 15574
7083c021
AC
15575# Whether dlopen is supported.
15576dlopen_support=$enable_dlopen
db137867 15577
7083c021
AC
15578# Whether dlopen of programs is supported.
15579dlopen_self=$enable_dlopen_self
db137867 15580
7083c021
AC
15581# Whether dlopen of statically linked programs is supported.
15582dlopen_self_static=$enable_dlopen_self_static
db137867 15583
7083c021
AC
15584# Commands to strip libraries.
15585old_striplib=$lt_old_striplib
15586striplib=$lt_striplib
db137867 15587
db137867 15588
7083c021
AC
15589# The linker used to build libraries.
15590LD=$lt_LD
db137867 15591
7083c021
AC
15592# Commands used to build an old-style archive.
15593old_archive_cmds=$lt_old_archive_cmds
db137867 15594
7083c021
AC
15595# A language specific compiler.
15596CC=$lt_compiler
db137867 15597
7083c021
AC
15598# Is the compiler the GNU compiler?
15599with_gcc=$GCC
db137867 15600
7083c021
AC
15601# Compiler flag to turn off builtin functions.
15602no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
db137867 15603
7083c021
AC
15604# How to pass a linker flag through the compiler.
15605wl=$lt_lt_prog_compiler_wl
15606
15607# Additional compiler flags for building library objects.
15608pic_flag=$lt_lt_prog_compiler_pic
15609
15610# Compiler flag to prevent dynamic linking.
15611link_static_flag=$lt_lt_prog_compiler_static
15612
15613# Does compiler simultaneously support -c and -o options?
15614compiler_c_o=$lt_lt_cv_prog_compiler_c_o
a9fb3ed0 15615
7083c021
AC
15616# Whether or not to add -lc for building shared libraries.
15617build_libtool_need_lc=$archive_cmds_need_lc
a9fb3ed0 15618
7083c021
AC
15619# Whether or not to disallow shared libs when runtime libs are static.
15620allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
db137867 15621
7083c021
AC
15622# Compiler flag to allow reflexive dlopens.
15623export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
db137867 15624
7083c021
AC
15625# Compiler flag to generate shared objects directly from archives.
15626whole_archive_flag_spec=$lt_whole_archive_flag_spec
db137867 15627
7083c021
AC
15628# Whether the compiler copes with passing no objects directly.
15629compiler_needs_object=$lt_compiler_needs_object
db137867 15630
7083c021
AC
15631# Create an old-style archive from a shared archive.
15632old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
db137867 15633
7083c021
AC
15634# Create a temporary old-style archive to link instead of a shared archive.
15635old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
db137867 15636
7083c021
AC
15637# Commands used to build a shared archive.
15638archive_cmds=$lt_archive_cmds
15639archive_expsym_cmds=$lt_archive_expsym_cmds
db137867 15640
7083c021
AC
15641# Commands used to build a loadable module if different from building
15642# a shared archive.
15643module_cmds=$lt_module_cmds
15644module_expsym_cmds=$lt_module_expsym_cmds
db137867 15645
7083c021
AC
15646# Whether we are building with GNU ld or not.
15647with_gnu_ld=$lt_with_gnu_ld
db137867 15648
7083c021
AC
15649# Flag that allows shared libraries with undefined symbols to be built.
15650allow_undefined_flag=$lt_allow_undefined_flag
db137867 15651
7083c021
AC
15652# Flag that enforces no undefined symbols.
15653no_undefined_flag=$lt_no_undefined_flag
db137867 15654
7083c021
AC
15655# Flag to hardcode \$libdir into a binary during linking.
15656# This must work even if \$libdir does not exist
15657hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
db137867 15658
7083c021
AC
15659# If ld is used when linking, flag to hardcode \$libdir into a binary
15660# during linking. This must work even if \$libdir does not exist.
15661hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
db137867 15662
7083c021
AC
15663# Whether we need a single "-rpath" flag with a separated argument.
15664hardcode_libdir_separator=$lt_hardcode_libdir_separator
db137867 15665
7083c021
AC
15666# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15667# DIR into the resulting binary.
15668hardcode_direct=$hardcode_direct
db137867 15669
7083c021
AC
15670# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15671# DIR into the resulting binary and the resulting library dependency is
15672# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15673# library is relocated.
15674hardcode_direct_absolute=$hardcode_direct_absolute
db137867 15675
7083c021
AC
15676# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15677# into the resulting binary.
15678hardcode_minus_L=$hardcode_minus_L
db137867 15679
7083c021
AC
15680# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15681# into the resulting binary.
15682hardcode_shlibpath_var=$hardcode_shlibpath_var
db137867 15683
7083c021
AC
15684# Set to "yes" if building a shared library automatically hardcodes DIR
15685# into the library and all subsequent libraries and executables linked
15686# against it.
15687hardcode_automatic=$hardcode_automatic
db137867 15688
7083c021
AC
15689# Set to yes if linker adds runtime paths of dependent libraries
15690# to runtime path list.
15691inherit_rpath=$inherit_rpath
db137867 15692
7083c021
AC
15693# Whether libtool must link a program against all its dependency libraries.
15694link_all_deplibs=$link_all_deplibs
db137867 15695
7083c021
AC
15696# Fix the shell variable \$srcfile for the compiler.
15697fix_srcfile_path=$lt_fix_srcfile_path
030272f3 15698
7083c021
AC
15699# Set to "yes" if exported symbols are required.
15700always_export_symbols=$always_export_symbols
030272f3 15701
7083c021
AC
15702# The commands to list exported symbols.
15703export_symbols_cmds=$lt_export_symbols_cmds
db137867 15704
7083c021
AC
15705# Symbols that should not be listed in the preloaded symbols.
15706exclude_expsyms=$lt_exclude_expsyms
030272f3 15707
7083c021
AC
15708# Symbols that must always be exported.
15709include_expsyms=$lt_include_expsyms
db137867 15710
7083c021
AC
15711# Commands necessary for linking programs (against libraries) with templates.
15712prelink_cmds=$lt_prelink_cmds
db137867 15713
7083c021
AC
15714# Specify filename containing input files.
15715file_list_spec=$lt_file_list_spec
db137867 15716
7083c021
AC
15717# How to hardcode a shared library path into an executable.
15718hardcode_action=$hardcode_action
db137867 15719
7083c021 15720# ### END LIBTOOL CONFIG
030272f3 15721
7083c021
AC
15722_LT_EOF
15723
15724 case $host_os in
15725 aix3*)
15726 cat <<\_LT_EOF >> "$cfgfile"
15727# AIX sometimes has problems with the GCC collect2 program. For some
15728# reason, if we set the COLLECT_NAMES environment variable, the problems
15729# vanish in a puff of smoke.
15730if test "X${COLLECT_NAMES+set}" != Xset; then
15731 COLLECT_NAMES=
15732 export COLLECT_NAMES
15733fi
15734_LT_EOF
15735 ;;
15736 esac
030272f3 15737
030272f3 15738
7083c021 15739ltmain="$ac_aux_dir/ltmain.sh"
030272f3 15740
030272f3 15741
7083c021
AC
15742 # We use sed instead of cat because bash on DJGPP gets confused if
15743 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15744 # text mode, it properly converts lines to CR/LF. This bash problem
15745 # is reportedly fixed, but why not run on old versions too?
15746 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15747 || (rm -f "$cfgfile"; exit 1)
030272f3 15748
7083c021
AC
15749 case $xsi_shell in
15750 yes)
15751 cat << \_LT_EOF >> "$cfgfile"
db137867 15752
7083c021
AC
15753# func_dirname file append nondir_replacement
15754# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15755# otherwise set result to NONDIR_REPLACEMENT.
15756func_dirname ()
15757{
15758 case ${1} in
15759 */*) func_dirname_result="${1%/*}${2}" ;;
15760 * ) func_dirname_result="${3}" ;;
db137867 15761 esac
7083c021
AC
15762}
15763
15764# func_basename file
15765func_basename ()
15766{
15767 func_basename_result="${1##*/}"
15768}
15769
15770# func_dirname_and_basename file append nondir_replacement
15771# perform func_basename and func_dirname in a single function
15772# call:
15773# dirname: Compute the dirname of FILE. If nonempty,
15774# add APPEND to the result, otherwise set result
15775# to NONDIR_REPLACEMENT.
15776# value returned in "$func_dirname_result"
15777# basename: Compute filename of FILE.
15778# value retuned in "$func_basename_result"
15779# Implementation must be kept synchronized with func_dirname
15780# and func_basename. For efficiency, we do not delegate to
15781# those functions but instead duplicate the functionality here.
15782func_dirname_and_basename ()
15783{
15784 case ${1} in
15785 */*) func_dirname_result="${1%/*}${2}" ;;
15786 * ) func_dirname_result="${3}" ;;
db137867 15787 esac
7083c021
AC
15788 func_basename_result="${1##*/}"
15789}
db137867 15790
7083c021
AC
15791# func_stripname prefix suffix name
15792# strip PREFIX and SUFFIX off of NAME.
15793# PREFIX and SUFFIX must not contain globbing or regex special
15794# characters, hashes, percent signs, but SUFFIX may contain a leading
15795# dot (in which case that matches only a dot).
15796func_stripname ()
15797{
15798 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15799 # positional parameters, so assign one to ordinary parameter first.
15800 func_stripname_result=${3}
15801 func_stripname_result=${func_stripname_result#"${1}"}
15802 func_stripname_result=${func_stripname_result%"${2}"}
15803}
db137867 15804
7083c021
AC
15805# func_opt_split
15806func_opt_split ()
15807{
15808 func_opt_split_opt=${1%%=*}
15809 func_opt_split_arg=${1#*=}
15810}
db137867 15811
7083c021
AC
15812# func_lo2o object
15813func_lo2o ()
15814{
15815 case ${1} in
15816 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15817 *) func_lo2o_result=${1} ;;
db137867 15818 esac
7083c021 15819}
db137867 15820
7083c021
AC
15821# func_xform libobj-or-source
15822func_xform ()
15823{
15824 func_xform_result=${1%.*}.lo
15825}
db137867 15826
7083c021
AC
15827# func_arith arithmetic-term...
15828func_arith ()
15829{
15830 func_arith_result=$(( $* ))
15831}
db137867 15832
7083c021
AC
15833# func_len string
15834# STRING may not start with a hyphen.
15835func_len ()
15836{
15837 func_len_result=${#1}
15838}
15839
15840_LT_EOF
15841 ;;
15842 *) # Bourne compatible functions.
15843 cat << \_LT_EOF >> "$cfgfile"
15844
15845# func_dirname file append nondir_replacement
15846# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15847# otherwise set result to NONDIR_REPLACEMENT.
15848func_dirname ()
15849{
15850 # Extract subdirectory from the argument.
15851 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15852 if test "X$func_dirname_result" = "X${1}"; then
15853 func_dirname_result="${3}"
15854 else
15855 func_dirname_result="$func_dirname_result${2}"
15856 fi
15857}
db137867 15858
7083c021
AC
15859# func_basename file
15860func_basename ()
15861{
15862 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15863}
db137867 15864
db137867 15865
7083c021
AC
15866# func_stripname prefix suffix name
15867# strip PREFIX and SUFFIX off of NAME.
15868# PREFIX and SUFFIX must not contain globbing or regex special
15869# characters, hashes, percent signs, but SUFFIX may contain a leading
15870# dot (in which case that matches only a dot).
15871# func_strip_suffix prefix name
15872func_stripname ()
15873{
15874 case ${2} in
15875 .*) func_stripname_result=`$ECHO "X${3}" \
15876 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15877 *) func_stripname_result=`$ECHO "X${3}" \
15878 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
db137867 15879 esac
7083c021 15880}
db137867 15881
7083c021
AC
15882# sed scripts:
15883my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15884my_sed_long_arg='1s/^-[^=]*=//'
db137867 15885
7083c021
AC
15886# func_opt_split
15887func_opt_split ()
15888{
15889 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15890 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
db137867 15891}
7083c021
AC
15892
15893# func_lo2o object
15894func_lo2o ()
15895{
15896 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15897}
15898
15899# func_xform libobj-or-source
15900func_xform ()
15901{
15902 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15903}
15904
15905# func_arith arithmetic-term...
15906func_arith ()
15907{
15908 func_arith_result=`expr "$@"`
15909}
15910
15911# func_len string
15912# STRING may not start with a hyphen.
15913func_len ()
15914{
15915 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15916}
15917
15918_LT_EOF
db137867 15919esac
db137867 15920
7083c021
AC
15921case $lt_shell_append in
15922 yes)
15923 cat << \_LT_EOF >> "$cfgfile"
db137867 15924
7083c021
AC
15925# func_append var value
15926# Append VALUE to the end of shell variable VAR.
15927func_append ()
15928{
15929 eval "$1+=\$2"
15930}
15931_LT_EOF
15932 ;;
15933 *)
15934 cat << \_LT_EOF >> "$cfgfile"
db137867 15935
7083c021
AC
15936# func_append var value
15937# Append VALUE to the end of shell variable VAR.
15938func_append ()
15939{
15940 eval "$1=\$$1\$2"
15941}
db137867 15942
7083c021
AC
15943_LT_EOF
15944 ;;
db137867
AC
15945 esac
15946
15947
7083c021
AC
15948 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15949 || (rm -f "$cfgfile"; exit 1)
15950
15951 mv -f "$cfgfile" "$ofile" ||
15952 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15953 chmod +x "$ofile"
15954
db137867
AC
15955 ;;
15956 "include/librb-config.h":C)
15957 outfile=include/librb-config.h.tmp
15958 cat > $outfile <<\_______EOF
15959/*
15960 * librb-config.h: libratbox config file. Please modify configure.ac
15961 */
15962
15963#ifndef __LIBRB_CONFIG_H
15964#define __LIBRB_CONFIG_H
15965
15966_______EOF
15967
15968if test "x$rb_have_ipv6" = "xyes"; then
15969 echo "#define RB_IPV6 1" >> $outfile
15970fi
15971
15972if test "x$rb_windows_h" = "xyes"; then
15973 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
15974 echo '#include <windows.h>' >> $outfile
15975 echo '#include <winsock2.h>' >> $outfile
15976 echo '#include <iphlpapi.h>' >> $outfile
15977fi
15978
15979if test "x$rb_alloca_h" = "xyes"; then
15980 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
15981fi
15982
15983if test "x$rb_header_stdc" = "xyes"; then
15984 echo '#include <stdlib.h>' >> $outfile
15985 echo '#include <stddef.h>' >> $outfile
15986elif test "x$rb_header_stdlib" = "xyes"; then
15987 echo '#include <stdlib.h>' >> $outfile
15988fi
15989
15990if test "x$rb_header_string_h" = "xyes"; then
15991 echo '#include <string.h>' >> $outfile
15992fi
15993
15994if test "x$rb_stdint_h" = "xyes"; then
15995 echo '#include <stdint.h>' >> $outfile
15996fi
15997
15998if test "x$rb_inttypes_h" = "xyes"; then
15999 echo '#include <inttypes.h>' >> $outfile
16000fi
16001
16002if test "x$rb_sys_types_h" = "xyes"; then
16003 echo '#include <sys/types.h>' >> $outfile
16004fi
16005if test "x$rb_sys_time_h" = "xyes"; then
16006 echo '#include <sys/time.h>' >> $outfile
16007fi
16008if test "x$rb_sys_stat_h" = "xyes"; then
16009 echo '#include <sys/stat.h>' >> $outfile
16010fi
16011if test "x$rb_time_h" = "xyes"; then
16012 echo '#include <time.h>' >> $outfile
16013fi
16014
16015if test "x$rb_sys_socket_h" = "xyes"; then
16016 echo '#include <sys/socket.h>' >> $outfile
16017fi
16018
16019if test "x$rb_netinet_in_h" = "xyes"; then
16020 echo '#include <netinet/in.h>' >> $outfile
16021fi
16022
16023if test "x$rb_arpa_inet_h" = "xyes"; then
16024 echo '#include <arpa/inet.h>' >> $outfile
16025fi
16026
16027if test "x$rb_unistd_h" = "xyes"; then
16028 echo '#include <unistd.h>' >> $outfile
16029fi
16030
16031if test "x$rb_crypt_h" = "xyes"; then
16032 echo '#include <crypt.h>' >> $outfile
16033fi
16034
16035if test "x$rb_errno_h" = "xyes"; then
16036 echo '#include <errno.h>' >> $outfile
16037fi
16038
a9fb3ed0
VY
16039echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
16040
16041
db137867
AC
16042if test "x$rb_sockaddr_sa_len" = "xyes"; then
16043 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
16044fi
16045
db137867
AC
16046if test "x$rb_sockaddr_storage" = "xyes"; then
16047 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
16048else
3202e249 16049 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
db137867
AC
16050fi
16051
16052cat >> $outfile <<\_______EOF
16053#endif /* __LIBRB_CONFIG_H */
16054_______EOF
16055
16056if cmp -s $outfile include/librb-config.h; then
7083c021 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
030272f3 16058$as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
db137867
AC
16059 ${rb_rm} -f $outfile
16060else
16061 ${rb_mv} $outfile include/librb-config.h
16062fi
16063
16064 ;;
16065
16066 esac
16067done # for ac_tag
16068
16069
7083c021 16070as_fn_exit 0
db137867 16071_ACEOF
db137867
AC
16072ac_clean_files=$ac_clean_files_save
16073
030272f3 16074test $ac_write_fail = 0 ||
08c2568c 16075 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
030272f3 16076
db137867
AC
16077
16078# configure is writing to config.log, and then calls config.status.
16079# config.status does its own redirection, appending to config.log.
16080# Unfortunately, on DOS this fails, as config.log is still kept open
16081# by configure, so config.status won't be able to write to it; its
16082# output is simply discarded. So we exec the FD to /dev/null,
16083# effectively closing config.log, so it can be properly (re)opened and
16084# appended to by config.status. When coming back to configure, we
16085# need to make the FD available again.
16086if test "$no_create" != yes; then
16087 ac_cs_success=:
16088 ac_config_status_args=
16089 test "$silent" = yes &&
16090 ac_config_status_args="$ac_config_status_args --quiet"
16091 exec 5>/dev/null
16092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16093 exec 5>>config.log
16094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16095 # would make configure fail if this is the last instruction.
08c2568c 16096 $ac_cs_success || as_fn_exit 1
db137867 16097fi
030272f3 16098if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7083c021 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
030272f3
VY
16100$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16101fi
db137867 16102
db137867
AC
16103
16104
16105echo
16106echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
16107echo
16108
16109echo "Installing into: $prefix"
16110
16111echo "IPv6 support ................... $have_v6"
16112echo "Assert debugging ............... $assert"
16113echo "Block allocator ................ $balloc"
c2ac22cc 16114echo "SSL Type........................ $SSL_TYPE"
db137867
AC
16115echo
16116