]> jfr.im git - solanum.git/blame - libratbox/configure
Add default for disable_local_channels. Missed this last time.
[solanum.git] / libratbox / configure
CommitLineData
db137867
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
96f4052b 3# Generated by GNU Autoconf 2.65 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,
96f4052b
AC
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
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.
7083c021 94case $0 in #((
db137867
AC
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
7083c021
AC
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
db137867
AC
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
030272f3 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7083c021 114 exit 1
db137867
AC
115fi
116
7083c021
AC
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
db137867
AC
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
030272f3
VY
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
db137867 134
7083c021
AC
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
234$0: including any error possibly output before this
235$0: message. Then install a modern shell, or manually run
236$0: the script under such a shell if you do have one."
237 fi
238 exit 1
239fi
240fi
241fi
242SHELL=${CONFIG_SHELL-/bin/sh}
243export SHELL
244# Unset more variables known to interfere with behavior of common tools.
245CLICOLOR_FORCE= GREP_OPTIONS=
246unset CLICOLOR_FORCE GREP_OPTIONS
247
248## --------------------- ##
249## M4sh Shell Functions. ##
250## --------------------- ##
251# as_fn_unset VAR
252# ---------------
253# Portably unset VAR.
254as_fn_unset ()
255{
256 { eval $1=; unset $1;}
257}
258as_unset=as_fn_unset
259
260# as_fn_set_status STATUS
261# -----------------------
262# Set $? to STATUS, without forking.
263as_fn_set_status ()
264{
265 return $1
266} # as_fn_set_status
267
268# as_fn_exit STATUS
269# -----------------
270# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271as_fn_exit ()
272{
273 set +e
274 as_fn_set_status $1
275 exit $1
276} # as_fn_exit
277
278# as_fn_mkdir_p
279# -------------
280# Create "$as_dir" as a directory, including parents if necessary.
281as_fn_mkdir_p ()
282{
283
284 case $as_dir in #(
285 -*) as_dir=./$as_dir;;
286 esac
287 test -d "$as_dir" || eval $as_mkdir_p || {
288 as_dirs=
289 while :; do
290 case $as_dir in #(
291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 *) as_qdir=$as_dir;;
293 esac
294 as_dirs="'$as_qdir' $as_dirs"
295 as_dir=`$as_dirname -- "$as_dir" ||
296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297 X"$as_dir" : 'X\(//\)[^/]' \| \
298 X"$as_dir" : 'X\(//\)$' \| \
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300$as_echo X"$as_dir" |
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)[^/].*/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\).*/{
314 s//\1/
315 q
316 }
317 s/.*/./; q'`
318 test -d "$as_dir" && break
319 done
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322
323
324} # as_fn_mkdir_p
325# as_fn_append VAR VALUE
326# ----------------------
327# Append the text in VALUE to the end of the definition contained in VAR. Take
328# advantage of any shell optimizations that allow amortized linear growth over
329# repeated appends, instead of the typical quadratic growth present in naive
330# implementations.
331if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332 eval 'as_fn_append ()
333 {
334 eval $1+=\$2
335 }'
336else
337 as_fn_append ()
338 {
339 eval $1=\$$1\$2
340 }
341fi # as_fn_append
342
343# as_fn_arith ARG...
344# ------------------
345# Perform arithmetic evaluation on the ARGs, and store the result in the
346# global $as_val. Take advantage of shells that can avoid forks. The arguments
347# must be portable across $(()) and expr.
348if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349 eval 'as_fn_arith ()
350 {
351 as_val=$(( $* ))
352 }'
353else
354 as_fn_arith ()
355 {
356 as_val=`expr "$@" || test $? -eq 1`
357 }
358fi # as_fn_arith
359
360
361# as_fn_error ERROR [LINENO LOG_FD]
362# ---------------------------------
363# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365# script with status $?, using 1 if that was 0.
366as_fn_error ()
367{
368 as_status=$?; test $as_status -eq 0 && as_status=1
369 if test "$3"; then
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 fi
373 $as_echo "$as_me: error: $1" >&2
374 as_fn_exit $as_status
375} # as_fn_error
376
db137867
AC
377if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
379 as_expr=expr
380else
381 as_expr=false
382fi
383
384if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385 as_basename=basename
386else
387 as_basename=false
388fi
389
7083c021
AC
390if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391 as_dirname=dirname
392else
393 as_dirname=false
394fi
db137867 395
db137867
AC
396as_me=`$as_basename -- "$0" ||
397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
030272f3 400$as_echo X/"$0" |
db137867
AC
401 sed '/^.*\/\([^/][^/]*\)\/*$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\/\)$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\).*/{
410 s//\1/
411 q
412 }
413 s/.*/./; q'`
414
7083c021
AC
415# Avoid depending upon Character Ranges.
416as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419as_cr_digits='0123456789'
420as_cr_alnum=$as_cr_Letters$as_cr_digits
db137867
AC
421
422
7083c021
AC
423 as_lineno_1=$LINENO as_lineno_1a=$LINENO
424 as_lineno_2=$LINENO as_lineno_2a=$LINENO
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
428 sed -n '
429 p
430 /[$]LINENO/=
431 ' <$as_myself |
432 sed '
433 s/[$]LINENO.*/&-/
434 t lineno
435 b
436 :lineno
437 N
438 :loop
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440 t loop
441 s/-\n.*//
442 ' >$as_me.lineno &&
443 chmod +x "$as_me.lineno" ||
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
db137867 445
7083c021
AC
446 # Don't try to exec as it changes $[0], causing all sort of problems
447 # (the dirname of $[0] is not the place where we might find the
448 # original and so on. Autoconf is especially sensitive to this).
449 . "./$as_me.lineno"
450 # Exit status is that of the last command.
451 exit
db137867
AC
452}
453
7083c021
AC
454ECHO_C= ECHO_N= ECHO_T=
455case `echo -n x` in #(((((
456-n*)
457 case `echo 'xy\c'` in
458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 xy) ECHO_C='\c';;
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
461 ECHO_T=' ';;
462 esac;;
463*)
464 ECHO_N='-n';;
465esac
db137867 466
7083c021
AC
467rm -f conf$$ conf$$.exe conf$$.file
468if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
470else
471 rm -f conf$$.dir
472 mkdir conf$$.dir 2>/dev/null
db137867 473fi
7083c021
AC
474if (echo >conf$$.file) 2>/dev/null; then
475 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 as_ln_s='ln -s'
477 # ... but there are two gotchas:
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 as_ln_s='cp -p'
483 elif ln conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s=ln
485 else
486 as_ln_s='cp -p'
487 fi
db137867 488else
7083c021 489 as_ln_s='cp -p'
db137867 490fi
7083c021
AC
491rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492rmdir conf$$.dir 2>/dev/null
db137867 493
7083c021
AC
494if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
496else
497 test -d ./-p && rmdir ./-p
498 as_mkdir_p=false
db137867
AC
499fi
500
7083c021
AC
501if test -x / >/dev/null 2>&1; then
502 as_test_x='test -x'
db137867 503else
7083c021
AC
504 if ls -dL / >/dev/null 2>&1; then
505 as_ls_L_option=L
506 else
507 as_ls_L_option=
508 fi
509 as_test_x='
510 eval sh -c '\''
511 if test -d "$1"; then
512 test -d "$1/.";
513 else
514 case $1 in #(
515 -*)set "./$1";;
516 esac;
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
519 '\'' sh
520 '
db137867 521fi
7083c021 522as_executable_p=$as_test_x
db137867 523
7083c021
AC
524# Sed expression to map a string onto a valid CPP name.
525as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
db137867 526
7083c021
AC
527# Sed expression to map a string onto a valid variable name.
528as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
db137867
AC
529
530
531
532# Check that we are running under the correct shell.
533SHELL=${CONFIG_SHELL-/bin/sh}
534
7083c021 535case X$lt_ECHO in
db137867
AC
536X*--fallback-echo)
537 # Remove one level of quotation (which was required for Make).
7083c021 538 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
db137867
AC
539 ;;
540esac
541
7083c021 542ECHO=${lt_ECHO-echo}
db137867
AC
543if test "X$1" = X--no-reexec; then
544 # Discard the --no-reexec flag, and continue.
545 shift
546elif test "X$1" = X--fallback-echo; then
547 # Avoid inline document here, it may be left over
548 :
7083c021
AC
549elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550 # Yippee, $ECHO works!
db137867
AC
551 :
552else
553 # Restart under the correct shell.
554 exec $SHELL "$0" --no-reexec ${1+"$@"}
555fi
556
557if test "X$1" = X--fallback-echo; then
558 # used as fallback echo
559 shift
7083c021 560 cat <<_LT_EOF
db137867 561$*
7083c021 562_LT_EOF
db137867
AC
563 exit 0
564fi
565
566# The HP-UX ksh and POSIX shell print the target directory to stdout
567# if CDPATH is set.
568(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
7083c021
AC
570if test -z "$lt_ECHO"; then
571 if test "X${echo_test_string+set}" != Xset; then
572 # find a string as large as possible, as long as the shell can cope with it
573 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
577 then
578 break
579 fi
580 done
581 fi
db137867 582
7083c021
AC
583 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585 test "X$echo_testing_string" = "X$echo_test_string"; then
586 :
587 else
588 # The Solaris, AIX, and Digital Unix default echo programs unquote
589 # backslashes. This makes it impossible to quote backslashes using
590 # echo "$something" | sed 's/\\/\\\\/g'
591 #
592 # So, first we look for a working echo in the user's PATH.
db137867 593
7083c021
AC
594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595 for dir in $PATH /usr/ucb; do
596 IFS="$lt_save_ifs"
597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600 test "X$echo_testing_string" = "X$echo_test_string"; then
601 ECHO="$dir/echo"
602 break
603 fi
604 done
db137867 605 IFS="$lt_save_ifs"
db137867 606
7083c021
AC
607 if test "X$ECHO" = Xecho; then
608 # We didn't find a better echo, so look for alternatives.
609 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # This shell has a builtin print -r that does the trick.
613 ECHO='print -r'
614 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615 test "X$CONFIG_SHELL" != X/bin/ksh; then
616 # If we have ksh, try running configure again with it.
617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618 export ORIGINAL_CONFIG_SHELL
619 CONFIG_SHELL=/bin/ksh
620 export CONFIG_SHELL
621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
db137867 622 else
7083c021
AC
623 # Try using printf.
624 ECHO='printf %s\n'
625 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
628 # Cool, printf works
629 :
630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631 test "X$echo_testing_string" = 'X\t' &&
632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 export CONFIG_SHELL
636 SHELL="$CONFIG_SHELL"
637 export SHELL
638 ECHO="$CONFIG_SHELL $0 --fallback-echo"
639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 else
645 # maybe with a smaller string...
646 prev=:
db137867 647
7083c021
AC
648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
650 then
651 break
652 fi
653 prev="$cmd"
654 done
db137867 655
7083c021
AC
656 if test "$prev" != 'sed 50q "$0"'; then
657 echo_test_string=`eval $prev`
658 export echo_test_string
659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 else
661 # Oops. We lost completely, so just stick with echo.
662 ECHO=echo
663 fi
664 fi
db137867
AC
665 fi
666 fi
667 fi
668fi
db137867
AC
669
670# Copy echo and quote the copy suitably for passing to libtool from
671# the Makefile, instead of quoting the original, which is used later.
7083c021
AC
672lt_ECHO=$ECHO
673if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
db137867
AC
675fi
676
677
678
679
96f4052b
AC
680test -n "$DJDIR" || exec 7<&0 </dev/null
681exec 6>&1
db137867
AC
682
683# Name of the host.
684# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
685# so uname gets run too.
686ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687
688#
689# Initializations.
690#
691ac_default_prefix=/usr/local
692ac_clean_files=
693ac_config_libobj_dir=.
694LIBOBJS=
695cross_compiling=no
696subdirs=
697MFLAGS=
698MAKEFLAGS=
db137867
AC
699
700# Identity of this package.
701PACKAGE_NAME='libratbox'
702PACKAGE_TARNAME='libratbox'
703PACKAGE_VERSION='devel'
704PACKAGE_STRING='libratbox devel'
705PACKAGE_BUGREPORT=''
7083c021 706PACKAGE_URL=''
db137867
AC
707
708ac_default_prefix=/usr/local/libratbox
709# Factoring default headers for most tests.
710ac_includes_default="\
711#include <stdio.h>
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef STDC_HEADERS
719# include <stdlib.h>
720# include <stddef.h>
721#else
722# ifdef HAVE_STDLIB_H
723# include <stdlib.h>
724# endif
725#endif
726#ifdef HAVE_STRING_H
727# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728# include <memory.h>
729# endif
730# include <string.h>
731#endif
732#ifdef HAVE_STRINGS_H
733# include <strings.h>
734#endif
735#ifdef HAVE_INTTYPES_H
736# include <inttypes.h>
737#endif
738#ifdef HAVE_STDINT_H
739# include <stdint.h>
740#endif
741#ifdef HAVE_UNISTD_H
742# include <unistd.h>
743#endif"
744
96f4052b 745ac_header_list=
7083c021
AC
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
030272f3
VY
749LIBOBJS
750RB_PREFIX
751SSL_LIBS
752SSL_CFLAGS
753SEDOBJ
754PICFLAGS
755GNUTLS_LIBS
756GNUTLS_CFLAGS
757PKG_CONFIG
758ALLOCA
759CRYPT_LIB
760NEED_CRYPT_FALSE
761NEED_CRYPT_TRUE
762MINGW_FALSE
763MINGW_TRUE
7083c021
AC
764OTOOL64
765OTOOL
766LIPO
030272f3
VY
767NMEDIT
768DSYMUTIL
7083c021 769lt_ECHO
030272f3
VY
770RANLIB
771AR
7083c021 772OBJDUMP
030272f3 773LN_S
7083c021
AC
774NM
775ac_ct_DUMPBIN
776DUMPBIN
777LD
778FGREP
030272f3
VY
779host_os
780host_vendor
781host_cpu
782host
783build_os
784build_vendor
785build_cpu
786build
7083c021 787LIBTOOL
030272f3
VY
788TOUCH
789LN
790MV
791CP
792RM
793AS
794MAINT
795MAINTAINER_MODE_FALSE
796MAINTAINER_MODE_TRUE
797SED
798EGREP
799GREP
800CPP
801am__fastdepCC_FALSE
802am__fastdepCC_TRUE
803CCDEPMODE
804AMDEPBACKSLASH
805AMDEP_FALSE
806AMDEP_TRUE
807am__quote
808am__include
809DEPDIR
810OBJEXT
811EXEEXT
812ac_ct_CC
813CPPFLAGS
814LDFLAGS
815CFLAGS
816CC
817am__untar
818am__tar
819AMTAR
820am__leading_dot
821SET_MAKE
822AWK
823mkdir_p
824MKDIR_P
825INSTALL_STRIP_PROGRAM
826STRIP
827install_sh
828MAKEINFO
829AUTOHEADER
830AUTOMAKE
831AUTOCONF
832ACLOCAL
833VERSION
834PACKAGE
835CYGPATH_W
836am__isrc
837INSTALL_DATA
838INSTALL_SCRIPT
839INSTALL_PROGRAM
840target_alias
841host_alias
db137867 842build_alias
030272f3
VY
843LIBS
844ECHO_T
845ECHO_N
846ECHO_C
847DEFS
848mandir
849localedir
850libdir
851psdir
852pdfdir
853dvidir
854htmldir
855infodir
856docdir
857oldincludedir
858includedir
859localstatedir
860sharedstatedir
861sysconfdir
862datadir
863datarootdir
864libexecdir
865sbindir
866bindir
867program_transform_name
868prefix
869exec_prefix
7083c021 870PACKAGE_URL
030272f3
VY
871PACKAGE_BUGREPORT
872PACKAGE_STRING
873PACKAGE_VERSION
874PACKAGE_TARNAME
875PACKAGE_NAME
876PATH_SEPARATOR
877SHELL'
878ac_subst_files=''
879ac_user_opts='
880enable_option_checking
881enable_dependency_tracking
882enable_static
883enable_shared
884enable_maintainer_mode
7083c021 885with_pic
030272f3
VY
886enable_fast_install
887with_gnu_ld
888enable_libtool_lock
030272f3
VY
889enable_ipv6
890enable_openssl
891enable_gnutls
892enable_assert
893enable_profile
894enable_balloc
895enable_warnings
896'
897 ac_precious_vars='build_alias
db137867
AC
898host_alias
899target_alias
db137867
AC
900CC
901CFLAGS
902LDFLAGS
030272f3 903LIBS
db137867 904CPPFLAGS
db137867 905CPP
709c1951
AC
906PKG_CONFIG
907GNUTLS_CFLAGS
908GNUTLS_LIBS'
3202e249 909
db137867
AC
910
911# Initialize some variables set by options.
912ac_init_help=
913ac_init_version=false
030272f3
VY
914ac_unrecognized_opts=
915ac_unrecognized_sep=
db137867
AC
916# The variables have the same names as the options, with
917# dashes changed to underlines.
918cache_file=/dev/null
919exec_prefix=NONE
920no_create=
921no_recursion=
922prefix=NONE
923program_prefix=NONE
924program_suffix=NONE
925program_transform_name=s,x,x,
926silent=
927site=
928srcdir=
929verbose=
930x_includes=NONE
931x_libraries=NONE
932
933# Installation directory options.
934# These are left unexpanded so users can "make install exec_prefix=/foo"
935# and all the variables that are supposed to be based on exec_prefix
936# by default will actually change.
937# Use braces instead of parens because sh, perl, etc. also accept them.
938# (The list follows the same order as the GNU Coding Standards.)
939bindir='${exec_prefix}/bin'
940sbindir='${exec_prefix}/sbin'
941libexecdir='${exec_prefix}/libexec'
942datarootdir='${prefix}/share'
943datadir='${datarootdir}'
944sysconfdir='${prefix}/etc'
945sharedstatedir='${prefix}/com'
946localstatedir='${prefix}/var'
947includedir='${prefix}/include'
948oldincludedir='/usr/include'
949docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
950infodir='${datarootdir}/info'
951htmldir='${docdir}'
952dvidir='${docdir}'
953pdfdir='${docdir}'
954psdir='${docdir}'
955libdir='${exec_prefix}/lib'
956localedir='${datarootdir}/locale'
957mandir='${datarootdir}/man'
958
959ac_prev=
960ac_dashdash=
961for ac_option
962do
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
966 ac_prev=
967 continue
968 fi
969
970 case $ac_option in
971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *) ac_optarg=yes ;;
973 esac
974
975 # Accept the important Cygnus configure options, so we can diagnose typos.
976
977 case $ac_dashdash$ac_option in
978 --)
979 ac_dashdash=yes ;;
980
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 bindir=$ac_optarg ;;
985
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
990
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
997
998 --config-cache | -C)
999 cache_file=config.cache ;;
1000
1001 -datadir | --datadir | --datadi | --datad)
1002 ac_prev=datadir ;;
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1005
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1012
1013 -disable-* | --disable-*)
030272f3 1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
db137867 1015 # Reject names that are not valid shell variable names.
030272f3 1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
7083c021 1017 as_fn_error "invalid feature name: $ac_useropt"
030272f3
VY
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022"enable_$ac_useropt"
1023"*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=no ;;
db137867
AC
1028
1029 -docdir | --docdir | --docdi | --doc | --do)
1030 ac_prev=docdir ;;
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1033
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 ac_prev=dvidir ;;
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
1038
1039 -enable-* | --enable-*)
030272f3 1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
db137867 1041 # Reject names that are not valid shell variable names.
030272f3 1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
7083c021 1043 as_fn_error "invalid feature name: $ac_useropt"
030272f3
VY
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048"enable_$ac_useropt"
1049"*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=\$ac_optarg ;;
db137867
AC
1054
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
1062 exec_prefix=$ac_optarg ;;
1063
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1066 with_gas=yes ;;
1067
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
1074
1075 -host | --host | --hos | --ho)
1076 ac_prev=host_alias ;;
1077 -host=* | --host=* | --hos=* | --ho=*)
1078 host_alias=$ac_optarg ;;
1079
1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 ac_prev=htmldir ;;
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 | --ht=*)
1084 htmldir=$ac_optarg ;;
1085
1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
1091 includedir=$ac_optarg ;;
1092
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 ac_prev=infodir ;;
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096 infodir=$ac_optarg ;;
1097
1098 -libdir | --libdir | --libdi | --libd)
1099 ac_prev=libdir ;;
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101 libdir=$ac_optarg ;;
1102
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
1108 libexecdir=$ac_optarg ;;
1109
1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1114
1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
1116 | --localstate | --localstat | --localsta | --localst | --locals)
1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120 localstatedir=$ac_optarg ;;
1121
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 ac_prev=mandir ;;
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125 mandir=$ac_optarg ;;
1126
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1129 with_fp=no ;;
1130
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132 | --no-cr | --no-c | -n)
1133 no_create=yes ;;
1134
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 no_recursion=yes ;;
1138
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146 oldincludedir=$ac_optarg ;;
1147
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 ac_prev=prefix ;;
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151 prefix=$ac_optarg ;;
1152
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158 program_prefix=$ac_optarg ;;
1159
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165 program_suffix=$ac_optarg ;;
1166
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
1182 program_transform_name=$ac_optarg ;;
1183
1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 ac_prev=pdfdir ;;
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1188
1189 -psdir | --psdir | --psdi | --psd | --ps)
1190 ac_prev=psdir ;;
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 psdir=$ac_optarg ;;
1193
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 silent=yes ;;
1197
1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 ac_prev=sbindir ;;
1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 | --sbi=* | --sb=*)
1202 sbindir=$ac_optarg ;;
1203
1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206 | --sharedst | --shareds | --shared | --share | --shar \
1207 | --sha | --sh)
1208 ac_prev=sharedstatedir ;;
1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 | --sha=* | --sh=*)
1213 sharedstatedir=$ac_optarg ;;
1214
1215 -site | --site | --sit)
1216 ac_prev=site ;;
1217 -site=* | --site=* | --sit=*)
1218 site=$ac_optarg ;;
1219
1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 ac_prev=srcdir ;;
1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223 srcdir=$ac_optarg ;;
1224
1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226 | --syscon | --sysco | --sysc | --sys | --sy)
1227 ac_prev=sysconfdir ;;
1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230 sysconfdir=$ac_optarg ;;
1231
1232 -target | --target | --targe | --targ | --tar | --ta | --t)
1233 ac_prev=target_alias ;;
1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235 target_alias=$ac_optarg ;;
1236
1237 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 verbose=yes ;;
1239
1240 -version | --version | --versio | --versi | --vers | -V)
1241 ac_init_version=: ;;
1242
1243 -with-* | --with-*)
030272f3 1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
db137867 1245 # Reject names that are not valid shell variable names.
030272f3 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
7083c021 1247 as_fn_error "invalid package name: $ac_useropt"
030272f3
VY
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252"with_$ac_useropt"
1253"*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=\$ac_optarg ;;
db137867
AC
1258
1259 -without-* | --without-*)
030272f3 1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
db137867 1261 # Reject names that are not valid shell variable names.
030272f3 1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
7083c021 1263 as_fn_error "invalid package name: $ac_useropt"
030272f3
VY
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1267 *"
1268"with_$ac_useropt"
1269"*) ;;
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1272 esac
1273 eval with_$ac_useropt=no ;;
db137867
AC
1274
1275 --x)
1276 # Obsolete; use --with-x.
1277 with_x=yes ;;
1278
1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280 | --x-incl | --x-inc | --x-in | --x-i)
1281 ac_prev=x_includes ;;
1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284 x_includes=$ac_optarg ;;
1285
1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288 ac_prev=x_libraries ;;
1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291 x_libraries=$ac_optarg ;;
1292
7083c021
AC
1293 -*) as_fn_error "unrecognized option: \`$ac_option'
1294Try \`$0 --help' for more information."
db137867
AC
1295 ;;
1296
1297 *=*)
1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
7083c021
AC
1300 case $ac_envvar in #(
1301 '' | [0-9]* | *[!_$as_cr_alnum]* )
1302 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1303 esac
db137867
AC
1304 eval $ac_envvar=\$ac_optarg
1305 export $ac_envvar ;;
1306
1307 *)
1308 # FIXME: should be removed in autoconf 3.0.
030272f3 1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
db137867 1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
030272f3 1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
db137867
AC
1312 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1313 ;;
1314
1315 esac
1316done
1317
1318if test -n "$ac_prev"; then
1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
7083c021 1320 as_fn_error "missing argument to $ac_option"
db137867
AC
1321fi
1322
030272f3
VY
1323if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1325 no) ;;
7083c021 1326 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
030272f3
VY
1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 esac
1329fi
1330
1331# Check all directory arguments for consistency.
db137867
AC
1332for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1336do
1337 eval ac_val=\$$ac_var
030272f3
VY
1338 # Remove trailing slashes.
1339 case $ac_val in
1340 */ )
1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\$ac_val;;
1343 esac
1344 # Be sure to have absolute directory names.
db137867
AC
1345 case $ac_val in
1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348 esac
7083c021 1349 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
db137867
AC
1350done
1351
1352# There might be people who depend on the old broken behavior: `$host'
1353# used to hold the argument of --host etc.
1354# FIXME: To remove some day.
1355build=$build_alias
1356host=$host_alias
1357target=$target_alias
1358
1359# FIXME: To remove some day.
1360if test "x$host_alias" != x; then
1361 if test "x$build_alias" = x; then
1362 cross_compiling=maybe
030272f3 1363 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
db137867
AC
1364 If a cross compiler is detected then cross compile mode will be used." >&2
1365 elif test "x$build_alias" != "x$host_alias"; then
1366 cross_compiling=yes
1367 fi
1368fi
1369
1370ac_tool_prefix=
1371test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
1373test "$silent" = yes && exec 6>/dev/null
1374
1375
1376ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377ac_ls_di=`ls -di .` &&
1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
7083c021 1379 as_fn_error "working directory cannot be determined"
db137867 1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
7083c021 1381 as_fn_error "pwd does not report name of working directory"
db137867
AC
1382
1383
1384# Find the source files, if location was not specified.
1385if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
1387 # Try the directory containing this script, then the parent directory.
030272f3
VY
1388 ac_confdir=`$as_dirname -- "$as_myself" ||
1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393$as_echo X"$as_myself" |
db137867
AC
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)[^/].*/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\).*/{
1407 s//\1/
1408 q
1409 }
1410 s/.*/./; q'`
1411 srcdir=$ac_confdir
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 srcdir=..
1414 fi
1415else
1416 ac_srcdir_defaulted=no
1417fi
1418if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
7083c021 1420 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
db137867
AC
1421fi
1422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423ac_abs_confdir=`(
7083c021 1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
db137867
AC
1425 pwd)`
1426# When building in place, set srcdir=.
1427if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 srcdir=.
1429fi
1430# Remove unnecessary trailing slashes from srcdir.
1431# Double slashes in file names in object file debugging info
1432# mess up M-x gdb in Emacs.
1433case $srcdir in
1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435esac
1436for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441done
1442
1443#
1444# Report the --help message.
1445#
1446if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1449 cat <<_ACEOF
1450\`configure' configures libratbox devel to adapt to many kinds of systems.
1451
1452Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455VAR=VALUE. See below for descriptions of some of the useful variables.
1456
1457Defaults for the options are specified in brackets.
1458
1459Configuration:
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469
1470Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
030272f3 1472 [$ac_default_prefix]
db137867 1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
030272f3 1474 [PREFIX]
db137867
AC
1475
1476By default, \`make install' will install all the files in
1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479for instance \`--prefix=\$HOME'.
1480
1481For better control, use the options below.
1482
1483Fine tuning of the installation directories:
030272f3
VY
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
db137867
AC
1503_ACEOF
1504
1505 cat <<\_ACEOF
1506
1507Program names:
1508 --program-prefix=PREFIX prepend PREFIX to installed program names
1509 --program-suffix=SUFFIX append SUFFIX to installed program names
1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1511
1512System types:
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1515_ACEOF
1516fi
1517
1518if test -n "$ac_init_help"; then
1519 case $ac_init_help in
1520 short | recursive ) echo "Configuration of libratbox devel:";;
1521 esac
1522 cat <<\_ACEOF
1523
1524Optional Features:
030272f3 1525 --disable-option-checking ignore unrecognized --enable/--with options
db137867
AC
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1528 --disable-dependency-tracking speeds up one-time build
1529 --enable-dependency-tracking do not reject slow dependency extractors
1530 --enable-static[=PKGS] build static libraries [default=no]
1531 --enable-shared[=PKGS] build shared libraries [default=yes]
1532 --enable-maintainer-mode enable make rules and dependencies not useful
1533 (and sometimes confusing) to the casual installer
1534 --enable-fast-install[=PKGS]
1535 optimize for fast installation [default=yes]
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1537 --disable-ipv6 Disable IPv6 support
1538 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1539 --disable-openssl Disable OpenSSL support.
c2ac22cc
VY
1540 --enable-gnutls Enable GnuTLS support.
1541 --disable-gnutls Disable GnuTLS support.
db137867
AC
1542 --enable-assert Enable assert(). Choose between soft(warnings) and
1543 hard(aborts the daemon)
1544 --enable-profile Enable profiling
1545 --disable-balloc Disable the block allocator.
1546 --enable-warnings Enable all sorts of warnings for debugging.
1547
1548Optional Packages:
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
db137867
AC
1551 --with-pic try to use only PIC/non-PIC objects [default=use
1552 both]
7083c021 1553 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
db137867
AC
1554
1555Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
1560 LIBS libraries to pass to the linker, e.g. -l<library>
96f4052b 1561 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
db137867
AC
1562 you have headers in a nonstandard directory <include dir>
1563 CPP C preprocessor
709c1951
AC
1564 PKG_CONFIG path to pkg-config utility
1565 GNUTLS_CFLAGS
1566 C compiler flags for GNUTLS, overriding pkg-config
1567 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
db137867
AC
1568
1569Use these variables to override the choices made by `configure' or to help
1570it to find libraries and programs with nonstandard names/locations.
1571
7083c021 1572Report bugs to the package provider.
db137867
AC
1573_ACEOF
1574ac_status=$?
1575fi
1576
1577if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
030272f3
VY
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 continue
db137867
AC
1583 ac_builddir=.
1584
1585case "$ac_dir" in
1586.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587*)
030272f3 1588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
db137867 1589 # A ".." for each directory in $ac_dir_suffix.
030272f3 1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
db137867
AC
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594 esac ;;
1595esac
1596ac_abs_top_builddir=$ac_pwd
1597ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598# for backward compatibility:
1599ac_top_builddir=$ac_top_build_prefix
1600
1601case $srcdir in
1602 .) # We are building in place.
1603 ac_srcdir=.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1610 *) # Relative name.
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614esac
1615ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1625 else
030272f3 1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
db137867
AC
1627 fi || ac_status=$?
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1629 done
1630fi
1631
1632test -n "$ac_init_help" && exit $ac_status
1633if $ac_init_version; then
1634 cat <<\_ACEOF
1635libratbox configure devel
96f4052b 1636generated by GNU Autoconf 2.65
db137867 1637
7083c021 1638Copyright (C) 2009 Free Software Foundation, Inc.
db137867
AC
1639This configure script is free software; the Free Software Foundation
1640gives unlimited permission to copy, distribute and modify it.
1641
030272f3 1642$Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
db137867
AC
1643_ACEOF
1644 exit
1645fi
7083c021
AC
1646
1647## ------------------------ ##
1648## Autoconf initialization. ##
1649## ------------------------ ##
1650
1651# ac_fn_c_try_compile LINENO
1652# --------------------------
1653# Try to compile conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_compile ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext
1658 if { { ac_try="$ac_compile"
1659case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_compile") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest.$ac_objext; then :
1677 ac_retval=0
1678else
1679 $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1
1683fi
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
96f4052b 1685 as_fn_set_status $ac_retval
7083c021
AC
1686
1687} # ac_fn_c_try_compile
1688
1689# ac_fn_c_try_cpp LINENO
1690# ----------------------
1691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_cpp ()
1693{
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } >/dev/null && {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720fi
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
96f4052b 1722 as_fn_set_status $ac_retval
7083c021
AC
1723
1724} # ac_fn_c_try_cpp
1725
1726# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1727# -------------------------------------------------------
1728# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1729# the include files in INCLUDES and setting the cache variable VAR
1730# accordingly.
1731ac_fn_c_check_header_mongrel ()
1732{
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738 $as_echo_n "(cached) " >&6
1739fi
1740eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
1743else
1744 # Is the header compilable?
1745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1746$as_echo_n "checking $2 usability... " >&6; }
1747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h. */
1749$4
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753 ac_header_compiler=yes
1754else
1755 ac_header_compiler=no
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1759$as_echo "$ac_header_compiler" >&6; }
1760
1761# Is the header present?
1762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1763$as_echo_n "checking $2 presence... " >&6; }
1764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h. */
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_cpp "$LINENO"; then :
1769 ac_header_preproc=yes
1770else
1771 ac_header_preproc=no
1772fi
1773rm -f conftest.err conftest.$ac_ext
1774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1775$as_echo "$ac_header_preproc" >&6; }
1776
1777# So? What about this header?
1778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1779 yes:no: )
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1781$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1783$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 ;;
1785 no:yes:* )
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1787$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1789$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1791$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1793$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 ;;
1797esac
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799$as_echo_n "checking for $2... " >&6; }
1800if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801 $as_echo_n "(cached) " >&6
1802else
1803 eval "$3=\$ac_header_compiler"
1804fi
1805eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808fi
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810
1811} # ac_fn_c_check_header_mongrel
1812
1813# ac_fn_c_try_run LINENO
1814# ----------------------
1815# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1816# that executables *can* be run.
1817ac_fn_c_try_run ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_link"
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831 { { case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_try") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; }; }; then :
1841 ac_retval=0
1842else
1843 $as_echo "$as_me: program exited with status $ac_status" >&5
1844 $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=$ac_status
1848fi
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
96f4052b 1851 as_fn_set_status $ac_retval
7083c021
AC
1852
1853} # ac_fn_c_try_run
1854
1855# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1856# -------------------------------------------------------
1857# Tests whether HEADER exists and can be compiled using the include files in
1858# INCLUDES, setting the cache variable VAR accordingly.
1859ac_fn_c_check_header_compile ()
1860{
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
1864if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 $as_echo_n "(cached) " >&6
1866else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h. */
1869$4
1870#include <$2>
1871_ACEOF
1872if ac_fn_c_try_compile "$LINENO"; then :
1873 eval "$3=yes"
1874else
1875 eval "$3=no"
1876fi
1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878fi
1879eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881$as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883
1884} # ac_fn_c_check_header_compile
1885
1886# ac_fn_c_try_link LINENO
1887# -----------------------
1888# Try to link conftest.$ac_ext, and return whether this succeeded.
1889ac_fn_c_try_link ()
1890{
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext conftest$ac_exeext
1893 if { { ac_try="$ac_link"
1894case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_c_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest$ac_exeext && {
1912 test "$cross_compiling" = yes ||
1913 $as_test_x conftest$ac_exeext
1914 }; then :
1915 ac_retval=0
1916else
1917 $as_echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=1
1921fi
1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1924 # interfere with the next link command; also delete a directory that is
1925 # left behind by Apple's compiler. We do this before executing the actions.
1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
96f4052b 1928 as_fn_set_status $ac_retval
7083c021
AC
1929
1930} # ac_fn_c_try_link
1931
1932# ac_fn_c_check_func LINENO FUNC VAR
1933# ----------------------------------
1934# Tests whether FUNC exists, setting the cache variable VAR accordingly
1935ac_fn_c_check_func ()
1936{
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939$as_echo_n "checking for $2... " >&6; }
1940if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941 $as_echo_n "(cached) " >&6
1942else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1947#define $2 innocuous_$2
1948
1949/* System header to define __stub macros and hopefully few prototypes,
1950 which can conflict with char $2 (); below.
1951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1952 <limits.h> exists even on freestanding compilers. */
1953
1954#ifdef __STDC__
1955# include <limits.h>
1956#else
1957# include <assert.h>
1958#endif
1959
1960#undef $2
1961
1962/* Override any GCC internal prototype to avoid an error.
1963 Use char because int might match the return type of a GCC
1964 builtin and then its argument prototype would still apply. */
1965#ifdef __cplusplus
1966extern "C"
1967#endif
1968char $2 ();
1969/* The GNU C library defines this for functions which it implements
1970 to always fail with ENOSYS. Some functions are actually named
1971 something starting with __ and the normal name is an alias. */
1972#if defined __stub_$2 || defined __stub___$2
1973choke me
1974#endif
1975
1976int
1977main ()
1978{
1979return $2 ();
1980 ;
1981 return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_link "$LINENO"; then :
1985 eval "$3=yes"
1986else
1987 eval "$3=no"
1988fi
1989rm -f core conftest.err conftest.$ac_objext \
1990 conftest$ac_exeext conftest.$ac_ext
1991fi
1992eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996
1997} # ac_fn_c_check_func
1998
1999# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2000# -------------------------------------------
2001# Tests whether TYPE exists after having included INCLUDES, setting cache
2002# variable VAR accordingly.
2003ac_fn_c_check_type ()
2004{
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007$as_echo_n "checking for $2... " >&6; }
2008if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2009 $as_echo_n "(cached) " >&6
2010else
2011 eval "$3=no"
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h. */
2014$4
2015int
2016main ()
2017{
2018if (sizeof ($2))
2019 return 0;
2020 ;
2021 return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h. */
2027$4
2028int
2029main ()
2030{
2031if (sizeof (($2)))
2032 return 0;
2033 ;
2034 return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038
2039else
2040 eval "$3=yes"
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045fi
2046eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048$as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050
2051} # ac_fn_c_check_type
2052
2053# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2054# ----------------------------------------------------
2055# Tries to find if the field MEMBER exists in type AGGR, after including
2056# INCLUDES, setting cache variable VAR accordingly.
2057ac_fn_c_check_member ()
2058{
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2061$as_echo_n "checking for $2.$3... " >&6; }
2062if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2063 $as_echo_n "(cached) " >&6
2064else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h. */
2067$5
2068int
2069main ()
2070{
2071static $2 ac_aggr;
2072if (ac_aggr.$3)
2073return 0;
2074 ;
2075 return 0;
2076}
2077_ACEOF
2078if ac_fn_c_try_compile "$LINENO"; then :
2079 eval "$4=yes"
2080else
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$5
2084int
2085main ()
2086{
2087static $2 ac_aggr;
2088if (sizeof ac_aggr.$3)
2089return 0;
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$4=yes"
2096else
2097 eval "$4=no"
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102fi
2103eval ac_res=\$$4
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105$as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107
2108} # ac_fn_c_check_member
db137867
AC
2109cat >config.log <<_ACEOF
2110This file contains any messages produced by compilers while
2111running configure, to aid debugging if configure makes a mistake.
2112
2113It was created by libratbox $as_me devel, which was
96f4052b 2114generated by GNU Autoconf 2.65. Invocation command line was
db137867
AC
2115
2116 $ $0 $@
2117
2118_ACEOF
2119exec 5>>config.log
2120{
2121cat <<_ASUNAME
2122## --------- ##
2123## Platform. ##
2124## --------- ##
2125
2126hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2127uname -m = `(uname -m) 2>/dev/null || echo unknown`
2128uname -r = `(uname -r) 2>/dev/null || echo unknown`
2129uname -s = `(uname -s) 2>/dev/null || echo unknown`
2130uname -v = `(uname -v) 2>/dev/null || echo unknown`
2131
2132/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2133/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2134
2135/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2136/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2137/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2138/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2139/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2140/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2141/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2142
2143_ASUNAME
2144
2145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
7083c021
AC
2150 $as_echo "PATH: $as_dir"
2151 done
db137867
AC
2152IFS=$as_save_IFS
2153
2154} >&5
2155
2156cat >&5 <<_ACEOF
2157
2158
2159## ----------- ##
2160## Core tests. ##
2161## ----------- ##
2162
2163_ACEOF
2164
2165
2166# Keep a trace of the command line.
2167# Strip out --no-create and --no-recursion so they do not pile up.
2168# Strip out --silent because we don't want to record it for future runs.
2169# Also quote any args containing shell meta-characters.
2170# Make two passes to allow for proper duplicate-argument suppression.
2171ac_configure_args=
2172ac_configure_args0=
2173ac_configure_args1=
2174ac_must_keep_next=false
2175for ac_pass in 1 2
2176do
2177 for ac_arg
2178 do
2179 case $ac_arg in
2180 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2182 | -silent | --silent | --silen | --sile | --sil)
2183 continue ;;
2184 *\'*)
030272f3 2185 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
db137867
AC
2186 esac
2187 case $ac_pass in
7083c021 2188 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
db137867 2189 2)
7083c021 2190 as_fn_append ac_configure_args1 " '$ac_arg'"
db137867
AC
2191 if test $ac_must_keep_next = true; then
2192 ac_must_keep_next=false # Got value, back to normal.
2193 else
2194 case $ac_arg in
2195 *=* | --config-cache | -C | -disable-* | --disable-* \
2196 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2197 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2198 | -with-* | --with-* | -without-* | --without-* | --x)
2199 case "$ac_configure_args0 " in
2200 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2201 esac
2202 ;;
2203 -* ) ac_must_keep_next=true ;;
2204 esac
2205 fi
7083c021 2206 as_fn_append ac_configure_args " '$ac_arg'"
db137867
AC
2207 ;;
2208 esac
2209 done
2210done
7083c021
AC
2211{ ac_configure_args0=; unset ac_configure_args0;}
2212{ ac_configure_args1=; unset ac_configure_args1;}
db137867
AC
2213
2214# When interrupted or exit'd, cleanup temporary files, and complete
2215# config.log. We remove comments because anyway the quotes in there
2216# would cause problems or look ugly.
2217# WARNING: Use '\'' to represent an apostrophe within the trap.
2218# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2219trap 'exit_status=$?
2220 # Save into config.log some information that might help in debugging.
2221 {
2222 echo
2223
2224 cat <<\_ASBOX
2225## ---------------- ##
2226## Cache variables. ##
2227## ---------------- ##
2228_ASBOX
2229 echo
2230 # The following way of writing the cache mishandles newlines in values,
2231(
2232 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2233 eval ac_val=\$$ac_var
2234 case $ac_val in #(
2235 *${as_nl}*)
2236 case $ac_var in #(
7083c021 2237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
030272f3 2238$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
db137867
AC
2239 esac
2240 case $ac_var in #(
2241 _ | IFS | as_nl) ;; #(
030272f3 2242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7083c021 2243 *) { eval $ac_var=; unset $ac_var;} ;;
db137867
AC
2244 esac ;;
2245 esac
2246 done
2247 (set) 2>&1 |
2248 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2249 *${as_nl}ac_space=\ *)
2250 sed -n \
2251 "s/'\''/'\''\\\\'\'''\''/g;
2252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253 ;; #(
2254 *)
2255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2256 ;;
2257 esac |
2258 sort
2259)
2260 echo
2261
2262 cat <<\_ASBOX
2263## ----------------- ##
2264## Output variables. ##
2265## ----------------- ##
2266_ASBOX
2267 echo
2268 for ac_var in $ac_subst_vars
2269 do
2270 eval ac_val=\$$ac_var
2271 case $ac_val in
030272f3 2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
db137867 2273 esac
030272f3 2274 $as_echo "$ac_var='\''$ac_val'\''"
db137867
AC
2275 done | sort
2276 echo
2277
2278 if test -n "$ac_subst_files"; then
2279 cat <<\_ASBOX
2280## ------------------- ##
2281## File substitutions. ##
2282## ------------------- ##
2283_ASBOX
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
2297 cat <<\_ASBOX
2298## ----------- ##
2299## confdefs.h. ##
2300## ----------- ##
2301_ASBOX
2302 echo
2303 cat confdefs.h
2304 echo
2305 fi
2306 test "$ac_signal" != 0 &&
030272f3
VY
2307 $as_echo "$as_me: caught signal $ac_signal"
2308 $as_echo "$as_me: exit $exit_status"
db137867
AC
2309 } >&5
2310 rm -f core *.core core.conftest.* &&
2311 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312 exit $exit_status
2313' 0
2314for ac_signal in 1 2 13 15; do
7083c021 2315 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
db137867
AC
2316done
2317ac_signal=0
2318
2319# confdefs.h avoids OS command line length limits that DEFS can exceed.
2320rm -f -r conftest* confdefs.h
2321
7083c021
AC
2322$as_echo "/* confdefs.h */" > confdefs.h
2323
db137867
AC
2324# Predefined preprocessor variables.
2325
2326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_NAME "$PACKAGE_NAME"
2328_ACEOF
2329
db137867
AC
2330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332_ACEOF
2333
db137867
AC
2334cat >>confdefs.h <<_ACEOF
2335#define PACKAGE_VERSION "$PACKAGE_VERSION"
2336_ACEOF
2337
db137867
AC
2338cat >>confdefs.h <<_ACEOF
2339#define PACKAGE_STRING "$PACKAGE_STRING"
2340_ACEOF
2341
db137867
AC
2342cat >>confdefs.h <<_ACEOF
2343#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344_ACEOF
2345
7083c021
AC
2346cat >>confdefs.h <<_ACEOF
2347#define PACKAGE_URL "$PACKAGE_URL"
2348_ACEOF
2349
db137867
AC
2350
2351# Let the site file select an alternate cache file if it wants to.
030272f3
VY
2352# Prefer an explicitly selected file to automatically selected ones.
2353ac_site_file1=NONE
2354ac_site_file2=NONE
db137867 2355if test -n "$CONFIG_SITE"; then
030272f3 2356 ac_site_file1=$CONFIG_SITE
db137867 2357elif test "x$prefix" != xNONE; then
030272f3
VY
2358 ac_site_file1=$prefix/share/config.site
2359 ac_site_file2=$prefix/etc/config.site
db137867 2360else
030272f3
VY
2361 ac_site_file1=$ac_default_prefix/share/config.site
2362 ac_site_file2=$ac_default_prefix/etc/config.site
db137867 2363fi
030272f3 2364for ac_site_file in "$ac_site_file1" "$ac_site_file2"
db137867 2365do
030272f3 2366 test "x$ac_site_file" = xNONE && continue
96f4052b 2367 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
030272f3 2369$as_echo "$as_me: loading site script $ac_site_file" >&6;}
db137867
AC
2370 sed 's/^/| /' "$ac_site_file" >&5
2371 . "$ac_site_file"
2372 fi
2373done
2374
2375if test -r "$cache_file"; then
96f4052b
AC
2376 # Some versions of bash will fail to source /dev/null (special files
2377 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2378 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
030272f3 2380$as_echo "$as_me: loading cache $cache_file" >&6;}
db137867
AC
2381 case $cache_file in
2382 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2383 *) . "./$cache_file";;
2384 esac
2385 fi
2386else
7083c021 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
030272f3 2388$as_echo "$as_me: creating cache $cache_file" >&6;}
db137867
AC
2389 >$cache_file
2390fi
2391
96f4052b
AC
2392as_fn_append ac_header_list " stdlib.h"
2393as_fn_append ac_header_list " unistd.h"
2394as_fn_append ac_header_list " sys/param.h"
db137867
AC
2395# Check that the precious variables saved in the cache have kept the same
2396# value.
2397ac_cache_corrupted=false
2398for ac_var in $ac_precious_vars; do
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
2403 case $ac_old_set,$ac_new_set in
2404 set,)
7083c021 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
030272f3 2406$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
db137867
AC
2407 ac_cache_corrupted=: ;;
2408 ,set)
7083c021 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
030272f3 2410$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
db137867
AC
2411 ac_cache_corrupted=: ;;
2412 ,);;
2413 *)
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
030272f3
VY
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x $ac_old_val`
2417 ac_new_val_w=`echo x $ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
7083c021 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
030272f3
VY
2420$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421 ac_cache_corrupted=:
2422 else
7083c021 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
030272f3
VY
2424$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2426 fi
7083c021 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
030272f3 2428$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
7083c021 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
030272f3 2430$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
db137867
AC
2431 fi;;
2432 esac
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2435 case $ac_new_val in
030272f3 2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
db137867
AC
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2438 esac
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
7083c021 2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
db137867
AC
2442 esac
2443 fi
2444done
2445if $ac_cache_corrupted; then
7083c021 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 2447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083c021 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
030272f3 2449$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
7083c021 2450 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
db137867 2451fi
7083c021
AC
2452## -------------------- ##
2453## Main body of script. ##
2454## -------------------- ##
db137867 2455
7083c021
AC
2456ac_ext=c
2457ac_cpp='$CPP $CPPFLAGS'
2458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460ac_compiler_gnu=$ac_cv_c_compiler_gnu
db137867
AC
2461
2462
7083c021 2463am__api_version='1.11'
db137867 2464
7083c021
AC
2465ac_aux_dir=
2466for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2467 for ac_t in install-sh install.sh shtool; do
2468 if test -f "$ac_dir/$ac_t"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/$ac_t -c"
2471 break 2
2472 fi
2473 done
2474done
2475if test -z "$ac_aux_dir"; then
2476 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2477fi
db137867 2478
7083c021
AC
2479# These three variables are undocumented and unsupported,
2480# and are intended to be withdrawn in a future Autoconf release.
2481# They can cause serious problems if a builder's source tree is in a directory
2482# whose full name contains unusual characters.
2483ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2484ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2485ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
db137867
AC
2486
2487
2488# Find a good install program. We prefer a C program (faster),
2489# so one script is as good as another. But avoid the broken or
2490# incompatible versions:
2491# SysV /etc/install, /usr/sbin/install
2492# SunOS /usr/etc/install
2493# IRIX /sbin/install
2494# AIX /bin/install
2495# AmigaOS /C/install, which installs bootblocks on floppy discs
2496# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499# OS/2's system install, which has a completely different semantic
2500# ./install, which can be erroneously created by make from ./install.sh.
030272f3 2501# Reject install programs that cannot install multiple files.
7083c021 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
030272f3 2503$as_echo_n "checking for a BSD-compatible install... " >&6; }
db137867 2504if test -z "$INSTALL"; then
7083c021 2505if test "${ac_cv_path_install+set}" = set; then :
030272f3 2506 $as_echo_n "(cached) " >&6
db137867
AC
2507else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
7083c021
AC
2513 # Account for people who put trailing slashes in PATH elements.
2514case $as_dir/ in #((
2515 ./ | .// | /[cC]/* | \
db137867 2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7083c021 2517 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
db137867
AC
2518 /usr/ucb/* ) ;;
2519 *)
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # AIX install. It has an incompatible calling convention.
2529 :
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2533 :
2534 else
030272f3
VY
2535 rm -rf conftest.one conftest.two conftest.dir
2536 echo one > conftest.one
2537 echo two > conftest.two
2538 mkdir conftest.dir
2539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2540 test -s conftest.one && test -s conftest.two &&
2541 test -s conftest.dir/conftest.one &&
2542 test -s conftest.dir/conftest.two
2543 then
2544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2545 break 3
2546 fi
db137867
AC
2547 fi
2548 fi
2549 done
2550 done
2551 ;;
2552esac
030272f3 2553
7083c021 2554 done
db137867
AC
2555IFS=$as_save_IFS
2556
030272f3 2557rm -rf conftest.one conftest.two conftest.dir
db137867
AC
2558
2559fi
2560 if test "${ac_cv_path_install+set}" = set; then
2561 INSTALL=$ac_cv_path_install
2562 else
2563 # As a last resort, use the slow shell script. Don't cache a
2564 # value for INSTALL within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the value is a relative name.
2567 INSTALL=$ac_install_sh
2568 fi
2569fi
7083c021 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
030272f3 2571$as_echo "$INSTALL" >&6; }
db137867
AC
2572
2573# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2574# It thinks the first close brace ends the variable substitution.
2575test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2576
2577test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2578
2579test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2580
7083c021 2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
030272f3 2582$as_echo_n "checking whether build environment is sane... " >&6; }
db137867
AC
2583# Just in case
2584sleep 1
2585echo timestamp > conftest.file
7083c021
AC
2586# Reject unsafe characters in $srcdir or the absolute working directory
2587# name. Accept space and tab only in the latter.
2588am_lf='
2589'
2590case `pwd` in
2591 *[\\\"\#\$\&\'\`$am_lf]*)
2592 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2593esac
2594case $srcdir in
2595 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2596 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2597esac
2598
db137867
AC
2599# Do `set' in a subshell so we don't clobber the current shell's
2600# arguments. Must try -L first in case configure is actually a
2601# symlink; some systems play weird games with the mod time of symlinks
2602# (eg FreeBSD returns the mod time of the symlink's containing
2603# directory).
2604if (
7083c021 2605 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
db137867
AC
2606 if test "$*" = "X"; then
2607 # -L didn't work.
7083c021 2608 set X `ls -t "$srcdir/configure" conftest.file`
db137867
AC
2609 fi
2610 rm -f conftest.file
2611 if test "$*" != "X $srcdir/configure conftest.file" \
2612 && test "$*" != "X conftest.file $srcdir/configure"; then
2613
2614 # If neither matched, then we have a broken ls. This can happen
2615 # if, for instance, CONFIG_SHELL is bash and it inherits a
2616 # broken ls alias from the environment. This has actually
2617 # happened. Such a system could not be considered "sane".
7083c021
AC
2618 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2619alias in your environment" "$LINENO" 5
db137867
AC
2620 fi
2621
2622 test "$2" = conftest.file
2623 )
2624then
2625 # Ok.
2626 :
2627else
7083c021
AC
2628 as_fn_error "newly created file is older than distributed files!
2629Check your system clock" "$LINENO" 5
db137867 2630fi
7083c021 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3 2632$as_echo "yes" >&6; }
db137867
AC
2633test "$program_prefix" != NONE &&
2634 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2635# Use a double $ so make ignores it.
2636test "$program_suffix" != NONE &&
2637 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
030272f3 2638# Double any \ or $.
db137867 2639# By default was `s,x,x', remove it if useless.
030272f3
VY
2640ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2641program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
db137867
AC
2642
2643# expand $ac_aux_dir to an absolute path
2644am_aux_dir=`cd $ac_aux_dir && pwd`
2645
7083c021
AC
2646if test x"${MISSING+set}" != xset; then
2647 case $am_aux_dir in
2648 *\ * | *\ *)
2649 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2650 *)
2651 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2652 esac
2653fi
db137867
AC
2654# Use eval to expand $SHELL
2655if eval "$MISSING --run true"; then
2656 am_missing_run="$MISSING --run "
2657else
2658 am_missing_run=
7083c021 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
030272f3 2660$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
db137867
AC
2661fi
2662
7083c021
AC
2663if test x"${install_sh}" != xset; then
2664 case $am_aux_dir in
2665 *\ * | *\ *)
2666 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2667 *)
2668 install_sh="\${SHELL} $am_aux_dir/install-sh"
2669 esac
2670fi
2671
2672# Installed binaries are usually stripped using `strip' when the user
2673# run `make install-strip'. However `strip' might not be the right
2674# tool to use in cross-compilation environments, therefore Automake
2675# will honor the `STRIP' environment variable to overrule this program.
2676if test "$cross_compiling" != no; then
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2679set dummy ${ac_tool_prefix}strip; ac_word=$2
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681$as_echo_n "checking for $ac_word... " >&6; }
2682if test "${ac_cv_prog_STRIP+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684else
2685 if test -n "$STRIP"; then
2686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699done
2700 done
2701IFS=$as_save_IFS
2702
2703fi
2704fi
2705STRIP=$ac_cv_prog_STRIP
2706if test -n "$STRIP"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2708$as_echo "$STRIP" >&6; }
2709else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711$as_echo "no" >&6; }
2712fi
2713
2714
2715fi
2716if test -z "$ac_cv_prog_STRIP"; then
2717 ac_ct_STRIP=$STRIP
2718 # Extract the first word of "strip", so it can be a program name with args.
2719set dummy strip; ac_word=$2
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721$as_echo_n "checking for $ac_word... " >&6; }
2722if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2724else
2725 if test -n "$ac_ct_STRIP"; then
2726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2727else
2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_ac_ct_STRIP="strip"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739done
2740 done
2741IFS=$as_save_IFS
2742
2743fi
2744fi
2745ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2746if test -n "$ac_ct_STRIP"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2748$as_echo "$ac_ct_STRIP" >&6; }
2749else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751$as_echo "no" >&6; }
2752fi
2753
2754 if test "x$ac_ct_STRIP" = x; then
2755 STRIP=":"
2756 else
2757 case $cross_compiling:$ac_tool_warned in
2758yes:)
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2761ac_tool_warned=yes ;;
2762esac
2763 STRIP=$ac_ct_STRIP
2764 fi
2765else
2766 STRIP="$ac_cv_prog_STRIP"
2767fi
2768
2769fi
2770INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2771
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
030272f3 2773$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
db137867 2774if test -z "$MKDIR_P"; then
7083c021 2775 if test "${ac_cv_path_mkdir+set}" = set; then :
030272f3 2776 $as_echo_n "(cached) " >&6
db137867
AC
2777else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
7083c021 2783 for ac_prog in mkdir gmkdir; do
db137867
AC
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2786 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2787 'mkdir (GNU coreutils) '* | \
2788 'mkdir (coreutils) '* | \
2789 'mkdir (fileutils) '4.1*)
2790 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2791 break 3;;
2792 esac
2793 done
2794 done
7083c021 2795 done
db137867
AC
2796IFS=$as_save_IFS
2797
2798fi
2799
96f4052b 2800 test -d ./--version && rmdir ./--version
db137867
AC
2801 if test "${ac_cv_path_mkdir+set}" = set; then
2802 MKDIR_P="$ac_cv_path_mkdir -p"
2803 else
2804 # As a last resort, use the slow shell script. Don't cache a
2805 # value for MKDIR_P within a source directory, because that will
2806 # break other packages using the cache if that directory is
2807 # removed, or if the value is a relative name.
db137867
AC
2808 MKDIR_P="$ac_install_sh -d"
2809 fi
2810fi
7083c021 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
030272f3 2812$as_echo "$MKDIR_P" >&6; }
db137867
AC
2813
2814mkdir_p="$MKDIR_P"
2815case $mkdir_p in
2816 [\\/$]* | ?:[\\/]*) ;;
2817 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2818esac
2819
2820for ac_prog in gawk mawk nawk awk
2821do
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823set dummy $ac_prog; ac_word=$2
7083c021 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 2825$as_echo_n "checking for $ac_word... " >&6; }
7083c021 2826if test "${ac_cv_prog_AWK+set}" = set; then :
030272f3 2827 $as_echo_n "(cached) " >&6
db137867
AC
2828else
2829 if test -n "$AWK"; then
2830 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
7083c021 2837 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_AWK="$ac_prog"
7083c021 2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
2841 break 2
2842 fi
2843done
7083c021 2844 done
db137867
AC
2845IFS=$as_save_IFS
2846
2847fi
2848fi
2849AWK=$ac_cv_prog_AWK
2850if test -n "$AWK"; then
7083c021 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
030272f3 2852$as_echo "$AWK" >&6; }
db137867 2853else
7083c021 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2855$as_echo "no" >&6; }
db137867
AC
2856fi
2857
2858
2859 test -n "$AWK" && break
2860done
2861
7083c021 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
030272f3
VY
2863$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2864set x ${MAKE-make}
2865ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7083c021 2866if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
030272f3 2867 $as_echo_n "(cached) " >&6
db137867
AC
2868else
2869 cat >conftest.make <<\_ACEOF
2870SHELL = /bin/sh
2871all:
2872 @echo '@@@%%%=$(MAKE)=@@@%%%'
2873_ACEOF
2874# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2875case `${MAKE-make} -f conftest.make 2>/dev/null` in
2876 *@@@%%%=?*=@@@%%%*)
2877 eval ac_cv_prog_make_${ac_make}_set=yes;;
2878 *)
2879 eval ac_cv_prog_make_${ac_make}_set=no;;
2880esac
2881rm -f conftest.make
2882fi
2883if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7083c021 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3 2885$as_echo "yes" >&6; }
db137867
AC
2886 SET_MAKE=
2887else
7083c021 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 2889$as_echo "no" >&6; }
db137867
AC
2890 SET_MAKE="MAKE=${MAKE-make}"
2891fi
2892
2893rm -rf .tst 2>/dev/null
2894mkdir .tst 2>/dev/null
2895if test -d .tst; then
2896 am__leading_dot=.
2897else
2898 am__leading_dot=_
2899fi
2900rmdir .tst 2>/dev/null
2901
2902if test "`cd $srcdir && pwd`" != "`pwd`"; then
2903 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2904 # is not polluted with repeated "-I."
2905 am__isrc=' -I$(srcdir)'
2906 # test to see if srcdir already configured
2907 if test -f $srcdir/config.status; then
7083c021 2908 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
db137867
AC
2909 fi
2910fi
2911
2912# test whether we have cygpath
2913if test -z "$CYGPATH_W"; then
2914 if (cygpath --version) >/dev/null 2>/dev/null; then
2915 CYGPATH_W='cygpath -w'
2916 else
2917 CYGPATH_W=echo
2918 fi
2919fi
2920
2921
2922# Define the identity of the package.
2923 PACKAGE=libratbox
2924 VERSION=devel
2925
2926
2927# Some tools Automake needs.
2928
2929ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2930
2931
2932AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2933
2934
2935AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2936
2937
2938AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2939
2940
2941MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2942
db137867
AC
2943# We need awk for the "check" target. The system "awk" is bad on
2944# some platforms.
2945# Always define AMTAR for backward compatibility.
2946
2947AMTAR=${AMTAR-"${am_missing_run}tar"}
2948
2949am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2950
2951
2952
2953
2954
2955
2956ac_config_headers="$ac_config_headers include/libratbox_config.h"
2957
2958
2959
db137867
AC
2960DEPDIR="${am__leading_dot}deps"
2961
2962ac_config_commands="$ac_config_commands depfiles"
2963
2964
2965am_make=${MAKE-make}
2966cat > confinc << 'END'
2967am__doit:
7083c021 2968 @echo this is the am__doit target
db137867
AC
2969.PHONY: am__doit
2970END
2971# If we don't find an include directive, just comment out the code.
7083c021 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
030272f3 2973$as_echo_n "checking for style of include used by $am_make... " >&6; }
db137867
AC
2974am__include="#"
2975am__quote=
2976_am_result=none
2977# First try GNU make style include.
2978echo "include confinc" > confmf
7083c021
AC
2979# Ignore all kinds of additional output from `make'.
2980case `$am_make -s -f confmf 2> /dev/null` in #(
2981*the\ am__doit\ target*)
2982 am__include=include
2983 am__quote=
2984 _am_result=GNU
2985 ;;
2986esac
db137867
AC
2987# Now try BSD make style include.
2988if test "$am__include" = "#"; then
2989 echo '.include "confinc"' > confmf
7083c021
AC
2990 case `$am_make -s -f confmf 2> /dev/null` in #(
2991 *the\ am__doit\ target*)
2992 am__include=.include
2993 am__quote="\""
2994 _am_result=BSD
2995 ;;
2996 esac
db137867
AC
2997fi
2998
2999
7083c021 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
030272f3 3001$as_echo "$_am_result" >&6; }
db137867
AC
3002rm -f confinc confmf
3003
3004# Check whether --enable-dependency-tracking was given.
7083c021 3005if test "${enable_dependency_tracking+set}" = set; then :
db137867
AC
3006 enableval=$enable_dependency_tracking;
3007fi
3008
3009if test "x$enable_dependency_tracking" != xno; then
3010 am_depcomp="$ac_aux_dir/depcomp"
3011 AMDEPBACKSLASH='\'
3012fi
3013 if test "x$enable_dependency_tracking" != xno; then
3014 AMDEP_TRUE=
3015 AMDEP_FALSE='#'
3016else
3017 AMDEP_TRUE='#'
3018 AMDEP_FALSE=
3019fi
3020
3021
3022ac_ext=c
3023ac_cpp='$CPP $CPPFLAGS'
3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3029set dummy ${ac_tool_prefix}gcc; ac_word=$2
7083c021 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3031$as_echo_n "checking for $ac_word... " >&6; }
7083c021 3032if test "${ac_cv_prog_CC+set}" = set; then :
030272f3 3033 $as_echo_n "(cached) " >&6
db137867
AC
3034else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
7083c021 3043 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7083c021 3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3047 break 2
3048 fi
3049done
7083c021 3050 done
db137867
AC
3051IFS=$as_save_IFS
3052
3053fi
3054fi
3055CC=$ac_cv_prog_CC
3056if test -n "$CC"; then
7083c021 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3058$as_echo "$CC" >&6; }
db137867 3059else
7083c021 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3061$as_echo "no" >&6; }
db137867
AC
3062fi
3063
3064
3065fi
3066if test -z "$ac_cv_prog_CC"; then
3067 ac_ct_CC=$CC
3068 # Extract the first word of "gcc", so it can be a program name with args.
3069set dummy gcc; ac_word=$2
7083c021 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3071$as_echo_n "checking for $ac_word... " >&6; }
7083c021 3072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
030272f3 3073 $as_echo_n "(cached) " >&6
db137867
AC
3074else
3075 if test -n "$ac_ct_CC"; then
3076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
7083c021 3083 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 ac_cv_prog_ac_ct_CC="gcc"
7083c021 3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3087 break 2
3088 fi
3089done
7083c021 3090 done
db137867
AC
3091IFS=$as_save_IFS
3092
3093fi
3094fi
3095ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096if test -n "$ac_ct_CC"; then
7083c021 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
030272f3 3098$as_echo "$ac_ct_CC" >&6; }
db137867 3099else
7083c021 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3101$as_echo "no" >&6; }
db137867
AC
3102fi
3103
3104 if test "x$ac_ct_CC" = x; then
3105 CC=""
3106 else
3107 case $cross_compiling:$ac_tool_warned in
3108yes:)
7083c021 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 3110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
3111ac_tool_warned=yes ;;
3112esac
3113 CC=$ac_ct_CC
3114 fi
3115else
3116 CC="$ac_cv_prog_CC"
3117fi
3118
3119if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3122set dummy ${ac_tool_prefix}cc; ac_word=$2
7083c021 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3124$as_echo_n "checking for $ac_word... " >&6; }
7083c021 3125if test "${ac_cv_prog_CC+set}" = set; then :
030272f3 3126 $as_echo_n "(cached) " >&6
db137867
AC
3127else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
7083c021 3136 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_CC="${ac_tool_prefix}cc"
7083c021 3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3140 break 2
3141 fi
3142done
7083c021 3143 done
db137867
AC
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
7083c021 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3151$as_echo "$CC" >&6; }
db137867 3152else
7083c021 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3154$as_echo "no" >&6; }
db137867
AC
3155fi
3156
3157
3158 fi
3159fi
3160if test -z "$CC"; then
3161 # Extract the first word of "cc", so it can be a program name with args.
3162set dummy cc; ac_word=$2
7083c021 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3164$as_echo_n "checking for $ac_word... " >&6; }
7083c021 3165if test "${ac_cv_prog_CC+set}" = set; then :
030272f3 3166 $as_echo_n "(cached) " >&6
db137867
AC
3167else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170else
3171 ac_prog_rejected=no
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
7083c021 3177 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180 ac_prog_rejected=yes
3181 continue
3182 fi
3183 ac_cv_prog_CC="cc"
7083c021 3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3185 break 2
3186 fi
3187done
7083c021 3188 done
db137867
AC
3189IFS=$as_save_IFS
3190
3191if test $ac_prog_rejected = yes; then
3192 # We found a bogon in the path, so make sure we never use it.
3193 set dummy $ac_cv_prog_CC
3194 shift
3195 if test $# != 0; then
3196 # We chose a different compiler from the bogus one.
3197 # However, it has the same basename, so the bogon will be chosen
3198 # first if we set CC to just the basename; use the full file name.
3199 shift
3200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3201 fi
3202fi
3203fi
3204fi
3205CC=$ac_cv_prog_CC
3206if test -n "$CC"; then
7083c021 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3208$as_echo "$CC" >&6; }
db137867 3209else
7083c021 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3211$as_echo "no" >&6; }
db137867
AC
3212fi
3213
3214
3215fi
3216if test -z "$CC"; then
3217 if test -n "$ac_tool_prefix"; then
3218 for ac_prog in cl.exe
3219 do
3220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7083c021 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3223$as_echo_n "checking for $ac_word... " >&6; }
7083c021 3224if test "${ac_cv_prog_CC+set}" = set; then :
030272f3 3225 $as_echo_n "(cached) " >&6
db137867
AC
3226else
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
7083c021 3235 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7083c021 3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3239 break 2
3240 fi
3241done
7083c021 3242 done
db137867
AC
3243IFS=$as_save_IFS
3244
3245fi
3246fi
3247CC=$ac_cv_prog_CC
3248if test -n "$CC"; then
7083c021 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
030272f3 3250$as_echo "$CC" >&6; }
db137867 3251else
7083c021 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3253$as_echo "no" >&6; }
db137867
AC
3254fi
3255
3256
3257 test -n "$CC" && break
3258 done
3259fi
3260if test -z "$CC"; then
3261 ac_ct_CC=$CC
3262 for ac_prog in cl.exe
3263do
3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3265set dummy $ac_prog; ac_word=$2
7083c021 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 3267$as_echo_n "checking for $ac_word... " >&6; }
7083c021 3268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
030272f3 3269 $as_echo_n "(cached) " >&6
db137867
AC
3270else
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
7083c021 3279 for ac_exec_ext in '' $ac_executable_extensions; do
db137867
AC
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_ac_ct_CC="$ac_prog"
7083c021 3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
3283 break 2
3284 fi
3285done
7083c021 3286 done
db137867
AC
3287IFS=$as_save_IFS
3288
3289fi
3290fi
3291ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292if test -n "$ac_ct_CC"; then
7083c021 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
030272f3 3294$as_echo "$ac_ct_CC" >&6; }
db137867 3295else
7083c021 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 3297$as_echo "no" >&6; }
db137867
AC
3298fi
3299
3300
3301 test -n "$ac_ct_CC" && break
3302done
3303
3304 if test "x$ac_ct_CC" = x; then
3305 CC=""
3306 else
3307 case $cross_compiling:$ac_tool_warned in
3308yes:)
7083c021 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 3310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
3311ac_tool_warned=yes ;;
3312esac
3313 CC=$ac_ct_CC
3314 fi
3315fi
3316
3317fi
3318
3319
7083c021 3320test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083c021
AC
3322as_fn_error "no acceptable C compiler found in \$PATH
3323See \`config.log' for more details." "$LINENO" 5; }
db137867
AC
3324
3325# Provide some information about the compiler.
7083c021 3326$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
030272f3
VY
3327set X $ac_compile
3328ac_compiler=$2
7083c021
AC
3329for ac_option in --version -v -V -qversion; do
3330 { { ac_try="$ac_compiler $ac_option >&5"
db137867
AC
3331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
7083c021
AC
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
db137867 3338 ac_status=$?
7083c021
AC
3339 if test -s conftest.err; then
3340 sed '10a\
3341... rest of stderr output deleted ...
3342 10q' conftest.err >conftest.er1
3343 cat conftest.er1 >&5
7083c021 3344 fi
96f4052b 3345 rm -f conftest.er1 conftest.err
7083c021
AC
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }
3348done
db137867 3349
7083c021 3350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 3351/* end confdefs.h. */
96f4052b 3352
db137867
AC
3353int
3354main ()
3355{
3356
3357 ;
3358 return 0;
3359}
3360_ACEOF
3361ac_clean_files_save=$ac_clean_files
96f4052b 3362ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
db137867
AC
3363# Try to create an executable without -o first, disregard a.out.
3364# It will help us diagnose broken compilers, and finding out an intuition
3365# of exeext.
96f4052b
AC
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3367$as_echo_n "checking whether the C compiler works... " >&6; }
030272f3
VY
3368ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3369
3370# The possible output files:
3371ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3372
db137867
AC
3373ac_rmfiles=
3374for ac_file in $ac_files
3375do
3376 case $ac_file in
030272f3 3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
db137867
AC
3378 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3379 esac
3380done
3381rm -f $ac_rmfiles
3382
7083c021 3383if { { ac_try="$ac_link_default"
db137867
AC
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
7083c021
AC
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
db137867
AC
3390 (eval "$ac_link_default") 2>&5
3391 ac_status=$?
7083c021
AC
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; then :
db137867
AC
3394 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3395# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3396# in a Makefile. We should not override ac_cv_exeext if it was cached,
3397# so that the user can short-circuit this test for compilers unknown to
3398# Autoconf.
3399for ac_file in $ac_files ''
3400do
3401 test -f "$ac_file" || continue
3402 case $ac_file in
030272f3 3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
db137867
AC
3404 ;;
3405 [ab].out )
3406 # We found the default executable, but exeext='' is most
3407 # certainly right.
3408 break;;
3409 *.* )
7083c021 3410 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
db137867
AC
3411 then :; else
3412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413 fi
3414 # We set ac_cv_exeext here because the later test for it is not
3415 # safe: cross compilers may not add the suffix if given an `-o'
3416 # argument, so we may need to know it at that point already.
3417 # Even if this section looks crufty: it has the advantage of
3418 # actually working.
3419 break;;
3420 * )
3421 break;;
3422 esac
3423done
3424test "$ac_cv_exeext" = no && ac_cv_exeext=
3425
3426else
3427 ac_file=''
3428fi
7083c021 3429if test -z "$ac_file"; then :
96f4052b
AC
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431$as_echo "no" >&6; }
3432$as_echo "$as_me: failed program was:" >&5
db137867
AC
3433sed 's/^/| /' conftest.$ac_ext >&5
3434
7083c021 3435{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083c021
AC
3437{ as_fn_set_status 77
3438as_fn_error "C compiler cannot create executables
3439See \`config.log' for more details." "$LINENO" 5; }; }
96f4052b
AC
3440else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442$as_echo "yes" >&6; }
db137867 3443fi
96f4052b
AC
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3445$as_echo_n "checking for C compiler default output file name... " >&6; }
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3447$as_echo "$ac_file" >&6; }
db137867
AC
3448ac_exeext=$ac_cv_exeext
3449
96f4052b 3450rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
db137867 3451ac_clean_files=$ac_clean_files_save
7083c021 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
030272f3 3453$as_echo_n "checking for suffix of executables... " >&6; }
7083c021 3454if { { ac_try="$ac_link"
db137867
AC
3455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
7083c021
AC
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
db137867
AC
3461 (eval "$ac_link") 2>&5
3462 ac_status=$?
7083c021
AC
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
db137867
AC
3465 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3466# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3467# work properly (i.e., refer to `conftest.exe'), while it won't with
3468# `rm'.
3469for ac_file in conftest.exe conftest conftest.*; do
3470 test -f "$ac_file" || continue
3471 case $ac_file in
030272f3 3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
db137867
AC
3473 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3474 break;;
3475 * ) break;;
3476 esac
3477done
3478else
7083c021 3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083c021
AC
3481as_fn_error "cannot compute suffix of executables: cannot compile and link
3482See \`config.log' for more details." "$LINENO" 5; }
db137867 3483fi
96f4052b 3484rm -f conftest conftest$ac_cv_exeext
7083c021 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
030272f3 3486$as_echo "$ac_cv_exeext" >&6; }
db137867
AC
3487
3488rm -f conftest.$ac_ext
3489EXEEXT=$ac_cv_exeext
3490ac_exeext=$EXEEXT
96f4052b
AC
3491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h. */
3493#include <stdio.h>
3494int
3495main ()
3496{
3497FILE *f = fopen ("conftest.out", "w");
3498 return ferror (f) || fclose (f) != 0;
3499
3500 ;
3501 return 0;
3502}
3503_ACEOF
3504ac_clean_files="$ac_clean_files conftest.out"
3505# Check that the compiler produces executables we can run. If not, either
3506# the compiler is broken, or we cross compile.
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3508$as_echo_n "checking whether we are cross compiling... " >&6; }
3509if test "$cross_compiling" != yes; then
3510 { { ac_try="$ac_link"
3511case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514esac
3515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516$as_echo "$ac_try_echo"; } >&5
3517 (eval "$ac_link") 2>&5
3518 ac_status=$?
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }
3521 if { ac_try='./conftest$ac_cv_exeext'
3522 { { case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527$as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_try") 2>&5
3529 ac_status=$?
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; }; then
3532 cross_compiling=no
3533 else
3534 if test "$cross_compiling" = maybe; then
3535 cross_compiling=yes
3536 else
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539as_fn_error "cannot run C compiled programs.
3540If you meant to cross compile, use \`--host'.
3541See \`config.log' for more details." "$LINENO" 5; }
3542 fi
3543 fi
3544fi
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3546$as_echo "$cross_compiling" >&6; }
3547
3548rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3549ac_clean_files=$ac_clean_files_save
7083c021 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
030272f3 3551$as_echo_n "checking for suffix of object files... " >&6; }
7083c021 3552if test "${ac_cv_objext+set}" = set; then :
030272f3 3553 $as_echo_n "(cached) " >&6
db137867 3554else
7083c021 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3556/* end confdefs.h. */
3557
3558int
3559main ()
3560{
3561
3562 ;
3563 return 0;
3564}
3565_ACEOF
3566rm -f conftest.o conftest.obj
7083c021 3567if { { ac_try="$ac_compile"
db137867
AC
3568case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571esac
7083c021
AC
3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573$as_echo "$ac_try_echo"; } >&5
db137867
AC
3574 (eval "$ac_compile") 2>&5
3575 ac_status=$?
7083c021
AC
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; then :
db137867
AC
3578 for ac_file in conftest.o conftest.obj conftest.*; do
3579 test -f "$ac_file" || continue;
3580 case $ac_file in
030272f3 3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
db137867
AC
3582 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3583 break;;
3584 esac
3585done
3586else
030272f3 3587 $as_echo "$as_me: failed program was:" >&5
db137867
AC
3588sed 's/^/| /' conftest.$ac_ext >&5
3589
7083c021 3590{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 3591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083c021
AC
3592as_fn_error "cannot compute suffix of object files: cannot compile
3593See \`config.log' for more details." "$LINENO" 5; }
db137867 3594fi
db137867
AC
3595rm -f conftest.$ac_cv_objext conftest.$ac_ext
3596fi
7083c021 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
030272f3 3598$as_echo "$ac_cv_objext" >&6; }
db137867
AC
3599OBJEXT=$ac_cv_objext
3600ac_objext=$OBJEXT
7083c021 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
030272f3 3602$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7083c021 3603if test "${ac_cv_c_compiler_gnu+set}" = set; then :
030272f3 3604 $as_echo_n "(cached) " >&6
db137867 3605else
7083c021 3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3607/* end confdefs.h. */
3608
3609int
3610main ()
3611{
3612#ifndef __GNUC__
3613 choke me
3614#endif
3615
3616 ;
3617 return 0;
3618}
3619_ACEOF
7083c021 3620if ac_fn_c_try_compile "$LINENO"; then :
db137867
AC
3621 ac_compiler_gnu=yes
3622else
7083c021 3623 ac_compiler_gnu=no
db137867 3624fi
db137867
AC
3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626ac_cv_c_compiler_gnu=$ac_compiler_gnu
3627
3628fi
7083c021 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
030272f3
VY
3630$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3631if test $ac_compiler_gnu = yes; then
3632 GCC=yes
3633else
3634 GCC=
3635fi
db137867
AC
3636ac_test_CFLAGS=${CFLAGS+set}
3637ac_save_CFLAGS=$CFLAGS
7083c021 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
030272f3 3639$as_echo_n "checking whether $CC accepts -g... " >&6; }
7083c021 3640if test "${ac_cv_prog_cc_g+set}" = set; then :
030272f3 3641 $as_echo_n "(cached) " >&6
db137867
AC
3642else
3643 ac_save_c_werror_flag=$ac_c_werror_flag
3644 ac_c_werror_flag=yes
3645 ac_cv_prog_cc_g=no
3646 CFLAGS="-g"
7083c021 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3648/* end confdefs.h. */
3649
3650int
3651main ()
3652{
3653
3654 ;
3655 return 0;
3656}
3657_ACEOF
7083c021 3658if ac_fn_c_try_compile "$LINENO"; then :
db137867
AC
3659 ac_cv_prog_cc_g=yes
3660else
7083c021
AC
3661 CFLAGS=""
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3663/* end confdefs.h. */
3664
3665int
3666main ()
3667{
3668
3669 ;
3670 return 0;
3671}
3672_ACEOF
7083c021 3673if ac_fn_c_try_compile "$LINENO"; then :
db137867 3674
7083c021
AC
3675else
3676 ac_c_werror_flag=$ac_save_c_werror_flag
db137867 3677 CFLAGS="-g"
7083c021 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3679/* end confdefs.h. */
3680
3681int
3682main ()
3683{
3684
3685 ;
3686 return 0;
3687}
3688_ACEOF
7083c021 3689if ac_fn_c_try_compile "$LINENO"; then :
db137867 3690 ac_cv_prog_cc_g=yes
db137867 3691fi
db137867
AC
3692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693fi
db137867
AC
3694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695fi
db137867
AC
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 ac_c_werror_flag=$ac_save_c_werror_flag
3698fi
7083c021 3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
030272f3 3700$as_echo "$ac_cv_prog_cc_g" >&6; }
db137867
AC
3701if test "$ac_test_CFLAGS" = set; then
3702 CFLAGS=$ac_save_CFLAGS
3703elif test $ac_cv_prog_cc_g = yes; then
3704 if test "$GCC" = yes; then
3705 CFLAGS="-g -O2"
3706 else
3707 CFLAGS="-g"
3708 fi
3709else
3710 if test "$GCC" = yes; then
3711 CFLAGS="-O2"
3712 else
3713 CFLAGS=
3714 fi
3715fi
7083c021 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
030272f3 3717$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7083c021 3718if test "${ac_cv_prog_cc_c89+set}" = set; then :
030272f3 3719 $as_echo_n "(cached) " >&6
db137867
AC
3720else
3721 ac_cv_prog_cc_c89=no
3722ac_save_CC=$CC
7083c021 3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
3724/* end confdefs.h. */
3725#include <stdarg.h>
3726#include <stdio.h>
3727#include <sys/types.h>
3728#include <sys/stat.h>
3729/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3730struct buf { int x; };
3731FILE * (*rcsopen) (struct buf *, struct stat *, int);
3732static char *e (p, i)
3733 char **p;
3734 int i;
3735{
3736 return p[i];
3737}
3738static char *f (char * (*g) (char **, int), char **p, ...)
3739{
3740 char *s;
3741 va_list v;
3742 va_start (v,p);
3743 s = g (p, va_arg (v,int));
3744 va_end (v);
3745 return s;
3746}
3747
3748/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3749 function prototypes and stuff, but not '\xHH' hex character constants.
3750 These don't provoke an error unfortunately, instead are silently treated
3751 as 'x'. The following induces an error, until -std is added to get
3752 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3753 array size at least. It's necessary to write '\x00'==0 to get something
3754 that's true only with -std. */
3755int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3756
3757/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3758 inside strings and character constants. */
3759#define FOO(x) 'x'
3760int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3761
3762int test (int i, double x);
3763struct s1 {int (*f) (int a);};
3764struct s2 {int (*f) (double a);};
3765int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766int argc;
3767char **argv;
3768int
3769main ()
3770{
3771return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3772 ;
3773 return 0;
3774}
3775_ACEOF
3776for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3777 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3778do
3779 CC="$ac_save_CC $ac_arg"
7083c021 3780 if ac_fn_c_try_compile "$LINENO"; then :
db137867 3781 ac_cv_prog_cc_c89=$ac_arg
db137867 3782fi
db137867
AC
3783rm -f core conftest.err conftest.$ac_objext
3784 test "x$ac_cv_prog_cc_c89" != "xno" && break
3785done
3786rm -f conftest.$ac_ext
3787CC=$ac_save_CC
3788
3789fi
3790# AC_CACHE_VAL
3791case "x$ac_cv_prog_cc_c89" in
3792 x)
7083c021 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
030272f3 3794$as_echo "none needed" >&6; } ;;
db137867 3795 xno)
7083c021 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
030272f3 3797$as_echo "unsupported" >&6; } ;;
db137867
AC
3798 *)
3799 CC="$CC $ac_cv_prog_cc_c89"
7083c021 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
030272f3 3801$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
db137867 3802esac
7083c021 3803if test "x$ac_cv_prog_cc_c89" != xno; then :
db137867 3804
7083c021 3805fi
db137867
AC
3806
3807ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
3813depcc="$CC" am_compiler_list=
3814
7083c021 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
030272f3 3816$as_echo_n "checking dependency style of $depcc... " >&6; }
7083c021 3817if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
030272f3 3818 $as_echo_n "(cached) " >&6
db137867
AC
3819else
3820 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3821 # We make a subdir and do the tests there. Otherwise we can end up
3822 # making bogus files that we don't know about and never remove. For
3823 # instance it was reported that on HP-UX the gcc test will end up
3824 # making a dummy file named `D' -- because `-MD' means `put the output
3825 # in D'.
3826 mkdir conftest.dir
3827 # Copy depcomp to subdir because otherwise we won't find it if we're
3828 # using a relative directory.
3829 cp "$am_depcomp" conftest.dir
3830 cd conftest.dir
3831 # We will build objects and dependencies in a subdirectory because
3832 # it helps to detect inapplicable dependency modes. For instance
3833 # both Tru64's cc and ICC support -MD to output dependencies as a
3834 # side effect of compilation, but ICC will put the dependencies in
3835 # the current directory while Tru64 will put them in the object
3836 # directory.
3837 mkdir sub
3838
3839 am_cv_CC_dependencies_compiler_type=none
3840 if test "$am_compiler_list" = ""; then
3841 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3842 fi
7083c021
AC
3843 am__universal=false
3844 case " $depcc " in #(
3845 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3846 esac
3847
db137867
AC
3848 for depmode in $am_compiler_list; do
3849 # Setup a source with many dependencies, because some compilers
3850 # like to wrap large dependency lists on column 80 (with \), and
3851 # we should not choose a depcomp mode which is confused by this.
3852 #
3853 # We need to recreate these files for each test, as the compiler may
3854 # overwrite some of them when testing with obscure command lines.
3855 # This happens at least with the AIX C compiler.
3856 : > sub/conftest.c
3857 for i in 1 2 3 4 5 6; do
3858 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3859 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3860 # Solaris 8's {/usr,}/bin/sh.
3861 touch sub/conftst$i.h
3862 done
3863 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3864
7083c021
AC
3865 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3866 # mode. It turns out that the SunPro C++ compiler does not properly
3867 # handle `-M -o', and we need to detect this. Also, some Intel
3868 # versions had trouble with output in subdirs
3869 am__obj=sub/conftest.${OBJEXT-o}
3870 am__minus_obj="-o $am__obj"
db137867 3871 case $depmode in
7083c021
AC
3872 gcc)
3873 # This depmode causes a compiler race in universal mode.
3874 test "$am__universal" = false || continue
3875 ;;
db137867
AC
3876 nosideeffect)
3877 # after this tag, mechanisms are not by side-effect, so they'll
3878 # only be used when explicitly requested
3879 if test "x$enable_dependency_tracking" = xyes; then
3880 continue
3881 else
3882 break
3883 fi
3884 ;;
7083c021
AC
3885 msvisualcpp | msvcmsys)
3886 # This compiler won't grok `-c -o', but also, the minuso test has
3887 # not run yet. These depmodes are late enough in the game, and
3888 # so weak that their functioning should not be impacted.
3889 am__obj=conftest.${OBJEXT-o}
3890 am__minus_obj=
3891 ;;
db137867
AC
3892 none) break ;;
3893 esac
db137867 3894 if depmode=$depmode \
7083c021 3895 source=sub/conftest.c object=$am__obj \
db137867 3896 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7083c021 3897 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
db137867
AC
3898 >/dev/null 2>conftest.err &&
3899 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3900 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7083c021 3901 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
db137867
AC
3902 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3903 # icc doesn't choke on unknown options, it will just issue warnings
3904 # or remarks (even with -Werror). So we grep stderr for any message
3905 # that says an option was ignored or not supported.
3906 # When given -MP, icc 7.0 and 7.1 complain thusly:
3907 # icc: Command line warning: ignoring option '-M'; no argument required
3908 # The diagnosis changed in icc 8.0:
3909 # icc: Command line remark: option '-MP' not supported
3910 if (grep 'ignoring option' conftest.err ||
3911 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3912 am_cv_CC_dependencies_compiler_type=$depmode
3913 break
3914 fi
3915 fi
3916 done
3917
3918 cd ..
3919 rm -rf conftest.dir
3920else
3921 am_cv_CC_dependencies_compiler_type=none
3922fi
3923
3924fi
7083c021 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
030272f3 3926$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
db137867
AC
3927CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3928
3929 if
3930 test "x$enable_dependency_tracking" != xno \
3931 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3932 am__fastdepCC_TRUE=
3933 am__fastdepCC_FALSE='#'
3934else
3935 am__fastdepCC_TRUE='#'
3936 am__fastdepCC_FALSE=
3937fi
3938
3939
030272f3
VY
3940
3941ac_ext=c
3942ac_cpp='$CPP $CPPFLAGS'
3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083c021 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
030272f3
VY
3947$as_echo_n "checking how to run the C preprocessor... " >&6; }
3948# On Suns, sometimes $CPP names a directory.
3949if test -n "$CPP" && test -d "$CPP"; then
3950 CPP=
3951fi
3952if test -z "$CPP"; then
7083c021 3953 if test "${ac_cv_prog_CPP+set}" = set; then :
030272f3 3954 $as_echo_n "(cached) " >&6
db137867 3955else
030272f3
VY
3956 # Double quotes because CPP needs to be expanded
3957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3958 do
3959 ac_preproc_ok=false
3960for ac_c_preproc_warn_flag in '' yes
3961do
3962 # Use a header file that comes with gcc, so configuring glibc
3963 # with a fresh cross-compiler works.
3964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3965 # <limits.h> exists even on freestanding compilers.
3966 # On the NeXT, cc -E runs the code through the compiler's parser,
3967 # not just through cpp. "Syntax error" is here to catch this case.
7083c021 3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 3969/* end confdefs.h. */
030272f3
VY
3970#ifdef __STDC__
3971# include <limits.h>
db137867 3972#else
030272f3 3973# include <assert.h>
db137867 3974#endif
030272f3 3975 Syntax error
db137867 3976_ACEOF
7083c021 3977if ac_fn_c_try_cpp "$LINENO"; then :
db137867 3978
7083c021 3979else
030272f3
VY
3980 # Broken: fails on valid input.
3981continue
db137867 3982fi
030272f3 3983rm -f conftest.err conftest.$ac_ext
db137867 3984
030272f3
VY
3985 # OK, works on sane cases. Now check whether nonexistent headers
3986 # can be detected and how.
7083c021 3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
3988/* end confdefs.h. */
3989#include <ac_nonexistent.h>
3990_ACEOF
7083c021 3991if ac_fn_c_try_cpp "$LINENO"; then :
030272f3
VY
3992 # Broken: success on invalid input.
3993continue
3994else
030272f3
VY
3995 # Passes both tests.
3996ac_preproc_ok=:
3997break
3998fi
030272f3 3999rm -f conftest.err conftest.$ac_ext
db137867 4000
030272f3
VY
4001done
4002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003rm -f conftest.err conftest.$ac_ext
7083c021 4004if $ac_preproc_ok; then :
030272f3 4005 break
db137867
AC
4006fi
4007
030272f3
VY
4008 done
4009 ac_cv_prog_CPP=$CPP
db137867 4010
030272f3
VY
4011fi
4012 CPP=$ac_cv_prog_CPP
db137867 4013else
030272f3
VY
4014 ac_cv_prog_CPP=$CPP
4015fi
7083c021 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
030272f3
VY
4017$as_echo "$CPP" >&6; }
4018ac_preproc_ok=false
4019for ac_c_preproc_warn_flag in '' yes
db137867 4020do
030272f3
VY
4021 # Use a header file that comes with gcc, so configuring glibc
4022 # with a fresh cross-compiler works.
4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024 # <limits.h> exists even on freestanding compilers.
4025 # On the NeXT, cc -E runs the code through the compiler's parser,
4026 # not just through cpp. "Syntax error" is here to catch this case.
7083c021 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4028/* end confdefs.h. */
4029#ifdef __STDC__
4030# include <limits.h>
4031#else
4032# include <assert.h>
4033#endif
4034 Syntax error
4035_ACEOF
7083c021 4036if ac_fn_c_try_cpp "$LINENO"; then :
db137867 4037
7083c021 4038else
030272f3
VY
4039 # Broken: fails on valid input.
4040continue
db137867 4041fi
030272f3 4042rm -f conftest.err conftest.$ac_ext
db137867 4043
030272f3
VY
4044 # OK, works on sane cases. Now check whether nonexistent headers
4045 # can be detected and how.
7083c021 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4047/* end confdefs.h. */
4048#include <ac_nonexistent.h>
4049_ACEOF
7083c021 4050if ac_fn_c_try_cpp "$LINENO"; then :
030272f3
VY
4051 # Broken: success on invalid input.
4052continue
4053else
030272f3
VY
4054 # Passes both tests.
4055ac_preproc_ok=:
4056break
4057fi
030272f3
VY
4058rm -f conftest.err conftest.$ac_ext
4059
4060done
4061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4062rm -f conftest.err conftest.$ac_ext
7083c021
AC
4063if $ac_preproc_ok; then :
4064
db137867 4065else
7083c021 4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
030272f3 4067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7083c021
AC
4068as_fn_error "C preprocessor \"$CPP\" fails sanity check
4069See \`config.log' for more details." "$LINENO" 5; }
030272f3
VY
4070fi
4071
4072ac_ext=c
4073ac_cpp='$CPP $CPPFLAGS'
4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078
7083c021 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
030272f3 4080$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7083c021 4081if test "${ac_cv_path_GREP+set}" = set; then :
030272f3 4082 $as_echo_n "(cached) " >&6
db137867 4083else
030272f3 4084 if test -z "$GREP"; then
db137867 4085 ac_path_GREP_found=false
030272f3
VY
4086 # Loop through the user's path and test for each of PROGNAME-LIST
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
db137867
AC
4088for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
7083c021 4092 for ac_prog in grep ggrep; do
030272f3
VY
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4095 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4096# Check for GNU ac_path_GREP and select it if it is found.
db137867
AC
4097 # Check for GNU $ac_path_GREP
4098case `"$ac_path_GREP" --version 2>&1` in
4099*GNU*)
4100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4101*)
4102 ac_count=0
030272f3 4103 $as_echo_n 0123456789 >"conftest.in"
db137867
AC
4104 while :
4105 do
4106 cat "conftest.in" "conftest.in" >"conftest.tmp"
4107 mv "conftest.tmp" "conftest.in"
4108 cp "conftest.in" "conftest.nl"
030272f3 4109 $as_echo 'GREP' >> "conftest.nl"
db137867
AC
4110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4112 as_fn_arith $ac_count + 1 && ac_count=$as_val
db137867
AC
4113 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4114 # Best one so far, save it but keep looking for a better one
4115 ac_cv_path_GREP="$ac_path_GREP"
4116 ac_path_GREP_max=$ac_count
4117 fi
4118 # 10*(2^10) chars as input seems more than enough
4119 test $ac_count -gt 10 && break
4120 done
4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122esac
4123
030272f3
VY
4124 $ac_path_GREP_found && break 3
4125 done
db137867 4126 done
7083c021 4127 done
db137867 4128IFS=$as_save_IFS
030272f3 4129 if test -z "$ac_cv_path_GREP"; then
7083c021 4130 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4131 fi
db137867
AC
4132else
4133 ac_cv_path_GREP=$GREP
4134fi
4135
db137867 4136fi
7083c021 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
030272f3 4138$as_echo "$ac_cv_path_GREP" >&6; }
db137867
AC
4139 GREP="$ac_cv_path_GREP"
4140
4141
7083c021 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
030272f3 4143$as_echo_n "checking for egrep... " >&6; }
7083c021 4144if test "${ac_cv_path_EGREP+set}" = set; then :
030272f3 4145 $as_echo_n "(cached) " >&6
db137867
AC
4146else
4147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4148 then ac_cv_path_EGREP="$GREP -E"
4149 else
030272f3 4150 if test -z "$EGREP"; then
db137867 4151 ac_path_EGREP_found=false
030272f3
VY
4152 # Loop through the user's path and test for each of PROGNAME-LIST
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
db137867
AC
4154for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4155do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
7083c021 4158 for ac_prog in egrep; do
030272f3
VY
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4161 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4162# Check for GNU ac_path_EGREP and select it if it is found.
db137867
AC
4163 # Check for GNU $ac_path_EGREP
4164case `"$ac_path_EGREP" --version 2>&1` in
4165*GNU*)
4166 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4167*)
4168 ac_count=0
030272f3 4169 $as_echo_n 0123456789 >"conftest.in"
db137867
AC
4170 while :
4171 do
4172 cat "conftest.in" "conftest.in" >"conftest.tmp"
4173 mv "conftest.tmp" "conftest.in"
4174 cp "conftest.in" "conftest.nl"
030272f3 4175 $as_echo 'EGREP' >> "conftest.nl"
db137867
AC
4176 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4178 as_fn_arith $ac_count + 1 && ac_count=$as_val
db137867
AC
4179 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4180 # Best one so far, save it but keep looking for a better one
4181 ac_cv_path_EGREP="$ac_path_EGREP"
4182 ac_path_EGREP_max=$ac_count
4183 fi
4184 # 10*(2^10) chars as input seems more than enough
4185 test $ac_count -gt 10 && break
4186 done
4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188esac
4189
030272f3
VY
4190 $ac_path_EGREP_found && break 3
4191 done
db137867 4192 done
7083c021 4193 done
db137867 4194IFS=$as_save_IFS
030272f3 4195 if test -z "$ac_cv_path_EGREP"; then
7083c021 4196 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4197 fi
db137867
AC
4198else
4199 ac_cv_path_EGREP=$EGREP
4200fi
4201
db137867
AC
4202 fi
4203fi
7083c021 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
030272f3 4205$as_echo "$ac_cv_path_EGREP" >&6; }
db137867
AC
4206 EGREP="$ac_cv_path_EGREP"
4207
4208
7083c021 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
030272f3 4210$as_echo_n "checking for ANSI C header files... " >&6; }
7083c021 4211if test "${ac_cv_header_stdc+set}" = set; then :
030272f3 4212 $as_echo_n "(cached) " >&6
db137867 4213else
7083c021 4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4215/* end confdefs.h. */
030272f3
VY
4216#include <stdlib.h>
4217#include <stdarg.h>
4218#include <string.h>
4219#include <float.h>
db137867 4220
db137867
AC
4221int
4222main ()
4223{
030272f3 4224
db137867
AC
4225 ;
4226 return 0;
4227}
4228_ACEOF
7083c021 4229if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4230 ac_cv_header_stdc=yes
db137867 4231else
7083c021 4232 ac_cv_header_stdc=no
db137867 4233fi
030272f3
VY
4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235
4236if test $ac_cv_header_stdc = yes; then
4237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7083c021 4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4239/* end confdefs.h. */
4240#include <string.h>
4241
4242_ACEOF
4243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021
AC
4244 $EGREP "memchr" >/dev/null 2>&1; then :
4245
db137867 4246else
030272f3 4247 ac_cv_header_stdc=no
db137867 4248fi
030272f3 4249rm -f conftest*
db137867
AC
4250
4251fi
4252
030272f3
VY
4253if test $ac_cv_header_stdc = yes; then
4254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7083c021 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4256/* end confdefs.h. */
030272f3 4257#include <stdlib.h>
db137867
AC
4258
4259_ACEOF
030272f3 4260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021
AC
4261 $EGREP "free" >/dev/null 2>&1; then :
4262
db137867 4263else
030272f3 4264 ac_cv_header_stdc=no
db137867 4265fi
030272f3 4266rm -f conftest*
db137867
AC
4267
4268fi
db137867 4269
030272f3
VY
4270if test $ac_cv_header_stdc = yes; then
4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7083c021 4272 if test "$cross_compiling" = yes; then :
030272f3 4273 :
db137867 4274else
7083c021 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 4276/* end confdefs.h. */
030272f3
VY
4277#include <ctype.h>
4278#include <stdlib.h>
4279#if ((' ' & 0x0FF) == 0x020)
4280# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4281# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4282#else
4283# define ISLOWER(c) \
4284 (('a' <= (c) && (c) <= 'i') \
4285 || ('j' <= (c) && (c) <= 'r') \
4286 || ('s' <= (c) && (c) <= 'z'))
4287# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
db137867
AC
4288#endif
4289
030272f3
VY
4290#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4291int
4292main ()
4293{
4294 int i;
4295 for (i = 0; i < 256; i++)
4296 if (XOR (islower (i), ISLOWER (i))
4297 || toupper (i) != TOUPPER (i))
4298 return 2;
db137867
AC
4299 return 0;
4300}
4301_ACEOF
7083c021 4302if ac_fn_c_try_run "$LINENO"; then :
030272f3 4303
7083c021
AC
4304else
4305 ac_cv_header_stdc=no
030272f3 4306fi
7083c021
AC
4307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4308 conftest.$ac_objext conftest.beam conftest.$ac_ext
030272f3
VY
4309fi
4310
030272f3
VY
4311fi
4312fi
7083c021 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
030272f3
VY
4314$as_echo "$ac_cv_header_stdc" >&6; }
4315if test $ac_cv_header_stdc = yes; then
4316
7083c021 4317$as_echo "#define STDC_HEADERS 1" >>confdefs.h
030272f3
VY
4318
4319fi
4320
4321# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7083c021
AC
4322for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4323 inttypes.h stdint.h unistd.h
4324do :
4325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4327"
4328eval as_val=\$$as_ac_Header
4329 if test "x$as_val" = x""yes; then :
4330 cat >>confdefs.h <<_ACEOF
4331#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4332_ACEOF
030272f3 4333
7083c021 4334fi
030272f3 4335
7083c021 4336done
030272f3
VY
4337
4338
4339
7083c021
AC
4340 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4341if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4342 MINIX=yes
4343else
4344 MINIX=
4345fi
030272f3
VY
4346
4347
7083c021 4348 if test "$MINIX" = yes; then
030272f3 4349
7083c021 4350$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
030272f3 4351
db137867 4352
7083c021 4353$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
db137867 4354
db137867 4355
7083c021 4356$as_echo "#define _MINIX 1" >>confdefs.h
030272f3 4357
7083c021 4358 fi
030272f3
VY
4359
4360
7083c021 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
030272f3 4362$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7083c021 4363if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
030272f3 4364 $as_echo_n "(cached) " >&6
db137867 4365else
7083c021 4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 4367/* end confdefs.h. */
db137867 4368
030272f3
VY
4369# define __EXTENSIONS__ 1
4370 $ac_includes_default
4371int
4372main ()
4373{
4374
4375 ;
4376 return 0;
4377}
4378_ACEOF
7083c021 4379if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4380 ac_cv_safe_to_define___extensions__=yes
db137867 4381else
7083c021 4382 ac_cv_safe_to_define___extensions__=no
db137867 4383fi
030272f3
VY
4384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385fi
7083c021 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
030272f3
VY
4387$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4388 test $ac_cv_safe_to_define___extensions__ = yes &&
7083c021 4389 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
db137867 4390
7083c021 4391 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
030272f3 4392
7083c021 4393 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
030272f3 4394
7083c021
AC
4395 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4396
4397 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
030272f3 4398
030272f3
VY
4399
4400
4401
7083c021 4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
030272f3 4403$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7083c021 4404if test "${ac_cv_prog_cc_c99+set}" = set; then :
030272f3 4405 $as_echo_n "(cached) " >&6
db137867 4406else
030272f3
VY
4407 ac_cv_prog_cc_c99=no
4408ac_save_CC=$CC
7083c021 4409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4410/* end confdefs.h. */
4411#include <stdarg.h>
4412#include <stdbool.h>
4413#include <stdlib.h>
4414#include <wchar.h>
4415#include <stdio.h>
db137867 4416
030272f3
VY
4417// Check varargs macros. These examples are taken from C99 6.10.3.5.
4418#define debug(...) fprintf (stderr, __VA_ARGS__)
4419#define showlist(...) puts (#__VA_ARGS__)
4420#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4421static void
4422test_varargs_macros (void)
4423{
4424 int x = 1234;
4425 int y = 5678;
4426 debug ("Flag");
4427 debug ("X = %d\n", x);
4428 showlist (The first, second, and third items.);
4429 report (x>y, "x is %d but y is %d", x, y);
4430}
db137867 4431
030272f3
VY
4432// Check long long types.
4433#define BIG64 18446744073709551615ull
4434#define BIG32 4294967295ul
4435#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4436#if !BIG_OK
4437 your preprocessor is broken;
4438#endif
4439#if BIG_OK
4440#else
4441 your preprocessor is broken;
4442#endif
4443static long long int bignum = -9223372036854775807LL;
4444static unsigned long long int ubignum = BIG64;
db137867 4445
030272f3
VY
4446struct incomplete_array
4447{
4448 int datasize;
4449 double data[];
4450};
db137867 4451
030272f3
VY
4452struct named_init {
4453 int number;
4454 const wchar_t *name;
4455 double average;
4456};
db137867 4457
030272f3 4458typedef const char *ccp;
db137867 4459
030272f3
VY
4460static inline int
4461test_restrict (ccp restrict text)
4462{
4463 // See if C++-style comments work.
4464 // Iterate through items via the restricted pointer.
4465 // Also check for declarations in for loops.
4466 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4467 continue;
4468 return 0;
4469}
db137867 4470
030272f3
VY
4471// Check varargs and va_copy.
4472static void
4473test_varargs (const char *format, ...)
4474{
4475 va_list args;
4476 va_start (args, format);
4477 va_list args_copy;
4478 va_copy (args_copy, args);
db137867 4479
030272f3
VY
4480 const char *str;
4481 int number;
4482 float fnumber;
db137867 4483
030272f3
VY
4484 while (*format)
4485 {
4486 switch (*format++)
4487 {
4488 case 's': // string
4489 str = va_arg (args_copy, const char *);
4490 break;
4491 case 'd': // int
4492 number = va_arg (args_copy, int);
4493 break;
4494 case 'f': // float
4495 fnumber = va_arg (args_copy, double);
4496 break;
4497 default:
4498 break;
4499 }
4500 }
4501 va_end (args_copy);
4502 va_end (args);
4503}
db137867 4504
030272f3
VY
4505int
4506main ()
4507{
db137867 4508
030272f3
VY
4509 // Check bool.
4510 _Bool success = false;
db137867 4511
030272f3
VY
4512 // Check restrict.
4513 if (test_restrict ("String literal") == 0)
4514 success = true;
4515 char *restrict newvar = "Another string";
db137867 4516
030272f3
VY
4517 // Check varargs.
4518 test_varargs ("s, d' f .", "string", 65, 34.234);
4519 test_varargs_macros ();
db137867 4520
030272f3
VY
4521 // Check flexible array members.
4522 struct incomplete_array *ia =
4523 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4524 ia->datasize = 10;
4525 for (int i = 0; i < ia->datasize; ++i)
4526 ia->data[i] = i * 1.234;
db137867 4527
030272f3
VY
4528 // Check named initializers.
4529 struct named_init ni = {
4530 .number = 34,
4531 .name = L"Test wide string",
4532 .average = 543.34343,
4533 };
db137867 4534
030272f3 4535 ni.number = 58;
db137867 4536
030272f3
VY
4537 int dynamic_array[ni.number];
4538 dynamic_array[ni.number - 1] = 543;
4539
4540 // work around unused variable warnings
4541 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4542 || dynamic_array[ni.number - 1] != 543);
4543
4544 ;
4545 return 0;
4546}
4547_ACEOF
4548for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4549do
4550 CC="$ac_save_CC $ac_arg"
7083c021 4551 if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4552 ac_cv_prog_cc_c99=$ac_arg
db137867 4553fi
030272f3
VY
4554rm -f core conftest.err conftest.$ac_objext
4555 test "x$ac_cv_prog_cc_c99" != "xno" && break
4556done
4557rm -f conftest.$ac_ext
4558CC=$ac_save_CC
4559
db137867 4560fi
030272f3
VY
4561# AC_CACHE_VAL
4562case "x$ac_cv_prog_cc_c99" in
4563 x)
7083c021 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
030272f3
VY
4565$as_echo "none needed" >&6; } ;;
4566 xno)
7083c021 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
030272f3
VY
4568$as_echo "unsupported" >&6; } ;;
4569 *)
4570 CC="$CC $ac_cv_prog_cc_c99"
7083c021 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
030272f3 4572$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
db137867 4573esac
7083c021 4574if test "x$ac_cv_prog_cc_c99" != xno; then :
db137867 4575
030272f3
VY
4576fi
4577
4578
030272f3 4579
7083c021
AC
4580if test x"$ac_cv_prog_cc_c99" = "xno"; then
4581 as_fn_error "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
030272f3 4582fi
db137867 4583
db137867
AC
4584
4585
7083c021 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
030272f3 4587$as_echo_n "checking for egrep... " >&6; }
7083c021 4588if test "${ac_cv_path_EGREP+set}" = set; then :
030272f3 4589 $as_echo_n "(cached) " >&6
db137867 4590else
030272f3
VY
4591 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4592 then ac_cv_path_EGREP="$GREP -E"
4593 else
4594 if test -z "$EGREP"; then
4595 ac_path_EGREP_found=false
4596 # Loop through the user's path and test for each of PROGNAME-LIST
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
7083c021 4602 for ac_prog in egrep; do
030272f3
VY
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4605 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4606# Check for GNU ac_path_EGREP and select it if it is found.
4607 # Check for GNU $ac_path_EGREP
4608case `"$ac_path_EGREP" --version 2>&1` in
4609*GNU*)
4610 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4611*)
4612 ac_count=0
4613 $as_echo_n 0123456789 >"conftest.in"
4614 while :
4615 do
4616 cat "conftest.in" "conftest.in" >"conftest.tmp"
4617 mv "conftest.tmp" "conftest.in"
4618 cp "conftest.in" "conftest.nl"
4619 $as_echo 'EGREP' >> "conftest.nl"
4620 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4622 as_fn_arith $ac_count + 1 && ac_count=$as_val
030272f3
VY
4623 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4624 # Best one so far, save it but keep looking for a better one
4625 ac_cv_path_EGREP="$ac_path_EGREP"
4626 ac_path_EGREP_max=$ac_count
4627 fi
4628 # 10*(2^10) chars as input seems more than enough
4629 test $ac_count -gt 10 && break
4630 done
4631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632esac
db137867 4633
030272f3
VY
4634 $ac_path_EGREP_found && break 3
4635 done
4636 done
7083c021 4637 done
030272f3
VY
4638IFS=$as_save_IFS
4639 if test -z "$ac_cv_path_EGREP"; then
7083c021 4640 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
030272f3 4641 fi
db137867 4642else
030272f3 4643 ac_cv_path_EGREP=$EGREP
db137867 4644fi
030272f3
VY
4645
4646 fi
4647fi
7083c021 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
030272f3
VY
4649$as_echo "$ac_cv_path_EGREP" >&6; }
4650 EGREP="$ac_cv_path_EGREP"
4651
4652
7083c021 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
030272f3 4654$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7083c021 4655if test "${ac_cv_path_SED+set}" = set; then :
030272f3
VY
4656 $as_echo_n "(cached) " >&6
4657else
4658 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4659 for ac_i in 1 2 3 4 5 6 7; do
4660 ac_script="$ac_script$as_nl$ac_script"
4661 done
4662 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7083c021 4663 { ac_script=; unset ac_script;}
030272f3
VY
4664 if test -z "$SED"; then
4665 ac_path_SED_found=false
4666 # Loop through the user's path and test for each of PROGNAME-LIST
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
7083c021 4672 for ac_prog in sed gsed; do
030272f3
VY
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4675 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4676# Check for GNU ac_path_SED and select it if it is found.
4677 # Check for GNU $ac_path_SED
4678case `"$ac_path_SED" --version 2>&1` in
4679*GNU*)
4680 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4681*)
4682 ac_count=0
4683 $as_echo_n 0123456789 >"conftest.in"
4684 while :
4685 do
4686 cat "conftest.in" "conftest.in" >"conftest.tmp"
4687 mv "conftest.tmp" "conftest.in"
4688 cp "conftest.in" "conftest.nl"
4689 $as_echo '' >> "conftest.nl"
4690 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083c021 4692 as_fn_arith $ac_count + 1 && ac_count=$as_val
030272f3
VY
4693 if test $ac_count -gt ${ac_path_SED_max-0}; then
4694 # Best one so far, save it but keep looking for a better one
4695 ac_cv_path_SED="$ac_path_SED"
4696 ac_path_SED_max=$ac_count
db137867 4697 fi
030272f3
VY
4698 # 10*(2^10) chars as input seems more than enough
4699 test $ac_count -gt 10 && break
db137867 4700 done
030272f3
VY
4701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4702esac
4703
4704 $ac_path_SED_found && break 3
4705 done
4706 done
7083c021 4707 done
030272f3
VY
4708IFS=$as_save_IFS
4709 if test -z "$ac_cv_path_SED"; then
7083c021 4710 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
030272f3 4711 fi
db137867 4712else
030272f3 4713 ac_cv_path_SED=$SED
db137867 4714fi
030272f3 4715
db137867 4716fi
7083c021 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
030272f3
VY
4718$as_echo "$ac_cv_path_SED" >&6; }
4719 SED="$ac_cv_path_SED"
4720 rm -f conftest.sed
db137867 4721
030272f3
VY
4722
4723F77=no
4724CXX=no
4725GCJ=no
4726
4727# Check whether --enable-static was given.
7083c021 4728if test "${enable_static+set}" = set; then :
030272f3
VY
4729 enableval=$enable_static; p=${PACKAGE-default}
4730 case $enableval in
4731 yes) enable_static=yes ;;
4732 no) enable_static=no ;;
4733 *)
4734 enable_static=no
4735 # Look at the argument we got. We use all the common list separators.
4736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4737 for pkg in $enableval; do
4738 IFS="$lt_save_ifs"
4739 if test "X$pkg" = "X$p"; then
4740 enable_static=yes
4741 fi
4742 done
4743 IFS="$lt_save_ifs"
4744 ;;
4745 esac
db137867 4746else
030272f3 4747 enable_static=no
db137867 4748fi
030272f3
VY
4749
4750
4751
7083c021
AC
4752
4753
4754
4755
4756
4757
030272f3 4758# Check whether --enable-shared was given.
7083c021 4759if test "${enable_shared+set}" = set; then :
030272f3
VY
4760 enableval=$enable_shared; p=${PACKAGE-default}
4761 case $enableval in
4762 yes) enable_shared=yes ;;
4763 no) enable_shared=no ;;
4764 *)
4765 enable_shared=no
4766 # Look at the argument we got. We use all the common list separators.
4767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4768 for pkg in $enableval; do
4769 IFS="$lt_save_ifs"
4770 if test "X$pkg" = "X$p"; then
4771 enable_shared=yes
4772 fi
4773 done
4774 IFS="$lt_save_ifs"
4775 ;;
4776 esac
db137867 4777else
030272f3 4778 enable_shared=yes
db137867 4779fi
db137867
AC
4780
4781
7083c021
AC
4782
4783
4784
4785
4786
4787
4788
4789
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
030272f3
VY
4791$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4792 # Check whether --enable-maintainer-mode was given.
7083c021 4793if test "${enable_maintainer_mode+set}" = set; then :
030272f3 4794 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
db137867 4795else
030272f3 4796 USE_MAINTAINER_MODE=no
db137867 4797fi
030272f3 4798
7083c021 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
030272f3
VY
4800$as_echo "$USE_MAINTAINER_MODE" >&6; }
4801 if test $USE_MAINTAINER_MODE = yes; then
4802 MAINTAINER_MODE_TRUE=
4803 MAINTAINER_MODE_FALSE='#'
4804else
4805 MAINTAINER_MODE_TRUE='#'
4806 MAINTAINER_MODE_FALSE=
4807fi
4808
4809 MAINT=$MAINTAINER_MODE_TRUE
4810
4811
4812
7083c021 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
030272f3 4814$as_echo_n "checking for library containing strerror... " >&6; }
7083c021 4815if test "${ac_cv_search_strerror+set}" = set; then :
030272f3
VY
4816 $as_echo_n "(cached) " >&6
4817else
4818 ac_func_search_save_LIBS=$LIBS
7083c021 4819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4820/* end confdefs.h. */
4821
4822/* Override any GCC internal prototype to avoid an error.
4823 Use char because int might match the return type of a GCC
4824 builtin and then its argument prototype would still apply. */
4825#ifdef __cplusplus
4826extern "C"
4827#endif
4828char strerror ();
4829int
4830main ()
4831{
4832return strerror ();
4833 ;
4834 return 0;
4835}
4836_ACEOF
4837for ac_lib in '' cposix; do
4838 if test -z "$ac_lib"; then
4839 ac_res="none required"
4840 else
4841 ac_res=-l$ac_lib
4842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4843 fi
7083c021 4844 if ac_fn_c_try_link "$LINENO"; then :
030272f3 4845 ac_cv_search_strerror=$ac_res
030272f3 4846fi
7083c021
AC
4847rm -f core conftest.err conftest.$ac_objext \
4848 conftest$ac_exeext
4849 if test "${ac_cv_search_strerror+set}" = set; then :
030272f3
VY
4850 break
4851fi
4852done
7083c021
AC
4853if test "${ac_cv_search_strerror+set}" = set; then :
4854
030272f3
VY
4855else
4856 ac_cv_search_strerror=no
4857fi
4858rm conftest.$ac_ext
4859LIBS=$ac_func_search_save_LIBS
4860fi
7083c021 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
030272f3
VY
4862$as_echo "$ac_cv_search_strerror" >&6; }
4863ac_res=$ac_cv_search_strerror
7083c021 4864if test "$ac_res" != no; then :
030272f3
VY
4865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4866
4867fi
4868
7083c021 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
030272f3 4870$as_echo_n "checking for inline... " >&6; }
7083c021 4871if test "${ac_cv_c_inline+set}" = set; then :
030272f3
VY
4872 $as_echo_n "(cached) " >&6
4873else
4874 ac_cv_c_inline=no
4875for ac_kw in inline __inline__ __inline; do
7083c021 4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4877/* end confdefs.h. */
4878#ifndef __cplusplus
4879typedef int foo_t;
4880static $ac_kw foo_t static_foo () {return 0; }
4881$ac_kw foo_t foo () {return 0; }
4882#endif
4883
4884_ACEOF
7083c021 4885if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4886 ac_cv_c_inline=$ac_kw
030272f3 4887fi
030272f3
VY
4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 test "$ac_cv_c_inline" != no && break
4890done
4891
4892fi
7083c021 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
030272f3
VY
4894$as_echo "$ac_cv_c_inline" >&6; }
4895
030272f3
VY
4896case $ac_cv_c_inline in
4897 inline | yes) ;;
4898 *)
4899 case $ac_cv_c_inline in
4900 no) ac_val=;;
4901 *) ac_val=$ac_cv_c_inline;;
4902 esac
4903 cat >>confdefs.h <<_ACEOF
4904#ifndef __cplusplus
4905#define inline $ac_val
4906#endif
4907_ACEOF
db137867
AC
4908 ;;
4909esac
4910
7083c021 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
030272f3 4912$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7083c021 4913if test "${ac_cv_c_const+set}" = set; then :
030272f3 4914 $as_echo_n "(cached) " >&6
db137867 4915else
7083c021 4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3
VY
4917/* end confdefs.h. */
4918
4919int
4920main ()
4921{
4922/* FIXME: Include the comments suggested by Paul. */
4923#ifndef __cplusplus
4924 /* Ultrix mips cc rejects this. */
4925 typedef int charset[2];
4926 const charset cs;
4927 /* SunOS 4.1.1 cc rejects this. */
4928 char const *const *pcpcc;
4929 char **ppc;
4930 /* NEC SVR4.0.2 mips cc rejects this. */
4931 struct point {int x, y;};
4932 static struct point const zero = {0,0};
4933 /* AIX XL C 1.02.0.0 rejects this.
4934 It does not let you subtract one const X* pointer from another in
4935 an arm of an if-expression whose if-part is not a constant
4936 expression */
4937 const char *g = "string";
4938 pcpcc = &g + (g ? g-g : 0);
4939 /* HPUX 7.0 cc rejects these. */
4940 ++pcpcc;
4941 ppc = (char**) pcpcc;
4942 pcpcc = (char const *const *) ppc;
4943 { /* SCO 3.2v4 cc rejects this. */
4944 char *t;
4945 char const *s = 0 ? (char *) 0 : (char const *) 0;
4946
4947 *t++ = 0;
4948 if (s) return 0;
4949 }
4950 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4951 int x[] = {25, 17};
4952 const int *foo = &x[0];
4953 ++foo;
4954 }
4955 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4956 typedef const int *iptr;
4957 iptr p = 0;
4958 ++p;
4959 }
4960 { /* AIX XL C 1.02.0.0 rejects this saying
4961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4962 struct s { int j; const int *ap[3]; };
4963 struct s *b; b->j = 5;
4964 }
4965 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4966 const int foo = 10;
4967 if (!foo) return 0;
4968 }
4969 return !cs[0] && !zero.x;
4970#endif
4971
4972 ;
4973 return 0;
4974}
4975_ACEOF
7083c021 4976if ac_fn_c_try_compile "$LINENO"; then :
030272f3 4977 ac_cv_c_const=yes
db137867 4978else
7083c021 4979 ac_cv_c_const=no
030272f3 4980fi
030272f3
VY
4981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982fi
7083c021 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
030272f3
VY
4984$as_echo "$ac_cv_c_const" >&6; }
4985if test $ac_cv_c_const = no; then
4986
7083c021 4987$as_echo "#define const /**/" >>confdefs.h
030272f3
VY
4988
4989fi
4990
7083c021 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
030272f3
VY
4992$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4993set x ${MAKE-make}
4994ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7083c021 4995if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
030272f3
VY
4996 $as_echo_n "(cached) " >&6
4997else
4998 cat >conftest.make <<\_ACEOF
4999SHELL = /bin/sh
5000all:
5001 @echo '@@@%%%=$(MAKE)=@@@%%%'
5002_ACEOF
5003# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5004case `${MAKE-make} -f conftest.make 2>/dev/null` in
5005 *@@@%%%=?*=@@@%%%*)
5006 eval ac_cv_prog_make_${ac_make}_set=yes;;
5007 *)
5008 eval ac_cv_prog_make_${ac_make}_set=no;;
5009esac
5010rm -f conftest.make
5011fi
5012if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7083c021 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
030272f3
VY
5014$as_echo "yes" >&6; }
5015 SET_MAKE=
5016else
7083c021 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5018$as_echo "no" >&6; }
5019 SET_MAKE="MAKE=${MAKE-make}"
5020fi
5021
db137867 5022
030272f3
VY
5023# Extract the first word of "automake", so it can be a program name with args.
5024set dummy automake; ac_word=$2
7083c021 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5026$as_echo_n "checking for $ac_word... " >&6; }
7083c021 5027if test "${ac_cv_path_AUTOMAKE+set}" = set; then :
030272f3
VY
5028 $as_echo_n "(cached) " >&6
5029else
5030 case $AUTOMAKE in
5031 [\\/]* | ?:[\\/]*)
5032 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
db137867 5033 ;;
030272f3
VY
5034 *)
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
7083c021 5040 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
7083c021 5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5044 break 2
5045 fi
5046done
7083c021 5047 done
030272f3 5048IFS=$as_save_IFS
db137867 5049
db137867 5050 ;;
030272f3
VY
5051esac
5052fi
5053AUTOMAKE=$ac_cv_path_AUTOMAKE
5054if test -n "$AUTOMAKE"; then
7083c021 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
030272f3
VY
5056$as_echo "$AUTOMAKE" >&6; }
5057else
7083c021 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5059$as_echo "no" >&6; }
5060fi
db137867 5061
db137867 5062
030272f3
VY
5063# Extract the first word of "aclocal", so it can be a program name with args.
5064set dummy aclocal; ac_word=$2
7083c021 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5066$as_echo_n "checking for $ac_word... " >&6; }
7083c021 5067if test "${ac_cv_path_ACLOCAL+set}" = set; then :
030272f3
VY
5068 $as_echo_n "(cached) " >&6
5069else
5070 case $ACLOCAL in
5071 [\\/]* | ?:[\\/]*)
5072 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
db137867 5073 ;;
db137867 5074 *)
030272f3
VY
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
7083c021 5080 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
7083c021 5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5084 break 2
5085 fi
5086done
7083c021 5087 done
030272f3 5088IFS=$as_save_IFS
db137867 5089
db137867 5090 ;;
030272f3
VY
5091esac
5092fi
5093ACLOCAL=$ac_cv_path_ACLOCAL
5094if test -n "$ACLOCAL"; then
7083c021 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
030272f3
VY
5096$as_echo "$ACLOCAL" >&6; }
5097else
7083c021 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5099$as_echo "no" >&6; }
5100fi
db137867 5101
db137867 5102
030272f3
VY
5103# Extract the first word of "autoheader", so it can be a program name with args.
5104set dummy autoheader; ac_word=$2
7083c021 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5106$as_echo_n "checking for $ac_word... " >&6; }
7083c021 5107if test "${ac_cv_path_AUTOHEADER+set}" = set; then :
030272f3
VY
5108 $as_echo_n "(cached) " >&6
5109else
5110 case $AUTOHEADER in
5111 [\\/]* | ?:[\\/]*)
5112 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
db137867 5113 ;;
030272f3
VY
5114 *)
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
7083c021 5120 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
7083c021 5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3 5124 break 2
db137867 5125 fi
030272f3 5126done
7083c021 5127 done
030272f3
VY
5128IFS=$as_save_IFS
5129
db137867 5130 ;;
030272f3
VY
5131esac
5132fi
5133AUTOHEADER=$ac_cv_path_AUTOHEADER
5134if test -n "$AUTOHEADER"; then
7083c021 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
030272f3
VY
5136$as_echo "$AUTOHEADER" >&6; }
5137else
7083c021 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5139$as_echo "no" >&6; }
5140fi
db137867 5141
030272f3
VY
5142
5143# Extract the first word of "as", so it can be a program name with args.
5144set dummy as; ac_word=$2
7083c021 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5146$as_echo_n "checking for $ac_word... " >&6; }
7083c021 5147if test "${ac_cv_path_AS+set}" = set; then :
030272f3
VY
5148 $as_echo_n "(cached) " >&6
5149else
5150 case $AS in
5151 [\\/]* | ?:[\\/]*)
5152 ac_cv_path_AS="$AS" # Let the user override the test with a path.
db137867 5153 ;;
030272f3
VY
5154 *)
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
7083c021 5160 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
7083c021 5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5164 break 2
5165 fi
5166done
7083c021 5167 done
030272f3 5168IFS=$as_save_IFS
db137867 5169
db137867 5170 ;;
030272f3
VY
5171esac
5172fi
5173AS=$ac_cv_path_AS
5174if test -n "$AS"; then
7083c021 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
030272f3
VY
5176$as_echo "$AS" >&6; }
5177else
7083c021 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5179$as_echo "no" >&6; }
5180fi
db137867 5181
db137867 5182
030272f3
VY
5183# Extract the first word of "rm", so it can be a program name with args.
5184set dummy rm; ac_word=$2
7083c021 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5186$as_echo_n "checking for $ac_word... " >&6; }
7083c021 5187if test "${ac_cv_path_RM+set}" = set; then :
030272f3
VY
5188 $as_echo_n "(cached) " >&6
5189else
5190 case $RM in
5191 [\\/]* | ?:[\\/]*)
5192 ac_cv_path_RM="$RM" # Let the user override the test with a path.
db137867 5193 ;;
030272f3
VY
5194 *)
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
7083c021 5200 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7083c021 5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5204 break 2
5205 fi
5206done
7083c021 5207 done
030272f3 5208IFS=$as_save_IFS
db137867 5209
db137867 5210 ;;
030272f3
VY
5211esac
5212fi
5213RM=$ac_cv_path_RM
5214if test -n "$RM"; then
7083c021 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
030272f3
VY
5216$as_echo "$RM" >&6; }
5217else
7083c021 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5219$as_echo "no" >&6; }
5220fi
db137867 5221
db137867 5222
030272f3
VY
5223# Extract the first word of "cp", so it can be a program name with args.
5224set dummy cp; ac_word=$2
7083c021 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5226$as_echo_n "checking for $ac_word... " >&6; }
7083c021 5227if test "${ac_cv_path_CP+set}" = set; then :
030272f3
VY
5228 $as_echo_n "(cached) " >&6
5229else
5230 case $CP in
5231 [\\/]* | ?:[\\/]*)
5232 ac_cv_path_CP="$CP" # Let the user override the test with a path.
db137867 5233 ;;
030272f3
VY
5234 *)
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
7083c021 5240 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
7083c021 5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5244 break 2
5245 fi
5246done
7083c021 5247 done
030272f3 5248IFS=$as_save_IFS
db137867 5249
db137867
AC
5250 ;;
5251esac
db137867 5252fi
030272f3
VY
5253CP=$ac_cv_path_CP
5254if test -n "$CP"; then
7083c021 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
030272f3
VY
5256$as_echo "$CP" >&6; }
5257else
7083c021 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5259$as_echo "no" >&6; }
db137867
AC
5260fi
5261
db137867 5262
030272f3
VY
5263# Extract the first word of "mv", so it can be a program name with args.
5264set dummy mv; ac_word=$2
7083c021 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5266$as_echo_n "checking for $ac_word... " >&6; }
7083c021 5267if test "${ac_cv_path_MV+set}" = set; then :
030272f3
VY
5268 $as_echo_n "(cached) " >&6
5269else
5270 case $MV in
5271 [\\/]* | ?:[\\/]*)
5272 ac_cv_path_MV="$MV" # Let the user override the test with a path.
db137867 5273 ;;
030272f3
VY
5274 *)
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
7083c021 5280 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7083c021 5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3 5284 break 2
db137867 5285 fi
030272f3 5286done
7083c021 5287 done
030272f3 5288IFS=$as_save_IFS
db137867 5289
db137867 5290 ;;
030272f3
VY
5291esac
5292fi
5293MV=$ac_cv_path_MV
5294if test -n "$MV"; then
7083c021 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
030272f3
VY
5296$as_echo "$MV" >&6; }
5297else
7083c021 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5299$as_echo "no" >&6; }
5300fi
5301
5302
5303# Extract the first word of "ln", so it can be a program name with args.
5304set dummy ln; ac_word=$2
7083c021 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5306$as_echo_n "checking for $ac_word... " >&6; }
7083c021 5307if test "${ac_cv_path_LN+set}" = set; then :
030272f3
VY
5308 $as_echo_n "(cached) " >&6
5309else
5310 case $LN in
5311 [\\/]* | ?:[\\/]*)
5312 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5313 ;;
5314 *)
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
7083c021 5320 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7083c021 5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5324 break 2
5325 fi
5326done
7083c021 5327 done
030272f3 5328IFS=$as_save_IFS
db137867 5329
030272f3
VY
5330 ;;
5331esac
5332fi
5333LN=$ac_cv_path_LN
5334if test -n "$LN"; then
7083c021 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
030272f3 5336$as_echo "$LN" >&6; }
db137867 5337else
7083c021 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3
VY
5339$as_echo "no" >&6; }
5340fi
db137867 5341
db137867 5342
030272f3
VY
5343# Extract the first word of "touch", so it can be a program name with args.
5344set dummy touch; ac_word=$2
7083c021 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 5346$as_echo_n "checking for $ac_word... " >&6; }
7083c021 5347if test "${ac_cv_path_TOUCH+set}" = set; then :
030272f3
VY
5348 $as_echo_n "(cached) " >&6
5349else
5350 case $TOUCH in
5351 [\\/]* | ?:[\\/]*)
5352 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5353 ;;
5354 *)
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
7083c021 5360 for ac_exec_ext in '' $ac_executable_extensions; do
030272f3
VY
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
7083c021 5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
030272f3
VY
5364 break 2
5365 fi
5366done
7083c021 5367 done
030272f3 5368IFS=$as_save_IFS
db137867 5369
030272f3 5370 ;;
db137867 5371esac
030272f3
VY
5372fi
5373TOUCH=$ac_cv_path_TOUCH
5374if test -n "$TOUCH"; then
7083c021 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
030272f3 5376$as_echo "$TOUCH" >&6; }
db137867 5377else
7083c021 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5379$as_echo "no" >&6; }
db137867
AC
5380fi
5381
030272f3
VY
5382
5383ac_ext=c
db137867
AC
5384ac_cpp='$CPP $CPPFLAGS'
5385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
030272f3 5389
7083c021
AC
5390case `pwd` in
5391 *\ * | *\ *)
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5393$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5394esac
5395
5396
5397
96f4052b
AC
5398macro_version='2.2.6b'
5399macro_revision='1.3017'
7083c021
AC
5400
5401
5402
5403
5404
5405
5406
5407
5408
030272f3
VY
5409
5410
7083c021
AC
5411
5412
5413ltmain="$ac_aux_dir/ltmain.sh"
5414
030272f3
VY
5415# Make sure we can run config.sub.
5416$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7083c021 5417 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
030272f3 5418
7083c021 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
030272f3 5420$as_echo_n "checking build system type... " >&6; }
7083c021 5421if test "${ac_cv_build+set}" = set; then :
030272f3
VY
5422 $as_echo_n "(cached) " >&6
5423else
5424 ac_build_alias=$build_alias
5425test "x$ac_build_alias" = x &&
5426 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5427test "x$ac_build_alias" = x &&
7083c021 5428 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
030272f3 5429ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7083c021 5430 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
030272f3
VY
5431
5432fi
7083c021 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
030272f3
VY
5434$as_echo "$ac_cv_build" >&6; }
5435case $ac_cv_build in
5436*-*-*) ;;
7083c021 5437*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
030272f3
VY
5438esac
5439build=$ac_cv_build
5440ac_save_IFS=$IFS; IFS='-'
5441set x $ac_cv_build
5442shift
5443build_cpu=$1
5444build_vendor=$2
5445shift; shift
5446# Remember, the first character of IFS is used to create $*,
5447# except with old shells:
5448build_os=$*
5449IFS=$ac_save_IFS
5450case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5451
5452
7083c021 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
030272f3 5454$as_echo_n "checking host system type... " >&6; }
7083c021 5455if test "${ac_cv_host+set}" = set; then :
030272f3
VY
5456 $as_echo_n "(cached) " >&6
5457else
5458 if test "x$host_alias" = x; then
5459 ac_cv_host=$ac_cv_build
5460else
5461 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7083c021 5462 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
030272f3
VY
5463fi
5464
5465fi
7083c021 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
030272f3
VY
5467$as_echo "$ac_cv_host" >&6; }
5468case $ac_cv_host in
5469*-*-*) ;;
7083c021 5470*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
030272f3
VY
5471esac
5472host=$ac_cv_host
5473ac_save_IFS=$IFS; IFS='-'
5474set x $ac_cv_host
5475shift
5476host_cpu=$1
5477host_vendor=$2
5478shift; shift
5479# Remember, the first character of IFS is used to create $*,
5480# except with old shells:
5481host_os=$*
5482IFS=$ac_save_IFS
5483case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5484
5485
7083c021 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
030272f3 5487$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7083c021 5488if test "${ac_cv_path_SED+set}" = set; then :
030272f3
VY
5489 $as_echo_n "(cached) " >&6
5490else
7083c021
AC
5491 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5492 for ac_i in 1 2 3 4 5 6 7; do
5493 ac_script="$ac_script$as_nl$ac_script"
5494 done
5495 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5496 { ac_script=; unset ac_script;}
5497 if test -z "$SED"; then
5498 ac_path_SED_found=false
5499 # Loop through the user's path and test for each of PROGNAME-LIST
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
030272f3
VY
5501for as_dir in $PATH
5502do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
7083c021 5505 for ac_prog in sed gsed; do
030272f3 5506 for ac_exec_ext in '' $ac_executable_extensions; do
7083c021
AC
5507 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5508 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5509# Check for GNU ac_path_SED and select it if it is found.
5510 # Check for GNU $ac_path_SED
5511case `"$ac_path_SED" --version 2>&1` in
5512*GNU*)
5513 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5514*)
5515 ac_count=0
5516 $as_echo_n 0123456789 >"conftest.in"
5517 while :
5518 do
5519 cat "conftest.in" "conftest.in" >"conftest.tmp"
5520 mv "conftest.tmp" "conftest.in"
5521 cp "conftest.in" "conftest.nl"
5522 $as_echo '' >> "conftest.nl"
5523 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5525 as_fn_arith $ac_count + 1 && ac_count=$as_val
5526 if test $ac_count -gt ${ac_path_SED_max-0}; then
5527 # Best one so far, save it but keep looking for a better one
5528 ac_cv_path_SED="$ac_path_SED"
5529 ac_path_SED_max=$ac_count
5530 fi
5531 # 10*(2^10) chars as input seems more than enough
5532 test $ac_count -gt 10 && break
5533 done
5534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5535esac
5536
5537 $ac_path_SED_found && break 3
030272f3
VY
5538 done
5539 done
7083c021 5540 done
030272f3 5541IFS=$as_save_IFS
7083c021
AC
5542 if test -z "$ac_cv_path_SED"; then
5543 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
db137867 5544 fi
7083c021
AC
5545else
5546 ac_cv_path_SED=$SED
5547fi
db137867 5548
030272f3 5549fi
7083c021
AC
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5551$as_echo "$ac_cv_path_SED" >&6; }
5552 SED="$ac_cv_path_SED"
5553 rm -f conftest.sed
db137867 5554
7083c021
AC
5555test -z "$SED" && SED=sed
5556Xsed="$SED -e 1s/^X//"
db137867 5557
db137867
AC
5558
5559
db137867 5560
7083c021
AC
5561
5562
5563
5564
5565
5566
5567
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5569$as_echo_n "checking for fgrep... " >&6; }
5570if test "${ac_cv_path_FGREP+set}" = set; then :
5571 $as_echo_n "(cached) " >&6
5572else
5573 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5574 then ac_cv_path_FGREP="$GREP -F"
5575 else
5576 if test -z "$FGREP"; then
5577 ac_path_FGREP_found=false
5578 # Loop through the user's path and test for each of PROGNAME-LIST
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5581do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_prog in fgrep; do
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5587 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5588# Check for GNU ac_path_FGREP and select it if it is found.
5589 # Check for GNU $ac_path_FGREP
5590case `"$ac_path_FGREP" --version 2>&1` in
5591*GNU*)
5592 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5593*)
5594 ac_count=0
5595 $as_echo_n 0123456789 >"conftest.in"
5596 while :
5597 do
5598 cat "conftest.in" "conftest.in" >"conftest.tmp"
5599 mv "conftest.tmp" "conftest.in"
5600 cp "conftest.in" "conftest.nl"
5601 $as_echo 'FGREP' >> "conftest.nl"
5602 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5604 as_fn_arith $ac_count + 1 && ac_count=$as_val
5605 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5606 # Best one so far, save it but keep looking for a better one
5607 ac_cv_path_FGREP="$ac_path_FGREP"
5608 ac_path_FGREP_max=$ac_count
5609 fi
5610 # 10*(2^10) chars as input seems more than enough
5611 test $ac_count -gt 10 && break
5612 done
5613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5614esac
5615
5616 $ac_path_FGREP_found && break 3
5617 done
5618 done
5619 done
5620IFS=$as_save_IFS
5621 if test -z "$ac_cv_path_FGREP"; then
5622 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5623 fi
5624else
5625 ac_cv_path_FGREP=$FGREP
5626fi
5627
5628 fi
5629fi
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5631$as_echo "$ac_cv_path_FGREP" >&6; }
5632 FGREP="$ac_cv_path_FGREP"
5633
5634
5635test -z "$GREP" && GREP=grep
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655# Check whether --with-gnu-ld was given.
5656if test "${with_gnu_ld+set}" = set; then :
5657 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5658else
5659 with_gnu_ld=no
5660fi
5661
5662ac_prog=ld
5663if test "$GCC" = yes; then
5664 # Check if gcc -print-prog-name=ld gives a path.
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5666$as_echo_n "checking for ld used by $CC... " >&6; }
5667 case $host in
5668 *-*-mingw*)
5669 # gcc leaves a trailing carriage return which upsets mingw
5670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5671 *)
5672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5673 esac
5674 case $ac_prog in
5675 # Accept absolute paths.
5676 [\\/]* | ?:[\\/]*)
5677 re_direlt='/[^/][^/]*/\.\./'
5678 # Canonicalize the pathname of ld
5679 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5680 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5681 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5682 done
5683 test -z "$LD" && LD="$ac_prog"
5684 ;;
5685 "")
5686 # If it fails, then pretend we aren't using GCC.
5687 ac_prog=ld
5688 ;;
5689 *)
5690 # If it is relative, then search for the first ld in PATH.
5691 with_gnu_ld=unknown
5692 ;;
5693 esac
5694elif test "$with_gnu_ld" = yes; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5696$as_echo_n "checking for GNU ld... " >&6; }
5697else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
030272f3 5699$as_echo_n "checking for non-GNU ld... " >&6; }
db137867 5700fi
7083c021 5701if test "${lt_cv_path_LD+set}" = set; then :
030272f3
VY
5702 $as_echo_n "(cached) " >&6
5703else
5704 if test -z "$LD"; then
5705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5706 for ac_dir in $PATH; do
5707 IFS="$lt_save_ifs"
5708 test -z "$ac_dir" && ac_dir=.
5709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5710 lt_cv_path_LD="$ac_dir/$ac_prog"
5711 # Check to see if the program is GNU ld. I'd rather use --version,
5712 # but apparently some variants of GNU ld only accept -v.
5713 # Break only if it was the GNU/non-GNU ld that we prefer.
5714 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5715 *GNU* | *'with BFD'*)
5716 test "$with_gnu_ld" != no && break
5717 ;;
5718 *)
5719 test "$with_gnu_ld" != yes && break
5720 ;;
5721 esac
5722 fi
5723 done
5724 IFS="$lt_save_ifs"
5725else
5726 lt_cv_path_LD="$LD" # Let the user override the test with a path.
db137867 5727fi
db137867 5728fi
030272f3
VY
5729
5730LD="$lt_cv_path_LD"
5731if test -n "$LD"; then
7083c021 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
030272f3 5733$as_echo "$LD" >&6; }
db137867 5734else
7083c021 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 5736$as_echo "no" >&6; }
db137867 5737fi
7083c021
AC
5738test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
030272f3 5740$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7083c021 5741if test "${lt_cv_prog_gnu_ld+set}" = set; then :
030272f3 5742 $as_echo_n "(cached) " >&6
db137867 5743else
030272f3
VY
5744 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5745case `$LD -v 2>&1 </dev/null` in
5746*GNU* | *'with BFD'*)
5747 lt_cv_prog_gnu_ld=yes
5748 ;;
5749*)
5750 lt_cv_prog_gnu_ld=no
5751 ;;
5752esac
db137867 5753fi
7083c021 5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
030272f3
VY
5755$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5756with_gnu_ld=$lt_cv_prog_gnu_ld
db137867 5757
db137867 5758
db137867 5759
7083c021
AC
5760
5761
5762
5763
5764
5765
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5767$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5768if test "${lt_cv_path_NM+set}" = set; then :
030272f3
VY
5769 $as_echo_n "(cached) " >&6
5770else
5771 if test -n "$NM"; then
5772 # Let the user override the test.
5773 lt_cv_path_NM="$NM"
5774else
5775 lt_nm_to_check="${ac_tool_prefix}nm"
5776 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5777 lt_nm_to_check="$lt_nm_to_check nm"
5778 fi
5779 for lt_tmp_nm in $lt_nm_to_check; do
5780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5782 IFS="$lt_save_ifs"
5783 test -z "$ac_dir" && ac_dir=.
5784 tmp_nm="$ac_dir/$lt_tmp_nm"
5785 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5786 # Check to see if the nm accepts a BSD-compat flag.
5787 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5788 # nm: unknown option "B" ignored
5789 # Tru64's nm complains that /dev/null is an invalid object file
5790 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5791 */dev/null* | *'Invalid file or object type'*)
5792 lt_cv_path_NM="$tmp_nm -B"
5793 break
5794 ;;
5795 *)
5796 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5797 */dev/null*)
5798 lt_cv_path_NM="$tmp_nm -p"
5799 break
5800 ;;
5801 *)
5802 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5803 continue # so that we can try to find one that supports BSD flags
5804 ;;
5805 esac
5806 ;;
5807 esac
5808 fi
5809 done
5810 IFS="$lt_save_ifs"
5811 done
7083c021 5812 : ${lt_cv_path_NM=no}
db137867 5813fi
030272f3 5814fi
7083c021 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
030272f3 5816$as_echo "$lt_cv_path_NM" >&6; }
7083c021
AC
5817if test "$lt_cv_path_NM" != "no"; then
5818 NM="$lt_cv_path_NM"
5819else
5820 # Didn't find any BSD compatible name lister, look for dumpbin.
5821 if test -n "$ac_tool_prefix"; then
5822 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5823 do
5824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
5828if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830else
5831 if test -n "$DUMPBIN"; then
5832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845done
5846 done
5847IFS=$as_save_IFS
db137867 5848
7083c021
AC
5849fi
5850fi
5851DUMPBIN=$ac_cv_prog_DUMPBIN
5852if test -n "$DUMPBIN"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5854$as_echo "$DUMPBIN" >&6; }
db137867 5855else
7083c021
AC
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
db137867
AC
5858fi
5859
7083c021
AC
5860
5861 test -n "$DUMPBIN" && break
5862 done
5863fi
5864if test -z "$DUMPBIN"; then
5865 ac_ct_DUMPBIN=$DUMPBIN
5866 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5867do
5868 # Extract the first word of "$ac_prog", so it can be a program name with args.
5869set dummy $ac_prog; ac_word=$2
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871$as_echo_n "checking for $ac_word... " >&6; }
5872if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
030272f3
VY
5873 $as_echo_n "(cached) " >&6
5874else
7083c021
AC
5875 if test -n "$ac_ct_DUMPBIN"; then
5876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889done
5890 done
5891IFS=$as_save_IFS
db137867 5892
7083c021
AC
5893fi
5894fi
5895ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5896if test -n "$ac_ct_DUMPBIN"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5898$as_echo "$ac_ct_DUMPBIN" >&6; }
5899else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
db137867 5903
db137867 5904
7083c021
AC
5905 test -n "$ac_ct_DUMPBIN" && break
5906done
db137867 5907
7083c021
AC
5908 if test "x$ac_ct_DUMPBIN" = x; then
5909 DUMPBIN=":"
030272f3 5910 else
7083c021
AC
5911 case $cross_compiling:$ac_tool_warned in
5912yes:)
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915ac_tool_warned=yes ;;
5916esac
5917 DUMPBIN=$ac_ct_DUMPBIN
030272f3 5918 fi
7083c021 5919fi
db137867 5920
db137867 5921
7083c021
AC
5922 if test "$DUMPBIN" != ":"; then
5923 NM="$DUMPBIN"
030272f3 5924 fi
7083c021
AC
5925fi
5926test -z "$NM" && NM=nm
db137867 5927
db137867 5928
db137867 5929
db137867 5930
030272f3 5931
030272f3 5932
7083c021
AC
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5934$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5935if test "${lt_cv_nm_interface+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937else
5938 lt_cv_nm_interface="BSD nm"
5939 echo "int some_variable = 0;" > conftest.$ac_ext
96f4052b 5940 (eval echo "\"\$as_me:5940: $ac_compile\"" >&5)
7083c021
AC
5941 (eval "$ac_compile" 2>conftest.err)
5942 cat conftest.err >&5
96f4052b 5943 (eval echo "\"\$as_me:5943: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7083c021
AC
5944 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5945 cat conftest.err >&5
96f4052b 5946 (eval echo "\"\$as_me:5946: output\"" >&5)
7083c021
AC
5947 cat conftest.out >&5
5948 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5949 lt_cv_nm_interface="MS dumpbin"
030272f3 5950 fi
7083c021
AC
5951 rm -f conftest*
5952fi
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5954$as_echo "$lt_cv_nm_interface" >&6; }
db137867 5955
7083c021
AC
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5957$as_echo_n "checking whether ln -s works... " >&6; }
5958LN_S=$as_ln_s
5959if test "$LN_S" = "ln -s"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5961$as_echo "yes" >&6; }
5962else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5964$as_echo "no, using $LN_S" >&6; }
5965fi
db137867 5966
7083c021
AC
5967# find the maximum length of command line arguments
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5969$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5970if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972else
5973 i=0
5974 teststring="ABCD"
db137867 5975
7083c021
AC
5976 case $build_os in
5977 msdosdjgpp*)
5978 # On DJGPP, this test can blow up pretty badly due to problems in libc
5979 # (any single argument exceeding 2000 bytes causes a buffer overrun
5980 # during glob expansion). Even if it were fixed, the result of this
5981 # check would be larger than it should be.
5982 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5983 ;;
db137867 5984
7083c021
AC
5985 gnu*)
5986 # Under GNU Hurd, this test is not required because there is
5987 # no limit to the length of command line arguments.
5988 # Libtool will interpret -1 as no limit whatsoever
5989 lt_cv_sys_max_cmd_len=-1;
5990 ;;
db137867 5991
7083c021
AC
5992 cygwin* | mingw* | cegcc*)
5993 # On Win9x/ME, this test blows up -- it succeeds, but takes
5994 # about 5 minutes as the teststring grows exponentially.
5995 # Worse, since 9x/ME are not pre-emptively multitasking,
5996 # you end up with a "frozen" computer, even though with patience
5997 # the test eventually succeeds (with a max line length of 256k).
5998 # Instead, let's just punt: use the minimum linelength reported by
5999 # all of the supported platforms: 8192 (on NT/2K/XP).
6000 lt_cv_sys_max_cmd_len=8192;
6001 ;;
db137867 6002
7083c021
AC
6003 amigaos*)
6004 # On AmigaOS with pdksh, this test takes hours, literally.
6005 # So we just punt and use a minimum line length of 8192.
6006 lt_cv_sys_max_cmd_len=8192;
6007 ;;
db137867 6008
7083c021
AC
6009 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6010 # This has been around since 386BSD, at least. Likely further.
6011 if test -x /sbin/sysctl; then
6012 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6013 elif test -x /usr/sbin/sysctl; then
6014 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6015 else
6016 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6017 fi
6018 # And add a safety zone
6019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
030272f3 6021 ;;
7083c021
AC
6022
6023 interix*)
6024 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6025 lt_cv_sys_max_cmd_len=196608
030272f3 6026 ;;
7083c021
AC
6027
6028 osf*)
6029 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6030 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6031 # nice to cause kernel panics so lets avoid the loop below.
6032 # First set a reasonable default.
6033 lt_cv_sys_max_cmd_len=16384
6034 #
6035 if test -x /sbin/sysconfig; then
6036 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6037 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6038 esac
6039 fi
030272f3 6040 ;;
7083c021
AC
6041 sco3.2v5*)
6042 lt_cv_sys_max_cmd_len=102400
030272f3 6043 ;;
7083c021
AC
6044 sysv5* | sco5v6* | sysv4.2uw2*)
6045 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6046 if test -n "$kargmax"; then
6047 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6048 else
6049 lt_cv_sys_max_cmd_len=32768
6050 fi
030272f3 6051 ;;
7083c021
AC
6052 *)
6053 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6054 if test -n "$lt_cv_sys_max_cmd_len"; then
6055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6057 else
6058 # Make teststring a little bigger before we do anything with it.
6059 # a 1K string should be a reasonable start.
6060 for i in 1 2 3 4 5 6 7 8 ; do
6061 teststring=$teststring$teststring
6062 done
6063 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6064 # If test is not a shell built-in, we'll probably end up computing a
6065 # maximum length that is only half of the actual maximum length, but
6066 # we can't tell.
6067 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6068 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6069 test $i != 17 # 1/2 MB should be enough
6070 do
6071 i=`expr $i + 1`
6072 teststring=$teststring$teststring
6073 done
6074 # Only check the string length outside the loop.
6075 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6076 teststring=
6077 # Add a significant safety factor because C++ compilers can tack on
6078 # massive amounts of additional arguments before passing them to the
6079 # linker. It appears as though 1/2 is a usable value.
6080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6081 fi
030272f3
VY
6082 ;;
6083 esac
030272f3 6084
7083c021 6085fi
db137867 6086
7083c021
AC
6087if test -n $lt_cv_sys_max_cmd_len ; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6089$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6090else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6092$as_echo "none" >&6; }
db137867 6093fi
7083c021 6094max_cmd_len=$lt_cv_sys_max_cmd_len
030272f3 6095
db137867 6096
db137867
AC
6097
6098
6099
6100
7083c021
AC
6101: ${CP="cp -f"}
6102: ${MV="mv -f"}
6103: ${RM="rm -f"}
db137867 6104
7083c021
AC
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6106$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6107# Try some XSI features
6108xsi_shell=no
6109( _lt_dummy="a/b/c"
6110 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6111 = c,a/b,, \
6112 && eval 'test $(( 1 + 1 )) -eq 2 \
6113 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6114 && xsi_shell=yes
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6116$as_echo "$xsi_shell" >&6; }
6117
6118
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6120$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6121lt_shell_append=no
6122( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6123 >/dev/null 2>&1 \
6124 && lt_shell_append=yes
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6126$as_echo "$lt_shell_append" >&6; }
6127
6128
6129if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6130 lt_unset=unset
6131else
6132 lt_unset=false
030272f3 6133fi
db137867
AC
6134
6135
7083c021
AC
6136
6137
6138
6139# test EBCDIC or ASCII
6140case `echo X|tr X '\101'` in
6141 A) # ASCII based system
6142 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6143 lt_SP2NL='tr \040 \012'
6144 lt_NL2SP='tr \015\012 \040\040'
030272f3 6145 ;;
7083c021
AC
6146 *) # EBCDIC based system
6147 lt_SP2NL='tr \100 \n'
6148 lt_NL2SP='tr \r\n \100\100'
030272f3 6149 ;;
7083c021 6150esac
db137867 6151
db137867 6152
db137867 6153
db137867 6154
030272f3 6155
030272f3 6156
db137867
AC
6157
6158
6159
7083c021
AC
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6161$as_echo_n "checking for $LD option to reload object files... " >&6; }
6162if test "${lt_cv_ld_reload_flag+set}" = set; then :
030272f3 6163 $as_echo_n "(cached) " >&6
db137867 6164else
7083c021 6165 lt_cv_ld_reload_flag='-r'
db137867 6166fi
7083c021
AC
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6168$as_echo "$lt_cv_ld_reload_flag" >&6; }
6169reload_flag=$lt_cv_ld_reload_flag
6170case $reload_flag in
6171"" | " "*) ;;
6172*) reload_flag=" $reload_flag" ;;
6173esac
6174reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175case $host_os in
6176 darwin*)
6177 if test "$GCC" = yes; then
6178 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6179 else
6180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6181 fi
6182 ;;
db137867 6183esac
db137867 6184
db137867 6185
db137867 6186
db137867 6187
db137867 6188
db137867 6189
db137867 6190
db137867 6191
7083c021
AC
6192
6193if test -n "$ac_tool_prefix"; then
6194 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6195set dummy ${ac_tool_prefix}objdump; ac_word=$2
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6197$as_echo_n "checking for $ac_word... " >&6; }
7083c021 6198if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
030272f3 6199 $as_echo_n "(cached) " >&6
db137867 6200else
7083c021
AC
6201 if test -n "$OBJDUMP"; then
6202 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
db137867
AC
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
7083c021 6209 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6211 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6213 break 2
6214 fi
6215done
7083c021 6216 done
db137867
AC
6217IFS=$as_save_IFS
6218
6219fi
6220fi
7083c021
AC
6221OBJDUMP=$ac_cv_prog_OBJDUMP
6222if test -n "$OBJDUMP"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6224$as_echo "$OBJDUMP" >&6; }
db137867 6225else
7083c021 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6227$as_echo "no" >&6; }
db137867
AC
6228fi
6229
6230
db137867 6231fi
7083c021
AC
6232if test -z "$ac_cv_prog_OBJDUMP"; then
6233 ac_ct_OBJDUMP=$OBJDUMP
6234 # Extract the first word of "objdump", so it can be a program name with args.
6235set dummy objdump; ac_word=$2
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6237$as_echo_n "checking for $ac_word... " >&6; }
7083c021 6238if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
030272f3 6239 $as_echo_n "(cached) " >&6
db137867 6240else
7083c021
AC
6241 if test -n "$ac_ct_OBJDUMP"; then
6242 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
db137867
AC
6243else
6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH
6246do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
7083c021 6249 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6251 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6253 break 2
6254 fi
6255done
7083c021 6256 done
db137867
AC
6257IFS=$as_save_IFS
6258
6259fi
6260fi
7083c021
AC
6261ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6262if test -n "$ac_ct_OBJDUMP"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6264$as_echo "$ac_ct_OBJDUMP" >&6; }
db137867 6265else
7083c021 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6267$as_echo "no" >&6; }
db137867
AC
6268fi
6269
7083c021
AC
6270 if test "x$ac_ct_OBJDUMP" = x; then
6271 OBJDUMP="false"
db137867
AC
6272 else
6273 case $cross_compiling:$ac_tool_warned in
6274yes:)
7083c021 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 6276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
6277ac_tool_warned=yes ;;
6278esac
7083c021 6279 OBJDUMP=$ac_ct_OBJDUMP
db137867 6280 fi
7083c021
AC
6281else
6282 OBJDUMP="$ac_cv_prog_OBJDUMP"
db137867 6283fi
db137867 6284
7083c021 6285test -z "$OBJDUMP" && OBJDUMP=objdump
db137867 6286
db137867 6287
db137867 6288
db137867 6289
db137867 6290
db137867 6291
db137867 6292
db137867 6293
db137867 6294
7083c021
AC
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6296$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6297if test "${lt_cv_deplibs_check_method+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
db137867 6299else
7083c021
AC
6300 lt_cv_file_magic_cmd='$MAGIC_CMD'
6301lt_cv_file_magic_test_file=
6302lt_cv_deplibs_check_method='unknown'
6303# Need to set the preceding variable on all platforms that support
6304# interlibrary dependencies.
6305# 'none' -- dependencies not supported.
6306# `unknown' -- same as none, but documents that we really don't know.
6307# 'pass_all' -- all dependencies passed with no checks.
6308# 'test_compile' -- check by making test program.
6309# 'file_magic [[regex]]' -- check by looking for files in library path
6310# which responds to the $file_magic_cmd with a given extended regex.
6311# If you have `file' or equivalent on your system and you're not sure
6312# whether `pass_all' will *always* work, you probably want this one.
db137867 6313
7083c021
AC
6314case $host_os in
6315aix[4-9]*)
6316 lt_cv_deplibs_check_method=pass_all
6317 ;;
db137867 6318
7083c021
AC
6319beos*)
6320 lt_cv_deplibs_check_method=pass_all
6321 ;;
db137867 6322
7083c021
AC
6323bsdi[45]*)
6324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6325 lt_cv_file_magic_cmd='/usr/bin/file -L'
6326 lt_cv_file_magic_test_file=/shlib/libc.so
6327 ;;
db137867 6328
7083c021
AC
6329cygwin*)
6330 # func_win32_libid is a shell function defined in ltmain.sh
6331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6332 lt_cv_file_magic_cmd='func_win32_libid'
6333 ;;
db137867 6334
7083c021
AC
6335mingw* | pw32*)
6336 # Base MSYS/MinGW do not provide the 'file' command needed by
6337 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6338 # unless we find 'file', for example because we are cross-compiling.
6339 if ( file / ) >/dev/null 2>&1; then
6340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6341 lt_cv_file_magic_cmd='func_win32_libid'
6342 else
6343 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6344 lt_cv_file_magic_cmd='$OBJDUMP -f'
6345 fi
6346 ;;
db137867 6347
7083c021
AC
6348cegcc)
6349 # use the weaker test based on 'objdump'. See mingw*.
6350 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6351 lt_cv_file_magic_cmd='$OBJDUMP -f'
6352 ;;
db137867 6353
7083c021
AC
6354darwin* | rhapsody*)
6355 lt_cv_deplibs_check_method=pass_all
6356 ;;
db137867 6357
7083c021
AC
6358freebsd* | dragonfly*)
6359 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6360 case $host_cpu in
6361 i*86 )
6362 # Not sure whether the presence of OpenBSD here was a mistake.
6363 # Let's accept both of them until this is cleared up.
6364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6365 lt_cv_file_magic_cmd=/usr/bin/file
6366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6367 ;;
6368 esac
db137867 6369 else
7083c021 6370 lt_cv_deplibs_check_method=pass_all
db137867 6371 fi
7083c021 6372 ;;
db137867 6373
7083c021
AC
6374gnu*)
6375 lt_cv_deplibs_check_method=pass_all
6376 ;;
db137867 6377
7083c021
AC
6378hpux10.20* | hpux11*)
6379 lt_cv_file_magic_cmd=/usr/bin/file
6380 case $host_cpu in
6381 ia64*)
6382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6384 ;;
6385 hppa*64*)
6386 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]'
6387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6388 ;;
6389 *)
6390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6392 ;;
6393 esac
6394 ;;
db137867 6395
7083c021
AC
6396interix[3-9]*)
6397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6399 ;;
db137867 6400
7083c021
AC
6401irix5* | irix6* | nonstopux*)
6402 case $LD in
6403 *-32|*"-32 ") libmagic=32-bit;;
6404 *-n32|*"-n32 ") libmagic=N32;;
6405 *-64|*"-64 ") libmagic=64-bit;;
6406 *) libmagic=never-match;;
6407 esac
6408 lt_cv_deplibs_check_method=pass_all
6409 ;;
db137867 6410
7083c021
AC
6411# This must be Linux ELF.
6412linux* | k*bsd*-gnu)
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
db137867 6415
96f4052b 6416netbsd*)
7083c021
AC
6417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6419 else
6420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6421 fi
6422 ;;
db137867 6423
7083c021
AC
6424newos6*)
6425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6426 lt_cv_file_magic_cmd=/usr/bin/file
6427 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6428 ;;
db137867 6429
7083c021
AC
6430*nto* | *qnx*)
6431 lt_cv_deplibs_check_method=pass_all
6432 ;;
db137867 6433
7083c021
AC
6434openbsd*)
6435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6437 else
6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6439 fi
6440 ;;
db137867 6441
7083c021
AC
6442osf3* | osf4* | osf5*)
6443 lt_cv_deplibs_check_method=pass_all
6444 ;;
db137867 6445
7083c021
AC
6446rdos*)
6447 lt_cv_deplibs_check_method=pass_all
6448 ;;
db137867 6449
7083c021
AC
6450solaris*)
6451 lt_cv_deplibs_check_method=pass_all
6452 ;;
db137867 6453
7083c021
AC
6454sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6455 lt_cv_deplibs_check_method=pass_all
6456 ;;
db137867 6457
7083c021
AC
6458sysv4 | sysv4.3*)
6459 case $host_vendor in
6460 motorola)
6461 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]'
6462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6463 ;;
6464 ncr)
6465 lt_cv_deplibs_check_method=pass_all
6466 ;;
6467 sequent)
6468 lt_cv_file_magic_cmd='/bin/file'
6469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6470 ;;
6471 sni)
6472 lt_cv_file_magic_cmd='/bin/file'
6473 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6474 lt_cv_file_magic_test_file=/lib/libc.so
6475 ;;
6476 siemens)
6477 lt_cv_deplibs_check_method=pass_all
6478 ;;
6479 pc)
6480 lt_cv_deplibs_check_method=pass_all
6481 ;;
6482 esac
6483 ;;
db137867 6484
7083c021
AC
6485tpf*)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488esac
db137867 6489
db137867 6490fi
7083c021
AC
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6492$as_echo "$lt_cv_deplibs_check_method" >&6; }
6493file_magic_cmd=$lt_cv_file_magic_cmd
6494deplibs_check_method=$lt_cv_deplibs_check_method
6495test -z "$deplibs_check_method" && deplibs_check_method=unknown
db137867 6496
db137867 6497
db137867 6498
db137867 6499
db137867 6500
db137867 6501
db137867 6502
db137867 6503
db137867 6504
db137867 6505
db137867
AC
6506
6507
db137867 6508if test -n "$ac_tool_prefix"; then
7083c021
AC
6509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6510set dummy ${ac_tool_prefix}ar; ac_word=$2
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6512$as_echo_n "checking for $ac_word... " >&6; }
7083c021 6513if test "${ac_cv_prog_AR+set}" = set; then :
030272f3 6514 $as_echo_n "(cached) " >&6
db137867 6515else
7083c021
AC
6516 if test -n "$AR"; then
6517 ac_cv_prog_AR="$AR" # Let the user override the test.
db137867
AC
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
7083c021 6524 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6526 ac_cv_prog_AR="${ac_tool_prefix}ar"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6528 break 2
6529 fi
6530done
7083c021 6531 done
db137867
AC
6532IFS=$as_save_IFS
6533
6534fi
6535fi
7083c021
AC
6536AR=$ac_cv_prog_AR
6537if test -n "$AR"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6539$as_echo "$AR" >&6; }
db137867 6540else
7083c021 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6542$as_echo "no" >&6; }
db137867
AC
6543fi
6544
6545
db137867 6546fi
7083c021
AC
6547if test -z "$ac_cv_prog_AR"; then
6548 ac_ct_AR=$AR
6549 # Extract the first word of "ar", so it can be a program name with args.
6550set dummy ar; ac_word=$2
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 6552$as_echo_n "checking for $ac_word... " >&6; }
7083c021 6553if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
030272f3 6554 $as_echo_n "(cached) " >&6
db137867 6555else
7083c021
AC
6556 if test -n "$ac_ct_AR"; then
6557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
db137867
AC
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
7083c021 6564 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
6566 ac_cv_prog_ac_ct_AR="ar"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
6568 break 2
6569 fi
6570done
7083c021 6571 done
db137867
AC
6572IFS=$as_save_IFS
6573
6574fi
6575fi
7083c021
AC
6576ac_ct_AR=$ac_cv_prog_ac_ct_AR
6577if test -n "$ac_ct_AR"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6579$as_echo "$ac_ct_AR" >&6; }
db137867 6580else
7083c021 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 6582$as_echo "no" >&6; }
db137867
AC
6583fi
6584
7083c021
AC
6585 if test "x$ac_ct_AR" = x; then
6586 AR="false"
db137867
AC
6587 else
6588 case $cross_compiling:$ac_tool_warned in
6589yes:)
7083c021 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 6591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
6592ac_tool_warned=yes ;;
6593esac
7083c021 6594 AR=$ac_ct_AR
db137867 6595 fi
7083c021
AC
6596else
6597 AR="$ac_cv_prog_AR"
db137867
AC
6598fi
6599
7083c021
AC
6600test -z "$AR" && AR=ar
6601test -z "$AR_FLAGS" && AR_FLAGS=cru
db137867 6602
db137867 6603
db137867 6604
db137867 6605
db137867 6606
db137867 6607
db137867 6608
db137867 6609
7083c021
AC
6610
6611
6612
6613if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6615set dummy ${ac_tool_prefix}strip; ac_word=$2
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617$as_echo_n "checking for $ac_word... " >&6; }
6618if test "${ac_cv_prog_STRIP+set}" = set; then :
6619 $as_echo_n "(cached) " >&6
6620else
6621 if test -n "$STRIP"; then
6622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6623else
6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
db137867 6634 fi
7083c021
AC
6635done
6636 done
6637IFS=$as_save_IFS
6638
6639fi
6640fi
6641STRIP=$ac_cv_prog_STRIP
6642if test -n "$STRIP"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6644$as_echo "$STRIP" >&6; }
db137867 6645else
7083c021
AC
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647$as_echo "no" >&6; }
6648fi
6649
6650
6651fi
6652if test -z "$ac_cv_prog_STRIP"; then
6653 ac_ct_STRIP=$STRIP
6654 # Extract the first word of "strip", so it can be a program name with args.
6655set dummy strip; ac_word=$2
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657$as_echo_n "checking for $ac_word... " >&6; }
6658if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6659 $as_echo_n "(cached) " >&6
6660else
6661 if test -n "$ac_ct_STRIP"; then
6662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_prog_ac_ct_STRIP="strip"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
db137867 6674 fi
7083c021
AC
6675done
6676 done
6677IFS=$as_save_IFS
6678
6679fi
6680fi
6681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6682if test -n "$ac_ct_STRIP"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6684$as_echo "$ac_ct_STRIP" >&6; }
6685else
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687$as_echo "no" >&6; }
db137867
AC
6688fi
6689
7083c021
AC
6690 if test "x$ac_ct_STRIP" = x; then
6691 STRIP=":"
6692 else
6693 case $cross_compiling:$ac_tool_warned in
6694yes:)
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697ac_tool_warned=yes ;;
6698esac
6699 STRIP=$ac_ct_STRIP
6700 fi
030272f3 6701else
7083c021 6702 STRIP="$ac_cv_prog_STRIP"
030272f3 6703fi
db137867 6704
7083c021 6705test -z "$STRIP" && STRIP=:
db137867
AC
6706
6707
db137867 6708
db137867 6709
db137867 6710
db137867 6711
7083c021
AC
6712if test -n "$ac_tool_prefix"; then
6713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6714set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716$as_echo_n "checking for $ac_word... " >&6; }
6717if test "${ac_cv_prog_RANLIB+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
6719else
6720 if test -n "$RANLIB"; then
6721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6722else
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734done
6735 done
6736IFS=$as_save_IFS
db137867 6737
7083c021
AC
6738fi
6739fi
6740RANLIB=$ac_cv_prog_RANLIB
6741if test -n "$RANLIB"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6743$as_echo "$RANLIB" >&6; }
6744else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746$as_echo "no" >&6; }
6747fi
db137867 6748
db137867 6749
7083c021
AC
6750fi
6751if test -z "$ac_cv_prog_RANLIB"; then
6752 ac_ct_RANLIB=$RANLIB
6753 # Extract the first word of "ranlib", so it can be a program name with args.
6754set dummy ranlib; ac_word=$2
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756$as_echo_n "checking for $ac_word... " >&6; }
6757if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6759else
6760 if test -n "$ac_ct_RANLIB"; then
6761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6762else
6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_prog_ac_ct_RANLIB="ranlib"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774done
6775 done
6776IFS=$as_save_IFS
db137867 6777
7083c021
AC
6778fi
6779fi
6780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6781if test -n "$ac_ct_RANLIB"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6783$as_echo "$ac_ct_RANLIB" >&6; }
6784else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786$as_echo "no" >&6; }
db137867
AC
6787fi
6788
7083c021
AC
6789 if test "x$ac_ct_RANLIB" = x; then
6790 RANLIB=":"
6791 else
6792 case $cross_compiling:$ac_tool_warned in
6793yes:)
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796ac_tool_warned=yes ;;
6797esac
6798 RANLIB=$ac_ct_RANLIB
6799 fi
db137867 6800else
7083c021 6801 RANLIB="$ac_cv_prog_RANLIB"
db137867
AC
6802fi
6803
7083c021 6804test -z "$RANLIB" && RANLIB=:
db137867
AC
6805
6806
6807
6808
7083c021
AC
6809
6810
6811# Determine commands to create old-style static archives.
6812old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6813old_postinstall_cmds='chmod 644 $oldlib'
6814old_postuninstall_cmds=
6815
6816if test -n "$RANLIB"; then
6817 case $host_os in
6818 openbsd*)
6819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6820 ;;
6821 *)
6822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6823 ;;
6824 esac
6825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6826fi
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861# If no C compiler was specified, use CC.
6862LTCC=${LTCC-"$CC"}
6863
6864# If no C compiler flags were specified, use CFLAGS.
6865LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6866
6867# Allow CC to be a program name with arguments.
6868compiler=$CC
6869
6870
6871# Check for command to grab the raw symbol name followed by C symbol from nm.
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6873$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6874if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
030272f3 6875 $as_echo_n "(cached) " >&6
db137867
AC
6876else
6877
6878# These are sane defaults that work on at least a few old systems.
6879# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6880
6881# Character class describing NM global symbol codes.
6882symcode='[BCDEGRST]'
6883
6884# Regexp to match symbols that can be accessed directly from C.
6885sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6886
db137867
AC
6887# Define system-specific variables.
6888case $host_os in
6889aix*)
6890 symcode='[BCDT]'
6891 ;;
7083c021 6892cygwin* | mingw* | pw32* | cegcc*)
db137867
AC
6893 symcode='[ABCDGISTW]'
6894 ;;
7083c021 6895hpux*)
db137867
AC
6896 if test "$host_cpu" = ia64; then
6897 symcode='[ABCDEGRST]'
6898 fi
db137867
AC
6899 ;;
6900irix* | nonstopux*)
6901 symcode='[BCDEGRST]'
6902 ;;
6903osf*)
6904 symcode='[BCDEGQRST]'
6905 ;;
6906solaris*)
6907 symcode='[BDRT]'
6908 ;;
6909sco3.2v5*)
6910 symcode='[DT]'
6911 ;;
6912sysv4.2uw2*)
6913 symcode='[DT]'
6914 ;;
6915sysv5* | sco5v6* | unixware* | OpenUNIX*)
6916 symcode='[ABDT]'
6917 ;;
6918sysv4)
6919 symcode='[DFNSTU]'
6920 ;;
6921esac
6922
7083c021
AC
6923# If we're using GNU nm, then use its standard symbol codes.
6924case `$NM -V 2>&1` in
6925*GNU* | *'with BFD'*)
6926 symcode='[ABCDGIRSTW]' ;;
6927esac
6928
6929# Transform an extracted symbol line into a proper C declaration.
6930# Some systems (esp. on ia64) link data and code symbols differently,
6931# so use this general approach.
6932lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6933
6934# Transform an extracted symbol line into symbol name and symbol address
6935lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6936lt_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'"
6937
db137867
AC
6938# Handle CRLF in mingw tool chain
6939opt_cr=
6940case $build_os in
6941mingw*)
7083c021 6942 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
db137867
AC
6943 ;;
6944esac
6945
7083c021 6946# Try without a prefix underscore, then with it.
db137867
AC
6947for ac_symprfx in "" "_"; do
6948
6949 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6950 symxfrm="\\1 $ac_symprfx\\2 \\2"
6951
6952 # Write the raw and C identifiers.
7083c021
AC
6953 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6954 # Fake it for dumpbin and say T for any non-static function
6955 # and D for any global variable.
6956 # Also find C++ and __fastcall symbols from MSVC++,
6957 # which start with @ or ?.
6958 lt_cv_sys_global_symbol_pipe="$AWK '"\
6959" {last_section=section; section=\$ 3};"\
6960" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6961" \$ 0!~/External *\|/{next};"\
6962" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6963" {if(hide[section]) next};"\
6964" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6965" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6966" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6967" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6968" ' prfx=^$ac_symprfx"
6969 else
6970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6971 fi
db137867
AC
6972
6973 # Check to see that the pipe works correctly.
6974 pipe_works=no
6975
6976 rm -f conftest*
7083c021 6977 cat > conftest.$ac_ext <<_LT_EOF
db137867
AC
6978#ifdef __cplusplus
6979extern "C" {
6980#endif
6981char nm_test_var;
7083c021
AC
6982void nm_test_func(void);
6983void nm_test_func(void){}
db137867
AC
6984#ifdef __cplusplus
6985}
6986#endif
6987int main(){nm_test_var='a';nm_test_func();return(0);}
7083c021 6988_LT_EOF
db137867 6989
7083c021 6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
db137867
AC
6991 (eval $ac_compile) 2>&5
6992 ac_status=$?
7083c021
AC
6993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994 test $ac_status = 0; }; then
db137867
AC
6995 # Now try to grab the symbols.
6996 nlist=conftest.nm
7083c021 6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
db137867
AC
6998 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6999 ac_status=$?
7083c021
AC
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; } && test -s "$nlist"; then
db137867
AC
7002 # Try sorting and uniquifying the output.
7003 if sort "$nlist" | uniq > "$nlist"T; then
7004 mv -f "$nlist"T "$nlist"
7005 else
7006 rm -f "$nlist"T
7007 fi
7008
7009 # Make sure that we snagged all the symbols we need.
7083c021
AC
7010 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7011 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7012 cat <<_LT_EOF > conftest.$ac_ext
db137867
AC
7013#ifdef __cplusplus
7014extern "C" {
7015#endif
7016
7083c021 7017_LT_EOF
db137867 7018 # Now generate the symbol file.
7083c021 7019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
db137867 7020
7083c021 7021 cat <<_LT_EOF >> conftest.$ac_ext
db137867 7022
7083c021 7023/* The mapping between symbol names and symbols. */
db137867
AC
7024const struct {
7025 const char *name;
7083c021 7026 void *address;
db137867 7027}
7083c021 7028lt__PROGRAM__LTX_preloaded_symbols[] =
db137867 7029{
7083c021
AC
7030 { "@PROGRAM@", (void *) 0 },
7031_LT_EOF
7032 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7033 cat <<\_LT_EOF >> conftest.$ac_ext
7034 {0, (void *) 0}
db137867
AC
7035};
7036
7083c021
AC
7037/* This works around a problem in FreeBSD linker */
7038#ifdef FREEBSD_WORKAROUND
7039static const void *lt_preloaded_setup() {
7040 return lt__PROGRAM__LTX_preloaded_symbols;
7041}
7042#endif
7043
db137867
AC
7044#ifdef __cplusplus
7045}
7046#endif
7083c021 7047_LT_EOF
db137867
AC
7048 # Now try linking the two files.
7049 mv conftest.$ac_objext conftstm.$ac_objext
7050 lt_save_LIBS="$LIBS"
7051 lt_save_CFLAGS="$CFLAGS"
7052 LIBS="conftstm.$ac_objext"
7053 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7083c021 7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
db137867
AC
7055 (eval $ac_link) 2>&5
7056 ac_status=$?
7083c021
AC
7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
db137867
AC
7059 pipe_works=yes
7060 fi
7061 LIBS="$lt_save_LIBS"
7062 CFLAGS="$lt_save_CFLAGS"
7063 else
7064 echo "cannot find nm_test_func in $nlist" >&5
7065 fi
7066 else
7067 echo "cannot find nm_test_var in $nlist" >&5
7068 fi
7069 else
7070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7071 fi
7072 else
7073 echo "$progname: failed program was:" >&5
7074 cat conftest.$ac_ext >&5
7075 fi
b676ea3b 7076 rm -rf conftest* conftst*
db137867
AC
7077
7078 # Do not use the global_symbol_pipe unless it works.
7079 if test "$pipe_works" = yes; then
7080 break
7081 else
7082 lt_cv_sys_global_symbol_pipe=
7083 fi
7084done
7085
7086fi
7087
7088if test -z "$lt_cv_sys_global_symbol_pipe"; then
7089 lt_cv_sys_global_symbol_to_cdecl=
7090fi
7091if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7083c021 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
030272f3 7093$as_echo "failed" >&6; }
db137867 7094else
7083c021 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
030272f3 7096$as_echo "ok" >&6; }
db137867
AC
7097fi
7098
db137867
AC
7099
7100
7101
7102
7103
db137867 7104
db137867 7105
db137867 7106
db137867 7107
db137867 7108
db137867 7109
db137867 7110
db137867 7111
db137867 7112
db137867
AC
7113
7114
db137867 7115
db137867 7116
db137867 7117
db137867 7118
7083c021
AC
7119
7120# Check whether --enable-libtool-lock was given.
7121if test "${enable_libtool_lock+set}" = set; then :
7122 enableval=$enable_libtool_lock;
db137867
AC
7123fi
7124
7083c021 7125test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
db137867 7126
7083c021
AC
7127# Some flags need to be propagated to the compiler or linker for good
7128# libtool support.
7129case $host in
7130ia64-*-hpux*)
7131 # Find out which ABI we are using.
7132 echo 'int i;' > conftest.$ac_ext
7133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7134 (eval $ac_compile) 2>&5
7135 ac_status=$?
7136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137 test $ac_status = 0; }; then
7138 case `/usr/bin/file conftest.$ac_objext` in
7139 *ELF-32*)
7140 HPUX_IA64_MODE="32"
7141 ;;
7142 *ELF-64*)
7143 HPUX_IA64_MODE="64"
7144 ;;
7145 esac
7146 fi
7147 rm -rf conftest*
7148 ;;
7149*-*-irix6*)
7150 # Find out which ABI we are using.
96f4052b 7151 echo '#line 7151 "configure"' > conftest.$ac_ext
7083c021
AC
7152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7153 (eval $ac_compile) 2>&5
7154 ac_status=$?
7155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156 test $ac_status = 0; }; then
7157 if test "$lt_cv_prog_gnu_ld" = yes; then
7158 case `/usr/bin/file conftest.$ac_objext` in
7159 *32-bit*)
7160 LD="${LD-ld} -melf32bsmip"
7161 ;;
7162 *N32*)
7163 LD="${LD-ld} -melf32bmipn32"
7164 ;;
7165 *64-bit*)
7166 LD="${LD-ld} -melf64bmip"
7167 ;;
7168 esac
7169 else
7170 case `/usr/bin/file conftest.$ac_objext` in
7171 *32-bit*)
7172 LD="${LD-ld} -32"
7173 ;;
7174 *N32*)
7175 LD="${LD-ld} -n32"
7176 ;;
7177 *64-bit*)
7178 LD="${LD-ld} -64"
7179 ;;
7180 esac
7181 fi
7182 fi
7183 rm -rf conftest*
7184 ;;
7185
7186x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7187s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7188 # Find out which ABI we are using.
7189 echo 'int i;' > conftest.$ac_ext
7190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7191 (eval $ac_compile) 2>&5
7192 ac_status=$?
7193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7194 test $ac_status = 0; }; then
7195 case `/usr/bin/file conftest.o` in
7196 *32-bit*)
7197 case $host in
7198 x86_64-*kfreebsd*-gnu)
7199 LD="${LD-ld} -m elf_i386_fbsd"
7200 ;;
7201 x86_64-*linux*)
7202 LD="${LD-ld} -m elf_i386"
7203 ;;
7204 ppc64-*linux*|powerpc64-*linux*)
7205 LD="${LD-ld} -m elf32ppclinux"
7206 ;;
7207 s390x-*linux*)
7208 LD="${LD-ld} -m elf_s390"
7209 ;;
7210 sparc64-*linux*)
7211 LD="${LD-ld} -m elf32_sparc"
7212 ;;
7213 esac
7214 ;;
7215 *64-bit*)
7216 case $host in
7217 x86_64-*kfreebsd*-gnu)
7218 LD="${LD-ld} -m elf_x86_64_fbsd"
7219 ;;
7220 x86_64-*linux*)
7221 LD="${LD-ld} -m elf_x86_64"
7222 ;;
7223 ppc*-*linux*|powerpc*-*linux*)
7224 LD="${LD-ld} -m elf64ppc"
7225 ;;
7226 s390*-*linux*|s390*-*tpf*)
7227 LD="${LD-ld} -m elf64_s390"
7228 ;;
7229 sparc*-*linux*)
7230 LD="${LD-ld} -m elf64_sparc"
7231 ;;
7232 esac
7233 ;;
7234 esac
7235 fi
7236 rm -rf conftest*
7237 ;;
7238
7239*-*-sco3.2v5*)
7240 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7241 SAVE_CFLAGS="$CFLAGS"
7242 CFLAGS="$CFLAGS -belf"
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7244$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7245if test "${lt_cv_cc_needs_belf+set}" = set; then :
7246 $as_echo_n "(cached) " >&6
7247else
7248 ac_ext=c
7249ac_cpp='$CPP $CPPFLAGS'
7250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h. */
7256
7257int
7258main ()
7259{
7260
7261 ;
7262 return 0;
7263}
7264_ACEOF
7265if ac_fn_c_try_link "$LINENO"; then :
7266 lt_cv_cc_needs_belf=yes
7267else
7268 lt_cv_cc_needs_belf=no
7269fi
7270rm -f core conftest.err conftest.$ac_objext \
7271 conftest$ac_exeext conftest.$ac_ext
7272 ac_ext=c
7273ac_cpp='$CPP $CPPFLAGS'
7274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277
7278fi
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7280$as_echo "$lt_cv_cc_needs_belf" >&6; }
7281 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7282 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7283 CFLAGS="$SAVE_CFLAGS"
7284 fi
7285 ;;
7286sparc*-*solaris*)
7287 # Find out which ABI we are using.
7288 echo 'int i;' > conftest.$ac_ext
7289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7290 (eval $ac_compile) 2>&5
7291 ac_status=$?
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; }; then
7294 case `/usr/bin/file conftest.o` in
7295 *64-bit*)
7296 case $lt_cv_prog_gnu_ld in
7297 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7298 *)
7299 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7300 LD="${LD-ld} -64"
7301 fi
7302 ;;
7303 esac
7304 ;;
7305 esac
7306 fi
7307 rm -rf conftest*
7308 ;;
7309esac
7310
7311need_locks="$enable_libtool_lock"
7312
7313
7314 case $host_os in
7315 rhapsody* | darwin*)
7316 if test -n "$ac_tool_prefix"; then
7317 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7318set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320$as_echo_n "checking for $ac_word... " >&6; }
7321if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7322 $as_echo_n "(cached) " >&6
7323else
7324 if test -n "$DSYMUTIL"; then
7325 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7326else
7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
db137867
AC
7329do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7083c021 7332 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7334 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
7336 break 2
7337 fi
7338done
7083c021
AC
7339 done
7340IFS=$as_save_IFS
7341
7342fi
7343fi
7344DSYMUTIL=$ac_cv_prog_DSYMUTIL
7345if test -n "$DSYMUTIL"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7347$as_echo "$DSYMUTIL" >&6; }
7348else
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350$as_echo "no" >&6; }
7351fi
7352
7353
7354fi
7355if test -z "$ac_cv_prog_DSYMUTIL"; then
7356 ac_ct_DSYMUTIL=$DSYMUTIL
7357 # Extract the first word of "dsymutil", so it can be a program name with args.
7358set dummy dsymutil; ac_word=$2
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360$as_echo_n "checking for $ac_word... " >&6; }
7361if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7362 $as_echo_n "(cached) " >&6
7363else
7364 if test -n "$ac_ct_DSYMUTIL"; then
7365 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7366else
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
db137867 7378done
7083c021 7379 done
db137867
AC
7380IFS=$as_save_IFS
7381
7382fi
7383fi
7083c021
AC
7384ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7385if test -n "$ac_ct_DSYMUTIL"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7387$as_echo "$ac_ct_DSYMUTIL" >&6; }
db137867 7388else
7083c021 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7390$as_echo "no" >&6; }
db137867
AC
7391fi
7392
7083c021
AC
7393 if test "x$ac_ct_DSYMUTIL" = x; then
7394 DSYMUTIL=":"
db137867
AC
7395 else
7396 case $cross_compiling:$ac_tool_warned in
7397yes:)
7083c021 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 7399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
7400ac_tool_warned=yes ;;
7401esac
7083c021 7402 DSYMUTIL=$ac_ct_DSYMUTIL
db137867
AC
7403 fi
7404else
7083c021 7405 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
db137867
AC
7406fi
7407
7083c021
AC
7408 if test -n "$ac_tool_prefix"; then
7409 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7410set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7412$as_echo_n "checking for $ac_word... " >&6; }
7083c021 7413if test "${ac_cv_prog_NMEDIT+set}" = set; then :
030272f3 7414 $as_echo_n "(cached) " >&6
db137867 7415else
7083c021
AC
7416 if test -n "$NMEDIT"; then
7417 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
db137867
AC
7418else
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7083c021 7424 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7426 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
7428 break 2
7429 fi
7430done
7083c021 7431 done
db137867
AC
7432IFS=$as_save_IFS
7433
7434fi
7435fi
7083c021
AC
7436NMEDIT=$ac_cv_prog_NMEDIT
7437if test -n "$NMEDIT"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7439$as_echo "$NMEDIT" >&6; }
db137867 7440else
7083c021 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7442$as_echo "no" >&6; }
db137867
AC
7443fi
7444
7445
7446fi
7083c021
AC
7447if test -z "$ac_cv_prog_NMEDIT"; then
7448 ac_ct_NMEDIT=$NMEDIT
7449 # Extract the first word of "nmedit", so it can be a program name with args.
7450set dummy nmedit; ac_word=$2
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7452$as_echo_n "checking for $ac_word... " >&6; }
7083c021 7453if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
030272f3 7454 $as_echo_n "(cached) " >&6
db137867 7455else
7083c021
AC
7456 if test -n "$ac_ct_NMEDIT"; then
7457 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
db137867
AC
7458else
7459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
7083c021 7464 for ac_exec_ext in '' $ac_executable_extensions; do
db137867 7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7466 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
db137867
AC
7468 break 2
7469 fi
7470done
7083c021 7471 done
db137867
AC
7472IFS=$as_save_IFS
7473
7474fi
7475fi
7083c021
AC
7476ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7477if test -n "$ac_ct_NMEDIT"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7479$as_echo "$ac_ct_NMEDIT" >&6; }
db137867 7480else
7083c021 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7482$as_echo "no" >&6; }
db137867
AC
7483fi
7484
7083c021
AC
7485 if test "x$ac_ct_NMEDIT" = x; then
7486 NMEDIT=":"
db137867
AC
7487 else
7488 case $cross_compiling:$ac_tool_warned in
7489yes:)
7083c021 7490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 7491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
db137867
AC
7492ac_tool_warned=yes ;;
7493esac
7083c021 7494 NMEDIT=$ac_ct_NMEDIT
db137867
AC
7495 fi
7496else
7083c021 7497 NMEDIT="$ac_cv_prog_NMEDIT"
db137867
AC
7498fi
7499
7083c021
AC
7500 if test -n "$ac_tool_prefix"; then
7501 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7502set dummy ${ac_tool_prefix}lipo; ac_word=$2
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504$as_echo_n "checking for $ac_word... " >&6; }
7505if test "${ac_cv_prog_LIPO+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
7507else
7508 if test -n "$LIPO"; then
7509 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7510else
7511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522done
7523 done
7524IFS=$as_save_IFS
db137867 7525
db137867 7526fi
db137867 7527fi
7083c021
AC
7528LIPO=$ac_cv_prog_LIPO
7529if test -n "$LIPO"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7531$as_echo "$LIPO" >&6; }
db137867 7532else
7083c021 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7534$as_echo "no" >&6; }
db137867
AC
7535fi
7536
7083c021
AC
7537
7538fi
7539if test -z "$ac_cv_prog_LIPO"; then
7540 ac_ct_LIPO=$LIPO
7541 # Extract the first word of "lipo", so it can be a program name with args.
7542set dummy lipo; ac_word=$2
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544$as_echo_n "checking for $ac_word... " >&6; }
7545if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
030272f3 7546 $as_echo_n "(cached) " >&6
db137867 7547else
7083c021
AC
7548 if test -n "$ac_ct_LIPO"; then
7549 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_prog_ac_ct_LIPO="lipo"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562done
db137867 7563 done
7083c021 7564IFS=$as_save_IFS
db137867 7565
7083c021
AC
7566fi
7567fi
7568ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7569if test -n "$ac_ct_LIPO"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7571$as_echo "$ac_ct_LIPO" >&6; }
db137867 7572else
7083c021 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7574$as_echo "no" >&6; }
db137867
AC
7575fi
7576
7083c021
AC
7577 if test "x$ac_ct_LIPO" = x; then
7578 LIPO=":"
db137867 7579 else
7083c021
AC
7580 case $cross_compiling:$ac_tool_warned in
7581yes:)
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584ac_tool_warned=yes ;;
7585esac
7586 LIPO=$ac_ct_LIPO
db137867 7587 fi
7083c021
AC
7588else
7589 LIPO="$ac_cv_prog_LIPO"
db137867
AC
7590fi
7591
b676ea3b 7592 if test -n "$ac_tool_prefix"; then
7083c021
AC
7593 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7594set dummy ${ac_tool_prefix}otool; ac_word=$2
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7596$as_echo_n "checking for $ac_word... " >&6; }
7083c021 7597if test "${ac_cv_prog_OTOOL+set}" = set; then :
030272f3 7598 $as_echo_n "(cached) " >&6
b676ea3b 7599else
7083c021
AC
7600 if test -n "$OTOOL"; then
7601 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
b676ea3b
AC
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7083c021 7608 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7610 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
7612 break 2
7613 fi
7614done
7083c021 7615 done
b676ea3b
AC
7616IFS=$as_save_IFS
7617
7618fi
7619fi
7083c021
AC
7620OTOOL=$ac_cv_prog_OTOOL
7621if test -n "$OTOOL"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7623$as_echo "$OTOOL" >&6; }
b676ea3b 7624else
7083c021 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7626$as_echo "no" >&6; }
b676ea3b
AC
7627fi
7628
7629
7630fi
7083c021
AC
7631if test -z "$ac_cv_prog_OTOOL"; then
7632 ac_ct_OTOOL=$OTOOL
7633 # Extract the first word of "otool", so it can be a program name with args.
7634set dummy otool; ac_word=$2
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7636$as_echo_n "checking for $ac_word... " >&6; }
7083c021 7637if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
030272f3 7638 $as_echo_n "(cached) " >&6
b676ea3b 7639else
7083c021
AC
7640 if test -n "$ac_ct_OTOOL"; then
7641 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
b676ea3b
AC
7642else
7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7083c021 7648 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7650 ac_cv_prog_ac_ct_OTOOL="otool"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
7652 break 2
7653 fi
7654done
7083c021 7655 done
b676ea3b
AC
7656IFS=$as_save_IFS
7657
7658fi
7659fi
7083c021
AC
7660ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7661if test -n "$ac_ct_OTOOL"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7663$as_echo "$ac_ct_OTOOL" >&6; }
b676ea3b 7664else
7083c021 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7666$as_echo "no" >&6; }
b676ea3b
AC
7667fi
7668
7083c021
AC
7669 if test "x$ac_ct_OTOOL" = x; then
7670 OTOOL=":"
b676ea3b
AC
7671 else
7672 case $cross_compiling:$ac_tool_warned in
7673yes:)
7083c021 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 7675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b676ea3b
AC
7676ac_tool_warned=yes ;;
7677esac
7083c021 7678 OTOOL=$ac_ct_OTOOL
b676ea3b
AC
7679 fi
7680else
7083c021 7681 OTOOL="$ac_cv_prog_OTOOL"
b676ea3b
AC
7682fi
7683
7684 if test -n "$ac_tool_prefix"; then
7083c021
AC
7685 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7686set dummy ${ac_tool_prefix}otool64; ac_word=$2
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7688$as_echo_n "checking for $ac_word... " >&6; }
7083c021 7689if test "${ac_cv_prog_OTOOL64+set}" = set; then :
030272f3 7690 $as_echo_n "(cached) " >&6
b676ea3b 7691else
7083c021
AC
7692 if test -n "$OTOOL64"; then
7693 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
b676ea3b
AC
7694else
7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7083c021 7700 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7702 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
7704 break 2
7705 fi
7706done
7083c021 7707 done
b676ea3b
AC
7708IFS=$as_save_IFS
7709
7710fi
7711fi
7083c021
AC
7712OTOOL64=$ac_cv_prog_OTOOL64
7713if test -n "$OTOOL64"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7715$as_echo "$OTOOL64" >&6; }
b676ea3b 7716else
7083c021 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7718$as_echo "no" >&6; }
b676ea3b
AC
7719fi
7720
7721
7722fi
7083c021
AC
7723if test -z "$ac_cv_prog_OTOOL64"; then
7724 ac_ct_OTOOL64=$OTOOL64
7725 # Extract the first word of "otool64", so it can be a program name with args.
7726set dummy otool64; ac_word=$2
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
030272f3 7728$as_echo_n "checking for $ac_word... " >&6; }
7083c021 7729if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
030272f3 7730 $as_echo_n "(cached) " >&6
b676ea3b 7731else
7083c021
AC
7732 if test -n "$ac_ct_OTOOL64"; then
7733 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
b676ea3b
AC
7734else
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7083c021 7740 for ac_exec_ext in '' $ac_executable_extensions; do
b676ea3b 7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
7742 ac_cv_prog_ac_ct_OTOOL64="otool64"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b676ea3b
AC
7744 break 2
7745 fi
7746done
7083c021 7747 done
b676ea3b
AC
7748IFS=$as_save_IFS
7749
7750fi
7751fi
7083c021
AC
7752ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7753if test -n "$ac_ct_OTOOL64"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7755$as_echo "$ac_ct_OTOOL64" >&6; }
b676ea3b 7756else
7083c021 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
030272f3 7758$as_echo "no" >&6; }
b676ea3b
AC
7759fi
7760
7083c021
AC
7761 if test "x$ac_ct_OTOOL64" = x; then
7762 OTOOL64=":"
b676ea3b
AC
7763 else
7764 case $cross_compiling:$ac_tool_warned in
7765yes:)
7083c021 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
030272f3 7767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b676ea3b
AC
7768ac_tool_warned=yes ;;
7769esac
7083c021 7770 OTOOL64=$ac_ct_OTOOL64
b676ea3b
AC
7771 fi
7772else
7083c021 7773 OTOOL64="$ac_cv_prog_OTOOL64"
b676ea3b
AC
7774fi
7775
7776
b676ea3b 7777
b676ea3b 7778
7083c021
AC
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7803$as_echo_n "checking for -single_module linker flag... " >&6; }
7804if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7806else
7807 lt_cv_apple_cc_single_mod=no
7808 if test -z "${LT_MULTI_MODULE}"; then
7809 # By default we will add the -single_module flag. You can override
7810 # by either setting the environment variable LT_MULTI_MODULE
7811 # non-empty at configure time, or by adding -multi_module to the
7812 # link flags.
7813 rm -rf libconftest.dylib*
7814 echo "int foo(void){return 1;}" > conftest.c
7815 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7816-dynamiclib -Wl,-single_module conftest.c" >&5
7817 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7818 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7819 _lt_result=$?
7820 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7821 lt_cv_apple_cc_single_mod=yes
7822 else
7823 cat conftest.err >&5
7824 fi
7825 rm -rf libconftest.dylib*
7826 rm -f conftest.*
7827 fi
7828fi
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7830$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7832$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7833if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7835else
7836 lt_cv_ld_exported_symbols_list=no
7837 save_LDFLAGS=$LDFLAGS
7838 echo "_main" > conftest.sym
7839 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h. */
7842
7843int
7844main ()
7845{
7846
7847 ;
7848 return 0;
b676ea3b
AC
7849}
7850_ACEOF
7083c021 7851if ac_fn_c_try_link "$LINENO"; then :
b676ea3b
AC
7852 lt_cv_ld_exported_symbols_list=yes
7853else
7083c021 7854 lt_cv_ld_exported_symbols_list=no
b676ea3b 7855fi
7083c021
AC
7856rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 LDFLAGS="$save_LDFLAGS"
b676ea3b
AC
7859
7860fi
7083c021 7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
030272f3 7862$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b676ea3b 7863 case $host_os in
7083c021 7864 rhapsody* | darwin1.[012])
b676ea3b
AC
7865 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7866 darwin1.*)
7083c021
AC
7867 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7868 darwin*) # darwin 5.x on
b676ea3b
AC
7869 # if running on 10.5 or later, the deployment target defaults
7870 # to the OS version, if on x86, and 10.4, the deployment
7871 # target defaults to 10.4. Don't you love it?
7872 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7083c021
AC
7873 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7874 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7875 10.[012]*)
7876 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7877 10.*)
7878 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
b676ea3b
AC
7879 esac
7880 ;;
7881 esac
7882 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7883 _lt_dar_single_mod='$single_module'
7884 fi
7885 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7886 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7887 else
7083c021 7888 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
b676ea3b
AC
7889 fi
7890 if test "$DSYMUTIL" != ":"; then
7083c021 7891 _lt_dsymutil='~$DSYMUTIL $lib || :'
b676ea3b
AC
7892 else
7893 _lt_dsymutil=
7894 fi
7895 ;;
7896 esac
7897
7083c021
AC
7898for ac_header in dlfcn.h
7899do :
7900 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7901"
7902if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7903 cat >>confdefs.h <<_ACEOF
7904#define HAVE_DLFCN_H 1
7905_ACEOF
b676ea3b 7906
db137867
AC
7907fi
7908
7083c021
AC
7909done
7910
7911
7912
7913# Set options
7914
7915
7916
7917 enable_dlopen=no
7918
7919
7920 enable_win32_dll=no
7921
7922
7923
db137867
AC
7924
7925
7926# Check whether --with-pic was given.
7083c021 7927if test "${with_pic+set}" = set; then :
db137867
AC
7928 withval=$with_pic; pic_mode="$withval"
7929else
7930 pic_mode=default
7931fi
7932
7083c021 7933
db137867
AC
7934test -z "$pic_mode" && pic_mode=default
7935
db137867
AC
7936
7937
db137867 7938
db137867 7939
db137867 7940
db137867 7941
7083c021
AC
7942 # Check whether --enable-fast-install was given.
7943if test "${enable_fast_install+set}" = set; then :
7944 enableval=$enable_fast_install; p=${PACKAGE-default}
7945 case $enableval in
7946 yes) enable_fast_install=yes ;;
7947 no) enable_fast_install=no ;;
7948 *)
7949 enable_fast_install=no
7950 # Look at the argument we got. We use all the common list separators.
7951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7952 for pkg in $enableval; do
7953 IFS="$lt_save_ifs"
7954 if test "X$pkg" = "X$p"; then
7955 enable_fast_install=yes
7956 fi
7957 done
7958 IFS="$lt_save_ifs"
7959 ;;
7960 esac
7961else
7962 enable_fast_install=yes
7963fi
db137867 7964
db137867 7965
db137867 7966
db137867
AC
7967
7968
db137867 7969
db137867
AC
7970
7971
7972
db137867 7973
db137867 7974
7083c021
AC
7975# This can be used to rebuild libtool when needed
7976LIBTOOL_DEPS="$ltmain"
db137867 7977
7083c021
AC
7978# Always use our own libtool.
7979LIBTOOL='$(SHELL) $(top_builddir)/libtool'
db137867 7980
db137867 7981
db137867 7982
db137867 7983
db137867 7984
db137867 7985
db137867 7986
db137867 7987
db137867 7988
db137867 7989
db137867 7990
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
7083c021 8005test -z "$LN_S" && LN_S="ln -s"
db137867 8006
db137867 8007
db137867 8008
db137867 8009
db137867 8010
db137867 8011
db137867 8012
db137867 8013
db137867 8014
db137867 8015
db137867 8016
db137867 8017
db137867 8018
db137867 8019
7083c021
AC
8020if test -n "${ZSH_VERSION+set}" ; then
8021 setopt NO_GLOB_SUBST
db137867 8022fi
db137867 8023
7083c021
AC
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8025$as_echo_n "checking for objdir... " >&6; }
8026if test "${lt_cv_objdir+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
db137867 8028else
7083c021
AC
8029 rm -f .libs 2>/dev/null
8030mkdir .libs 2>/dev/null
8031if test -d .libs; then
8032 lt_cv_objdir=.libs
8033else
8034 # MS-DOS does not allow filenames that begin with a dot.
8035 lt_cv_objdir=_libs
8036fi
8037rmdir .libs 2>/dev/null
db137867 8038fi
7083c021
AC
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8040$as_echo "$lt_cv_objdir" >&6; }
8041objdir=$lt_cv_objdir
db137867
AC
8042
8043
db137867 8044
db137867 8045
db137867 8046
7083c021
AC
8047cat >>confdefs.h <<_ACEOF
8048#define LT_OBJDIR "$lt_cv_objdir/"
8049_ACEOF
db137867 8050
db137867 8051
db137867 8052
db137867 8053
db137867 8054
db137867 8055
db137867 8056
db137867 8057
db137867 8058
db137867 8059
db137867 8060
db137867 8061
db137867 8062
db137867 8063
db137867 8064
db137867 8065
db137867 8066
7083c021
AC
8067case $host_os in
8068aix3*)
8069 # AIX sometimes has problems with the GCC collect2 program. For some
8070 # reason, if we set the COLLECT_NAMES environment variable, the problems
8071 # vanish in a puff of smoke.
8072 if test "X${COLLECT_NAMES+set}" != Xset; then
8073 COLLECT_NAMES=
8074 export COLLECT_NAMES
8075 fi
8076 ;;
8077esac
db137867 8078
7083c021
AC
8079# Sed substitution that helps us do robust quoting. It backslashifies
8080# metacharacters that are still active within double-quoted strings.
8081sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
db137867 8082
7083c021
AC
8083# Same as above, but do not quote variable references.
8084double_quote_subst='s/\(["`\\]\)/\\\1/g'
db137867 8085
7083c021
AC
8086# Sed substitution to delay expansion of an escaped shell variable in a
8087# double_quote_subst'ed string.
8088delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
db137867 8089
7083c021
AC
8090# Sed substitution to delay expansion of an escaped single quote.
8091delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
db137867 8092
7083c021
AC
8093# Sed substitution to avoid accidental globbing in evaled expressions
8094no_glob_subst='s/\*/\\\*/g'
db137867 8095
7083c021
AC
8096# Global variables:
8097ofile=libtool
8098can_build_shared=yes
db137867 8099
7083c021
AC
8100# All known linkers require a `.a' archive for static linking (except MSVC,
8101# which needs '.lib').
8102libext=a
db137867 8103
7083c021 8104with_gnu_ld="$lt_cv_prog_gnu_ld"
db137867 8105
7083c021
AC
8106old_CC="$CC"
8107old_CFLAGS="$CFLAGS"
db137867 8108
7083c021
AC
8109# Set sane defaults for various variables
8110test -z "$CC" && CC=cc
8111test -z "$LTCC" && LTCC=$CC
8112test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8113test -z "$LD" && LD=ld
8114test -z "$ac_objext" && ac_objext=o
db137867 8115
7083c021
AC
8116for cc_temp in $compiler""; do
8117 case $cc_temp in
8118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8120 \-*) ;;
8121 *) break;;
8122 esac
8123done
8124cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
db137867 8125
db137867 8126
7083c021
AC
8127# Only perform the check for file, if the check method requires it
8128test -z "$MAGIC_CMD" && MAGIC_CMD=file
8129case $deplibs_check_method in
8130file_magic*)
8131 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8133$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8134if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136else
8137 case $MAGIC_CMD in
8138[\\/*] | ?:[\\/]*)
8139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8140 ;;
8141*)
8142 lt_save_MAGIC_CMD="$MAGIC_CMD"
8143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8145 for ac_dir in $ac_dummy; do
8146 IFS="$lt_save_ifs"
8147 test -z "$ac_dir" && ac_dir=.
8148 if test -f $ac_dir/${ac_tool_prefix}file; then
8149 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8150 if test -n "$file_magic_test_file"; then
8151 case $deplibs_check_method in
8152 "file_magic "*)
8153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8156 $EGREP "$file_magic_regex" > /dev/null; then
8157 :
8158 else
8159 cat <<_LT_EOF 1>&2
db137867 8160
7083c021
AC
8161*** Warning: the command libtool uses to detect shared libraries,
8162*** $file_magic_cmd, produces output that libtool cannot recognize.
8163*** The result is that libtool may fail to recognize shared libraries
8164*** as such. This will affect the creation of libtool libraries that
8165*** depend on shared libraries, but programs linked with such libtool
8166*** libraries will work regardless of this problem. Nevertheless, you
8167*** may want to report the problem to your system manager and/or to
8168*** bug-libtool@gnu.org
db137867 8169
7083c021
AC
8170_LT_EOF
8171 fi ;;
db137867 8172 esac
db137867 8173 fi
7083c021
AC
8174 break
8175 fi
8176 done
8177 IFS="$lt_save_ifs"
8178 MAGIC_CMD="$lt_save_MAGIC_CMD"
8179 ;;
8180esac
8181fi
db137867 8182
7083c021
AC
8183MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8184if test -n "$MAGIC_CMD"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8186$as_echo "$MAGIC_CMD" >&6; }
8187else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189$as_echo "no" >&6; }
8190fi
db137867 8191
db137867 8192
db137867 8193
7083c021
AC
8194
8195
8196if test -z "$lt_cv_path_MAGIC_CMD"; then
8197 if test -n "$ac_tool_prefix"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8199$as_echo_n "checking for file... " >&6; }
8200if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
db137867 8202else
7083c021
AC
8203 case $MAGIC_CMD in
8204[\\/*] | ?:[\\/]*)
8205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8206 ;;
8207*)
8208 lt_save_MAGIC_CMD="$MAGIC_CMD"
8209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8211 for ac_dir in $ac_dummy; do
8212 IFS="$lt_save_ifs"
8213 test -z "$ac_dir" && ac_dir=.
8214 if test -f $ac_dir/file; then
8215 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8216 if test -n "$file_magic_test_file"; then
8217 case $deplibs_check_method in
8218 "file_magic "*)
8219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8222 $EGREP "$file_magic_regex" > /dev/null; then
8223 :
8224 else
8225 cat <<_LT_EOF 1>&2
db137867 8226
7083c021
AC
8227*** Warning: the command libtool uses to detect shared libraries,
8228*** $file_magic_cmd, produces output that libtool cannot recognize.
8229*** The result is that libtool may fail to recognize shared libraries
8230*** as such. This will affect the creation of libtool libraries that
8231*** depend on shared libraries, but programs linked with such libtool
8232*** libraries will work regardless of this problem. Nevertheless, you
8233*** may want to report the problem to your system manager and/or to
8234*** bug-libtool@gnu.org
db137867 8235
7083c021
AC
8236_LT_EOF
8237 fi ;;
8238 esac
8239 fi
8240 break
8241 fi
8242 done
8243 IFS="$lt_save_ifs"
8244 MAGIC_CMD="$lt_save_MAGIC_CMD"
8245 ;;
8246esac
db137867
AC
8247fi
8248
7083c021
AC
8249MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8250if test -n "$MAGIC_CMD"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8252$as_echo "$MAGIC_CMD" >&6; }
8253else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
8256fi
db137867 8257
db137867 8258
7083c021
AC
8259 else
8260 MAGIC_CMD=:
8261 fi
8262fi
db137867 8263
7083c021
AC
8264 fi
8265 ;;
db137867 8266esac
db137867 8267
7083c021
AC
8268# Use C for the default configuration in the libtool script
8269
8270lt_save_CC="$CC"
8271ac_ext=c
8272ac_cpp='$CPP $CPPFLAGS'
8273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8275ac_compiler_gnu=$ac_cv_c_compiler_gnu
8276
8277
8278# Source file extension for C test sources.
8279ac_ext=c
8280
8281# Object file extension for compiled C test sources.
8282objext=o
8283objext=$objext
8284
8285# Code to be used in simple compile tests
8286lt_simple_compile_test_code="int some_variable = 0;"
8287
8288# Code to be used in simple link tests
8289lt_simple_link_test_code='int main(){return(0);}'
8290
8291
8292
8293
8294
8295
8296
8297# If no C compiler was specified, use CC.
8298LTCC=${LTCC-"$CC"}
8299
8300# If no C compiler flags were specified, use CFLAGS.
8301LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8302
8303# Allow CC to be a program name with arguments.
8304compiler=$CC
8305
8306# Save the default compiler, since it gets overwritten when the other
8307# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8308compiler_DEFAULT=$CC
8309
8310# save warnings/boilerplate of simple test code
8311ac_outfile=conftest.$ac_objext
8312echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8313eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8314_lt_compiler_boilerplate=`cat conftest.err`
8315$RM conftest*
8316
8317ac_outfile=conftest.$ac_objext
8318echo "$lt_simple_link_test_code" >conftest.$ac_ext
8319eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8320_lt_linker_boilerplate=`cat conftest.err`
8321$RM -r conftest*
8322
8323
8324if test -n "$compiler"; then
8325
8326lt_prog_compiler_no_builtin_flag=
8327
8328if test "$GCC" = yes; then
8329 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8330
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8332$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8333if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8334 $as_echo_n "(cached) " >&6
db137867 8335else
7083c021
AC
8336 lt_cv_prog_compiler_rtti_exceptions=no
8337 ac_outfile=conftest.$ac_objext
8338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8339 lt_compiler_flag="-fno-rtti -fno-exceptions"
8340 # Insert the option either (1) after the last *FLAGS variable, or
8341 # (2) before a word containing "conftest.", or (3) at the end.
8342 # Note that $ac_compile itself does not contain backslashes and begins
8343 # with a dollar sign (not a hyphen), so the echo should work correctly.
8344 # The option is referenced via a variable to avoid confusing sed.
8345 lt_compile=`echo "$ac_compile" | $SED \
8346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8348 -e 's:$: $lt_compiler_flag:'`
96f4052b 8349 (eval echo "\"\$as_me:8349: $lt_compile\"" >&5)
7083c021
AC
8350 (eval "$lt_compile" 2>conftest.err)
8351 ac_status=$?
8352 cat conftest.err >&5
96f4052b 8353 echo "$as_me:8353: \$? = $ac_status" >&5
7083c021
AC
8354 if (exit $ac_status) && test -s "$ac_outfile"; then
8355 # The compiler can only warn and ignore the option if not recognized
8356 # So say no if there are warnings other than the usual output.
8357 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8360 lt_cv_prog_compiler_rtti_exceptions=yes
8361 fi
8362 fi
8363 $RM conftest*
db137867 8364
7083c021
AC
8365fi
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8367$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
db137867 8368
7083c021
AC
8369if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8370 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8371else
8372 :
db137867
AC
8373fi
8374
7083c021 8375fi
db137867 8376
7083c021
AC
8377
8378
8379
8380
8381
8382 lt_prog_compiler_wl=
8383lt_prog_compiler_pic=
8384lt_prog_compiler_static=
8385
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8387$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8388
8389 if test "$GCC" = yes; then
8390 lt_prog_compiler_wl='-Wl,'
8391 lt_prog_compiler_static='-static'
8392
8393 case $host_os in
8394 aix*)
8395 # All AIX code is PIC.
8396 if test "$host_cpu" = ia64; then
8397 # AIX 5 now supports IA64 processor
8398 lt_prog_compiler_static='-Bstatic'
db137867
AC
8399 fi
8400 ;;
8401
8402 amigaos*)
7083c021
AC
8403 case $host_cpu in
8404 powerpc)
8405 # see comment about AmigaOS4 .so support
8406 lt_prog_compiler_pic='-fPIC'
8407 ;;
8408 m68k)
8409 # FIXME: we need at least 68020 code to build shared libraries, but
8410 # adding the `-m68020' flag to GCC prevents building anything better,
8411 # like `-m68040'.
8412 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8413 ;;
8414 esac
db137867
AC
8415 ;;
8416
7083c021
AC
8417 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8418 # PIC is the default for these OSes.
db137867
AC
8419 ;;
8420
7083c021
AC
8421 mingw* | cygwin* | pw32* | os2* | cegcc*)
8422 # This hack is so that the source file can tell whether it is being
8423 # built for inclusion in a dll (and should export symbols for example).
8424 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8425 # (--disable-auto-import) libraries
8426 lt_prog_compiler_pic='-DDLL_EXPORT'
db137867
AC
8427 ;;
8428
8429 darwin* | rhapsody*)
7083c021
AC
8430 # PIC is the default on this platform
8431 # Common symbols not allowed in MH_DYLIB files
8432 lt_prog_compiler_pic='-fno-common'
db137867
AC
8433 ;;
8434
7083c021
AC
8435 hpux*)
8436 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8437 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8438 # sets the default TLS model and affects inlining.
8439 case $host_cpu in
8440 hppa*64*)
8441 # +Z the default
8442 ;;
8443 *)
8444 lt_prog_compiler_pic='-fPIC'
8445 ;;
8446 esac
db137867
AC
8447 ;;
8448
7083c021
AC
8449 interix[3-9]*)
8450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8451 # Instead, we relocate shared libraries at runtime.
db137867
AC
8452 ;;
8453
7083c021
AC
8454 msdosdjgpp*)
8455 # Just because we use GCC doesn't mean we suddenly get shared libraries
8456 # on systems that don't support them.
8457 lt_prog_compiler_can_build_shared=no
8458 enable_shared=no
db137867
AC
8459 ;;
8460
7083c021
AC
8461 *nto* | *qnx*)
8462 # QNX uses GNU C++, but need to define -shared option too, otherwise
8463 # it will coredump.
8464 lt_prog_compiler_pic='-fPIC -shared'
db137867
AC
8465 ;;
8466
7083c021
AC
8467 sysv4*MP*)
8468 if test -d /usr/nec; then
8469 lt_prog_compiler_pic=-Kconform_pic
8470 fi
db137867
AC
8471 ;;
8472
7083c021
AC
8473 *)
8474 lt_prog_compiler_pic='-fPIC'
8475 ;;
8476 esac
8477 else
8478 # PORTME Check for flag to pass linker flags through the system compiler.
8479 case $host_os in
8480 aix*)
8481 lt_prog_compiler_wl='-Wl,'
8482 if test "$host_cpu" = ia64; then
8483 # AIX 5 now supports IA64 processor
8484 lt_prog_compiler_static='-Bstatic'
db137867 8485 else
7083c021 8486 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
db137867 8487 fi
db137867
AC
8488 ;;
8489
7083c021
AC
8490 mingw* | cygwin* | pw32* | os2* | cegcc*)
8491 # This hack is so that the source file can tell whether it is being
8492 # built for inclusion in a dll (and should export symbols for example).
8493 lt_prog_compiler_pic='-DDLL_EXPORT'
8494 ;;
db137867 8495
7083c021
AC
8496 hpux9* | hpux10* | hpux11*)
8497 lt_prog_compiler_wl='-Wl,'
8498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8499 # not for PA HP-UX.
8500 case $host_cpu in
8501 hppa*64*|ia64*)
8502 # +Z the default
8503 ;;
8504 *)
8505 lt_prog_compiler_pic='+Z'
8506 ;;
8507 esac
8508 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8509 lt_prog_compiler_static='${wl}-a ${wl}archive'
8510 ;;
db137867 8511
7083c021
AC
8512 irix5* | irix6* | nonstopux*)
8513 lt_prog_compiler_wl='-Wl,'
8514 # PIC (with -KPIC) is the default.
8515 lt_prog_compiler_static='-non_shared'
db137867
AC
8516 ;;
8517
7083c021
AC
8518 linux* | k*bsd*-gnu)
8519 case $cc_basename in
8520 # old Intel for x86_64 which still supported -KPIC.
8521 ecc*)
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_pic='-KPIC'
8524 lt_prog_compiler_static='-static'
8525 ;;
8526 # icc used to be incompatible with GCC.
8527 # ICC 10 doesn't accept -KPIC any more.
8528 icc* | ifort*)
8529 lt_prog_compiler_wl='-Wl,'
8530 lt_prog_compiler_pic='-fPIC'
8531 lt_prog_compiler_static='-static'
8532 ;;
8533 # Lahey Fortran 8.1.
8534 lf95*)
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_pic='--shared'
8537 lt_prog_compiler_static='--static'
8538 ;;
8539 pgcc* | pgf77* | pgf90* | pgf95*)
8540 # Portland Group compilers (*not* the Pentium gcc compiler,
8541 # which looks to be a dead project)
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_pic='-fpic'
8544 lt_prog_compiler_static='-Bstatic'
8545 ;;
8546 ccc*)
8547 lt_prog_compiler_wl='-Wl,'
8548 # All Alpha code is PIC.
8549 lt_prog_compiler_static='-non_shared'
8550 ;;
8551 xl*)
8552 # IBM XL C 8.0/Fortran 10.1 on PPC
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-qpic'
8555 lt_prog_compiler_static='-qstaticlink'
8556 ;;
8557 *)
8558 case `$CC -V 2>&1 | sed 5q` in
8559 *Sun\ C*)
8560 # Sun C 5.9
8561 lt_prog_compiler_pic='-KPIC'
8562 lt_prog_compiler_static='-Bstatic'
8563 lt_prog_compiler_wl='-Wl,'
db137867 8564 ;;
7083c021
AC
8565 *Sun\ F*)
8566 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8567 lt_prog_compiler_pic='-KPIC'
8568 lt_prog_compiler_static='-Bstatic'
8569 lt_prog_compiler_wl=''
db137867
AC
8570 ;;
8571 esac
7083c021
AC
8572 ;;
8573 esac
8574 ;;
db137867 8575
7083c021
AC
8576 newsos6)
8577 lt_prog_compiler_pic='-KPIC'
8578 lt_prog_compiler_static='-Bstatic'
8579 ;;
db137867 8580
7083c021
AC
8581 *nto* | *qnx*)
8582 # QNX uses GNU C++, but need to define -shared option too, otherwise
8583 # it will coredump.
8584 lt_prog_compiler_pic='-fPIC -shared'
db137867
AC
8585 ;;
8586
7083c021
AC
8587 osf3* | osf4* | osf5*)
8588 lt_prog_compiler_wl='-Wl,'
8589 # All OSF/1 code is PIC.
8590 lt_prog_compiler_static='-non_shared'
db137867
AC
8591 ;;
8592
7083c021
AC
8593 rdos*)
8594 lt_prog_compiler_static='-non_shared'
db137867
AC
8595 ;;
8596
7083c021
AC
8597 solaris*)
8598 lt_prog_compiler_pic='-KPIC'
8599 lt_prog_compiler_static='-Bstatic'
8600 case $cc_basename in
8601 f77* | f90* | f95*)
8602 lt_prog_compiler_wl='-Qoption ld ';;
8603 *)
8604 lt_prog_compiler_wl='-Wl,';;
8605 esac
db137867
AC
8606 ;;
8607
7083c021
AC
8608 sunos4*)
8609 lt_prog_compiler_wl='-Qoption ld '
8610 lt_prog_compiler_pic='-PIC'
8611 lt_prog_compiler_static='-Bstatic'
db137867
AC
8612 ;;
8613
7083c021
AC
8614 sysv4 | sysv4.2uw2* | sysv4.3*)
8615 lt_prog_compiler_wl='-Wl,'
8616 lt_prog_compiler_pic='-KPIC'
8617 lt_prog_compiler_static='-Bstatic'
db137867
AC
8618 ;;
8619
7083c021
AC
8620 sysv4*MP*)
8621 if test -d /usr/nec ;then
8622 lt_prog_compiler_pic='-Kconform_pic'
8623 lt_prog_compiler_static='-Bstatic'
db137867 8624 fi
db137867
AC
8625 ;;
8626
7083c021
AC
8627 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 ;;
db137867 8632
7083c021
AC
8633 unicos*)
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_can_build_shared=no
db137867
AC
8636 ;;
8637
7083c021
AC
8638 uts4*)
8639 lt_prog_compiler_pic='-pic'
8640 lt_prog_compiler_static='-Bstatic'
db137867
AC
8641 ;;
8642
7083c021
AC
8643 *)
8644 lt_prog_compiler_can_build_shared=no
db137867 8645 ;;
7083c021
AC
8646 esac
8647 fi
db137867 8648
7083c021
AC
8649case $host_os in
8650 # For platforms which do not support PIC, -DPIC is meaningless:
8651 *djgpp*)
8652 lt_prog_compiler_pic=
8653 ;;
8654 *)
8655 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8656 ;;
8657esac
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8659$as_echo "$lt_prog_compiler_pic" >&6; }
db137867 8660
db137867 8661
db137867 8662
db137867 8663
db137867 8664
db137867 8665
7083c021
AC
8666#
8667# Check to make sure the PIC flag actually works.
8668#
8669if test -n "$lt_prog_compiler_pic"; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8671$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8672if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
8674else
8675 lt_cv_prog_compiler_pic_works=no
8676 ac_outfile=conftest.$ac_objext
8677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8679 # Insert the option either (1) after the last *FLAGS variable, or
8680 # (2) before a word containing "conftest.", or (3) at the end.
8681 # Note that $ac_compile itself does not contain backslashes and begins
8682 # with a dollar sign (not a hyphen), so the echo should work correctly.
8683 # The option is referenced via a variable to avoid confusing sed.
8684 lt_compile=`echo "$ac_compile" | $SED \
8685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687 -e 's:$: $lt_compiler_flag:'`
96f4052b 8688 (eval echo "\"\$as_me:8688: $lt_compile\"" >&5)
7083c021
AC
8689 (eval "$lt_compile" 2>conftest.err)
8690 ac_status=$?
8691 cat conftest.err >&5
96f4052b 8692 echo "$as_me:8692: \$? = $ac_status" >&5
7083c021
AC
8693 if (exit $ac_status) && test -s "$ac_outfile"; then
8694 # The compiler can only warn and ignore the option if not recognized
8695 # So say no if there are warnings other than the usual output.
8696 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699 lt_cv_prog_compiler_pic_works=yes
8700 fi
8701 fi
8702 $RM conftest*
8703
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8706$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8707
8708if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8709 case $lt_prog_compiler_pic in
8710 "" | " "*) ;;
8711 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8712 esac
8713else
8714 lt_prog_compiler_pic=
8715 lt_prog_compiler_can_build_shared=no
8716fi
8717
8718fi
8719
8720
db137867 8721
db137867 8722
db137867 8723
db137867
AC
8724
8725#
7083c021 8726# Check to make sure the static flag actually works.
db137867 8727#
7083c021
AC
8728wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8730$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8731if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8732 $as_echo_n "(cached) " >&6
8733else
8734 lt_cv_prog_compiler_static_works=no
8735 save_LDFLAGS="$LDFLAGS"
8736 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8737 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8738 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8739 # The linker can only warn and ignore the option if not recognized
8740 # So say no if there are warnings
8741 if test -s conftest.err; then
8742 # Append any errors to the config.log.
8743 cat conftest.err 1>&5
8744 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8746 if diff conftest.exp conftest.er2 >/dev/null; then
8747 lt_cv_prog_compiler_static_works=yes
8748 fi
8749 else
8750 lt_cv_prog_compiler_static_works=yes
8751 fi
8752 fi
8753 $RM -r conftest*
8754 LDFLAGS="$save_LDFLAGS"
db137867 8755
7083c021
AC
8756fi
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8758$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
db137867 8759
7083c021
AC
8760if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8761 :
8762else
8763 lt_prog_compiler_static=
8764fi
db137867 8765
db137867 8766
db137867 8767
db137867 8768
db137867 8769
db137867 8770
db137867 8771
7083c021
AC
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8773$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8774if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8776else
8777 lt_cv_prog_compiler_c_o=no
8778 $RM -r conftest 2>/dev/null
8779 mkdir conftest
8780 cd conftest
8781 mkdir out
8782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 8783
7083c021
AC
8784 lt_compiler_flag="-o out/conftest2.$ac_objext"
8785 # Insert the option either (1) after the last *FLAGS variable, or
8786 # (2) before a word containing "conftest.", or (3) at the end.
8787 # Note that $ac_compile itself does not contain backslashes and begins
8788 # with a dollar sign (not a hyphen), so the echo should work correctly.
8789 lt_compile=`echo "$ac_compile" | $SED \
8790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8792 -e 's:$: $lt_compiler_flag:'`
96f4052b 8793 (eval echo "\"\$as_me:8793: $lt_compile\"" >&5)
7083c021
AC
8794 (eval "$lt_compile" 2>out/conftest.err)
8795 ac_status=$?
8796 cat out/conftest.err >&5
96f4052b 8797 echo "$as_me:8797: \$? = $ac_status" >&5
7083c021
AC
8798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8799 then
8800 # The compiler can only warn and ignore the option if not recognized
8801 # So say no if there are warnings
8802 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8805 lt_cv_prog_compiler_c_o=yes
8806 fi
8807 fi
8808 chmod u+w . 2>&5
8809 $RM conftest*
8810 # SGI C++ compiler will create directory out/ii_files/ for
8811 # template instantiation
8812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8813 $RM out/* && rmdir out
8814 cd ..
8815 $RM -r conftest
8816 $RM conftest*
db137867 8817
7083c021
AC
8818fi
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8820$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
db137867 8821
db137867 8822
db137867 8823
db137867 8824
db137867 8825
db137867 8826
7083c021
AC
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8828$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8829if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8831else
8832 lt_cv_prog_compiler_c_o=no
8833 $RM -r conftest 2>/dev/null
8834 mkdir conftest
8835 cd conftest
8836 mkdir out
8837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
db137867 8838
7083c021
AC
8839 lt_compiler_flag="-o out/conftest2.$ac_objext"
8840 # Insert the option either (1) after the last *FLAGS variable, or
8841 # (2) before a word containing "conftest.", or (3) at the end.
8842 # Note that $ac_compile itself does not contain backslashes and begins
8843 # with a dollar sign (not a hyphen), so the echo should work correctly.
8844 lt_compile=`echo "$ac_compile" | $SED \
8845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8847 -e 's:$: $lt_compiler_flag:'`
96f4052b 8848 (eval echo "\"\$as_me:8848: $lt_compile\"" >&5)
7083c021
AC
8849 (eval "$lt_compile" 2>out/conftest.err)
8850 ac_status=$?
8851 cat out/conftest.err >&5
96f4052b 8852 echo "$as_me:8852: \$? = $ac_status" >&5
7083c021
AC
8853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8854 then
8855 # The compiler can only warn and ignore the option if not recognized
8856 # So say no if there are warnings
8857 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8860 lt_cv_prog_compiler_c_o=yes
8861 fi
8862 fi
8863 chmod u+w . 2>&5
8864 $RM conftest*
8865 # SGI C++ compiler will create directory out/ii_files/ for
8866 # template instantiation
8867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8868 $RM out/* && rmdir out
8869 cd ..
8870 $RM -r conftest
8871 $RM conftest*
db137867 8872
7083c021
AC
8873fi
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8875$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8876
8877
8878
8879
8880hard_links="nottested"
8881if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8882 # do not overwrite the value of need_locks provided by the user
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8884$as_echo_n "checking if we can lock with hard links... " >&6; }
8885 hard_links=yes
8886 $RM conftest*
8887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8888 touch conftest.a
8889 ln conftest.a conftest.b 2>&5 || hard_links=no
8890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8892$as_echo "$hard_links" >&6; }
8893 if test "$hard_links" = no; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8895$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8896 need_locks=warn
8897 fi
8898else
8899 need_locks=no
8900fi
8901
8902
8903
8904
8905
8906
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8908$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8909
8910 runpath_var=
8911 allow_undefined_flag=
8912 always_export_symbols=no
8913 archive_cmds=
8914 archive_expsym_cmds=
8915 compiler_needs_object=no
8916 enable_shared_with_static_runtimes=no
8917 export_dynamic_flag_spec=
8918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8919 hardcode_automatic=no
8920 hardcode_direct=no
8921 hardcode_direct_absolute=no
8922 hardcode_libdir_flag_spec=
8923 hardcode_libdir_flag_spec_ld=
8924 hardcode_libdir_separator=
8925 hardcode_minus_L=no
8926 hardcode_shlibpath_var=unsupported
8927 inherit_rpath=no
8928 link_all_deplibs=unknown
8929 module_cmds=
8930 module_expsym_cmds=
8931 old_archive_from_new_cmds=
8932 old_archive_from_expsyms_cmds=
8933 thread_safe_flag_spec=
8934 whole_archive_flag_spec=
8935 # include_expsyms should be a list of space-separated symbols to be *always*
8936 # included in the symbol list
8937 include_expsyms=
8938 # exclude_expsyms can be an extended regexp of symbols to exclude
8939 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8940 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8941 # as well as any symbol that contains `d'.
8942 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8944 # platforms (ab)use it in PIC code, but their linkers get confused if
8945 # the symbol is explicitly referenced. Since portable code cannot
8946 # rely on this symbol name, it's probably fine to never include it in
8947 # preloaded symbol tables.
8948 # Exclude shared library initialization/finalization symbols.
8949 extract_expsyms_cmds=
db137867 8950
db137867 8951 case $host_os in
7083c021
AC
8952 cygwin* | mingw* | pw32* | cegcc*)
8953 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8954 # When not using gcc, we currently assume that we are using
8955 # Microsoft Visual C++.
8956 if test "$GCC" != yes; then
8957 with_gnu_ld=no
8958 fi
db137867 8959 ;;
7083c021
AC
8960 interix*)
8961 # we just hope/assume this is gcc and not c89 (= MSVC++)
8962 with_gnu_ld=yes
db137867 8963 ;;
7083c021
AC
8964 openbsd*)
8965 with_gnu_ld=no
db137867 8966 ;;
db137867 8967 esac
db137867 8968
7083c021
AC
8969 ld_shlibs=yes
8970 if test "$with_gnu_ld" = yes; then
8971 # If archive_cmds runs LD, not CC, wlarc should be empty
8972 wlarc='${wl}'
db137867 8973
7083c021
AC
8974 # Set some defaults for GNU ld with shared library support. These
8975 # are reset later if shared libraries are not supported. Putting them
8976 # here allows them to be overridden if necessary.
8977 runpath_var=LD_RUN_PATH
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 export_dynamic_flag_spec='${wl}--export-dynamic'
8980 # ancient GNU ld didn't support --whole-archive et. al.
8981 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8982 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
db137867 8983 else
7083c021 8984 whole_archive_flag_spec=
db137867 8985 fi
7083c021
AC
8986 supports_anon_versioning=no
8987 case `$LD -v 2>&1` in
8988 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8989 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8990 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8991 *\ 2.11.*) ;; # other 2.11 versions
8992 *) supports_anon_versioning=yes ;;
db137867 8993 esac
db137867 8994
7083c021
AC
8995 # See if GNU ld supports shared libraries.
8996 case $host_os in
8997 aix[3-9]*)
8998 # On AIX/PPC, the GNU linker is very broken
8999 if test "$host_cpu" != ia64; then
9000 ld_shlibs=no
9001 cat <<_LT_EOF 1>&2
db137867 9002
7083c021
AC
9003*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9004*** to be unable to reliably create shared libraries on AIX.
9005*** Therefore, libtool is disabling shared libraries support. If you
9006*** really care for shared libraries, you may want to modify your PATH
9007*** so that a non-GNU linker is found, and then restart.
db137867 9008
7083c021
AC
9009_LT_EOF
9010 fi
9011 ;;
db137867
AC
9012
9013 amigaos*)
7083c021
AC
9014 case $host_cpu in
9015 powerpc)
9016 # see comment about AmigaOS4 .so support
9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018 archive_expsym_cmds=''
9019 ;;
9020 m68k)
9021 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)'
9022 hardcode_libdir_flag_spec='-L$libdir'
9023 hardcode_minus_L=yes
9024 ;;
9025 esac
db137867
AC
9026 ;;
9027
9028 beos*)
7083c021
AC
9029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9030 allow_undefined_flag=unsupported
db137867
AC
9031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9032 # support --undefined. This deserves some investigation. FIXME
7083c021 9033 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
db137867 9034 else
7083c021 9035 ld_shlibs=no
db137867
AC
9036 fi
9037 ;;
9038
7083c021
AC
9039 cygwin* | mingw* | pw32* | cegcc*)
9040 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
db137867 9041 # as there is no search path for DLLs.
7083c021
AC
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 allow_undefined_flag=unsupported
9044 always_export_symbols=no
9045 enable_shared_with_static_runtimes=yes
9046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9047
9048 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
db137867
AC
9050 # If the export-symbols file already is a .def file (1st line
9051 # is EXPORTS), use it as is; otherwise, prepend...
7083c021 9052 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
db137867
AC
9053 cp $export_symbols $output_objdir/$soname.def;
9054 else
9055 echo EXPORTS > $output_objdir/$soname.def;
9056 cat $export_symbols >> $output_objdir/$soname.def;
9057 fi~
9058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9059 else
7083c021 9060 ld_shlibs=no
db137867
AC
9061 fi
9062 ;;
9063
9064 interix[3-9]*)
7083c021
AC
9065 hardcode_direct=no
9066 hardcode_shlibpath_var=no
9067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9068 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9070 # Instead, shared libraries are loaded at an image base (0x10000000 by
9071 # default) and relocated if they conflict, which is a slow very memory
9072 # consuming and fragmenting process. To avoid this, we pick a random,
9073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7083c021
AC
9075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9076 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
9077 ;;
9078
7083c021
AC
9079 gnu* | linux* | tpf* | k*bsd*-gnu)
9080 tmp_diet=no
9081 if test "$host_os" = linux-dietlibc; then
9082 case $cc_basename in
9083 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9084 esac
9085 fi
9086 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9087 && test "$tmp_diet" = no
9088 then
db137867 9089 tmp_addflag=
7083c021 9090 tmp_sharedflag='-shared'
db137867 9091 case $cc_basename,$host_cpu in
7083c021
AC
9092 pgcc*) # Portland Group C compiler
9093 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
9094 tmp_addflag=' $pic_flag'
9095 ;;
9096 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7083c021 9097 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 9098 tmp_addflag=' $pic_flag -Mnomain' ;;
7083c021 9099 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
db137867
AC
9100 tmp_addflag=' -i_dynamic' ;;
9101 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9102 tmp_addflag=' -i_dynamic -nofor_main' ;;
9103 ifc* | ifort*) # Intel Fortran compiler
9104 tmp_addflag=' -nofor_main' ;;
7083c021
AC
9105 lf95*) # Lahey Fortran 8.1
9106 whole_archive_flag_spec=
9107 tmp_sharedflag='--shared' ;;
9108 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9109 tmp_sharedflag='-qmkshrobj'
9110 tmp_addflag= ;;
db137867
AC
9111 esac
9112 case `$CC -V 2>&1 | sed 5q` in
9113 *Sun\ C*) # Sun C 5.9
7083c021
AC
9114 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'
9115 compiler_needs_object=yes
db137867
AC
9116 tmp_sharedflag='-G' ;;
9117 *Sun\ F*) # Sun Fortran 8.3
9118 tmp_sharedflag='-G' ;;
db137867 9119 esac
7083c021 9120 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
db137867 9121
7083c021
AC
9122 if test "x$supports_anon_versioning" = xyes; then
9123 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9125 echo "local: *; };" >> $output_objdir/$libname.ver~
9126 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9127 fi
9128
9129 case $cc_basename in
9130 xlf*)
9131 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9132 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9133 hardcode_libdir_flag_spec=
9134 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9135 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9136 if test "x$supports_anon_versioning" = xyes; then
9137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9139 echo "local: *; };" >> $output_objdir/$libname.ver~
9140 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9141 fi
9142 ;;
9143 esac
db137867 9144 else
7083c021 9145 ld_shlibs=no
db137867
AC
9146 fi
9147 ;;
9148
96f4052b 9149 netbsd*)
7083c021
AC
9150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9151 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
db137867
AC
9152 wlarc=
9153 else
7083c021
AC
9154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867
AC
9156 fi
9157 ;;
9158
9159 solaris*)
7083c021
AC
9160 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9161 ld_shlibs=no
9162 cat <<_LT_EOF 1>&2
db137867
AC
9163
9164*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9165*** create shared libraries on Solaris systems. Therefore, libtool
9166*** is disabling shared libraries support. We urge you to upgrade GNU
9167*** binutils to release 2.9.1 or newer. Another option is to modify
9168*** your PATH or compiler configuration so that the native linker is
9169*** used, and then restart.
9170
7083c021
AC
9171_LT_EOF
9172 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867 9175 else
7083c021 9176 ld_shlibs=no
db137867
AC
9177 fi
9178 ;;
9179
9180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9181 case `$LD -v 2>&1` in
9182 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7083c021 9183 ld_shlibs=no
db137867
AC
9184 cat <<_LT_EOF 1>&2
9185
9186*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9187*** reliably create shared libraries on SCO systems. Therefore, libtool
9188*** is disabling shared libraries support. We urge you to upgrade GNU
9189*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9190*** your PATH or compiler configuration so that the native linker is
9191*** used, and then restart.
9192
9193_LT_EOF
9194 ;;
9195 *)
7083c021
AC
9196 # For security reasons, it is highly recommended that you always
9197 # use absolute paths for naming shared libraries, and exclude the
9198 # DT_RUNPATH tag from executables and libraries. But doing so
9199 # requires that you compile everything twice, which is a pain.
9200 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867 9204 else
7083c021 9205 ld_shlibs=no
db137867
AC
9206 fi
9207 ;;
9208 esac
9209 ;;
9210
9211 sunos4*)
7083c021 9212 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
db137867 9213 wlarc=
7083c021
AC
9214 hardcode_direct=yes
9215 hardcode_shlibpath_var=no
db137867
AC
9216 ;;
9217
9218 *)
7083c021
AC
9219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
db137867 9222 else
7083c021 9223 ld_shlibs=no
db137867
AC
9224 fi
9225 ;;
9226 esac
9227
7083c021 9228 if test "$ld_shlibs" = no; then
db137867 9229 runpath_var=
7083c021
AC
9230 hardcode_libdir_flag_spec=
9231 export_dynamic_flag_spec=
9232 whole_archive_flag_spec=
db137867
AC
9233 fi
9234 else
9235 # PORTME fill in a description of your system's linker (not GNU ld)
9236 case $host_os in
9237 aix3*)
7083c021
AC
9238 allow_undefined_flag=unsupported
9239 always_export_symbols=yes
9240 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
9241 # Note: this linker hardcodes the directories in LIBPATH if there
9242 # are no directories specified by -L.
7083c021 9243 hardcode_minus_L=yes
db137867
AC
9244 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9245 # Neither direct hardcoding nor static linking is supported with a
9246 # broken collect2.
7083c021 9247 hardcode_direct=unsupported
db137867
AC
9248 fi
9249 ;;
9250
b676ea3b 9251 aix[4-9]*)
db137867
AC
9252 if test "$host_cpu" = ia64; then
9253 # On IA64, the linker does run time linking by default, so we don't
9254 # have to do anything special.
9255 aix_use_runtimelinking=no
9256 exp_sym_flag='-Bexport'
9257 no_entry_flag=""
9258 else
9259 # If we're using GNU nm, then we don't want the "-C" option.
9260 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7083c021
AC
9261 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9262 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 9263 else
7083c021 9264 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
9265 fi
9266 aix_use_runtimelinking=no
9267
9268 # Test if we are trying to use run time linking or normal
9269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9270 # need to do runtime linking.
b676ea3b 9271 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
db137867 9272 for ld_flag in $LDFLAGS; do
7083c021
AC
9273 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9274 aix_use_runtimelinking=yes
9275 break
9276 fi
db137867
AC
9277 done
9278 ;;
9279 esac
9280
9281 exp_sym_flag='-bexport'
9282 no_entry_flag='-bnoentry'
9283 fi
9284
9285 # When large executables or shared objects are built, AIX ld can
9286 # have problems creating the table of contents. If linking a library
9287 # or program results in "error TOC overflow" add -mminimal-toc to
9288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9290
7083c021
AC
9291 archive_cmds=''
9292 hardcode_direct=yes
9293 hardcode_direct_absolute=yes
9294 hardcode_libdir_separator=':'
9295 link_all_deplibs=yes
9296 file_list_spec='${wl}-f,'
db137867
AC
9297
9298 if test "$GCC" = yes; then
9299 case $host_os in aix4.[012]|aix4.[012].*)
9300 # We only want to do this on AIX 4.2 and lower, the check
9301 # below for broken collect2 doesn't work under 4.3+
9302 collect2name=`${CC} -print-prog-name=collect2`
7083c021
AC
9303 if test -f "$collect2name" &&
9304 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
db137867 9305 then
7083c021
AC
9306 # We have reworked collect2
9307 :
db137867 9308 else
7083c021
AC
9309 # We have old collect2
9310 hardcode_direct=unsupported
9311 # It fails to find uninstalled libraries when the uninstalled
9312 # path is not listed in the libpath. Setting hardcode_minus_L
9313 # to unsupported forces relinking
9314 hardcode_minus_L=yes
9315 hardcode_libdir_flag_spec='-L$libdir'
9316 hardcode_libdir_separator=
db137867
AC
9317 fi
9318 ;;
9319 esac
9320 shared_flag='-shared'
9321 if test "$aix_use_runtimelinking" = yes; then
9322 shared_flag="$shared_flag "'${wl}-G'
9323 fi
9324 else
9325 # not using gcc
9326 if test "$host_cpu" = ia64; then
7083c021
AC
9327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9328 # chokes on -Wl,-G. The following line is correct:
db137867
AC
9329 shared_flag='-G'
9330 else
9331 if test "$aix_use_runtimelinking" = yes; then
9332 shared_flag='${wl}-G'
9333 else
9334 shared_flag='${wl}-bM:SRE'
9335 fi
9336 fi
9337 fi
9338
7083c021 9339 export_dynamic_flag_spec='${wl}-bexpall'
db137867
AC
9340 # It seems that -bexpall does not export symbols beginning with
9341 # underscore (_), so it is better to generate a list of symbols to export.
7083c021 9342 always_export_symbols=yes
db137867
AC
9343 if test "$aix_use_runtimelinking" = yes; then
9344 # Warning - without using the other runtime loading flags (-brtl),
9345 # -berok will link without error, but may produce a broken library.
7083c021
AC
9346 allow_undefined_flag='-berok'
9347 # Determine the default libpath from the value encoded in an
9348 # empty executable.
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
9350/* end confdefs.h. */
9351
9352int
9353main ()
9354{
9355
9356 ;
9357 return 0;
9358}
9359_ACEOF
7083c021 9360if ac_fn_c_try_link "$LINENO"; then :
db137867
AC
9361
9362lt_aix_libpath_sed='
9363 /Import File Strings/,/^$/ {
9364 /^0/ {
9365 s/^0 *\(.*\)$/\1/
9366 p
9367 }
9368 }'
9369aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9370# Check for a 64-bit object if we didn't find anything.
9371if test -z "$aix_libpath"; then
9372 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9373fi
db137867 9374fi
7083c021
AC
9375rm -f core conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
db137867
AC
9377if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9378
7083c021
AC
9379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9380 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"
9381 else
db137867 9382 if test "$host_cpu" = ia64; then
7083c021
AC
9383 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9384 allow_undefined_flag="-z nodefs"
9385 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 9386 else
7083c021
AC
9387 # Determine the default libpath from the value encoded in an
9388 # empty executable.
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
9390/* end confdefs.h. */
9391
9392int
9393main ()
9394{
9395
9396 ;
9397 return 0;
9398}
9399_ACEOF
7083c021 9400if ac_fn_c_try_link "$LINENO"; then :
db137867
AC
9401
9402lt_aix_libpath_sed='
9403 /Import File Strings/,/^$/ {
9404 /^0/ {
9405 s/^0 *\(.*\)$/\1/
9406 p
9407 }
9408 }'
9409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9410# Check for a 64-bit object if we didn't find anything.
9411if test -z "$aix_libpath"; then
9412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9413fi
db137867 9414fi
7083c021
AC
9415rm -f core conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
db137867
AC
9417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9418
7083c021 9419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
db137867
AC
9420 # Warning - without using the other run time loading flags,
9421 # -berok will link without error, but may produce a broken library.
7083c021
AC
9422 no_undefined_flag=' ${wl}-bernotok'
9423 allow_undefined_flag=' ${wl}-berok'
db137867 9424 # Exported symbols can be pulled into shared objects from archives
7083c021
AC
9425 whole_archive_flag_spec='$convenience'
9426 archive_cmds_need_lc=yes
db137867 9427 # This is similar to how AIX traditionally builds its shared libraries.
7083c021 9428 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
9429 fi
9430 fi
9431 ;;
9432
9433 amigaos*)
7083c021
AC
9434 case $host_cpu in
9435 powerpc)
9436 # see comment about AmigaOS4 .so support
9437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9438 archive_expsym_cmds=''
9439 ;;
9440 m68k)
9441 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)'
9442 hardcode_libdir_flag_spec='-L$libdir'
9443 hardcode_minus_L=yes
9444 ;;
9445 esac
db137867
AC
9446 ;;
9447
9448 bsdi[45]*)
7083c021 9449 export_dynamic_flag_spec=-rdynamic
db137867
AC
9450 ;;
9451
7083c021 9452 cygwin* | mingw* | pw32* | cegcc*)
db137867
AC
9453 # When not using gcc, we currently assume that we are using
9454 # Microsoft Visual C++.
9455 # hardcode_libdir_flag_spec is actually meaningless, as there is
9456 # no search path for DLLs.
7083c021
AC
9457 hardcode_libdir_flag_spec=' '
9458 allow_undefined_flag=unsupported
db137867
AC
9459 # Tell ltmain to make .lib files, not .a files.
9460 libext=lib
9461 # Tell ltmain to make .dll files, not .so files.
9462 shrext_cmds=".dll"
9463 # FIXME: Setting linknames here is a bad hack.
7083c021 9464 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
db137867 9465 # The linker will automatically build a .lib file if we build a DLL.
7083c021 9466 old_archive_from_new_cmds='true'
db137867 9467 # FIXME: Should let the user specify the lib program.
7083c021
AC
9468 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9469 fix_srcfile_path='`cygpath -w "$srcfile"`'
9470 enable_shared_with_static_runtimes=yes
db137867
AC
9471 ;;
9472
7083c021
AC
9473 darwin* | rhapsody*)
9474
9475
9476 archive_cmds_need_lc=no
9477 hardcode_direct=no
9478 hardcode_automatic=yes
9479 hardcode_shlibpath_var=unsupported
9480 whole_archive_flag_spec=''
9481 link_all_deplibs=yes
9482 allow_undefined_flag="$_lt_dar_allow_undefined"
9483 case $cc_basename in
9484 ifort*) _lt_dar_can_shared=yes ;;
9485 *) _lt_dar_can_shared=$GCC ;;
9486 esac
9487 if test "$_lt_dar_can_shared" = "yes"; then
9488 output_verbose_link_cmd=echo
9489 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9490 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9491 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}"
9492 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}"
9493
9494 else
9495 ld_shlibs=no
9496 fi
9497
db137867
AC
9498 ;;
9499
9500 dgux*)
7083c021
AC
9501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502 hardcode_libdir_flag_spec='-L$libdir'
9503 hardcode_shlibpath_var=no
db137867
AC
9504 ;;
9505
9506 freebsd1*)
7083c021 9507 ld_shlibs=no
db137867
AC
9508 ;;
9509
9510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9511 # support. Future versions do this automatically, but an explicit c++rt0.o
9512 # does not break anything, and helps significantly (at the cost of a little
9513 # extra space).
9514 freebsd2.2*)
7083c021
AC
9515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9516 hardcode_libdir_flag_spec='-R$libdir'
9517 hardcode_direct=yes
9518 hardcode_shlibpath_var=no
db137867
AC
9519 ;;
9520
9521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9522 freebsd2*)
7083c021
AC
9523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_direct=yes
9525 hardcode_minus_L=yes
9526 hardcode_shlibpath_var=no
db137867
AC
9527 ;;
9528
9529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9530 freebsd* | dragonfly*)
7083c021
AC
9531 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9532 hardcode_libdir_flag_spec='-R$libdir'
9533 hardcode_direct=yes
9534 hardcode_shlibpath_var=no
db137867
AC
9535 ;;
9536
9537 hpux9*)
9538 if test "$GCC" = yes; then
7083c021 9539 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 9540 else
7083c021 9541 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 9542 fi
7083c021
AC
9543 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9544 hardcode_libdir_separator=:
9545 hardcode_direct=yes
db137867
AC
9546
9547 # hardcode_minus_L: Not really in the search PATH,
9548 # but as the default location of the library.
7083c021
AC
9549 hardcode_minus_L=yes
9550 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9551 ;;
9552
9553 hpux10*)
9554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7083c021 9555 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867 9556 else
7083c021 9557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
db137867
AC
9558 fi
9559 if test "$with_gnu_ld" = no; then
7083c021
AC
9560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9561 hardcode_libdir_flag_spec_ld='+b $libdir'
9562 hardcode_libdir_separator=:
9563 hardcode_direct=yes
9564 hardcode_direct_absolute=yes
9565 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9566 # hardcode_minus_L: Not really in the search PATH,
9567 # but as the default location of the library.
7083c021 9568 hardcode_minus_L=yes
db137867
AC
9569 fi
9570 ;;
9571
9572 hpux11*)
9573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9574 case $host_cpu in
9575 hppa*64*)
7083c021 9576 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9577 ;;
9578 ia64*)
7083c021 9579 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9580 ;;
9581 *)
7083c021 9582 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9583 ;;
9584 esac
9585 else
9586 case $host_cpu in
9587 hppa*64*)
7083c021 9588 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9589 ;;
9590 ia64*)
7083c021 9591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9592 ;;
9593 *)
7083c021 9594 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9595 ;;
9596 esac
9597 fi
9598 if test "$with_gnu_ld" = no; then
7083c021
AC
9599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9600 hardcode_libdir_separator=:
db137867
AC
9601
9602 case $host_cpu in
9603 hppa*64*|ia64*)
7083c021
AC
9604 hardcode_direct=no
9605 hardcode_shlibpath_var=no
db137867
AC
9606 ;;
9607 *)
7083c021
AC
9608 hardcode_direct=yes
9609 hardcode_direct_absolute=yes
9610 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9611
9612 # hardcode_minus_L: Not really in the search PATH,
9613 # but as the default location of the library.
7083c021 9614 hardcode_minus_L=yes
db137867
AC
9615 ;;
9616 esac
9617 fi
9618 ;;
9619
9620 irix5* | irix6* | nonstopux*)
9621 if test "$GCC" = yes; then
7083c021
AC
9622 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'
9623 # Try to use the -exported_symbol ld option, if it does not
9624 # work, assume that -exports_file does not work either and
9625 # implicitly export all symbols.
9626 save_LDFLAGS="$LDFLAGS"
9627 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629/* end confdefs.h. */
9630int foo(void) {}
9631_ACEOF
9632if ac_fn_c_try_link "$LINENO"; then :
9633 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'
9634
9635fi
9636rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LDFLAGS="$save_LDFLAGS"
db137867 9639 else
7083c021
AC
9640 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'
9641 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 9642 fi
7083c021
AC
9643 archive_cmds_need_lc='no'
9644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645 hardcode_libdir_separator=:
9646 inherit_rpath=yes
9647 link_all_deplibs=yes
db137867
AC
9648 ;;
9649
96f4052b 9650 netbsd*)
7083c021
AC
9651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
db137867 9653 else
7083c021 9654 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
db137867 9655 fi
7083c021
AC
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_direct=yes
9658 hardcode_shlibpath_var=no
db137867
AC
9659 ;;
9660
9661 newsos6)
7083c021
AC
9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_direct=yes
9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665 hardcode_libdir_separator=:
9666 hardcode_shlibpath_var=no
9667 ;;
9668
9669 *nto* | *qnx*)
db137867
AC
9670 ;;
9671
9672 openbsd*)
9673 if test -f /usr/libexec/ld.so; then
7083c021
AC
9674 hardcode_direct=yes
9675 hardcode_shlibpath_var=no
9676 hardcode_direct_absolute=yes
9677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9679 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9681 export_dynamic_flag_spec='${wl}-E'
db137867
AC
9682 else
9683 case $host_os in
9684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7083c021
AC
9685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_libdir_flag_spec='-R$libdir'
db137867
AC
9687 ;;
9688 *)
7083c021
AC
9689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
db137867
AC
9691 ;;
9692 esac
7083c021 9693 fi
db137867 9694 else
7083c021 9695 ld_shlibs=no
db137867
AC
9696 fi
9697 ;;
9698
9699 os2*)
7083c021
AC
9700 hardcode_libdir_flag_spec='-L$libdir'
9701 hardcode_minus_L=yes
9702 allow_undefined_flag=unsupported
9703 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'
9704 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
db137867
AC
9705 ;;
9706
9707 osf3*)
9708 if test "$GCC" = yes; then
7083c021
AC
9709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9710 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 9711 else
7083c021
AC
9712 allow_undefined_flag=' -expect_unresolved \*'
9713 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 9714 fi
7083c021
AC
9715 archive_cmds_need_lc='no'
9716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717 hardcode_libdir_separator=:
db137867
AC
9718 ;;
9719
9720 osf4* | osf5*) # as osf3* with the addition of -msym flag
9721 if test "$GCC" = yes; then
7083c021
AC
9722 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9723 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'
9724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
db137867 9725 else
7083c021
AC
9726 allow_undefined_flag=' -expect_unresolved \*'
9727 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'
9728 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~
9729 $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
9730
9731 # Both c and cxx compiler support -rpath directly
7083c021 9732 hardcode_libdir_flag_spec='-rpath $libdir'
db137867 9733 fi
7083c021
AC
9734 archive_cmds_need_lc='no'
9735 hardcode_libdir_separator=:
db137867
AC
9736 ;;
9737
9738 solaris*)
7083c021 9739 no_undefined_flag=' -z defs'
db137867
AC
9740 if test "$GCC" = yes; then
9741 wlarc='${wl}'
7083c021
AC
9742 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9744 $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 9745 else
7083c021
AC
9746 case `$CC -V 2>&1` in
9747 *"Compilers 5.0"*)
9748 wlarc=''
9749 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9752 ;;
9753 *)
9754 wlarc='${wl}'
9755 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9757 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9758 ;;
9759 esac
db137867 9760 fi
7083c021
AC
9761 hardcode_libdir_flag_spec='-R$libdir'
9762 hardcode_shlibpath_var=no
db137867
AC
9763 case $host_os in
9764 solaris2.[0-5] | solaris2.[0-5].*) ;;
9765 *)
9766 # The compiler driver will combine and reorder linker options,
9767 # but understands `-z linker_flag'. GCC discards it without `$wl',
9768 # but is careful enough not to reorder.
7083c021 9769 # Supported since Solaris 2.6 (maybe 2.5.1?)
db137867 9770 if test "$GCC" = yes; then
7083c021 9771 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
db137867 9772 else
7083c021 9773 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
db137867
AC
9774 fi
9775 ;;
9776 esac
7083c021 9777 link_all_deplibs=yes
db137867
AC
9778 ;;
9779
9780 sunos4*)
9781 if test "x$host_vendor" = xsequent; then
9782 # Use $CC to link under sequent, because it throws in some extra .o
9783 # files that make .init and .fini sections work.
7083c021 9784 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 9785 else
7083c021 9786 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
db137867 9787 fi
7083c021
AC
9788 hardcode_libdir_flag_spec='-L$libdir'
9789 hardcode_direct=yes
9790 hardcode_minus_L=yes
9791 hardcode_shlibpath_var=no
db137867
AC
9792 ;;
9793
9794 sysv4)
9795 case $host_vendor in
9796 sni)
7083c021
AC
9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_direct=yes # is this really true???
db137867
AC
9799 ;;
9800 siemens)
9801 ## LD is ld it makes a PLAMLIB
9802 ## CC just makes a GrossModule.
7083c021
AC
9803 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9804 reload_cmds='$CC -r -o $output$reload_objs'
9805 hardcode_direct=no
db137867
AC
9806 ;;
9807 motorola)
7083c021
AC
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
db137867
AC
9810 ;;
9811 esac
9812 runpath_var='LD_RUN_PATH'
7083c021 9813 hardcode_shlibpath_var=no
db137867
AC
9814 ;;
9815
9816 sysv4.3*)
7083c021
AC
9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818 hardcode_shlibpath_var=no
9819 export_dynamic_flag_spec='-Bexport'
db137867
AC
9820 ;;
9821
9822 sysv4*MP*)
9823 if test -d /usr/nec; then
7083c021
AC
9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_shlibpath_var=no
db137867
AC
9826 runpath_var=LD_RUN_PATH
9827 hardcode_runpath_var=yes
7083c021 9828 ld_shlibs=yes
db137867
AC
9829 fi
9830 ;;
9831
9832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7083c021
AC
9833 no_undefined_flag='${wl}-z,text'
9834 archive_cmds_need_lc=no
9835 hardcode_shlibpath_var=no
db137867
AC
9836 runpath_var='LD_RUN_PATH'
9837
9838 if test "$GCC" = yes; then
7083c021
AC
9839 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 9841 else
7083c021
AC
9842 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9844 fi
9845 ;;
9846
9847 sysv5* | sco3.2v5* | sco5v6*)
9848 # Note: We can NOT use -z defs as we might desire, because we do not
9849 # link with -lc, and that would cause any symbols used from libc to
9850 # always be unresolved, which means just about no library would
9851 # ever link correctly. If we're not using GNU ld we use -z text
9852 # though, which does catch some bad symbols but isn't as heavy-handed
9853 # as -z defs.
7083c021
AC
9854 no_undefined_flag='${wl}-z,text'
9855 allow_undefined_flag='${wl}-z,nodefs'
9856 archive_cmds_need_lc=no
9857 hardcode_shlibpath_var=no
9858 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9859 hardcode_libdir_separator=':'
9860 link_all_deplibs=yes
9861 export_dynamic_flag_spec='${wl}-Bexport'
db137867
AC
9862 runpath_var='LD_RUN_PATH'
9863
9864 if test "$GCC" = yes; then
7083c021
AC
9865 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9866 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867 9867 else
7083c021
AC
9868 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9869 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
db137867
AC
9870 fi
9871 ;;
9872
9873 uts4*)
7083c021
AC
9874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875 hardcode_libdir_flag_spec='-L$libdir'
9876 hardcode_shlibpath_var=no
db137867
AC
9877 ;;
9878
9879 *)
7083c021 9880 ld_shlibs=no
db137867
AC
9881 ;;
9882 esac
7083c021
AC
9883
9884 if test x$host_vendor = xsni; then
9885 case $host in
9886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9887 export_dynamic_flag_spec='${wl}-Blargedynsym'
9888 ;;
9889 esac
9890 fi
db137867
AC
9891 fi
9892
7083c021
AC
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9894$as_echo "$ld_shlibs" >&6; }
9895test "$ld_shlibs" = no && can_build_shared=no
9896
9897with_gnu_ld=$with_gnu_ld
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
db137867
AC
9912
9913#
9914# Do we need to explicitly link libc?
9915#
7083c021 9916case "x$archive_cmds_need_lc" in
db137867
AC
9917x|xyes)
9918 # Assume -lc should be added
7083c021 9919 archive_cmds_need_lc=yes
db137867
AC
9920
9921 if test "$enable_shared" = yes && test "$GCC" = yes; then
7083c021 9922 case $archive_cmds in
db137867
AC
9923 *'~'*)
9924 # FIXME: we may have to deal with multi-command sequences.
9925 ;;
9926 '$CC '*)
9927 # Test whether the compiler implicitly links with -lc since on some
9928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9929 # to ld, don't add -lc before -lgcc.
7083c021 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
030272f3 9931$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7083c021 9932 $RM conftest*
db137867
AC
9933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9934
7083c021 9935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
db137867
AC
9936 (eval $ac_compile) 2>&5
9937 ac_status=$?
7083c021
AC
9938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9939 test $ac_status = 0; } 2>conftest.err; then
db137867
AC
9940 soname=conftest
9941 lib=conftest
9942 libobjs=conftest.$ac_objext
9943 deplibs=
7083c021
AC
9944 wl=$lt_prog_compiler_wl
9945 pic_flag=$lt_prog_compiler_pic
db137867
AC
9946 compiler_flags=-v
9947 linker_flags=-v
9948 verstring=
9949 output_objdir=.
9950 libname=conftest
7083c021
AC
9951 lt_save_allow_undefined_flag=$allow_undefined_flag
9952 allow_undefined_flag=
9953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9954 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
db137867 9955 ac_status=$?
7083c021
AC
9956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9957 test $ac_status = 0; }
db137867 9958 then
7083c021 9959 archive_cmds_need_lc=no
db137867 9960 else
7083c021 9961 archive_cmds_need_lc=yes
db137867 9962 fi
7083c021 9963 allow_undefined_flag=$lt_save_allow_undefined_flag
db137867
AC
9964 else
9965 cat conftest.err 1>&5
9966 fi
7083c021
AC
9967 $RM conftest*
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9969$as_echo "$archive_cmds_need_lc" >&6; }
db137867
AC
9970 ;;
9971 esac
9972 fi
9973 ;;
9974esac
9975
db137867 9976
db137867 9977
db137867 9978
db137867 9979
db137867 9980
db137867 9981
db137867 9982
db137867 9983
db137867 9984
db137867 9985
db137867 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
b676ea3b 10017
b676ea3b 10018
b676ea3b 10019
db137867 10020
db137867 10021
db137867 10022
db137867
AC
10023
10024
db137867 10025
db137867 10026
db137867 10027
db137867 10028
db137867 10029
db137867 10030
db137867 10031
db137867 10032
db137867 10033
db137867 10034
db137867 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
b676ea3b 10088
db137867 10089
db137867 10090
db137867 10091
db137867 10092
db137867 10093
db137867 10094
db137867 10095
db137867 10096
db137867 10097
db137867 10098
db137867 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
AC
10122
10123
7083c021
AC
10124
10125
10126
10127
10128
10129
10130
10131
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10133$as_echo_n "checking dynamic linker characteristics... " >&6; }
10134
10135if test "$GCC" = yes; then
10136 case $host_os in
10137 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10138 *) lt_awk_arg="/^libraries:/" ;;
10139 esac
10140 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10141 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10142 # if the path contains ";" then we assume it to be the separator
10143 # otherwise default to the standard path separator (i.e. ":") - it is
10144 # assumed that no part of a normal pathname contains ";" but that should
10145 # okay in the real world where ";" in dirpaths is itself problematic.
10146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10147 else
10148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10149 fi
10150 # Ok, now we have the path, separated by spaces, we can step through it
10151 # and add multilib dir if necessary.
10152 lt_tmp_lt_search_path_spec=
10153 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10154 for lt_sys_path in $lt_search_path_spec; do
10155 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10157 else
10158 test -d "$lt_sys_path" && \
10159 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10160 fi
10161 done
10162 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10163BEGIN {RS=" "; FS="/|\n";} {
10164 lt_foo="";
10165 lt_count=0;
10166 for (lt_i = NF; lt_i > 0; lt_i--) {
10167 if ($lt_i != "" && $lt_i != ".") {
10168 if ($lt_i == "..") {
10169 lt_count++;
10170 } else {
10171 if (lt_count == 0) {
10172 lt_foo="/" $lt_i lt_foo;
10173 } else {
10174 lt_count--;
10175 }
10176 }
10177 }
10178 }
10179 if (lt_foo != "") { lt_freq[lt_foo]++; }
10180 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10181}'`
10182 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10183else
10184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10185fi
10186library_names_spec=
10187libname_spec='lib$name'
10188soname_spec=
10189shrext_cmds=".so"
10190postinstall_cmds=
10191postuninstall_cmds=
10192finish_cmds=
10193finish_eval=
10194shlibpath_var=
10195shlibpath_overrides_runpath=unknown
10196version_type=none
10197dynamic_linker="$host_os ld.so"
10198sys_lib_dlsearch_path_spec="/lib /usr/lib"
10199need_lib_prefix=unknown
10200hardcode_into_libs=no
10201
10202# when you set need_version to no, make sure it does not cause -set_version
10203# flags to be left without arguments
10204need_version=unknown
10205
10206case $host_os in
10207aix3*)
10208 version_type=linux
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10210 shlibpath_var=LIBPATH
10211
10212 # AIX 3 has no versioning support, so we append a major version to the name.
10213 soname_spec='${libname}${release}${shared_ext}$major'
10214 ;;
10215
10216aix[4-9]*)
10217 version_type=linux
10218 need_lib_prefix=no
10219 need_version=no
10220 hardcode_into_libs=yes
10221 if test "$host_cpu" = ia64; then
10222 # AIX 5 supports IA64
10223 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10224 shlibpath_var=LD_LIBRARY_PATH
10225 else
10226 # With GCC up to 2.95.x, collect2 would create an import file
10227 # for dependence libraries. The import file would start with
10228 # the line `#! .'. This would cause the generated library to
10229 # depend on `.', always an invalid library. This was fixed in
10230 # development snapshots of GCC prior to 3.0.
10231 case $host_os in
10232 aix4 | aix4.[01] | aix4.[01].*)
10233 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10234 echo ' yes '
10235 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10236 :
10237 else
10238 can_build_shared=no
10239 fi
10240 ;;
10241 esac
10242 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10243 # soname into executable. Probably we can add versioning support to
10244 # collect2, so additional links can be useful in future.
10245 if test "$aix_use_runtimelinking" = yes; then
10246 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10247 # instead of lib<name>.a to let people know that these are not
10248 # typical AIX shared libraries.
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 else
10251 # We preserve .a as extension for shared libraries through AIX4.2
10252 # and later when we are not doing run time linking.
10253 library_names_spec='${libname}${release}.a $libname.a'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 fi
10256 shlibpath_var=LIBPATH
10257 fi
10258 ;;
10259
10260amigaos*)
10261 case $host_cpu in
10262 powerpc)
10263 # Since July 2007 AmigaOS4 officially supports .so libraries.
10264 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 ;;
10267 m68k)
10268 library_names_spec='$libname.ixlibrary $libname.a'
10269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10270 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'
10271 ;;
10272 esac
10273 ;;
10274
10275beos*)
10276 library_names_spec='${libname}${shared_ext}'
10277 dynamic_linker="$host_os ld.so"
10278 shlibpath_var=LIBRARY_PATH
10279 ;;
10280
10281bsdi[45]*)
10282 version_type=linux
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10289 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10290 # the default ld.so.conf also contains /usr/contrib/lib and
10291 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10292 # libtool to hard-code these into programs
10293 ;;
10294
10295cygwin* | mingw* | pw32* | cegcc*)
10296 version_type=windows
10297 shrext_cmds=".dll"
10298 need_version=no
10299 need_lib_prefix=no
10300
10301 case $GCC,$host_os in
10302 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10303 library_names_spec='$libname.dll.a'
10304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10305 postinstall_cmds='base_file=`basename \${file}`~
10306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10307 dldir=$destdir/`dirname \$dlpath`~
10308 test -d \$dldir || mkdir -p \$dldir~
10309 $install_prog $dir/$dlname \$dldir/$dlname~
10310 chmod a+x \$dldir/$dlname~
10311 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10312 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10313 fi'
10314 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10315 dlpath=$dir/\$dldll~
10316 $RM \$dlpath'
10317 shlibpath_overrides_runpath=yes
10318
10319 case $host_os in
10320 cygwin*)
10321 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10323 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10324 ;;
10325 mingw* | cegcc*)
10326 # MinGW DLLs use traditional 'lib' prefix
10327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10328 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10329 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10330 # It is most probably a Windows format PATH printed by
10331 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10332 # path with ; separators, and with drive letters. We can handle the
10333 # drive letters (cygwin fileutils understands them), so leave them,
10334 # especially as we might pass files found there to a mingw objdump,
10335 # which wouldn't understand a cygwinified path. Ahh.
10336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10337 else
10338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10339 fi
10340 ;;
10341 pw32*)
10342 # pw32 DLLs use 'pw' prefix rather than 'lib'
10343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10344 ;;
10345 esac
10346 ;;
10347
10348 *)
10349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10350 ;;
10351 esac
10352 dynamic_linker='Win32 ld.exe'
10353 # FIXME: first we should search . and the directory the executable is in
10354 shlibpath_var=PATH
10355 ;;
10356
10357darwin* | rhapsody*)
10358 dynamic_linker="$host_os dyld"
10359 version_type=darwin
10360 need_lib_prefix=no
10361 need_version=no
10362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10363 soname_spec='${libname}${release}${major}$shared_ext'
10364 shlibpath_overrides_runpath=yes
10365 shlibpath_var=DYLD_LIBRARY_PATH
10366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10367
10368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10370 ;;
10371
10372dgux*)
10373 version_type=linux
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 ;;
10380
10381freebsd1*)
10382 dynamic_linker=no
10383 ;;
10384
10385freebsd* | dragonfly*)
10386 # DragonFly does not have aout. When/if they implement a new
10387 # versioning mechanism, adjust this.
10388 if test -x /usr/bin/objformat; then
10389 objformat=`/usr/bin/objformat`
10390 else
10391 case $host_os in
10392 freebsd[123]*) objformat=aout ;;
10393 *) objformat=elf ;;
10394 esac
db137867 10395 fi
5a241f54 10396 version_type=freebsd-$objformat
7083c021
AC
10397 case $version_type in
10398 freebsd-elf*)
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10400 need_version=no
10401 need_lib_prefix=no
10402 ;;
10403 freebsd-*)
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10405 need_version=yes
10406 ;;
10407 esac
10408 shlibpath_var=LD_LIBRARY_PATH
10409 case $host_os in
10410 freebsd2*)
10411 shlibpath_overrides_runpath=yes
10412 ;;
10413 freebsd3.[01]* | freebsdelf3.[01]*)
10414 shlibpath_overrides_runpath=yes
10415 hardcode_into_libs=yes
10416 ;;
10417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10419 shlibpath_overrides_runpath=no
10420 hardcode_into_libs=yes
10421 ;;
10422 *) # from 4.6 on, and DragonFly
10423 shlibpath_overrides_runpath=yes
10424 hardcode_into_libs=yes
10425 ;;
10426 esac
10427 ;;
db137867 10428
7083c021
AC
10429gnu*)
10430 version_type=linux
10431 need_lib_prefix=no
10432 need_version=no
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 hardcode_into_libs=yes
10437 ;;
db137867 10438
7083c021
AC
10439hpux9* | hpux10* | hpux11*)
10440 # Give a soname corresponding to the major version so that dld.sl refuses to
10441 # link against other versions.
10442 version_type=sunos
10443 need_lib_prefix=no
10444 need_version=no
10445 case $host_cpu in
10446 ia64*)
10447 shrext_cmds='.so'
10448 hardcode_into_libs=yes
10449 dynamic_linker="$host_os dld.so"
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 soname_spec='${libname}${release}${shared_ext}$major'
10454 if test "X$HPUX_IA64_MODE" = X32; then
10455 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10456 else
10457 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10458 fi
10459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10460 ;;
10461 hppa*64*)
10462 shrext_cmds='.sl'
10463 hardcode_into_libs=yes
10464 dynamic_linker="$host_os dld.sl"
10465 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10469 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10471 ;;
10472 *)
10473 shrext_cmds='.sl'
10474 dynamic_linker="$host_os dld.sl"
10475 shlibpath_var=SHLIB_PATH
10476 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 ;;
10480 esac
10481 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10482 postinstall_cmds='chmod 555 $lib'
10483 ;;
db137867 10484
7083c021
AC
10485interix[3-9]*)
10486 version_type=linux
10487 need_lib_prefix=no
10488 need_version=no
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=no
10494 hardcode_into_libs=yes
10495 ;;
db137867 10496
7083c021
AC
10497irix5* | irix6* | nonstopux*)
10498 case $host_os in
10499 nonstopux*) version_type=nonstopux ;;
10500 *)
10501 if test "$lt_cv_prog_gnu_ld" = yes; then
10502 version_type=linux
db137867 10503 else
7083c021
AC
10504 version_type=irix
10505 fi ;;
10506 esac
10507 need_lib_prefix=no
10508 need_version=no
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10511 case $host_os in
10512 irix5* | nonstopux*)
10513 libsuff= shlibsuff=
10514 ;;
10515 *)
10516 case $LD in # libtool.m4 will add one of these switches to LD
10517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10518 libsuff= shlibsuff= libmagic=32-bit;;
10519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10520 libsuff=32 shlibsuff=N32 libmagic=N32;;
10521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10522 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10523 *) libsuff= shlibsuff= libmagic=never-match;;
10524 esac
10525 ;;
10526 esac
10527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10528 shlibpath_overrides_runpath=no
10529 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10530 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10531 hardcode_into_libs=yes
10532 ;;
db137867 10533
7083c021
AC
10534# No shared lib support for Linux oldld, aout, or coff.
10535linux*oldld* | linux*aout* | linux*coff*)
10536 dynamic_linker=no
10537 ;;
db137867 10538
7083c021
AC
10539# This must be Linux ELF.
10540linux* | k*bsd*-gnu)
10541 version_type=linux
10542 need_lib_prefix=no
10543 need_version=no
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath=no
10549 # Some binutils ld are patched to set DT_RUNPATH
10550 save_LDFLAGS=$LDFLAGS
10551 save_libdir=$libdir
10552 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10553 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555/* end confdefs.h. */
db137867 10556
7083c021
AC
10557int
10558main ()
10559{
db137867 10560
7083c021
AC
10561 ;
10562 return 0;
10563}
10564_ACEOF
10565if ac_fn_c_try_link "$LINENO"; then :
10566 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10567 shlibpath_overrides_runpath=yes
10568fi
10569fi
10570rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LDFLAGS=$save_LDFLAGS
10573 libdir=$save_libdir
db137867 10574
7083c021
AC
10575 # This implies no fast_install, which is unacceptable.
10576 # Some rework will be needed to allow for fast_install
10577 # before this can be enabled.
10578 hardcode_into_libs=yes
db137867 10579
5a241f54
AC
10580 # Add ABI-specific directories to the system library path.
10581 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10582
7083c021
AC
10583 # Append ld.so.conf contents to the search path
10584 if test -f /etc/ld.so.conf; then
10585 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 10586 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
db137867 10587 fi
db137867 10588
7083c021
AC
10589 # We used to test for /lib/ld.so.1 and disable shared libraries on
10590 # powerpc, because MkLinux only supported shared libraries with the
10591 # GNU dynamic linker. Since this was broken with cross compilers,
10592 # most powerpc-linux boxes support dynamic linking these days and
10593 # people can always --disable-shared, the test was removed, and we
10594 # assume the GNU/Linux dynamic linker is in use.
10595 dynamic_linker='GNU/Linux ld.so'
10596 ;;
10597
7083c021
AC
10598netbsd*)
10599 version_type=sunos
10600 need_lib_prefix=no
10601 need_version=no
10602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10605 dynamic_linker='NetBSD (a.out) ld.so'
10606 else
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 dynamic_linker='NetBSD ld.elf_so'
10610 fi
10611 shlibpath_var=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath=yes
10613 hardcode_into_libs=yes
10614 ;;
db137867 10615
7083c021
AC
10616newsos6)
10617 version_type=linux
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 shlibpath_var=LD_LIBRARY_PATH
10620 shlibpath_overrides_runpath=yes
10621 ;;
db137867 10622
7083c021
AC
10623*nto* | *qnx*)
10624 version_type=qnx
10625 need_lib_prefix=no
10626 need_version=no
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=no
10631 hardcode_into_libs=yes
10632 dynamic_linker='ldqnx.so'
10633 ;;
db137867 10634
7083c021
AC
10635openbsd*)
10636 version_type=sunos
10637 sys_lib_dlsearch_path_spec="/usr/lib"
10638 need_lib_prefix=no
10639 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10640 case $host_os in
10641 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10642 *) need_version=no ;;
10643 esac
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10648 case $host_os in
10649 openbsd2.[89] | openbsd2.[89].*)
10650 shlibpath_overrides_runpath=no
10651 ;;
10652 *)
10653 shlibpath_overrides_runpath=yes
10654 ;;
10655 esac
10656 else
10657 shlibpath_overrides_runpath=yes
10658 fi
10659 ;;
db137867 10660
7083c021
AC
10661os2*)
10662 libname_spec='$name'
10663 shrext_cmds=".dll"
10664 need_lib_prefix=no
10665 library_names_spec='$libname${shared_ext} $libname.a'
10666 dynamic_linker='OS/2 ld.exe'
10667 shlibpath_var=LIBPATH
10668 ;;
db137867 10669
7083c021
AC
10670osf3* | osf4* | osf5*)
10671 version_type=osf
10672 need_lib_prefix=no
10673 need_version=no
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 shlibpath_var=LD_LIBRARY_PATH
10677 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10678 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10679 ;;
db137867 10680
7083c021
AC
10681rdos*)
10682 dynamic_linker=no
10683 ;;
db137867 10684
7083c021
AC
10685solaris*)
10686 version_type=linux
10687 need_lib_prefix=no
10688 need_version=no
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 shlibpath_overrides_runpath=yes
10693 hardcode_into_libs=yes
10694 # ldd complains unless libraries are executable
10695 postinstall_cmds='chmod +x $lib'
10696 ;;
db137867 10697
7083c021
AC
10698sunos4*)
10699 version_type=sunos
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10701 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath=yes
10704 if test "$with_gnu_ld" = yes; then
10705 need_lib_prefix=no
10706 fi
10707 need_version=yes
10708 ;;
db137867 10709
7083c021
AC
10710sysv4 | sysv4.3*)
10711 version_type=linux
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 shlibpath_var=LD_LIBRARY_PATH
10715 case $host_vendor in
10716 sni)
10717 shlibpath_overrides_runpath=no
10718 need_lib_prefix=no
10719 runpath_var=LD_RUN_PATH
10720 ;;
10721 siemens)
10722 need_lib_prefix=no
10723 ;;
10724 motorola)
10725 need_lib_prefix=no
10726 need_version=no
10727 shlibpath_overrides_runpath=no
10728 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10729 ;;
10730 esac
10731 ;;
db137867 10732
7083c021
AC
10733sysv4*MP*)
10734 if test -d /usr/nec ;then
10735 version_type=linux
10736 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10737 soname_spec='$libname${shared_ext}.$major'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 fi
10740 ;;
db137867 10741
7083c021
AC
10742sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10743 version_type=freebsd-elf
10744 need_lib_prefix=no
10745 need_version=no
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 shlibpath_overrides_runpath=yes
10750 hardcode_into_libs=yes
10751 if test "$with_gnu_ld" = yes; then
10752 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10753 else
10754 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10755 case $host_os in
10756 sco3.2v5*)
10757 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10758 ;;
10759 esac
10760 fi
10761 sys_lib_dlsearch_path_spec='/usr/lib'
10762 ;;
db137867 10763
7083c021
AC
10764tpf*)
10765 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10766 version_type=linux
10767 need_lib_prefix=no
10768 need_version=no
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath=no
10772 hardcode_into_libs=yes
10773 ;;
db137867 10774
7083c021
AC
10775uts4*)
10776 version_type=linux
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778 soname_spec='${libname}${release}${shared_ext}$major'
10779 shlibpath_var=LD_LIBRARY_PATH
10780 ;;
db137867 10781
7083c021
AC
10782*)
10783 dynamic_linker=no
10784 ;;
10785esac
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10787$as_echo "$dynamic_linker" >&6; }
10788test "$dynamic_linker" = no && can_build_shared=no
db137867 10789
7083c021
AC
10790variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10791if test "$GCC" = yes; then
10792 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10793fi
db137867 10794
7083c021
AC
10795if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10796 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10797fi
10798if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10799 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10800fi
db137867 10801
db137867 10802
db137867 10803
db137867 10804
db137867 10805
db137867 10806
db137867 10807
db137867 10808
db137867 10809
db137867 10810
db137867 10811
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
b676ea3b 10846
db137867 10847
db137867 10848
db137867 10849
db137867 10850
db137867 10851
db137867 10852
db137867 10853
db137867 10854
db137867 10855
db137867 10856
db137867 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
AC
10880
10881
db137867
AC
10882
10883
db137867 10884
db137867 10885
db137867 10886
db137867 10887
7083c021
AC
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10889$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10890hardcode_action=
10891if test -n "$hardcode_libdir_flag_spec" ||
10892 test -n "$runpath_var" ||
10893 test "X$hardcode_automatic" = "Xyes" ; then
db137867 10894
7083c021
AC
10895 # We can hardcode non-existent directories.
10896 if test "$hardcode_direct" != no &&
10897 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10898 # have to relink, otherwise we might link with an installed library
10899 # when we should be linking with a yet-to-be-installed one
10900 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10901 test "$hardcode_minus_L" != no; then
10902 # Linking always hardcodes the temporary library directory.
10903 hardcode_action=relink
db137867 10904 else
7083c021
AC
10905 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10906 hardcode_action=immediate
db137867 10907 fi
7083c021
AC
10908else
10909 # We cannot hardcode anything, or else we can only hardcode existing
10910 # directories.
10911 hardcode_action=unsupported
10912fi
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10914$as_echo "$hardcode_action" >&6; }
10915
10916if test "$hardcode_action" = relink ||
10917 test "$inherit_rpath" = yes; then
10918 # Fast installation is not supported
10919 enable_fast_install=no
10920elif test "$shlibpath_overrides_runpath" = yes ||
10921 test "$enable_shared" = no; then
10922 # Fast installation is not necessary
10923 enable_fast_install=needless
db137867
AC
10924fi
10925
10926
10927
db137867 10928
db137867 10929
db137867 10930
7083c021
AC
10931 if test "x$enable_dlopen" != xyes; then
10932 enable_dlopen=unknown
10933 enable_dlopen_self=unknown
10934 enable_dlopen_self_static=unknown
10935else
10936 lt_cv_dlopen=no
10937 lt_cv_dlopen_libs=
db137867 10938
7083c021
AC
10939 case $host_os in
10940 beos*)
10941 lt_cv_dlopen="load_add_on"
10942 lt_cv_dlopen_libs=
10943 lt_cv_dlopen_self=yes
10944 ;;
db137867 10945
7083c021
AC
10946 mingw* | pw32* | cegcc*)
10947 lt_cv_dlopen="LoadLibrary"
10948 lt_cv_dlopen_libs=
10949 ;;
db137867 10950
7083c021
AC
10951 cygwin*)
10952 lt_cv_dlopen="dlopen"
10953 lt_cv_dlopen_libs=
10954 ;;
db137867 10955
7083c021
AC
10956 darwin*)
10957 # if libdl is installed we need to link against it
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10959$as_echo_n "checking for dlopen in -ldl... " >&6; }
10960if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10962else
10963 ac_check_lib_save_LIBS=$LIBS
10964LIBS="-ldl $LIBS"
10965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966/* end confdefs.h. */
db137867 10967
7083c021
AC
10968/* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10971#ifdef __cplusplus
10972extern "C"
10973#endif
10974char dlopen ();
10975int
10976main ()
10977{
10978return dlopen ();
10979 ;
10980 return 0;
10981}
10982_ACEOF
10983if ac_fn_c_try_link "$LINENO"; then :
10984 ac_cv_lib_dl_dlopen=yes
10985else
10986 ac_cv_lib_dl_dlopen=no
10987fi
10988rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990LIBS=$ac_check_lib_save_LIBS
10991fi
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10993$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10994if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10996else
db137867 10997
7083c021
AC
10998 lt_cv_dlopen="dyld"
10999 lt_cv_dlopen_libs=
11000 lt_cv_dlopen_self=yes
db137867 11001
7083c021 11002fi
db137867 11003
7083c021 11004 ;;
db137867 11005
7083c021
AC
11006 *)
11007 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11008if test "x$ac_cv_func_shl_load" = x""yes; then :
11009 lt_cv_dlopen="shl_load"
11010else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11012$as_echo_n "checking for shl_load in -ldld... " >&6; }
11013if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11014 $as_echo_n "(cached) " >&6
11015else
11016 ac_check_lib_save_LIBS=$LIBS
11017LIBS="-ldld $LIBS"
11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019/* end confdefs.h. */
db137867 11020
7083c021
AC
11021/* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11024#ifdef __cplusplus
11025extern "C"
11026#endif
11027char shl_load ();
11028int
11029main ()
11030{
11031return shl_load ();
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036if ac_fn_c_try_link "$LINENO"; then :
11037 ac_cv_lib_dld_shl_load=yes
11038else
11039 ac_cv_lib_dld_shl_load=no
11040fi
11041rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043LIBS=$ac_check_lib_save_LIBS
11044fi
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11046$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11047if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11048 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11049else
11050 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11051if test "x$ac_cv_func_dlopen" = x""yes; then :
11052 lt_cv_dlopen="dlopen"
11053else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11055$as_echo_n "checking for dlopen in -ldl... " >&6; }
11056if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
11058else
11059 ac_check_lib_save_LIBS=$LIBS
11060LIBS="-ldl $LIBS"
11061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062/* end confdefs.h. */
db137867 11063
7083c021
AC
11064/* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11067#ifdef __cplusplus
11068extern "C"
11069#endif
11070char dlopen ();
11071int
11072main ()
11073{
11074return dlopen ();
11075 ;
11076 return 0;
11077}
11078_ACEOF
11079if ac_fn_c_try_link "$LINENO"; then :
11080 ac_cv_lib_dl_dlopen=yes
11081else
11082 ac_cv_lib_dl_dlopen=no
11083fi
11084rm -f core conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086LIBS=$ac_check_lib_save_LIBS
11087fi
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11089$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11090if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11092else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11094$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11095if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11097else
11098 ac_check_lib_save_LIBS=$LIBS
11099LIBS="-lsvld $LIBS"
11100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101/* end confdefs.h. */
db137867 11102
7083c021
AC
11103/* Override any GCC internal prototype to avoid an error.
11104 Use char because int might match the return type of a GCC
11105 builtin and then its argument prototype would still apply. */
11106#ifdef __cplusplus
11107extern "C"
11108#endif
11109char dlopen ();
11110int
11111main ()
11112{
11113return dlopen ();
11114 ;
11115 return 0;
11116}
11117_ACEOF
11118if ac_fn_c_try_link "$LINENO"; then :
11119 ac_cv_lib_svld_dlopen=yes
11120else
11121 ac_cv_lib_svld_dlopen=no
11122fi
11123rm -f core conftest.err conftest.$ac_objext \
11124 conftest$ac_exeext conftest.$ac_ext
11125LIBS=$ac_check_lib_save_LIBS
11126fi
11127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11128$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11129if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11131else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11133$as_echo_n "checking for dld_link in -ldld... " >&6; }
11134if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11135 $as_echo_n "(cached) " >&6
11136else
11137 ac_check_lib_save_LIBS=$LIBS
11138LIBS="-ldld $LIBS"
11139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140/* end confdefs.h. */
db137867 11141
7083c021
AC
11142/* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11145#ifdef __cplusplus
11146extern "C"
11147#endif
11148char dld_link ();
11149int
11150main ()
11151{
11152return dld_link ();
11153 ;
11154 return 0;
11155}
11156_ACEOF
11157if ac_fn_c_try_link "$LINENO"; then :
11158 ac_cv_lib_dld_dld_link=yes
11159else
11160 ac_cv_lib_dld_dld_link=no
11161fi
11162rm -f core conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164LIBS=$ac_check_lib_save_LIBS
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11167$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11168if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11169 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11170fi
db137867
AC
11171
11172
7083c021 11173fi
db137867
AC
11174
11175
7083c021 11176fi
db137867
AC
11177
11178
7083c021 11179fi
db137867 11180
db137867 11181
7083c021 11182fi
db137867 11183
db137867 11184
7083c021 11185fi
db137867 11186
7083c021
AC
11187 ;;
11188 esac
db137867 11189
7083c021
AC
11190 if test "x$lt_cv_dlopen" != xno; then
11191 enable_dlopen=yes
11192 else
11193 enable_dlopen=no
11194 fi
db137867 11195
7083c021
AC
11196 case $lt_cv_dlopen in
11197 dlopen)
11198 save_CPPFLAGS="$CPPFLAGS"
11199 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
db137867 11200
7083c021
AC
11201 save_LDFLAGS="$LDFLAGS"
11202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
db137867 11203
7083c021
AC
11204 save_LIBS="$LIBS"
11205 LIBS="$lt_cv_dlopen_libs $LIBS"
db137867 11206
7083c021
AC
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11208$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11209if test "${lt_cv_dlopen_self+set}" = set; then :
030272f3 11210 $as_echo_n "(cached) " >&6
db137867 11211else
7083c021
AC
11212 if test "$cross_compiling" = yes; then :
11213 lt_cv_dlopen_self=cross
db137867 11214else
7083c021
AC
11215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11216 lt_status=$lt_dlunknown
11217 cat > conftest.$ac_ext <<_LT_EOF
5a241f54 11218#line 11218 "configure"
7083c021 11219#include "confdefs.h"
db137867 11220
7083c021
AC
11221#if HAVE_DLFCN_H
11222#include <dlfcn.h>
11223#endif
db137867 11224
7083c021 11225#include <stdio.h>
db137867 11226
7083c021
AC
11227#ifdef RTLD_GLOBAL
11228# define LT_DLGLOBAL RTLD_GLOBAL
11229#else
11230# ifdef DL_GLOBAL
11231# define LT_DLGLOBAL DL_GLOBAL
11232# else
11233# define LT_DLGLOBAL 0
11234# endif
11235#endif
db137867 11236
7083c021
AC
11237/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11238 find out it does not work in some platform. */
11239#ifndef LT_DLLAZY_OR_NOW
11240# ifdef RTLD_LAZY
11241# define LT_DLLAZY_OR_NOW RTLD_LAZY
11242# else
11243# ifdef DL_LAZY
11244# define LT_DLLAZY_OR_NOW DL_LAZY
11245# else
11246# ifdef RTLD_NOW
11247# define LT_DLLAZY_OR_NOW RTLD_NOW
11248# else
11249# ifdef DL_NOW
11250# define LT_DLLAZY_OR_NOW DL_NOW
11251# else
11252# define LT_DLLAZY_OR_NOW 0
11253# endif
11254# endif
11255# endif
11256# endif
11257#endif
db137867 11258
7083c021
AC
11259void fnord() { int i=42;}
11260int main ()
11261{
11262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11263 int status = $lt_dlunknown;
db137867 11264
7083c021
AC
11265 if (self)
11266 {
11267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11268 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11269 /* dlclose (self); */
11270 }
11271 else
11272 puts (dlerror ());
db137867 11273
7083c021
AC
11274 return status;
11275}
11276_LT_EOF
11277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11278 (eval $ac_link) 2>&5
11279 ac_status=$?
11280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11281 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11282 (./conftest; exit; ) >&5 2>/dev/null
11283 lt_status=$?
11284 case x$lt_status in
11285 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11286 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11287 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11288 esac
11289 else :
11290 # compilation failed
11291 lt_cv_dlopen_self=no
11292 fi
db137867 11293fi
7083c021 11294rm -fr conftest*
db137867 11295
db137867 11296
7083c021
AC
11297fi
11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11299$as_echo "$lt_cv_dlopen_self" >&6; }
db137867 11300
7083c021
AC
11301 if test "x$lt_cv_dlopen_self" = xyes; then
11302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11304$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11305if test "${lt_cv_dlopen_self_static+set}" = set; then :
030272f3 11306 $as_echo_n "(cached) " >&6
db137867 11307else
7083c021
AC
11308 if test "$cross_compiling" = yes; then :
11309 lt_cv_dlopen_self_static=cross
db137867 11310else
7083c021
AC
11311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11312 lt_status=$lt_dlunknown
11313 cat > conftest.$ac_ext <<_LT_EOF
5a241f54 11314#line 11314 "configure"
7083c021 11315#include "confdefs.h"
db137867 11316
7083c021
AC
11317#if HAVE_DLFCN_H
11318#include <dlfcn.h>
11319#endif
db137867 11320
7083c021 11321#include <stdio.h>
db137867 11322
7083c021
AC
11323#ifdef RTLD_GLOBAL
11324# define LT_DLGLOBAL RTLD_GLOBAL
11325#else
11326# ifdef DL_GLOBAL
11327# define LT_DLGLOBAL DL_GLOBAL
11328# else
11329# define LT_DLGLOBAL 0
11330# endif
11331#endif
db137867 11332
7083c021
AC
11333/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11334 find out it does not work in some platform. */
11335#ifndef LT_DLLAZY_OR_NOW
11336# ifdef RTLD_LAZY
11337# define LT_DLLAZY_OR_NOW RTLD_LAZY
11338# else
11339# ifdef DL_LAZY
11340# define LT_DLLAZY_OR_NOW DL_LAZY
11341# else
11342# ifdef RTLD_NOW
11343# define LT_DLLAZY_OR_NOW RTLD_NOW
11344# else
11345# ifdef DL_NOW
11346# define LT_DLLAZY_OR_NOW DL_NOW
11347# else
11348# define LT_DLLAZY_OR_NOW 0
11349# endif
11350# endif
11351# endif
11352# endif
11353#endif
db137867 11354
7083c021
AC
11355void fnord() { int i=42;}
11356int main ()
11357{
11358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11359 int status = $lt_dlunknown;
db137867 11360
7083c021
AC
11361 if (self)
11362 {
11363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11365 /* dlclose (self); */
11366 }
11367 else
11368 puts (dlerror ());
db137867 11369
7083c021
AC
11370 return status;
11371}
11372_LT_EOF
11373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11374 (eval $ac_link) 2>&5
11375 ac_status=$?
11376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11377 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11378 (./conftest; exit; ) >&5 2>/dev/null
11379 lt_status=$?
11380 case x$lt_status in
11381 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11382 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11383 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11384 esac
11385 else :
11386 # compilation failed
11387 lt_cv_dlopen_self_static=no
11388 fi
db137867 11389fi
7083c021 11390rm -fr conftest*
3202e249 11391
db137867 11392
db137867 11393fi
7083c021
AC
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11395$as_echo "$lt_cv_dlopen_self_static" >&6; }
11396 fi
db137867 11397
7083c021
AC
11398 CPPFLAGS="$save_CPPFLAGS"
11399 LDFLAGS="$save_LDFLAGS"
11400 LIBS="$save_LIBS"
11401 ;;
11402 esac
db137867 11403
7083c021
AC
11404 case $lt_cv_dlopen_self in
11405 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11406 *) enable_dlopen_self=unknown ;;
11407 esac
db137867 11408
7083c021
AC
11409 case $lt_cv_dlopen_self_static in
11410 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11411 *) enable_dlopen_self_static=unknown ;;
11412 esac
db137867
AC
11413fi
11414
db137867 11415
db137867 11416
030272f3
VY
11417
11418
030272f3 11419
db137867 11420
db137867 11421
db137867 11422
030272f3 11423
030272f3 11424
db137867 11425
030272f3 11426
db137867 11427
db137867 11428
db137867 11429
db137867 11430
7083c021
AC
11431striplib=
11432old_striplib=
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11434$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11435if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11436 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11437 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11439$as_echo "yes" >&6; }
030272f3 11440else
7083c021
AC
11441# FIXME - insert some real tests, host_os isn't really good enough
11442 case $host_os in
11443 darwin*)
11444 if test -n "$STRIP" ; then
11445 striplib="$STRIP -x"
11446 old_striplib="$STRIP -S"
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11448$as_echo "yes" >&6; }
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451$as_echo "no" >&6; }
11452 fi
11453 ;;
11454 *)
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
11457 ;;
11458 esac
030272f3
VY
11459fi
11460
db137867 11461
030272f3 11462
db137867 11463
db137867 11464
db137867 11465
db137867 11466
db137867 11467
db137867 11468
db137867 11469
db137867
AC
11470
11471
7083c021
AC
11472 # Report which library types will actually be built
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11474$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11476$as_echo "$can_build_shared" >&6; }
db137867 11477
7083c021
AC
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11479$as_echo_n "checking whether to build shared libraries... " >&6; }
11480 test "$can_build_shared" = "no" && enable_shared=no
db137867 11481
7083c021
AC
11482 # On AIX, shared libraries and static libraries use the same namespace, and
11483 # are all built from PIC.
11484 case $host_os in
11485 aix3*)
11486 test "$enable_shared" = yes && enable_static=no
11487 if test -n "$RANLIB"; then
11488 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11489 postinstall_cmds='$RANLIB $lib'
11490 fi
11491 ;;
db137867 11492
7083c021
AC
11493 aix[4-9]*)
11494 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11495 test "$enable_shared" = yes && enable_static=no
11496 fi
11497 ;;
11498 esac
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11500$as_echo "$enable_shared" >&6; }
11501
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11503$as_echo_n "checking whether to build static libraries... " >&6; }
11504 # Make sure either enable_shared or enable_static is yes.
11505 test "$enable_shared" = yes || enable_static=yes
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11507$as_echo "$enable_static" >&6; }
db137867 11508
db137867 11509
db137867 11510
db137867 11511
db137867 11512fi
7083c021
AC
11513ac_ext=c
11514ac_cpp='$CPP $CPPFLAGS'
11515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11517ac_compiler_gnu=$ac_cv_c_compiler_gnu
db137867 11518
7083c021 11519CC="$lt_save_CC"
db137867 11520
db137867 11521
db137867 11522
db137867 11523
db137867 11524
db137867 11525
db137867 11526
db137867 11527
db137867 11528
db137867
AC
11529
11530
db137867 11531
db137867 11532
7083c021 11533 ac_config_commands="$ac_config_commands libtool"
db137867
AC
11534
11535
11536
11537
7083c021 11538# Only expand once:
db137867
AC
11539
11540
11541
7083c021 11542LIBTOOL="$LIBTOOL --silent"
db137867 11543
7083c021
AC
11544case "$host_os" in
11545*cygwin*)
db137867 11546
7083c021
AC
11547cat >>confdefs.h <<_ACEOF
11548#define CYGWIN 1
11549_ACEOF
db137867
AC
11550
11551
7083c021
AC
11552cat >>confdefs.h <<_ACEOF
11553#define WINDOWS 1
11554_ACEOF
db137867 11555
7083c021
AC
11556 ;;
11557*mingw*)
db137867 11558
7083c021
AC
11559cat >>confdefs.h <<_ACEOF
11560#define MINGW 1
11561_ACEOF
db137867
AC
11562
11563
7083c021
AC
11564cat >>confdefs.h <<_ACEOF
11565#define WINDOWS 1
11566_ACEOF
db137867 11567
7083c021
AC
11568 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
11569if test "x$ac_cv_header_windows_h" = x""yes; then :
db137867 11570
7083c021
AC
11571else
11572 as_fn_error "** MinGW and no windows.h. I give up." "$LINENO" 5
11573fi
db137867
AC
11574
11575
7083c021
AC
11576 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11577if test "x$ac_cv_header_winsock2_h" = x""yes; then :
db137867 11578
7083c021
AC
11579else
11580 as_fn_error "** MinGW and no winsock2.h. I give up." "$LINENO" 5
11581fi
db137867 11582
3202e249 11583
7083c021
AC
11584
11585cat >>confdefs.h <<_ACEOF
11586#define HAVE_WINSOCK2_H 1
db137867 11587_ACEOF
7083c021
AC
11588
11589
11590cat >>confdefs.h <<_ACEOF
11591#define HAVE_WINSOCK_H 1
db137867 11592_ACEOF
7083c021
AC
11593
11594 LIBS="$LIBS -lws2_32 -liphlpapi"
11595 is_mingw="yes"
11596 ;;
11597*interix*)
11598 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
11599 ;;
11600*solaris*)
11601 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
11602 ;;
11603*)
11604 ;;
db137867 11605esac
db137867 11606
7083c021
AC
11607 if test "$is_mingw" = "yes"; then
11608 MINGW_TRUE=
11609 MINGW_FALSE='#'
11610else
11611 MINGW_TRUE='#'
11612 MINGW_FALSE=
db137867
AC
11613fi
11614
db137867 11615
db137867 11616
7083c021
AC
11617# backwards support for IRC_CFLAGS
11618CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
11619
11620if test "$libexecdir" = '${exec_prefix}/libexec' &&
11621 test "$localstatedir" = '${prefix}/var'; then
11622 libexecdir='${bindir}'
11623 localstatedir='${prefix}'
db137867
AC
11624fi
11625
7083c021
AC
11626ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11627if test "x$ac_cv_type_pid_t" = x""yes; then :
db137867 11628
db137867 11629else
7083c021
AC
11630
11631cat >>confdefs.h <<_ACEOF
11632#define pid_t int
11633_ACEOF
db137867
AC
11634
11635fi
7083c021
AC
11636
11637ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11638if test "x$ac_cv_type_size_t" = x""yes; then :
11639
11640else
11641
11642cat >>confdefs.h <<_ACEOF
11643#define size_t unsigned int
db137867
AC
11644_ACEOF
11645
11646fi
11647
7083c021
AC
11648ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11649if test "x$ac_cv_type_ssize_t" = x""yes; then :
db137867 11650
db137867 11651else
7083c021
AC
11652
11653cat >>confdefs.h <<_ACEOF
11654#define ssize_t int
db137867 11655_ACEOF
7083c021
AC
11656
11657fi
11658
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11660$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11661if test "${ac_cv_type_uid_t+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
11663else
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
11665/* end confdefs.h. */
11666#include <sys/types.h>
db137867 11667
db137867 11668_ACEOF
7083c021
AC
11669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11670 $EGREP "uid_t" >/dev/null 2>&1; then :
11671 ac_cv_type_uid_t=yes
db137867 11672else
7083c021 11673 ac_cv_type_uid_t=no
db137867 11674fi
7083c021 11675rm -f conftest*
db137867 11676
db137867 11677fi
7083c021
AC
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11679$as_echo "$ac_cv_type_uid_t" >&6; }
11680if test $ac_cv_type_uid_t = no; then
db137867 11681
7083c021
AC
11682$as_echo "#define uid_t int" >>confdefs.h
11683
11684
11685$as_echo "#define gid_t int" >>confdefs.h
db137867
AC
11686
11687fi
11688
11689
11690
7083c021
AC
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11692$as_echo_n "checking for ANSI C header files... " >&6; }
11693if test "${ac_cv_header_stdc+set}" = set; then :
030272f3 11694 $as_echo_n "(cached) " >&6
db137867 11695else
7083c021 11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 11697/* end confdefs.h. */
7083c021
AC
11698#include <stdlib.h>
11699#include <stdarg.h>
11700#include <string.h>
11701#include <float.h>
db137867 11702
db137867
AC
11703int
11704main ()
11705{
7083c021 11706
db137867
AC
11707 ;
11708 return 0;
11709}
11710_ACEOF
7083c021
AC
11711if ac_fn_c_try_compile "$LINENO"; then :
11712 ac_cv_header_stdc=yes
db137867 11713else
7083c021
AC
11714 ac_cv_header_stdc=no
11715fi
11716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db137867 11717
7083c021
AC
11718if test $ac_cv_header_stdc = yes; then
11719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721/* end confdefs.h. */
11722#include <string.h>
db137867 11723
7083c021
AC
11724_ACEOF
11725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11726 $EGREP "memchr" >/dev/null 2>&1; then :
db137867 11727
db137867 11728else
7083c021 11729 ac_cv_header_stdc=no
db137867 11730fi
7083c021 11731rm -f conftest*
db137867
AC
11732
11733fi
11734
7083c021
AC
11735if test $ac_cv_header_stdc = yes; then
11736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738/* end confdefs.h. */
11739#include <stdlib.h>
db137867 11740
db137867 11741_ACEOF
7083c021
AC
11742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11743 $EGREP "free" >/dev/null 2>&1; then :
db137867 11744
7083c021
AC
11745else
11746 ac_cv_header_stdc=no
11747fi
11748rm -f conftest*
db137867 11749
7083c021 11750fi
db137867 11751
7083c021
AC
11752if test $ac_cv_header_stdc = yes; then
11753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11754 if test "$cross_compiling" = yes; then :
11755 :
db137867 11756else
7083c021 11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 11758/* end confdefs.h. */
7083c021
AC
11759#include <ctype.h>
11760#include <stdlib.h>
11761#if ((' ' & 0x0FF) == 0x020)
11762# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11763# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11764#else
11765# define ISLOWER(c) \
11766 (('a' <= (c) && (c) <= 'i') \
11767 || ('j' <= (c) && (c) <= 'r') \
11768 || ('s' <= (c) && (c) <= 'z'))
11769# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
db137867
AC
11770#endif
11771
7083c021 11772#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
db137867
AC
11773int
11774main ()
11775{
7083c021
AC
11776 int i;
11777 for (i = 0; i < 256; i++)
11778 if (XOR (islower (i), ISLOWER (i))
11779 || toupper (i) != TOUPPER (i))
11780 return 2;
db137867
AC
11781 return 0;
11782}
11783_ACEOF
7083c021 11784if ac_fn_c_try_run "$LINENO"; then :
db137867 11785
7083c021
AC
11786else
11787 ac_cv_header_stdc=no
11788fi
11789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11790 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
11791fi
11792
db137867 11793fi
7083c021
AC
11794fi
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11796$as_echo "$ac_cv_header_stdc" >&6; }
11797if test $ac_cv_header_stdc = yes; then
11798
11799$as_echo "#define STDC_HEADERS 1" >>confdefs.h
db137867 11800
db137867 11801fi
db137867 11802
7083c021
AC
11803
11804for 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
11805do :
11806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11807ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11808eval as_val=\$$as_ac_Header
11809 if test "x$as_val" = x""yes; then :
11810 cat >>confdefs.h <<_ACEOF
11811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
db137867
AC
11812_ACEOF
11813
11814fi
11815
7083c021 11816done
db137867 11817
7083c021
AC
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11819$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11820if test "${ac_cv_header_time+set}" = set; then :
030272f3 11821 $as_echo_n "(cached) " >&6
db137867 11822else
7083c021 11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 11824/* end confdefs.h. */
db137867 11825#include <sys/types.h>
7083c021
AC
11826#include <sys/time.h>
11827#include <time.h>
db137867 11828
db137867
AC
11829int
11830main ()
11831{
7083c021
AC
11832if ((struct tm *) 0)
11833return 0;
030272f3 11834 ;
db137867 11835 return 0;
7083c021 11836}
030272f3 11837_ACEOF
7083c021
AC
11838if ac_fn_c_try_compile "$LINENO"; then :
11839 ac_cv_header_time=yes
11840else
11841 ac_cv_header_time=no
11842fi
11843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844fi
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11846$as_echo "$ac_cv_header_time" >&6; }
11847if test $ac_cv_header_time = yes; then
11848
11849$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11850
11851fi
11852
11853
11854
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11856$as_echo_n "checking for library containing socket... " >&6; }
11857if test "${ac_cv_search_socket+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859else
11860 ac_func_search_save_LIBS=$LIBS
11861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 11862/* end confdefs.h. */
030272f3 11863
7083c021
AC
11864/* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867#ifdef __cplusplus
11868extern "C"
11869#endif
11870char socket ();
030272f3
VY
11871int
11872main ()
11873{
7083c021 11874return socket ();
db137867
AC
11875 ;
11876 return 0;
11877}
11878_ACEOF
7083c021
AC
11879for ac_lib in '' socket; do
11880 if test -z "$ac_lib"; then
11881 ac_res="none required"
11882 else
11883 ac_res=-l$ac_lib
11884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11885 fi
11886 if ac_fn_c_try_link "$LINENO"; then :
11887 ac_cv_search_socket=$ac_res
11888fi
11889rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext
11891 if test "${ac_cv_search_socket+set}" = set; then :
11892 break
11893fi
11894done
11895if test "${ac_cv_search_socket+set}" = set; then :
11896
db137867 11897else
7083c021
AC
11898 ac_cv_search_socket=no
11899fi
11900rm conftest.$ac_ext
11901LIBS=$ac_func_search_save_LIBS
11902fi
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11904$as_echo "$ac_cv_search_socket" >&6; }
11905ac_res=$ac_cv_search_socket
11906if test "$ac_res" != no; then :
11907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
db137867 11908
db137867
AC
11909fi
11910
030272f3
VY
11911
11912
7083c021
AC
11913ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11914#ifdef HAVE_SYS_TYPES_H
11915#include <sys/types.h>
11916#endif
11917#ifdef HAVE_SYS_SOCKET_H
11918#include <sys/socket.h>
11919#endif
11920#ifdef HAVE_WINSOCK2_H
11921#include <winsock2.h>
11922#endif
11923
11924"
11925if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
11926
11927$as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
030272f3 11928
030272f3 11929fi
7083c021
AC
11930
11931
11932ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11933#include <sys/socket.h>
11934"
11935if test "x$ac_cv_type_socklen_t" = x""yes; then :
030272f3 11936 rb_cv_socklen_t=socklen_t
db137867
AC
11937else
11938
7083c021 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
030272f3 11940$as_echo_n "checking for socklen_t equivalent... " >&6; }
7083c021 11941 if test "${rb_cv_socklen_t+set}" = set; then :
030272f3 11942 $as_echo_n "(cached) " >&6
a9fb3ed0
VY
11943else
11944
11945 # Systems have either "struct sockaddr *" or
11946 # "void *" as the second argument to getpeername
030272f3 11947 rb_cv_socklen_t=
a9fb3ed0
VY
11948 for arg2 in "struct sockaddr" void; do
11949 for t in int size_t unsigned long "unsigned long"; do
7083c021 11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9fb3ed0
VY
11951/* end confdefs.h. */
11952
3202e249 11953#ifdef HAVE_SYS_TYPES_H
a9fb3ed0 11954#include <sys/types.h>
3202e249
VY
11955#endif
11956#ifdef HAVE_SYS_SOCKET_H
a9fb3ed0 11957#include <sys/socket.h>
3202e249
VY
11958#endif
11959#ifdef HAVE_WINSOCK2_H
11960#include <winsock2.h>
11961#endif
a9fb3ed0
VY
11962int getpeername (int, $arg2 *, $t *);
11963
11964int
11965main ()
11966{
11967
11968$t len;
11969getpeername(0,0,&len);
11970
11971 ;
11972 return 0;
11973}
db137867 11974_ACEOF
7083c021 11975if ac_fn_c_try_compile "$LINENO"; then :
a9fb3ed0 11976
030272f3 11977 rb_cv_socklen_t="$t"
a9fb3ed0
VY
11978 break
11979
a9fb3ed0 11980fi
a9fb3ed0
VY
11981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 done
11983 done
11984
030272f3 11985 if test "x$rb_cv_socklen_t" = x; then
7083c021 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
030272f3
VY
11987$as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
11988 rb_cv_socklen_t=int
a9fb3ed0
VY
11989 fi
11990
11991fi
11992
7083c021
AC
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
11994$as_echo "$rb_cv_socklen_t" >&6; }
11995fi
11996
11997
11998rb_socklen_t=$rb_cv_socklen_t
11999
12000
12001
12002
12003
12004# Check whether --enable-ipv6 was given.
12005if test "${enable_ipv6+set}" = set; then :
12006 enableval=$enable_ipv6; ipv6=$enableval
12007else
12008 ipv6=yes
12009fi
12010
12011
12012if test x$ipv6 != xyes; then
12013 have_v6="no"
12014else
12015
12016have_v6=yes
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
12019$as_echo_n "checking for INET6 protocol support... " >&6; }
12020if test "${rb_cv_proto_inet6+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12022else
12023
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025/* end confdefs.h. */
12026
12027#include <sys/types.h>
12028#include <sys/socket.h>
12029
12030#ifndef PF_INET6
12031#error Missing PF_INET6
12032#endif
12033#ifndef AF_INET6
12034#error Mlssing AF_INET6
12035#endif
12036
12037_ACEOF
12038if ac_fn_c_try_cpp "$LINENO"; then :
12039
12040 rb_cv_proto_inet6=yes
12041
12042else
12043
12044 rb_cv_proto_inet6=no
12045
12046fi
12047rm -f conftest.err conftest.$ac_ext
12048
12049fi
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
12051$as_echo "$rb_cv_proto_inet6" >&6; }
12052
12053 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
12054
12055 else :
12056
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
12058$as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
12059 have_v6=no
12060
12061 fi
12062
12063
12064 if test "X$have_v6" = "Xyes"; then
12065
12066 rb_have_sockaddr_in6=
12067 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
12068#include <sys/types.h>
12069#include <sys/socket.h>
12070#include <netinet/in.h>
12071
12072"
12073if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12074
12075cat >>confdefs.h <<_ACEOF
12076#define HAVE_STRUCT_SOCKADDR_IN6 1
12077_ACEOF
12078
12079
12080 rb_have_sockaddr_in6=yes
12081
12082else
12083
12084 rb_have_sockaddr_in6=no
12085
12086fi
12087
12088
12089 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
12090
12091 else :
12092
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
12094$as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
12095 have_v6=no
12096
12097 fi
12098
12099 fi
12100
12101fi
12102
12103ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12104 #include <sys/types.h>
12105 #include <sys/socket.h>
12106
12107"
12108if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12109
12110cat >>confdefs.h <<_ACEOF
12111#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12112_ACEOF
12113
12114
12115 rb_have_sockaddr_storage=yes
12116
12117fi
12118
12119
12120
12121save_LIBS=$LIBS
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12123$as_echo_n "checking for library containing crypt... " >&6; }
12124if test "${ac_cv_search_crypt+set}" = set; then :
12125 $as_echo_n "(cached) " >&6
12126else
12127 ac_func_search_save_LIBS=$LIBS
12128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h. */
12130
12131/* Override any GCC internal prototype to avoid an error.
12132 Use char because int might match the return type of a GCC
12133 builtin and then its argument prototype would still apply. */
12134#ifdef __cplusplus
12135extern "C"
12136#endif
12137char crypt ();
12138int
12139main ()
12140{
12141return crypt ();
12142 ;
12143 return 0;
12144}
12145_ACEOF
12146for ac_lib in '' crypt descrypt; do
12147 if test -z "$ac_lib"; then
12148 ac_res="none required"
12149 else
12150 ac_res=-l$ac_lib
12151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12152 fi
12153 if ac_fn_c_try_link "$LINENO"; then :
12154 ac_cv_search_crypt=$ac_res
12155fi
12156rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext
12158 if test "${ac_cv_search_crypt+set}" = set; then :
12159 break
12160fi
12161done
12162if test "${ac_cv_search_crypt+set}" = set; then :
12163
12164else
12165 ac_cv_search_crypt=no
12166fi
12167rm conftest.$ac_ext
12168LIBS=$ac_func_search_save_LIBS
12169fi
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12171$as_echo "$ac_cv_search_crypt" >&6; }
12172ac_res=$ac_cv_search_crypt
12173if test "$ac_res" != no; then :
12174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12175
db137867
AC
12176fi
12177
7083c021 12178LIBS=$save_LIBS
db137867 12179
7083c021 12180CRYPT_LIB=$ac_cv_search_crypt
a9fb3ed0 12181
7083c021
AC
12182if test "$CRYPT_LIB" = "none required"; then
12183 unset CRYPT_LIB
12184elif test "$CRYPT_LIB" = no; then
12185 need_crypt=yes;
a9fb3ed0 12186
7083c021 12187$as_echo "#define NEED_CRYPT 1" >>confdefs.h
a9fb3ed0 12188
7083c021
AC
12189 unset CRYPT_LIB
12190fi
a9fb3ed0 12191
7083c021
AC
12192 if test x"$need_crypt" = "xyes"; then
12193 NEED_CRYPT_TRUE=
12194 NEED_CRYPT_FALSE='#'
db137867 12195else
7083c021
AC
12196 NEED_CRYPT_TRUE='#'
12197 NEED_CRYPT_FALSE=
db137867
AC
12198fi
12199
12200
db137867 12201
db137867 12202
db137867 12203
7083c021
AC
12204ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12205if test "x$ac_cv_header_stdarg_h" = x""yes; then :
db137867 12206
7083c021
AC
12207else
12208 as_fn_error "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
12209fi
db137867 12210
db137867 12211
db137867 12212
7083c021
AC
12213ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
12214#include <sys/socket.h>
12215"
12216if test "x$ac_cv_type_sa_family_t" = x""yes; then :
db137867
AC
12217
12218else
db137867 12219
7083c021 12220$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
db137867
AC
12221
12222fi
db137867 12223
db137867 12224
db137867 12225
7083c021
AC
12226for 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
12227do :
12228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12229ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12230eval as_val=\$$as_ac_var
12231 if test "x$as_val" = x""yes; then :
12232 cat >>confdefs.h <<_ACEOF
12233#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12234_ACEOF
db137867 12235
7083c021
AC
12236fi
12237done
db137867 12238
db137867 12239
7083c021
AC
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12241$as_echo_n "checking for library containing nanosleep... " >&6; }
12242if test "${ac_cv_search_nanosleep+set}" = set; then :
030272f3 12243 $as_echo_n "(cached) " >&6
db137867 12244else
7083c021
AC
12245 ac_func_search_save_LIBS=$LIBS
12246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867
AC
12247/* end confdefs.h. */
12248
7083c021
AC
12249/* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12252#ifdef __cplusplus
12253extern "C"
12254#endif
12255char nanosleep ();
db137867
AC
12256int
12257main ()
12258{
7083c021 12259return nanosleep ();
030272f3 12260 ;
db137867 12261 return 0;
030272f3
VY
12262}
12263_ACEOF
7083c021
AC
12264for ac_lib in '' rt posix4; do
12265 if test -z "$ac_lib"; then
12266 ac_res="none required"
12267 else
12268 ac_res=-l$ac_lib
12269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12270 fi
12271 if ac_fn_c_try_link "$LINENO"; then :
12272 ac_cv_search_nanosleep=$ac_res
12273fi
12274rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext
12276 if test "${ac_cv_search_nanosleep+set}" = set; then :
12277 break
12278fi
12279done
12280if test "${ac_cv_search_nanosleep+set}" = set; then :
030272f3 12281
7083c021
AC
12282else
12283 ac_cv_search_nanosleep=no
12284fi
12285rm conftest.$ac_ext
12286LIBS=$ac_func_search_save_LIBS
12287fi
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12289$as_echo "$ac_cv_search_nanosleep" >&6; }
12290ac_res=$ac_cv_search_nanosleep
12291if test "$ac_res" != no; then :
12292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
030272f3 12293
7083c021
AC
12294$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
12295
12296fi
12297
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
12299$as_echo_n "checking for library containing timer_create... " >&6; }
12300if test "${ac_cv_search_timer_create+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12302else
12303 ac_func_search_save_LIBS=$LIBS
12304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h. */
030272f3 12306
7083c021
AC
12307/* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
12310#ifdef __cplusplus
12311extern "C"
12312#endif
12313char timer_create ();
030272f3
VY
12314int
12315main ()
12316{
7083c021 12317return timer_create ();
db137867
AC
12318 ;
12319 return 0;
12320}
12321_ACEOF
7083c021
AC
12322for ac_lib in '' rt; do
12323 if test -z "$ac_lib"; then
12324 ac_res="none required"
12325 else
12326 ac_res=-l$ac_lib
12327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12328 fi
12329 if ac_fn_c_try_link "$LINENO"; then :
12330 ac_cv_search_timer_create=$ac_res
12331fi
12332rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext
12334 if test "${ac_cv_search_timer_create+set}" = set; then :
12335 break
030272f3 12336fi
7083c021
AC
12337done
12338if test "${ac_cv_search_timer_create+set}" = set; then :
030272f3 12339
db137867 12340else
7083c021 12341 ac_cv_search_timer_create=no
db137867 12342fi
7083c021
AC
12343rm conftest.$ac_ext
12344LIBS=$ac_func_search_save_LIBS
db137867 12345fi
7083c021
AC
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
12347$as_echo "$ac_cv_search_timer_create" >&6; }
12348ac_res=$ac_cv_search_timer_create
12349if test "$ac_res" != no; then :
12350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
db137867 12351
7083c021 12352$as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
db137867 12353
7083c021 12354fi
db137867 12355
7083c021
AC
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
12357$as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
12358if test "${rb__cv_timer_create_works+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360else
12361 if test "$cross_compiling" = yes; then :
12362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12364as_fn_error "cannot run test program while cross compiling
12365See \`config.log' for more details." "$LINENO" 5; }
db137867 12366else
7083c021
AC
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368/* end confdefs.h. */
db137867 12369
7083c021
AC
12370#ifdef HAVE_TIME_H
12371#include <time.h>
12372#endif
12373#ifdef HAVE_SIGNAL_H
12374#include <signal.h>
12375#endif
12376#ifdef HAVE_UNISTD_H
12377#include <unistd.h>
12378#endif
12379int main(int argc, char *argv[])
12380{
12381#if HAVE_TIMER_CREATE
12382 struct sigevent ev;
12383 timer_t timer;
12384 ev.sigev_notify = SIGEV_SIGNAL;
12385 ev.sigev_signo = SIGVTALRM;
12386 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
12387 return 1;
12388 }
12389#else
12390 return 1;
12391#endif
12392 return 0;
12393}
db137867 12394
7083c021
AC
12395_ACEOF
12396if ac_fn_c_try_run "$LINENO"; then :
12397 rb__cv_timer_create_works=yes
12398else
12399 rb__cv_timer_create_works=no
12400fi
12401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12402 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
12403fi
12404
12405
7083c021
AC
12406fi
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
12408$as_echo "$rb__cv_timer_create_works" >&6; }
12409case $rb__cv_timer_create_works in
12410 yes)
12411$as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
12412;;
12413esac
db137867 12414
7083c021
AC
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
12416$as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
12417if test "${rb__cv_timerfd_create_works+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419else
12420 if test "$cross_compiling" = yes; then :
12421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12423as_fn_error "cannot run test program while cross compiling
12424See \`config.log' for more details." "$LINENO" 5; }
12425else
12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427/* end confdefs.h. */
db137867 12428
7083c021
AC
12429#ifdef HAVE_TIME_H
12430#include <time.h>
12431#endif
12432#ifdef HAVE_SIGNAL_H
12433#include <signal.h>
12434#endif
12435#ifdef HAVE_UNISTD_H
12436#include <unistd.h>
12437#endif
12438#ifdef HAVE_SYS_TIMERFD_H
12439#include <sys/timerfd.h>
12440#endif
12441int main(int argc, char *argv[])
12442{
12443#if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
12444 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
12445 return 1;
12446 }
12447#else
12448 return 1;
12449#endif
12450 return 0;
12451}
db137867 12452
7083c021
AC
12453_ACEOF
12454if ac_fn_c_try_run "$LINENO"; then :
12455 rb__cv_timerfd_create_works=yes
12456else
12457 rb__cv_timerfd_create_works=no
12458fi
12459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12460 conftest.$ac_objext conftest.beam conftest.$ac_ext
12461fi
db137867 12462
db137867
AC
12463
12464fi
7083c021
AC
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
12466$as_echo "$rb__cv_timerfd_create_works" >&6; }
12467case $rb__cv_timerfd_create_works in
12468 yes)
12469$as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
12470;;
12471esac
db137867 12472
7083c021
AC
12473
12474# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12475# for constant arguments. Useless!
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12477$as_echo_n "checking for working alloca.h... " >&6; }
12478if test "${ac_cv_working_alloca_h+set}" = set; then :
030272f3 12479 $as_echo_n "(cached) " >&6
db137867 12480else
7083c021 12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
030272f3 12482/* end confdefs.h. */
7083c021 12483#include <alloca.h>
030272f3
VY
12484int
12485main ()
12486{
7083c021
AC
12487char *p = (char *) alloca (2 * sizeof (int));
12488 if (p) return 0;
db137867
AC
12489 ;
12490 return 0;
12491}
12492_ACEOF
7083c021
AC
12493if ac_fn_c_try_link "$LINENO"; then :
12494 ac_cv_working_alloca_h=yes
030272f3 12495else
7083c021 12496 ac_cv_working_alloca_h=no
db137867 12497fi
7083c021
AC
12498rm -f core conftest.err conftest.$ac_objext \
12499 conftest$ac_exeext conftest.$ac_ext
030272f3 12500fi
7083c021
AC
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12502$as_echo "$ac_cv_working_alloca_h" >&6; }
12503if test $ac_cv_working_alloca_h = yes; then
db137867 12504
7083c021 12505$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
db137867
AC
12506
12507fi
12508
7083c021
AC
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12510$as_echo_n "checking for alloca... " >&6; }
12511if test "${ac_cv_func_alloca_works+set}" = set; then :
030272f3 12512 $as_echo_n "(cached) " >&6
db137867 12513else
7083c021 12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12515/* end confdefs.h. */
7083c021
AC
12516#ifdef __GNUC__
12517# define alloca __builtin_alloca
12518#else
12519# ifdef _MSC_VER
12520# include <malloc.h>
12521# define alloca _alloca
12522# else
12523# ifdef HAVE_ALLOCA_H
12524# include <alloca.h>
12525# else
12526# ifdef _AIX
12527 #pragma alloca
12528# else
12529# ifndef alloca /* predefined by HP cc +Olibcalls */
12530char *alloca ();
12531# endif
12532# endif
12533# endif
12534# endif
db137867 12535#endif
7083c021 12536
db137867
AC
12537int
12538main ()
12539{
7083c021
AC
12540char *p = (char *) alloca (1);
12541 if (p) return 0;
db137867
AC
12542 ;
12543 return 0;
12544}
12545_ACEOF
7083c021
AC
12546if ac_fn_c_try_link "$LINENO"; then :
12547 ac_cv_func_alloca_works=yes
db137867 12548else
7083c021 12549 ac_cv_func_alloca_works=no
db137867 12550fi
7083c021
AC
12551rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
db137867 12553fi
7083c021
AC
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12555$as_echo "$ac_cv_func_alloca_works" >&6; }
db137867 12556
7083c021 12557if test $ac_cv_func_alloca_works = yes; then
db137867 12558
7083c021 12559$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
db137867 12560
db137867 12561else
7083c021
AC
12562 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12563# that cause trouble. Some versions do not even contain alloca or
12564# contain a buggy version. If you still want to use their alloca,
12565# use ar to extract alloca.o from them instead of compiling alloca.c.
db137867 12566
7083c021 12567ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
db137867 12568
7083c021 12569$as_echo "#define C_ALLOCA 1" >>confdefs.h
db137867
AC
12570
12571
7083c021
AC
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12573$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12574if test "${ac_cv_os_cray+set}" = set; then :
030272f3 12575 $as_echo_n "(cached) " >&6
db137867 12576else
7083c021 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12578/* end confdefs.h. */
7083c021
AC
12579#if defined CRAY && ! defined CRAY2
12580webecray
12581#else
12582wenotbecray
12583#endif
db137867 12584
db137867 12585_ACEOF
7083c021
AC
12586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12587 $EGREP "webecray" >/dev/null 2>&1; then :
12588 ac_cv_os_cray=yes
db137867 12589else
7083c021 12590 ac_cv_os_cray=no
db137867 12591fi
7083c021 12592rm -f conftest*
db137867 12593
db137867 12594fi
7083c021
AC
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12596$as_echo "$ac_cv_os_cray" >&6; }
12597if test $ac_cv_os_cray = yes; then
12598 for ac_func in _getb67 GETB67 getb67; do
12599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12600ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12601eval as_val=\$$as_ac_var
12602 if test "x$as_val" = x""yes; then :
db137867 12603
7083c021
AC
12604cat >>confdefs.h <<_ACEOF
12605#define CRAY_STACKSEG_END $ac_func
12606_ACEOF
db137867 12607
7083c021
AC
12608 break
12609fi
db137867 12610
7083c021
AC
12611 done
12612fi
db137867 12613
7083c021
AC
12614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12615$as_echo_n "checking stack direction for C alloca... " >&6; }
12616if test "${ac_cv_c_stack_direction+set}" = set; then :
030272f3 12617 $as_echo_n "(cached) " >&6
db137867 12618else
7083c021
AC
12619 if test "$cross_compiling" = yes; then :
12620 ac_cv_c_stack_direction=0
12621else
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12623/* end confdefs.h. */
7083c021 12624$ac_includes_default
db137867 12625int
7083c021 12626find_stack_direction ()
db137867 12627{
7083c021
AC
12628 static char *addr = 0;
12629 auto char dummy;
12630 if (addr == 0)
12631 {
12632 addr = &dummy;
12633 return find_stack_direction ();
12634 }
12635 else
12636 return (&dummy > addr) ? 1 : -1;
030272f3 12637}
030272f3
VY
12638
12639int
12640main ()
12641{
7083c021 12642 return find_stack_direction () < 0;
db137867
AC
12643}
12644_ACEOF
7083c021
AC
12645if ac_fn_c_try_run "$LINENO"; then :
12646 ac_cv_c_stack_direction=1
030272f3 12647else
7083c021 12648 ac_cv_c_stack_direction=-1
030272f3 12649fi
7083c021
AC
12650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12651 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
12652fi
12653
db137867 12654fi
7083c021
AC
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12656$as_echo "$ac_cv_c_stack_direction" >&6; }
12657cat >>confdefs.h <<_ACEOF
12658#define STACK_DIRECTION $ac_cv_c_stack_direction
db137867
AC
12659_ACEOF
12660
db137867 12661
7083c021 12662fi
db137867 12663
7083c021
AC
12664for ac_header in vfork.h
12665do :
12666 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12667if test "x$ac_cv_header_vfork_h" = x""yes; then :
12668 cat >>confdefs.h <<_ACEOF
12669#define HAVE_VFORK_H 1
12670_ACEOF
db137867 12671
7083c021 12672fi
db137867 12673
7083c021 12674done
a9fb3ed0 12675
7083c021
AC
12676for ac_func in fork vfork
12677do :
12678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12679ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12680eval as_val=\$$as_ac_var
12681 if test "x$as_val" = x""yes; then :
12682 cat >>confdefs.h <<_ACEOF
12683#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12684_ACEOF
a9fb3ed0 12685
7083c021
AC
12686fi
12687done
3202e249 12688
7083c021
AC
12689if test "x$ac_cv_func_fork" = xyes; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12691$as_echo_n "checking for working fork... " >&6; }
12692if test "${ac_cv_func_fork_works+set}" = set; then :
030272f3 12693 $as_echo_n "(cached) " >&6
db137867 12694else
7083c021
AC
12695 if test "$cross_compiling" = yes; then :
12696 ac_cv_func_fork_works=cross
12697else
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12699/* end confdefs.h. */
7083c021 12700$ac_includes_default
db137867
AC
12701int
12702main ()
12703{
7083c021
AC
12704
12705 /* By Ruediger Kuhlmann. */
12706 return fork () < 0;
12707
db137867
AC
12708 ;
12709 return 0;
12710}
12711_ACEOF
7083c021
AC
12712if ac_fn_c_try_run "$LINENO"; then :
12713 ac_cv_func_fork_works=yes
db137867 12714else
7083c021 12715 ac_cv_func_fork_works=no
db137867 12716fi
7083c021
AC
12717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12718 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867 12719fi
db137867
AC
12720
12721fi
7083c021
AC
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12723$as_echo "$ac_cv_func_fork_works" >&6; }
db137867 12724
7083c021
AC
12725else
12726 ac_cv_func_fork_works=$ac_cv_func_fork
12727fi
12728if test "x$ac_cv_func_fork_works" = xcross; then
12729 case $host in
12730 *-*-amigaos* | *-*-msdosdjgpp*)
12731 # Override, as these systems have only a dummy fork() stub
12732 ac_cv_func_fork_works=no
12733 ;;
12734 *)
12735 ac_cv_func_fork_works=yes
12736 ;;
12737 esac
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12739$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12740fi
12741ac_cv_func_vfork_works=$ac_cv_func_vfork
12742if test "x$ac_cv_func_vfork" = xyes; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12744$as_echo_n "checking for working vfork... " >&6; }
12745if test "${ac_cv_func_vfork_works+set}" = set; then :
030272f3 12746 $as_echo_n "(cached) " >&6
db137867 12747else
7083c021
AC
12748 if test "$cross_compiling" = yes; then :
12749 ac_cv_func_vfork_works=cross
12750else
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12752/* end confdefs.h. */
7083c021
AC
12753/* Thanks to Paul Eggert for this test. */
12754$ac_includes_default
12755#include <sys/wait.h>
12756#ifdef HAVE_VFORK_H
12757# include <vfork.h>
12758#endif
12759/* On some sparc systems, changes by the child to local and incoming
12760 argument registers are propagated back to the parent. The compiler
12761 is told about this with #include <vfork.h>, but some compilers
12762 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12763 static variable whose address is put into a register that is
12764 clobbered by the vfork. */
12765static void
db137867 12766#ifdef __cplusplus
7083c021
AC
12767sparc_address_test (int arg)
12768# else
12769sparc_address_test (arg) int arg;
db137867 12770#endif
7083c021
AC
12771{
12772 static pid_t child;
12773 if (!child) {
12774 child = vfork ();
12775 if (child < 0) {
12776 perror ("vfork");
12777 _exit(2);
12778 }
12779 if (!child) {
12780 arg = getpid();
12781 write(-1, "", 0);
12782 _exit (arg);
12783 }
12784 }
12785}
12786
db137867
AC
12787int
12788main ()
12789{
7083c021
AC
12790 pid_t parent = getpid ();
12791 pid_t child;
12792
12793 sparc_address_test (0);
12794
12795 child = vfork ();
12796
12797 if (child == 0) {
12798 /* Here is another test for sparc vfork register problems. This
12799 test uses lots of local variables, at least as many local
12800 variables as main has allocated so far including compiler
12801 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12802 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12803 reuse the register of parent for one of the local variables,
12804 since it will think that parent can't possibly be used any more
12805 in this routine. Assigning to the local variable will thus
12806 munge parent in the parent process. */
12807 pid_t
12808 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12809 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12810 /* Convince the compiler that p..p7 are live; otherwise, it might
12811 use the same hardware register for all 8 local variables. */
12812 if (p != p1 || p != p2 || p != p3 || p != p4
12813 || p != p5 || p != p6 || p != p7)
12814 _exit(1);
db137867 12815
7083c021
AC
12816 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12817 from child file descriptors. If the child closes a descriptor
12818 before it execs or exits, this munges the parent's descriptor
12819 as well. Test for this by closing stdout in the child. */
12820 _exit(close(fileno(stdout)) != 0);
12821 } else {
12822 int status;
12823 struct stat st;
db137867 12824
7083c021
AC
12825 while (wait(&status) != child)
12826 ;
12827 return (
12828 /* Was there some problem with vforking? */
12829 child < 0
db137867 12830
7083c021
AC
12831 /* Did the child fail? (This shouldn't happen.) */
12832 || status
12833
12834 /* Did the vfork/compiler bug occur? */
12835 || parent != getpid()
12836
12837 /* Did the file descriptor bug occur? */
12838 || fstat(fileno(stdout), &st) != 0
12839 );
12840 }
12841}
12842_ACEOF
12843if ac_fn_c_try_run "$LINENO"; then :
12844 ac_cv_func_vfork_works=yes
db137867 12845else
7083c021 12846 ac_cv_func_vfork_works=no
db137867 12847fi
7083c021
AC
12848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12849 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867 12850fi
db137867 12851
7083c021
AC
12852fi
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12854$as_echo "$ac_cv_func_vfork_works" >&6; }
db137867 12855
7083c021
AC
12856fi;
12857if test "x$ac_cv_func_fork_works" = xcross; then
12858 ac_cv_func_vfork_works=$ac_cv_func_vfork
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12860$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
db137867
AC
12861fi
12862
7083c021
AC
12863if test "x$ac_cv_func_vfork_works" = xyes; then
12864
12865$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
db137867 12866
db137867 12867else
db137867 12868
7083c021 12869$as_echo "#define vfork fork" >>confdefs.h
db137867
AC
12870
12871fi
7083c021
AC
12872if test "x$ac_cv_func_fork_works" = xyes; then
12873
12874$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
db137867 12875
db137867 12876fi
7083c021 12877
96f4052b
AC
12878
12879
12880
12881 for ac_header in $ac_header_list
7083c021
AC
12882do :
12883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
96f4052b
AC
12884ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12885"
7083c021
AC
12886eval as_val=\$$as_ac_Header
12887 if test "x$as_val" = x""yes; then :
12888 cat >>confdefs.h <<_ACEOF
12889#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12890_ACEOF
12891
db137867 12892fi
db137867 12893
7083c021
AC
12894done
12895
96f4052b
AC
12896
12897
12898
12899
12900
12901
12902
7083c021
AC
12903for ac_func in getpagesize
12904do :
12905 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12906if test "x$ac_cv_func_getpagesize" = x""yes; then :
12907 cat >>confdefs.h <<_ACEOF
12908#define HAVE_GETPAGESIZE 1
db137867
AC
12909_ACEOF
12910
12911fi
7083c021 12912done
db137867 12913
7083c021
AC
12914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12915$as_echo_n "checking for working mmap... " >&6; }
12916if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
030272f3 12917 $as_echo_n "(cached) " >&6
db137867 12918else
7083c021
AC
12919 if test "$cross_compiling" = yes; then :
12920 ac_cv_func_mmap_fixed_mapped=no
12921else
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 12923/* end confdefs.h. */
7083c021
AC
12924$ac_includes_default
12925/* malloc might have been renamed as rpl_malloc. */
12926#undef malloc
db137867 12927
7083c021
AC
12928/* Thanks to Mike Haertel and Jim Avera for this test.
12929 Here is a matrix of mmap possibilities:
12930 mmap private not fixed
12931 mmap private fixed at somewhere currently unmapped
12932 mmap private fixed at somewhere already mapped
12933 mmap shared not fixed
12934 mmap shared fixed at somewhere currently unmapped
12935 mmap shared fixed at somewhere already mapped
12936 For private mappings, we should verify that changes cannot be read()
12937 back from the file, nor mmap's back from the file at a different
12938 address. (There have been systems where private was not correctly
12939 implemented like the infamous i386 svr4.0, and systems where the
12940 VM page cache was not coherent with the file system buffer cache
12941 like early versions of FreeBSD and possibly contemporary NetBSD.)
12942 For shared mappings, we should conversely verify that changes get
12943 propagated back to all the places they're supposed to be.
12944
12945 Grep wants private fixed already mapped.
12946 The main things grep needs to know about mmap are:
12947 * does it exist and is it safe to write into the mmap'd area
12948 * how to use it (BSD variants) */
12949
12950#include <fcntl.h>
12951#include <sys/mman.h>
12952
12953#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12954char *malloc ();
db137867 12955#endif
7083c021
AC
12956
12957/* This mess was copied from the GNU getpagesize.h. */
12958#ifndef HAVE_GETPAGESIZE
7083c021
AC
12959# ifdef _SC_PAGESIZE
12960# define getpagesize() sysconf(_SC_PAGESIZE)
12961# else /* no _SC_PAGESIZE */
12962# ifdef HAVE_SYS_PARAM_H
12963# include <sys/param.h>
12964# ifdef EXEC_PAGESIZE
12965# define getpagesize() EXEC_PAGESIZE
12966# else /* no EXEC_PAGESIZE */
12967# ifdef NBPG
12968# define getpagesize() NBPG * CLSIZE
12969# ifndef CLSIZE
12970# define CLSIZE 1
12971# endif /* no CLSIZE */
12972# else /* no NBPG */
12973# ifdef NBPC
12974# define getpagesize() NBPC
12975# else /* no NBPC */
12976# ifdef PAGESIZE
12977# define getpagesize() PAGESIZE
12978# endif /* PAGESIZE */
12979# endif /* no NBPC */
12980# endif /* no NBPG */
12981# endif /* no EXEC_PAGESIZE */
12982# else /* no HAVE_SYS_PARAM_H */
12983# define getpagesize() 8192 /* punt totally */
12984# endif /* no HAVE_SYS_PARAM_H */
12985# endif /* no _SC_PAGESIZE */
12986
12987#endif /* no HAVE_GETPAGESIZE */
12988
12989int
12990main ()
db137867 12991{
7083c021 12992 char *data, *data2, *data3;
5a241f54 12993 const char *cdata2;
7083c021 12994 int i, pagesize;
96f4052b 12995 int fd, fd2;
7083c021
AC
12996
12997 pagesize = getpagesize ();
12998
12999 /* First, make a file with some known garbage in it. */
13000 data = (char *) malloc (pagesize);
13001 if (!data)
13002 return 1;
13003 for (i = 0; i < pagesize; ++i)
13004 *(data + i) = rand ();
13005 umask (0);
13006 fd = creat ("conftest.mmap", 0600);
13007 if (fd < 0)
96f4052b 13008 return 2;
7083c021 13009 if (write (fd, data, pagesize) != pagesize)
96f4052b 13010 return 3;
7083c021
AC
13011 close (fd);
13012
96f4052b
AC
13013 /* Next, check that the tail of a page is zero-filled. File must have
13014 non-zero length, otherwise we risk SIGBUS for entire page. */
13015 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13016 if (fd2 < 0)
13017 return 4;
5a241f54
AC
13018 cdata2 = "";
13019 if (write (fd2, cdata2, 1) != 1)
96f4052b 13020 return 5;
5a241f54 13021 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
96f4052b
AC
13022 if (data2 == MAP_FAILED)
13023 return 6;
13024 for (i = 0; i < pagesize; ++i)
13025 if (*(data2 + i))
13026 return 7;
13027 close (fd2);
13028 if (munmap (data2, pagesize))
13029 return 8;
13030
7083c021
AC
13031 /* Next, try to mmap the file at a fixed address which already has
13032 something else allocated at it. If we can, also make sure that
13033 we see the same garbage. */
13034 fd = open ("conftest.mmap", O_RDWR);
13035 if (fd < 0)
96f4052b 13036 return 9;
7083c021
AC
13037 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13038 MAP_PRIVATE | MAP_FIXED, fd, 0L))
96f4052b 13039 return 10;
7083c021
AC
13040 for (i = 0; i < pagesize; ++i)
13041 if (*(data + i) != *(data2 + i))
96f4052b 13042 return 11;
7083c021
AC
13043
13044 /* Finally, make sure that changes to the mapped area do not
13045 percolate back to the file as seen by read(). (This is a bug on
13046 some variants of i386 svr4.0.) */
13047 for (i = 0; i < pagesize; ++i)
13048 *(data2 + i) = *(data2 + i) + 1;
13049 data3 = (char *) malloc (pagesize);
13050 if (!data3)
96f4052b 13051 return 12;
7083c021 13052 if (read (fd, data3, pagesize) != pagesize)
96f4052b 13053 return 13;
7083c021
AC
13054 for (i = 0; i < pagesize; ++i)
13055 if (*(data + i) != *(data3 + i))
96f4052b 13056 return 14;
7083c021
AC
13057 close (fd);
13058 return 0;
db137867 13059}
db137867 13060_ACEOF
7083c021
AC
13061if ac_fn_c_try_run "$LINENO"; then :
13062 ac_cv_func_mmap_fixed_mapped=yes
db137867 13063else
7083c021 13064 ac_cv_func_mmap_fixed_mapped=no
db137867 13065fi
7083c021
AC
13066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13067 conftest.$ac_objext conftest.beam conftest.$ac_ext
db137867
AC
13068fi
13069
7083c021
AC
13070fi
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13072$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13073if test $ac_cv_func_mmap_fixed_mapped = yes; then
db137867 13074
7083c021 13075$as_echo "#define HAVE_MMAP 1" >>confdefs.h
db137867
AC
13076
13077fi
96f4052b 13078rm -f conftest.mmap conftest.txt
db137867 13079
3202e249 13080
7083c021
AC
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
13082$as_echo_n "checking for /dev/poll... " >&6; }
13083if test -c "/dev/poll"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13085$as_echo "yes" >&6; }
3202e249 13086
7083c021 13087$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
3202e249 13088
7083c021
AC
13089else
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091$as_echo "no" >&6; }
3202e249
VY
13092fi
13093
13094
7083c021
AC
13095if test "$is_mingw" = "yes"; then
13096
13097$as_echo "#define HAVE_WIN32 1" >>confdefs.h
3202e249
VY
13098
13099fi
3202e249 13100
db137867 13101
7083c021
AC
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13103$as_echo_n "checking for OpenSSL... " >&6; }
13104# Check whether --enable-openssl was given.
13105if test "${enable_openssl+set}" = set; then :
13106 enableval=$enable_openssl; cf_enable_openssl=$enableval
db137867 13107else
7083c021 13108 cf_enable_openssl="auto"
db137867
AC
13109fi
13110
db137867 13111
7083c021
AC
13112if test "$cf_enable_openssl" != "no" ; then
13113 cf_openssl_basedir=""
13114 if test "$cf_enable_openssl" != "auto" &&
13115 test "$cf_enable_openssl" != "yes" ; then
13116 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
13117 else
13118 for dirs in /usr/local/ssl /usr/pkg /usr/local \
13119 /usr/local/openssl ; do
13120 if test -f "${dirs}/include/openssl/opensslv.h" ; then
13121 cf_openssl_basedir="${dirs}"
13122 break
13123 fi
13124 done
13125 unset dirs
13126 fi
13127 if test ! -z "$cf_openssl_basedir"; then
13128 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
13129 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
13130 SSL_LIBS="-L${cf_openssl_basedir}/lib"
13131 else
13132 cf_openssl_basedir=""
13133 fi
13134 else
13135 if test -f "/usr/include/openssl/opensslv.h" ; then
13136 cf_openssl_basedir="/usr"
13137 fi
13138 fi
db137867 13139
7083c021
AC
13140 if test ! -z "$cf_openssl_basedir"; then
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13142$as_echo "$cf_openssl_basedir" >&6; }
13143 cf_enable_openssl="yes"
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
13146$as_echo "not found. Specify a correct path?" >&6; }
13147 cf_enable_openssl="no"
13148 fi
13149 unset cf_openssl_basedir
13150else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13152$as_echo "disabled" >&6; }
db137867
AC
13153fi
13154
7083c021
AC
13155save_CPPFLAGS="$CPPFLAGS"
13156CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
13157save_LIBS="$LIBS"
13158LIBS="$LIBS $SSL_LIBS"
13159if test "$cf_enable_openssl" != no; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13161$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13162 if test "$cross_compiling" = yes; then :
13163 cf_enable_openssl=no
db137867 13164else
7083c021 13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13166/* end confdefs.h. */
7083c021
AC
13167#include <openssl/opensslv.h>
13168 #include <stdlib.h>
db137867
AC
13169int
13170main ()
13171{
7083c021
AC
13172if (OPENSSL_VERSION_NUMBER >= 0x00907000)
13173 exit(0); else exit(1);
13174 ;
13175 return 0;
13176}
db137867 13177_ACEOF
7083c021
AC
13178if ac_fn_c_try_run "$LINENO"; then :
13179 cf_enable_openssl=yes
13180else
13181 cf_enable_openssl=no
13182fi
13183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13184 conftest.$ac_objext conftest.beam conftest.$ac_ext
13185fi
db137867
AC
13186
13187
7083c021
AC
13188 if test "$cf_enable_openssl" != no; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13190$as_echo "found" >&6; }
13191 else
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13193$as_echo "no - OpenSSL support disabled" >&6; }
13194 fi
db137867 13195
db137867 13196fi
db137867 13197
7083c021
AC
13198
13199if test "$cf_enable_openssl" != no; then
13200 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
13202$as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
13203if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then :
030272f3 13204 $as_echo_n "(cached) " >&6
db137867 13205else
7083c021
AC
13206 ac_check_lib_save_LIBS=$LIBS
13207LIBS="-lcrypto $LIBS"
13208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13209/* end confdefs.h. */
db137867
AC
13210
13211/* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13214#ifdef __cplusplus
13215extern "C"
13216#endif
7083c021 13217char RAND_status ();
db137867
AC
13218int
13219main ()
13220{
7083c021 13221return RAND_status ();
db137867
AC
13222 ;
13223 return 0;
13224}
13225_ACEOF
7083c021
AC
13226if ac_fn_c_try_link "$LINENO"; then :
13227 ac_cv_lib_crypto_RAND_status=yes
db137867 13228else
7083c021 13229 ac_cv_lib_crypto_RAND_status=no
db137867 13230fi
7083c021
AC
13231rm -f core conftest.err conftest.$ac_objext \
13232 conftest$ac_exeext conftest.$ac_ext
13233LIBS=$ac_check_lib_save_LIBS
db137867 13234fi
7083c021
AC
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
13236$as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
13237if test "x$ac_cv_lib_crypto_RAND_status" = x""yes; then :
13238 cf_enable_openssl=yes
13239else
13240 cf_enable_openssl=no
db137867
AC
13241fi
13242
db137867
AC
13243fi
13244
7083c021
AC
13245if test "$cf_enable_openssl" != no; then
13246 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
13248$as_echo_n "checking for SSL_read in -lssl... " >&6; }
13249if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then :
030272f3 13250 $as_echo_n "(cached) " >&6
db137867 13251else
7083c021
AC
13252 ac_check_lib_save_LIBS=$LIBS
13253LIBS="-lssl -lcrypto $LIBS"
13254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db137867 13255/* end confdefs.h. */
db137867 13256
7083c021
AC
13257/* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
13260#ifdef __cplusplus
13261extern "C"
13262#endif
13263char SSL_read ();
db137867
AC
13264int
13265main ()
13266{
7083c021
AC
13267return SSL_read ();
13268 ;
13269 return 0;
db137867
AC
13270}
13271_ACEOF
7083c021
AC
13272if ac_fn_c_try_link "$LINENO"; then :
13273 ac_cv_lib_ssl_SSL_read=yes
db137867 13274else
7083c021 13275 ac_cv_lib_ssl_SSL_read=no
db137867 13276fi
7083c021
AC
13277rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279LIBS=$ac_check_lib_save_LIBS
13280fi
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
13282$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
13283if test "x$ac_cv_lib_ssl_SSL_read" = x""yes; then :
13284 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
13285else
13286 cf_enable_openssl=no
db137867 13287fi
db137867
AC
13288
13289fi
db137867 13290
db137867
AC
13291
13292
7083c021
AC
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
13294$as_echo_n "checking for GnuTLS... " >&6; }
13295# Check whether --enable-gnutls was given.
13296if test "${enable_gnutls+set}" = set; then :
13297 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
13298else
13299 cf_enable_gnutls="auto"
db137867
AC
13300fi
13301
13302
7083c021
AC
13303if test "$cf_enable_gnutls" != no; then
13304
13305
13306if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13307 if test -n "$ac_tool_prefix"; then
13308 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13309set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311$as_echo_n "checking for $ac_word... " >&6; }
13312if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
030272f3 13313 $as_echo_n "(cached) " >&6
db137867 13314else
7083c021
AC
13315 case $PKG_CONFIG in
13316 [\\/]* | ?:[\\/]*)
13317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13318 ;;
13319 *)
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321for as_dir in $PATH
13322do
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 break 2
13330 fi
13331done
13332 done
13333IFS=$as_save_IFS
13334
13335 ;;
db137867 13336esac
7083c021
AC
13337fi
13338PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13339if test -n "$PKG_CONFIG"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13341$as_echo "$PKG_CONFIG" >&6; }
db137867 13342else
7083c021
AC
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344$as_echo "no" >&6; }
13345fi
13346
db137867 13347
db137867 13348fi
7083c021
AC
13349if test -z "$ac_cv_path_PKG_CONFIG"; then
13350 ac_pt_PKG_CONFIG=$PKG_CONFIG
13351 # Extract the first word of "pkg-config", so it can be a program name with args.
13352set dummy pkg-config; ac_word=$2
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354$as_echo_n "checking for $ac_word... " >&6; }
13355if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
13357else
13358 case $ac_pt_PKG_CONFIG in
13359 [\\/]* | ?:[\\/]*)
13360 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13361 ;;
13362 *)
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364for as_dir in $PATH
13365do
13366 IFS=$as_save_IFS
13367 test -z "$as_dir" && as_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
13369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13370 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372 break 2
13373 fi
13374done
13375 done
13376IFS=$as_save_IFS
db137867 13377
7083c021
AC
13378 ;;
13379esac
13380fi
13381ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13382if test -n "$ac_pt_PKG_CONFIG"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13384$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13385else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387$as_echo "no" >&6; }
13388fi
db137867 13389
7083c021
AC
13390 if test "x$ac_pt_PKG_CONFIG" = x; then
13391 PKG_CONFIG=""
13392 else
13393 case $cross_compiling:$ac_tool_warned in
13394yes:)
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13397ac_tool_warned=yes ;;
db137867 13398esac
7083c021
AC
13399 PKG_CONFIG=$ac_pt_PKG_CONFIG
13400 fi
db137867 13401else
7083c021
AC
13402 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13403fi
db137867 13404
db137867 13405fi
7083c021
AC
13406if test -n "$PKG_CONFIG"; then
13407 _pkg_min_version=0.9.0
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13409$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13410 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13412$as_echo "yes" >&6; }
13413 else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415$as_echo "no" >&6; }
13416 PKG_CONFIG=""
13417 fi
db137867 13418
7083c021 13419fi
db137867 13420
7083c021
AC
13421pkg_failed=no
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13423$as_echo_n "checking for GNUTLS... " >&6; }
db137867 13424
96f4052b
AC
13425if test -n "$GNUTLS_CFLAGS"; then
13426 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13427 elif test -n "$PKG_CONFIG"; then
13428 if test -n "$PKG_CONFIG" && \
7083c021
AC
13429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13430 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13431 ac_status=$?
13432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13433 test $ac_status = 0; }; then
13434 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
db137867 13435else
7083c021 13436 pkg_failed=yes
db137867 13437fi
96f4052b
AC
13438 else
13439 pkg_failed=untried
db137867 13440fi
96f4052b
AC
13441if test -n "$GNUTLS_LIBS"; then
13442 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13443 elif test -n "$PKG_CONFIG"; then
13444 if test -n "$PKG_CONFIG" && \
7083c021
AC
13445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13446 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13447 ac_status=$?
13448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13449 test $ac_status = 0; }; then
13450 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13451else
13452 pkg_failed=yes
13453fi
96f4052b
AC
13454 else
13455 pkg_failed=untried
db137867
AC
13456fi
13457
db137867
AC
13458
13459
7083c021 13460if test $pkg_failed = yes; then
db137867 13461
7083c021
AC
13462if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13463 _pkg_short_errors_supported=yes
db137867 13464else
7083c021
AC
13465 _pkg_short_errors_supported=no
13466fi
13467 if test $_pkg_short_errors_supported = yes; then
96f4052b 13468 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1`
7083c021 13469 else
96f4052b 13470 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls" 2>&1`
7083c021
AC
13471 fi
13472 # Put the nasty error message in config.log where it belongs
13473 echo "$GNUTLS_PKG_ERRORS" >&5
db137867 13474
7083c021
AC
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13476$as_echo "no" >&6; }
13477 cf_enable_gnutls="no"
13478elif test $pkg_failed = untried; then
13479 cf_enable_gnutls="no"
13480else
13481 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13482 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13484$as_echo "yes" >&6; }
db137867 13485
7083c021 13486 cf_enable_gnutls="yes"
db137867 13487
7083c021
AC
13488fi
13489fi
db137867 13490
7083c021
AC
13491if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
13492 cf_enable_gnutls="no"
13493fi
db137867 13494
7083c021 13495if test x"$cf_enable_openssl" != xno; then
db137867 13496
7083c021 13497$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
db137867 13498
7083c021
AC
13499 GNUTLS_CFLAGS=""
13500 GNUTLS_LIBS=""
13501 SSL_TYPE="openssl"
13502elif test x"$cf_enable_gnutls" != xno; then
13503
13504$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
db137867 13505
7083c021
AC
13506 SSL_LIBS=""
13507 SSL_CFLAGS=""
13508 SSL_TYPE="gnutls"
db137867 13509fi
db137867 13510
db137867 13511
db137867 13512
db137867 13513
7083c021
AC
13514CPPFLAGS="$save_CPPFLAGS"
13515LIBS="$save_LIBS"
13516
13517
db137867
AC
13518
13519
db137867 13520
db137867 13521
7083c021
AC
13522# Check whether --enable-assert was given.
13523if test "${enable_assert+set}" = set; then :
13524 enableval=$enable_assert; assert=$enableval
13525else
13526 assert=no
13527fi
db137867 13528
db137867 13529
7083c021 13530if test "$assert" = no; then
db137867 13531
7083c021 13532$as_echo "#define NDEBUG 1" >>confdefs.h
db137867 13533
7083c021 13534elif test "$assert" = soft; then
db137867 13535
7083c021 13536$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
db137867 13537
db137867 13538
7083c021 13539$as_echo "#define NDEBUG 1" >>confdefs.h
db137867 13540
7083c021
AC
13541elif test "$assert" = yes; then
13542 assert = "hard";
13543fi
13544
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
13546$as_echo_n "checking if you want to do a profile build... " >&6; }
13547# Check whether --enable-profile was given.
13548if test "${enable_profile+set}" = set; then :
13549 enableval=$enable_profile; profile=$enableval
db137867 13550else
7083c021
AC
13551 profile=no
13552fi
13553
13554
13555if test "$profile" = yes; then
13556 if test "$ac_cv_c_compiler_gnu" = yes; then
13557 CFLAGS="$CFLAGS -pg -static"
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
13559$as_echo "yes, adding -pg -static" >&6; }
db137867 13560
7083c021
AC
13561$as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
13562
13563 else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
13565$as_echo "no, profile builds only work with gcc" >&6; }
13566 fi
13567else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
db137867 13570fi
7083c021
AC
13571
13572# Check whether --enable-balloc was given.
13573if test "${enable_balloc+set}" = set; then :
13574 enableval=$enable_balloc; balloc=$enableval
13575else
13576 balloc=yes
db137867
AC
13577fi
13578
13579
7083c021
AC
13580if test "$balloc" = no; then
13581
13582$as_echo "#define NOBALLOC 1" >>confdefs.h
13583
db137867 13584fi
db137867 13585
7083c021
AC
13586# Check whether --enable-warnings was given.
13587if test "${enable_warnings+set}" = set; then :
13588 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
13589fi
13590
db137867 13591
db137867 13592
db137867 13593
db137867 13594
db137867 13595
db137867 13596
db137867
AC
13597
13598
13599
7083c021
AC
13600
13601if test "$prefix" = "NONE"; then
13602
13603cat >>confdefs.h <<_ACEOF
13604#define RB_PREFIX "$ac_default_prefix"
db137867 13605_ACEOF
7083c021
AC
13606
13607
db137867 13608else
db137867 13609
db137867 13610
7083c021 13611 prefix=`echo $prefix | sed 's/\/$//'`
db137867 13612
7083c021
AC
13613cat >>confdefs.h <<_ACEOF
13614#define RB_PREFIX "$prefix"
db137867 13615_ACEOF
db137867 13616
7083c021 13617
db137867
AC
13618fi
13619
db137867 13620
db137867 13621
7083c021 13622ac_config_commands="$ac_config_commands include/librb-config.h"
db137867 13623
db137867 13624
db137867 13625
7083c021 13626ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
db137867
AC
13627
13628
7083c021
AC
13629cat >confcache <<\_ACEOF
13630# This file is a shell script that caches the results of configure
13631# tests run on this system so they can be shared between configure
13632# scripts and configure runs, see configure's option --config-cache.
13633# It is not useful on other systems. If it contains results you don't
13634# want to keep, you may remove or edit it.
13635#
13636# config.status only pays attention to the cache file if you give it
13637# the --recheck option to rerun configure.
13638#
13639# `ac_cv_env_foo' variables (set or unset) will be overridden when
13640# loading this file, other *unset* `ac_cv_foo' will be assigned the
13641# following values.
13642
db137867 13643_ACEOF
db137867 13644
7083c021
AC
13645# The following way of writing the cache mishandles newlines in values,
13646# but we know of no workaround that is simple, portable, and efficient.
13647# So, we kill variables containing newlines.
13648# Ultrix sh set writes to stderr and can't be redirected directly,
13649# and sets the high bit in the cache file unless we assign to the vars.
13650(
13651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13652 eval ac_val=\$$ac_var
13653 case $ac_val in #(
13654 *${as_nl}*)
13655 case $ac_var in #(
13656 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13657$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13658 esac
13659 case $ac_var in #(
13660 _ | IFS | as_nl) ;; #(
13661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13662 *) { eval $ac_var=; unset $ac_var;} ;;
13663 esac ;;
13664 esac
13665 done
13666
13667 (set) 2>&1 |
13668 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13669 *${as_nl}ac_space=\ *)
13670 # `set' does not quote correctly, so add quotes: double-quote
13671 # substitution turns \\\\ into \\, and sed turns \\ into \.
13672 sed -n \
13673 "s/'/'\\\\''/g;
13674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13675 ;; #(
13676 *)
13677 # `set' quotes correctly as required by POSIX, so do not add quotes.
13678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13679 ;;
13680 esac |
13681 sort
13682) |
13683 sed '
13684 /^ac_cv_env_/b end
13685 t clear
13686 :clear
13687 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13688 t end
13689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13690 :end' >>confcache
13691if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13692 if test -w "$cache_file"; then
13693 test "x$cache_file" != "x/dev/null" &&
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13695$as_echo "$as_me: updating cache $cache_file" >&6;}
13696 cat confcache >$cache_file
13697 else
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13699$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13700 fi
13701fi
13702rm -f confcache
13703
13704test "x$prefix" = xNONE && prefix=$ac_default_prefix
13705# Let make expand exec_prefix.
13706test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
db137867 13707
7083c021 13708DEFS=-DHAVE_CONFIG_H
db137867 13709
7083c021
AC
13710ac_libobjs=
13711ac_ltlibobjs=
13712for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13713 # 1. Remove the extension, and $U if already installed.
13714 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13715 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13716 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13717 # will be set to the directory where LIBOBJS objects are built.
13718 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13719 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13720done
13721LIBOBJS=$ac_libobjs
db137867 13722
7083c021 13723LTLIBOBJS=$ac_ltlibobjs
db137867 13724
db137867 13725
7083c021
AC
13726 if test -n "$EXEEXT"; then
13727 am__EXEEXT_TRUE=
13728 am__EXEEXT_FALSE='#'
13729else
13730 am__EXEEXT_TRUE='#'
13731 am__EXEEXT_FALSE=
db137867
AC
13732fi
13733
7083c021
AC
13734if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13735 as_fn_error "conditional \"AMDEP\" was never defined.
13736Usually this means the macro was only invoked conditionally." "$LINENO" 5
db137867 13737fi
7083c021
AC
13738if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13739 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13740Usually this means the macro was only invoked conditionally." "$LINENO" 5
13741fi
13742if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13743 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13744Usually this means the macro was only invoked conditionally." "$LINENO" 5
13745fi
13746if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
13747 as_fn_error "conditional \"MINGW\" was never defined.
13748Usually this means the macro was only invoked conditionally." "$LINENO" 5
13749fi
13750if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
13751 as_fn_error "conditional \"NEED_CRYPT\" was never defined.
13752Usually this means the macro was only invoked conditionally." "$LINENO" 5
db137867 13753fi
db137867 13754
7083c021
AC
13755: ${CONFIG_STATUS=./config.status}
13756ac_write_fail=0
13757ac_clean_files_save=$ac_clean_files
13758ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13760$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13761as_write_fail=0
13762cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13763#! $SHELL
13764# Generated by $as_me.
13765# Run this file to recreate the current configuration.
13766# Compiler output produced by configure, useful for debugging
13767# configure, is in config.log if it exists.
db137867 13768
7083c021
AC
13769debug=false
13770ac_cs_recheck=false
13771ac_cs_silent=false
db137867 13772
7083c021
AC
13773SHELL=\${CONFIG_SHELL-$SHELL}
13774export SHELL
13775_ASEOF
13776cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13777## -------------------- ##
13778## M4sh Initialization. ##
13779## -------------------- ##
db137867 13780
7083c021
AC
13781# Be more Bourne compatible
13782DUALCASE=1; export DUALCASE # for MKS sh
13783if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13784 emulate sh
13785 NULLCMD=:
13786 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13787 # is contrary to our usage. Disable this feature.
13788 alias -g '${1+"$@"}'='"$@"'
13789 setopt NO_GLOB_SUBST
13790else
13791 case `(set -o) 2>/dev/null` in #(
13792 *posix*) :
13793 set -o posix ;; #(
13794 *) :
13795 ;;
13796esac
13797fi
db137867 13798
db137867 13799
7083c021
AC
13800as_nl='
13801'
13802export as_nl
13803# Printing a long string crashes Solaris 7 /usr/bin/printf.
13804as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13805as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13806as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13807# Prefer a ksh shell builtin over an external printf program on Solaris,
13808# but without wasting forks for bash or zsh.
13809if test -z "$BASH_VERSION$ZSH_VERSION" \
13810 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13811 as_echo='print -r --'
13812 as_echo_n='print -rn --'
13813elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13814 as_echo='printf %s\n'
13815 as_echo_n='printf %s'
db137867 13816else
7083c021
AC
13817 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13818 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13819 as_echo_n='/usr/ucb/echo -n'
13820 else
13821 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13822 as_echo_n_body='eval
13823 arg=$1;
13824 case $arg in #(
13825 *"$as_nl"*)
13826 expr "X$arg" : "X\\(.*\\)$as_nl";
13827 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13828 esac;
13829 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13830 '
13831 export as_echo_n_body
13832 as_echo_n='sh -c $as_echo_n_body as_echo'
13833 fi
13834 export as_echo_body
13835 as_echo='sh -c $as_echo_body as_echo'
db137867 13836fi
7083c021
AC
13837
13838# The user is always right.
13839if test "${PATH_SEPARATOR+set}" != set; then
13840 PATH_SEPARATOR=:
13841 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13842 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13843 PATH_SEPARATOR=';'
13844 }
db137867
AC
13845fi
13846
13847
7083c021
AC
13848# IFS
13849# We need space, tab and new line, in precisely that order. Quoting is
13850# there to prevent editors from complaining about space-tab.
13851# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13852# splitting by setting IFS to empty value.)
13853IFS=" "" $as_nl"
db137867 13854
7083c021
AC
13855# Find who we are. Look in the path if we contain no directory separator.
13856case $0 in #((
13857 *[\\/]* ) as_myself=$0 ;;
13858 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859for as_dir in $PATH
13860do
13861 IFS=$as_save_IFS
13862 test -z "$as_dir" && as_dir=.
13863 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13864 done
13865IFS=$as_save_IFS
db137867 13866
7083c021
AC
13867 ;;
13868esac
13869# We did not find ourselves, most probably we were run as `sh COMMAND'
13870# in which case we are not to be found in the path.
13871if test "x$as_myself" = x; then
13872 as_myself=$0
13873fi
13874if test ! -f "$as_myself"; then
13875 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13876 exit 1
db137867 13877fi
db137867 13878
7083c021
AC
13879# Unset variables that we do not need and which cause bugs (e.g. in
13880# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13881# suppresses any "Segmentation fault" message there. '((' could
13882# trigger a bug in pdksh 5.2.14.
13883for as_var in BASH_ENV ENV MAIL MAILPATH
13884do eval test x\${$as_var+set} = xset \
13885 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13886done
13887PS1='$ '
13888PS2='> '
13889PS4='+ '
db137867 13890
7083c021
AC
13891# NLS nuisances.
13892LC_ALL=C
13893export LC_ALL
13894LANGUAGE=C
13895export LANGUAGE
db137867 13896
7083c021
AC
13897# CDPATH.
13898(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
db137867 13899
db137867 13900
7083c021
AC
13901# as_fn_error ERROR [LINENO LOG_FD]
13902# ---------------------------------
13903# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13904# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13905# script with status $?, using 1 if that was 0.
13906as_fn_error ()
13907{
13908 as_status=$?; test $as_status -eq 0 && as_status=1
13909 if test "$3"; then
13910 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13911 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13912 fi
13913 $as_echo "$as_me: error: $1" >&2
13914 as_fn_exit $as_status
13915} # as_fn_error
db137867 13916
db137867 13917
7083c021
AC
13918# as_fn_set_status STATUS
13919# -----------------------
13920# Set $? to STATUS, without forking.
13921as_fn_set_status ()
13922{
13923 return $1
13924} # as_fn_set_status
13925
13926# as_fn_exit STATUS
13927# -----------------
13928# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13929as_fn_exit ()
13930{
13931 set +e
13932 as_fn_set_status $1
13933 exit $1
13934} # as_fn_exit
13935
13936# as_fn_unset VAR
13937# ---------------
13938# Portably unset VAR.
13939as_fn_unset ()
13940{
13941 { eval $1=; unset $1;}
13942}
13943as_unset=as_fn_unset
13944# as_fn_append VAR VALUE
13945# ----------------------
13946# Append the text in VALUE to the end of the definition contained in VAR. Take
13947# advantage of any shell optimizations that allow amortized linear growth over
13948# repeated appends, instead of the typical quadratic growth present in naive
13949# implementations.
13950if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13951 eval 'as_fn_append ()
13952 {
13953 eval $1+=\$2
13954 }'
13955else
13956 as_fn_append ()
13957 {
13958 eval $1=\$$1\$2
13959 }
13960fi # as_fn_append
13961
13962# as_fn_arith ARG...
13963# ------------------
13964# Perform arithmetic evaluation on the ARGs, and store the result in the
13965# global $as_val. Take advantage of shells that can avoid forks. The arguments
13966# must be portable across $(()) and expr.
13967if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13968 eval 'as_fn_arith ()
13969 {
13970 as_val=$(( $* ))
13971 }'
13972else
13973 as_fn_arith ()
13974 {
13975 as_val=`expr "$@" || test $? -eq 1`
13976 }
13977fi # as_fn_arith
13978
db137867 13979
7083c021
AC
13980if expr a : '\(a\)' >/dev/null 2>&1 &&
13981 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13982 as_expr=expr
13983else
13984 as_expr=false
db137867
AC
13985fi
13986
7083c021
AC
13987if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13988 as_basename=basename
13989else
13990 as_basename=false
13991fi
db137867 13992
7083c021
AC
13993if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13994 as_dirname=dirname
db137867 13995else
7083c021 13996 as_dirname=false
db137867
AC
13997fi
13998
7083c021
AC
13999as_me=`$as_basename -- "$0" ||
14000$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14001 X"$0" : 'X\(//\)$' \| \
14002 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14003$as_echo X/"$0" |
14004 sed '/^.*\/\([^/][^/]*\)\/*$/{
14005 s//\1/
14006 q
14007 }
14008 /^X\/\(\/\/\)$/{
14009 s//\1/
14010 q
14011 }
14012 /^X\/\(\/\).*/{
14013 s//\1/
14014 q
14015 }
14016 s/.*/./; q'`
db137867 14017
7083c021
AC
14018# Avoid depending upon Character Ranges.
14019as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14020as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14021as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14022as_cr_digits='0123456789'
14023as_cr_alnum=$as_cr_Letters$as_cr_digits
db137867 14024
7083c021
AC
14025ECHO_C= ECHO_N= ECHO_T=
14026case `echo -n x` in #(((((
14027-n*)
14028 case `echo 'xy\c'` in
14029 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14030 xy) ECHO_C='\c';;
14031 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14032 ECHO_T=' ';;
14033 esac;;
14034*)
14035 ECHO_N='-n';;
14036esac
14037
14038rm -f conf$$ conf$$.exe conf$$.file
14039if test -d conf$$.dir; then
14040 rm -f conf$$.dir/conf$$.file
db137867 14041else
7083c021
AC
14042 rm -f conf$$.dir
14043 mkdir conf$$.dir 2>/dev/null
db137867 14044fi
7083c021
AC
14045if (echo >conf$$.file) 2>/dev/null; then
14046 if ln -s conf$$.file conf$$ 2>/dev/null; then
14047 as_ln_s='ln -s'
14048 # ... but there are two gotchas:
14049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14051 # In both cases, we have to default to `cp -p'.
14052 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14053 as_ln_s='cp -p'
14054 elif ln conf$$.file conf$$ 2>/dev/null; then
14055 as_ln_s=ln
14056 else
14057 as_ln_s='cp -p'
14058 fi
db137867 14059else
7083c021
AC
14060 as_ln_s='cp -p'
14061fi
14062rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14063rmdir conf$$.dir 2>/dev/null
14064
14065
14066# as_fn_mkdir_p
14067# -------------
14068# Create "$as_dir" as a directory, including parents if necessary.
14069as_fn_mkdir_p ()
db137867 14070{
db137867 14071
7083c021
AC
14072 case $as_dir in #(
14073 -*) as_dir=./$as_dir;;
14074 esac
14075 test -d "$as_dir" || eval $as_mkdir_p || {
14076 as_dirs=
14077 while :; do
14078 case $as_dir in #(
14079 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14080 *) as_qdir=$as_dir;;
14081 esac
14082 as_dirs="'$as_qdir' $as_dirs"
14083 as_dir=`$as_dirname -- "$as_dir" ||
14084$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14085 X"$as_dir" : 'X\(//\)[^/]' \| \
14086 X"$as_dir" : 'X\(//\)$' \| \
14087 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14088$as_echo X"$as_dir" |
14089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14090 s//\1/
14091 q
14092 }
14093 /^X\(\/\/\)[^/].*/{
14094 s//\1/
14095 q
14096 }
14097 /^X\(\/\/\)$/{
14098 s//\1/
14099 q
14100 }
14101 /^X\(\/\).*/{
14102 s//\1/
14103 q
14104 }
14105 s/.*/./; q'`
14106 test -d "$as_dir" && break
14107 done
14108 test -z "$as_dirs" || eval "mkdir $as_dirs"
14109 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14110
14111
14112} # as_fn_mkdir_p
14113if mkdir -p . 2>/dev/null; then
14114 as_mkdir_p='mkdir -p "$as_dir"'
14115else
14116 test -d ./-p && rmdir ./-p
14117 as_mkdir_p=false
db137867 14118fi
7083c021
AC
14119
14120if test -x / >/dev/null 2>&1; then
14121 as_test_x='test -x'
14122else
14123 if ls -dL / >/dev/null 2>&1; then
14124 as_ls_L_option=L
14125 else
14126 as_ls_L_option=
14127 fi
14128 as_test_x='
14129 eval sh -c '\''
14130 if test -d "$1"; then
14131 test -d "$1/.";
14132 else
14133 case $1 in #(
14134 -*)set "./$1";;
14135 esac;
14136 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14137 ???[sx]*):;;*)false;;esac;fi
14138 '\'' sh
14139 '
db137867 14140fi
7083c021 14141as_executable_p=$as_test_x
db137867 14142
7083c021
AC
14143# Sed expression to map a string onto a valid CPP name.
14144as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
db137867 14145
7083c021
AC
14146# Sed expression to map a string onto a valid variable name.
14147as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
db137867 14148
db137867 14149
7083c021
AC
14150exec 6>&1
14151## ----------------------------------- ##
14152## Main body of $CONFIG_STATUS script. ##
14153## ----------------------------------- ##
14154_ASEOF
14155test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
db137867 14156
7083c021
AC
14157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14158# Save the log message, to keep $0 and so on meaningful, and to
14159# report actual input values of CONFIG_FILES etc. instead of their
14160# values after options handling.
14161ac_log="
14162This file was extended by libratbox $as_me devel, which was
96f4052b 14163generated by GNU Autoconf 2.65. Invocation command line was
db137867 14164
7083c021
AC
14165 CONFIG_FILES = $CONFIG_FILES
14166 CONFIG_HEADERS = $CONFIG_HEADERS
14167 CONFIG_LINKS = $CONFIG_LINKS
14168 CONFIG_COMMANDS = $CONFIG_COMMANDS
14169 $ $0 $@
14170
14171on `(hostname || uname -n) 2>/dev/null | sed 1q`
14172"
db137867 14173
db137867 14174_ACEOF
7083c021
AC
14175
14176case $ac_config_files in *"
14177"*) set x $ac_config_files; shift; ac_config_files=$*;;
db137867 14178esac
db137867 14179
7083c021
AC
14180case $ac_config_headers in *"
14181"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14182esac
db137867 14183
db137867 14184
7083c021
AC
14185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186# Files that config.status was made for.
14187config_files="$ac_config_files"
14188config_headers="$ac_config_headers"
14189config_commands="$ac_config_commands"
db137867 14190
db137867 14191_ACEOF
db137867 14192
7083c021
AC
14193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14194ac_cs_usage="\
14195\`$as_me' instantiates files and other configuration actions
14196from templates according to the current configuration. Unless the files
14197and actions are specified as TAGs, all are instantiated by default.
14198
14199Usage: $0 [OPTION]... [TAG]...
14200
14201 -h, --help print this help, then exit
14202 -V, --version print version number and configuration settings, then exit
96f4052b 14203 --config print configuration, then exit
7083c021
AC
14204 -q, --quiet, --silent
14205 do not print progress messages
14206 -d, --debug don't remove temporary files
14207 --recheck update $as_me by reconfiguring in the same conditions
14208 --file=FILE[:TEMPLATE]
14209 instantiate the configuration file FILE
14210 --header=FILE[:TEMPLATE]
14211 instantiate the configuration header FILE
14212
14213Configuration files:
14214$config_files
14215
14216Configuration headers:
14217$config_headers
14218
14219Configuration commands:
14220$config_commands
14221
14222Report bugs to the package provider."
14223
db137867 14224_ACEOF
7083c021 14225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
96f4052b 14226ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7083c021
AC
14227ac_cs_version="\\
14228libratbox config.status devel
96f4052b
AC
14229configured by $0, generated by GNU Autoconf 2.65,
14230 with options \\"\$ac_cs_config\\"
db137867 14231
7083c021
AC
14232Copyright (C) 2009 Free Software Foundation, Inc.
14233This config.status script is free software; the Free Software Foundation
14234gives unlimited permission to copy, distribute and modify it."
db137867 14235
7083c021
AC
14236ac_pwd='$ac_pwd'
14237srcdir='$srcdir'
14238INSTALL='$INSTALL'
14239MKDIR_P='$MKDIR_P'
14240AWK='$AWK'
14241test -n "\$AWK" || AWK=awk
14242_ACEOF
db137867 14243
7083c021
AC
14244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14245# The default lists apply if the user does not specify any file.
14246ac_need_defaults=:
14247while test $# != 0
14248do
14249 case $1 in
14250 --*=*)
14251 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14252 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14253 ac_shift=:
14254 ;;
14255 *)
14256 ac_option=$1
14257 ac_optarg=$2
14258 ac_shift=shift
14259 ;;
14260 esac
14261
14262 case $ac_option in
14263 # Handling of the options.
14264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14265 ac_cs_recheck=: ;;
14266 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14267 $as_echo "$ac_cs_version"; exit ;;
96f4052b
AC
14268 --config | --confi | --conf | --con | --co | --c )
14269 $as_echo "$ac_cs_config"; exit ;;
7083c021
AC
14270 --debug | --debu | --deb | --de | --d | -d )
14271 debug=: ;;
14272 --file | --fil | --fi | --f )
14273 $ac_shift
14274 case $ac_optarg in
14275 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14276 esac
14277 as_fn_append CONFIG_FILES " '$ac_optarg'"
14278 ac_need_defaults=false;;
14279 --header | --heade | --head | --hea )
14280 $ac_shift
14281 case $ac_optarg in
14282 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14283 esac
14284 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14285 ac_need_defaults=false;;
14286 --he | --h)
14287 # Conflict between --help and --header
14288 as_fn_error "ambiguous option: \`$1'
14289Try \`$0 --help' for more information.";;
14290 --help | --hel | -h )
14291 $as_echo "$ac_cs_usage"; exit ;;
14292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14293 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14294 ac_cs_silent=: ;;
14295
14296 # This is an error.
14297 -*) as_fn_error "unrecognized option: \`$1'
14298Try \`$0 --help' for more information." ;;
14299
14300 *) as_fn_append ac_config_targets " $1"
14301 ac_need_defaults=false ;;
14302
14303 esac
14304 shift
14305done
db137867 14306
7083c021 14307ac_configure_extra_args=
c2ac22cc 14308
7083c021
AC
14309if $ac_cs_silent; then
14310 exec 6>/dev/null
14311 ac_configure_extra_args="$ac_configure_extra_args --silent"
14312fi
c2ac22cc 14313
7083c021
AC
14314_ACEOF
14315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14316if \$ac_cs_recheck; then
14317 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14318 shift
14319 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14320 CONFIG_SHELL='$SHELL'
14321 export CONFIG_SHELL
14322 exec "\$@"
c2ac22cc
VY
14323fi
14324
7083c021
AC
14325_ACEOF
14326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14327exec 5>>config.log
14328{
14329 echo
14330 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14331## Running $as_me. ##
14332_ASBOX
14333 $as_echo "$ac_log"
14334} >&5
c2ac22cc 14335
7083c021
AC
14336_ACEOF
14337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338#
14339# INIT-COMMANDS
14340#
14341AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
c2ac22cc
VY
14342
14343
7083c021
AC
14344# The HP-UX ksh and POSIX shell print the target directory to stdout
14345# if CDPATH is set.
14346(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14347
14348sed_quote_subst='$sed_quote_subst'
14349double_quote_subst='$double_quote_subst'
14350delay_variable_subst='$delay_variable_subst'
14351enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14352enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14353macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14354macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14355pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14356enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14357host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14358host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14359host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14360build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14361build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14362build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14363SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14364Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14365GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14366EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14367FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14368LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14369NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14370LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14371max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14372ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14373exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14374lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14375lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14376lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14377reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14378reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14379OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14380deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14381file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14382AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14383AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14384STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14385RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14386old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14387old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14388old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14389CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14390CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14391compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14392GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14393lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14394lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14395lt_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"`'
14396lt_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"`'
14397objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14398SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14399ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14400MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14401lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14402lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14403lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14404lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14405lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14406need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14407DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14408NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14409LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14410OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14411OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14412libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14413shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14414extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14415archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14416enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14417export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14418whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14419compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14420old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14421old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14422archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14423archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14424module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14425module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14426with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14427allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14428no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14429hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14430hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14431hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14432hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14433hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14434hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14435hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14436hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14437inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14438link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14439fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14440always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14441export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14442exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14443include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14444prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14445file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14446variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14447need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14448need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14449version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14450runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14451shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14452shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14453libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14454library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14455soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14456postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14457postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14458finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14459finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14460hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14461sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14462sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14463hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14464enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14465enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14466enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14467old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14468striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14469
14470LTCC='$LTCC'
14471LTCFLAGS='$LTCFLAGS'
14472compiler='$compiler_DEFAULT'
14473
14474# Quote evaled strings.
14475for var in SED \
14476GREP \
14477EGREP \
14478FGREP \
14479LD \
14480NM \
14481LN_S \
14482lt_SP2NL \
14483lt_NL2SP \
14484reload_flag \
14485OBJDUMP \
14486deplibs_check_method \
14487file_magic_cmd \
14488AR \
14489AR_FLAGS \
14490STRIP \
14491RANLIB \
14492CC \
14493CFLAGS \
14494compiler \
14495lt_cv_sys_global_symbol_pipe \
14496lt_cv_sys_global_symbol_to_cdecl \
14497lt_cv_sys_global_symbol_to_c_name_address \
14498lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14499SHELL \
14500ECHO \
14501lt_prog_compiler_no_builtin_flag \
14502lt_prog_compiler_wl \
14503lt_prog_compiler_pic \
14504lt_prog_compiler_static \
14505lt_cv_prog_compiler_c_o \
14506need_locks \
14507DSYMUTIL \
14508NMEDIT \
14509LIPO \
14510OTOOL \
14511OTOOL64 \
14512shrext_cmds \
14513export_dynamic_flag_spec \
14514whole_archive_flag_spec \
14515compiler_needs_object \
14516with_gnu_ld \
14517allow_undefined_flag \
14518no_undefined_flag \
14519hardcode_libdir_flag_spec \
14520hardcode_libdir_flag_spec_ld \
14521hardcode_libdir_separator \
14522fix_srcfile_path \
14523exclude_expsyms \
14524include_expsyms \
14525file_list_spec \
14526variables_saved_for_relink \
14527libname_spec \
14528library_names_spec \
14529soname_spec \
14530finish_eval \
14531old_striplib \
14532striplib; do
14533 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14534 *[\\\\\\\`\\"\\\$]*)
14535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14536 ;;
14537 *)
14538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14539 ;;
14540 esac
c2ac22cc 14541done
7083c021
AC
14542
14543# Double-quote double-evaled strings.
14544for var in reload_cmds \
14545old_postinstall_cmds \
14546old_postuninstall_cmds \
14547old_archive_cmds \
14548extract_expsyms_cmds \
14549old_archive_from_new_cmds \
14550old_archive_from_expsyms_cmds \
14551archive_cmds \
14552archive_expsym_cmds \
14553module_cmds \
14554module_expsym_cmds \
14555export_symbols_cmds \
14556prelink_cmds \
14557postinstall_cmds \
14558postuninstall_cmds \
14559finish_cmds \
14560sys_lib_search_path_spec \
14561sys_lib_dlsearch_path_spec; do
14562 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14563 *[\\\\\\\`\\"\\\$]*)
14564 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14565 ;;
14566 *)
14567 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14568 ;;
14569 esac
c2ac22cc 14570done
c2ac22cc 14571
7083c021
AC
14572# Fix-up fallback echo if it was mangled by the above quoting rules.
14573case \$lt_ECHO in
14574*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
c2ac22cc
VY
14575 ;;
14576esac
c2ac22cc 14577
7083c021
AC
14578ac_aux_dir='$ac_aux_dir'
14579xsi_shell='$xsi_shell'
14580lt_shell_append='$lt_shell_append'
c2ac22cc 14581
7083c021
AC
14582# See if we are running on zsh, and set the options which allow our
14583# commands through without removal of \ escapes INIT.
14584if test -n "\${ZSH_VERSION+set}" ; then
14585 setopt NO_GLOB_SUBST
c2ac22cc 14586fi
c2ac22cc 14587
c2ac22cc 14588
7083c021
AC
14589 PACKAGE='$PACKAGE'
14590 VERSION='$VERSION'
14591 TIMESTAMP='$TIMESTAMP'
14592 RM='$RM'
14593 ofile='$ofile'
c2ac22cc 14594
c2ac22cc 14595
c2ac22cc 14596
c2ac22cc 14597
7083c021
AC
14598 if test x$ac_cv_header_stdc = xyes; then
14599 rb_header_stdc=yes
14600 fi
14601 if test x$ac_cv_header_stdlib_h = xyes; then
14602 rb_header_stdlib_h=yes
14603 fi
14604 if test x$ac_cv_header_string_h = xyes; then
14605 rb_header_string_h=yes
14606 fi
14607 if test x$ac_cv_header_memory_h = xyes; then
14608 rb_header_memory_h=yes
14609 fi
14610 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
14611 rb_alloca_h="$ac_cv_working_alloca_h"
14612 else
14613 rb_alloc_h="$ac_cv_header_alloca_h"
14614 fi
14615 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
14616 rb_sockaddr_sa_len=yes
14617 fi
14618 if test x$ac_cv_header_sys_socket_h = xyes; then
14619 rb_sys_socket_h=yes
14620 fi
14621 if test x$ac_cv_header_sys_types_h = xyes; then
14622 rb_sys_types_h=yes
14623 fi
14624 if test x$ac_cv_header_sys_stat_h = xyes; then
14625 rb_sys_stat_h=yes
14626 fi
14627 if test x$ac_cv_header_sys_time_h = xyes; then
14628 rb_sys_time_h=yes
14629 fi
14630 if test x$ac_cv_header_time = xyes; then
14631 rb_time_h=yes
14632 fi
c2ac22cc 14633
7083c021
AC
14634 if test x$ac_cv_header_stdint_h = xyes; then
14635 rb_stdint_h=yes
14636 fi
14637 if test x$ac_cv_header_inttypes_h = xyes; then
14638 rb_inttypes_h=yes
14639 fi
14640 if test x$ac_cv_header_netinet_in_h = xyes; then
14641 rb_netinet_in_h=yes
14642 fi
c2ac22cc 14643
7083c021
AC
14644 if test x$ac_cv_header_crypt_h = xyes; then
14645 rb_crypt_h=yes
14646 fi
14647 if test x$ac_cv_header_errno_h = xyes; then
14648 rb_errno_h=yes
14649 fi
14650 if test x$ac_cv_header_unistd_h = xyes; then
14651 rb_unistd_h=yes
14652 fi
14653 if test x$ac_cv_header_windows_h = xyes; then
14654 rb_windows_h=yes
14655 fi
14656 if test x$ac_cv_header_winsock2_h = xyes; then
14657 rb_winsock2_h=yes
14658 fi
c2ac22cc 14659
7083c021 14660 rb_socklen_t=$rb_socklen_t
c2ac22cc 14661
7083c021
AC
14662 if test "x$rb_have_sockaddr_storage" = "xyes"; then
14663 rb_sockaddr_storage="yes"
14664 else
14665 rb_sockaddr_storage="no"
14666 fi
c2ac22cc 14667
7083c021 14668 rb_have_ipv6="$have_v6"
c2ac22cc 14669
7083c021
AC
14670 rb_mv="$MV"
14671 rb_rm="$RM"
c2ac22cc 14672
c2ac22cc 14673
c2ac22cc 14674
db137867 14675
db137867 14676
c2ac22cc 14677
c2ac22cc
VY
14678_ACEOF
14679
7083c021 14680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
db137867 14681
7083c021
AC
14682# Handling of arguments.
14683for ac_config_target in $ac_config_targets
14684do
14685 case $ac_config_target in
14686 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
14687 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14688 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14689 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
14690 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14691 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14692 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
c2ac22cc 14693
7083c021
AC
14694 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14695 esac
14696done
c2ac22cc 14697
db137867 14698
7083c021
AC
14699# If the user did not use the arguments to specify the items to instantiate,
14700# then the envvar interface is used. Set only those that are not.
14701# We use the long form for the default assignment because of an extremely
14702# bizarre bug on SunOS 4.1.3.
14703if $ac_need_defaults; then
14704 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14705 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14706 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14707fi
db137867 14708
7083c021
AC
14709# Have a temporary directory for convenience. Make it in the build tree
14710# simply because there is no reason against having it here, and in addition,
14711# creating and moving files from /tmp can sometimes cause problems.
14712# Hook for its removal unless debugging.
14713# Note that there is a small window in which the directory will not be cleaned:
14714# after its creation but before its name has been assigned to `$tmp'.
14715$debug ||
14716{
14717 tmp=
14718 trap 'exit_status=$?
14719 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14720' 0
14721 trap 'as_fn_exit 1' 1 2 13 15
14722}
14723# Create a (secure) tmp directory for tmp files.
db137867 14724
7083c021
AC
14725{
14726 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14727 test -n "$tmp" && test -d "$tmp"
14728} ||
14729{
14730 tmp=./conf$$-$RANDOM
14731 (umask 077 && mkdir "$tmp")
14732} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
db137867 14733
7083c021
AC
14734# Set up the scripts for CONFIG_FILES section.
14735# No need to generate them if there are no CONFIG_FILES.
14736# This happens for instance with `./config.status config.h'.
14737if test -n "$CONFIG_FILES"; then
db137867
AC
14738
14739
7083c021
AC
14740ac_cr=`echo X | tr X '\015'`
14741# On cygwin, bash can eat \r inside `` if the user requested igncr.
14742# But we know of no other shell where ac_cr would be empty at this
14743# point, so we can use a bashism as a fallback.
14744if test "x$ac_cr" = x; then
14745 eval ac_cr=\$\'\\r\'
14746fi
14747ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14748if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14749 ac_cs_awk_cr='\r'
db137867 14750else
7083c021 14751 ac_cs_awk_cr=$ac_cr
db137867
AC
14752fi
14753
7083c021 14754echo 'BEGIN {' >"$tmp/subs1.awk" &&
db137867
AC
14755_ACEOF
14756
db137867 14757
7083c021
AC
14758{
14759 echo "cat >conf$$subs.awk <<_ACEOF" &&
14760 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14761 echo "_ACEOF"
14762} >conf$$subs.sh ||
14763 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14764ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14765ac_delim='%!_!# '
14766for ac_last_try in false false false false false :; do
14767 . ./conf$$subs.sh ||
14768 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
db137867 14769
7083c021
AC
14770 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14771 if test $ac_delim_n = $ac_delim_num; then
14772 break
14773 elif $ac_last_try; then
14774 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14775 else
14776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14777 fi
14778done
14779rm -f conf$$subs.sh
db137867 14780
7083c021
AC
14781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14782cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
db137867 14783_ACEOF
7083c021
AC
14784sed -n '
14785h
14786s/^/S["/; s/!.*/"]=/
14787p
14788g
14789s/^[^!]*!//
14790:repl
14791t repl
14792s/'"$ac_delim"'$//
14793t delim
14794:nl
14795h
96f4052b 14796s/\(.\{148\}\)..*/\1/
7083c021
AC
14797t more1
14798s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14799p
14800n
14801b repl
14802:more1
14803s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14804p
14805g
14806s/.\{148\}//
14807t nl
14808:delim
14809h
96f4052b 14810s/\(.\{148\}\)..*/\1/
7083c021
AC
14811t more2
14812s/["\\]/\\&/g; s/^/"/; s/$/"/
14813p
14814b
14815:more2
14816s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14817p
14818g
14819s/.\{148\}//
14820t delim
14821' <conf$$subs.awk | sed '
14822/^[^""]/{
14823 N
14824 s/\n//
14825}
14826' >>$CONFIG_STATUS || ac_write_fail=1
14827rm -f conf$$subs.awk
14828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14829_ACAWK
14830cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14831 for (key in S) S_is_set[key] = 1
14832 FS = "\a"
db137867 14833
7083c021
AC
14834}
14835{
14836 line = $ 0
14837 nfields = split(line, field, "@")
14838 substed = 0
14839 len = length(field[1])
14840 for (i = 2; i < nfields; i++) {
14841 key = field[i]
14842 keylen = length(key)
14843 if (S_is_set[key]) {
14844 value = S[key]
14845 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14846 len += length(value) + length(field[++i])
14847 substed = 1
14848 } else
14849 len += 1 + keylen
14850 }
db137867 14851
7083c021
AC
14852 print line
14853}
14854
14855_ACAWK
14856_ACEOF
14857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14858if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14859 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
db137867 14860else
7083c021
AC
14861 cat
14862fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14863 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14864_ACEOF
db137867 14865
7083c021
AC
14866# VPATH may cause trouble with some makes, so we remove $(srcdir),
14867# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14868# trailing colons and then remove the whole line if VPATH becomes empty
14869# (actually we leave an empty line to preserve line numbers).
14870if test "x$srcdir" = x.; then
14871 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14872s/:*\$(srcdir):*/:/
14873s/:*\${srcdir}:*/:/
14874s/:*@srcdir@:*/:/
14875s/^\([^=]*=[ ]*\):*/\1/
14876s/:*$//
14877s/^[^=]*=[ ]*$//
14878}'
14879fi
db137867 14880
7083c021
AC
14881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14882fi # test -n "$CONFIG_FILES"
db137867 14883
7083c021
AC
14884# Set up the scripts for CONFIG_HEADERS section.
14885# No need to generate them if there are no CONFIG_HEADERS.
14886# This happens for instance with `./config.status Makefile'.
14887if test -n "$CONFIG_HEADERS"; then
14888cat >"$tmp/defines.awk" <<\_ACAWK ||
14889BEGIN {
db137867
AC
14890_ACEOF
14891
7083c021
AC
14892# Transform confdefs.h into an awk script `defines.awk', embedded as
14893# here-document in config.status, that substitutes the proper values into
14894# config.h.in to produce config.h.
db137867 14895
7083c021
AC
14896# Create a delimiter string that does not exist in confdefs.h, to ease
14897# handling of long lines.
14898ac_delim='%!_!# '
14899for ac_last_try in false false :; do
14900 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14901 if test -z "$ac_t"; then
14902 break
14903 elif $ac_last_try; then
14904 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14905 else
14906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14907 fi
14908done
db137867 14909
7083c021
AC
14910# For the awk script, D is an array of macro values keyed by name,
14911# likewise P contains macro parameters if any. Preserve backslash
14912# newline sequences.
db137867 14913
7083c021
AC
14914ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14915sed -n '
14916s/.\{148\}/&'"$ac_delim"'/g
14917t rset
14918:rset
14919s/^[ ]*#[ ]*define[ ][ ]*/ /
14920t def
14921d
14922:def
14923s/\\$//
14924t bsnl
14925s/["\\]/\\&/g
14926s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14927D["\1"]=" \3"/p
14928s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14929d
14930:bsnl
14931s/["\\]/\\&/g
14932s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14933D["\1"]=" \3\\\\\\n"\\/p
14934t cont
14935s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14936t cont
14937d
14938:cont
14939n
14940s/.\{148\}/&'"$ac_delim"'/g
14941t clear
14942:clear
14943s/\\$//
14944t bsnlc
14945s/["\\]/\\&/g; s/^/"/; s/$/"/p
14946d
14947:bsnlc
14948s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14949b cont
14950' <confdefs.h | sed '
14951s/'"$ac_delim"'/"\\\
14952"/g' >>$CONFIG_STATUS || ac_write_fail=1
db137867 14953
7083c021
AC
14954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14955 for (key in D) D_is_set[key] = 1
14956 FS = "\a"
14957}
14958/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14959 line = \$ 0
14960 split(line, arg, " ")
14961 if (arg[1] == "#") {
14962 defundef = arg[2]
14963 mac1 = arg[3]
14964 } else {
14965 defundef = substr(arg[1], 2)
14966 mac1 = arg[2]
14967 }
14968 split(mac1, mac2, "(") #)
14969 macro = mac2[1]
14970 prefix = substr(line, 1, index(line, defundef) - 1)
14971 if (D_is_set[macro]) {
14972 # Preserve the white space surrounding the "#".
14973 print prefix "define", macro P[macro] D[macro]
14974 next
14975 } else {
14976 # Replace #undef with comments. This is necessary, for example,
14977 # in the case of _POSIX_SOURCE, which is predefined and required
14978 # on some systems where configure will not decide to define it.
14979 if (defundef == "undef") {
14980 print "/*", prefix defundef, macro, "*/"
14981 next
14982 }
14983 }
14984}
14985{ print }
14986_ACAWK
db137867 14987_ACEOF
7083c021
AC
14988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14989 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14990fi # test -n "$CONFIG_HEADERS"
db137867
AC
14991
14992
7083c021
AC
14993eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14994shift
14995for ac_tag
14996do
14997 case $ac_tag in
14998 :[FHLC]) ac_mode=$ac_tag; continue;;
14999 esac
15000 case $ac_mode$ac_tag in
15001 :[FHL]*:*);;
15002 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15003 :[FH]-) ac_tag=-:-;;
15004 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15005 esac
15006 ac_save_IFS=$IFS
15007 IFS=:
15008 set x $ac_tag
15009 IFS=$ac_save_IFS
15010 shift
15011 ac_file=$1
15012 shift
db137867 15013
7083c021
AC
15014 case $ac_mode in
15015 :L) ac_source=$1;;
15016 :[FH])
15017 ac_file_inputs=
15018 for ac_f
15019 do
15020 case $ac_f in
15021 -) ac_f="$tmp/stdin";;
15022 *) # Look for the file first in the build tree, then in the source tree
15023 # (if the path is not absolute). The absolute path cannot be DOS-style,
15024 # because $ac_f cannot contain `:'.
15025 test -f "$ac_f" ||
15026 case $ac_f in
15027 [\\/$]*) false;;
15028 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15029 esac ||
15030 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15031 esac
15032 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15033 as_fn_append ac_file_inputs " '$ac_f'"
15034 done
db137867 15035
7083c021
AC
15036 # Let's still pretend it is `configure' which instantiates (i.e., don't
15037 # use $as_me), people would be surprised to read:
15038 # /* config.h. Generated by config.status. */
15039 configure_input='Generated from '`
15040 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15041 `' by configure.'
15042 if test x"$ac_file" != x-; then
15043 configure_input="$ac_file. $configure_input"
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15045$as_echo "$as_me: creating $ac_file" >&6;}
15046 fi
15047 # Neutralize special characters interpreted by sed in replacement strings.
15048 case $configure_input in #(
15049 *\&* | *\|* | *\\* )
15050 ac_sed_conf_input=`$as_echo "$configure_input" |
15051 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15052 *) ac_sed_conf_input=$configure_input;;
15053 esac
db137867 15054
7083c021
AC
15055 case $ac_tag in
15056 *:-:* | *:-) cat >"$tmp/stdin" \
15057 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15058 esac
15059 ;;
15060 esac
db137867 15061
7083c021
AC
15062 ac_dir=`$as_dirname -- "$ac_file" ||
15063$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15064 X"$ac_file" : 'X\(//\)[^/]' \| \
15065 X"$ac_file" : 'X\(//\)$' \| \
15066 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15067$as_echo X"$ac_file" |
15068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15069 s//\1/
15070 q
15071 }
15072 /^X\(\/\/\)[^/].*/{
15073 s//\1/
15074 q
15075 }
15076 /^X\(\/\/\)$/{
15077 s//\1/
15078 q
15079 }
15080 /^X\(\/\).*/{
15081 s//\1/
15082 q
15083 }
15084 s/.*/./; q'`
15085 as_dir="$ac_dir"; as_fn_mkdir_p
15086 ac_builddir=.
db137867 15087
7083c021
AC
15088case "$ac_dir" in
15089.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15090*)
15091 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15092 # A ".." for each directory in $ac_dir_suffix.
15093 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15094 case $ac_top_builddir_sub in
15095 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15096 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15097 esac ;;
15098esac
15099ac_abs_top_builddir=$ac_pwd
15100ac_abs_builddir=$ac_pwd$ac_dir_suffix
15101# for backward compatibility:
15102ac_top_builddir=$ac_top_build_prefix
db137867 15103
7083c021
AC
15104case $srcdir in
15105 .) # We are building in place.
15106 ac_srcdir=.
15107 ac_top_srcdir=$ac_top_builddir_sub
15108 ac_abs_top_srcdir=$ac_pwd ;;
15109 [\\/]* | ?:[\\/]* ) # Absolute name.
15110 ac_srcdir=$srcdir$ac_dir_suffix;
15111 ac_top_srcdir=$srcdir
15112 ac_abs_top_srcdir=$srcdir ;;
15113 *) # Relative name.
15114 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15115 ac_top_srcdir=$ac_top_build_prefix$srcdir
15116 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15117esac
15118ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
db137867 15119
c2ac22cc 15120
7083c021
AC
15121 case $ac_mode in
15122 :F)
15123 #
15124 # CONFIG_FILE
15125 #
db137867 15126
7083c021
AC
15127 case $INSTALL in
15128 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15129 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15130 esac
15131 ac_MKDIR_P=$MKDIR_P
15132 case $MKDIR_P in
15133 [\\/$]* | ?:[\\/]* ) ;;
15134 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15135 esac
db137867
AC
15136_ACEOF
15137
7083c021
AC
15138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15139# If the template does not know about datarootdir, expand it.
15140# FIXME: This hack should be removed a few years after 2.60.
15141ac_datarootdir_hack=; ac_datarootdir_seen=
15142ac_sed_dataroot='
15143/datarootdir/ {
15144 p
15145 q
15146}
15147/@datadir@/p
15148/@docdir@/p
15149/@infodir@/p
15150/@localedir@/p
15151/@mandir@/p'
15152case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15153*datarootdir*) ac_datarootdir_seen=yes;;
15154*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15156$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15157_ACEOF
15158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15159 ac_datarootdir_hack='
15160 s&@datadir@&$datadir&g
15161 s&@docdir@&$docdir&g
15162 s&@infodir@&$infodir&g
15163 s&@localedir@&$localedir&g
15164 s&@mandir@&$mandir&g
15165 s&\\\${datarootdir}&$datarootdir&g' ;;
15166esac
db137867
AC
15167_ACEOF
15168
7083c021
AC
15169# Neutralize VPATH when `$srcdir' = `.'.
15170# Shell code in configure.ac might set extrasub.
15171# FIXME: do we really want to maintain this feature?
15172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15173ac_sed_extra="$ac_vpsub
15174$extrasub
15175_ACEOF
15176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15177:t
15178/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15179s|@configure_input@|$ac_sed_conf_input|;t t
15180s&@top_builddir@&$ac_top_builddir_sub&;t t
15181s&@top_build_prefix@&$ac_top_build_prefix&;t t
15182s&@srcdir@&$ac_srcdir&;t t
15183s&@abs_srcdir@&$ac_abs_srcdir&;t t
15184s&@top_srcdir@&$ac_top_srcdir&;t t
15185s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15186s&@builddir@&$ac_builddir&;t t
15187s&@abs_builddir@&$ac_abs_builddir&;t t
15188s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15189s&@INSTALL@&$ac_INSTALL&;t t
15190s&@MKDIR_P@&$ac_MKDIR_P&;t t
15191$ac_datarootdir_hack
15192"
15193eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15194 || as_fn_error "could not create $ac_file" "$LINENO" 5
db137867 15195
7083c021
AC
15196test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15197 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15198 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15200which seems to be undefined. Please make sure it is defined." >&5
15201$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15202which seems to be undefined. Please make sure it is defined." >&2;}
db137867 15203
7083c021
AC
15204 rm -f "$tmp/stdin"
15205 case $ac_file in
15206 -) cat "$tmp/out" && rm -f "$tmp/out";;
15207 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15208 esac \
15209 || as_fn_error "could not create $ac_file" "$LINENO" 5
15210 ;;
15211 :H)
15212 #
15213 # CONFIG_HEADER
15214 #
15215 if test x"$ac_file" != x-; then
15216 {
15217 $as_echo "/* $configure_input */" \
15218 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15219 } >"$tmp/config.h" \
15220 || as_fn_error "could not create $ac_file" "$LINENO" 5
15221 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15223$as_echo "$as_me: $ac_file is unchanged" >&6;}
15224 else
15225 rm -f "$ac_file"
15226 mv "$tmp/config.h" "$ac_file" \
15227 || as_fn_error "could not create $ac_file" "$LINENO" 5
15228 fi
15229 else
15230 $as_echo "/* $configure_input */" \
15231 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15232 || as_fn_error "could not create -" "$LINENO" 5
15233 fi
15234# Compute "$ac_file"'s index in $config_headers.
15235_am_arg="$ac_file"
15236_am_stamp_count=1
15237for _am_header in $config_headers :; do
15238 case $_am_header in
15239 $_am_arg | $_am_arg:* )
15240 break ;;
15241 * )
15242 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15243 esac
15244done
15245echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15246$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15247 X"$_am_arg" : 'X\(//\)[^/]' \| \
15248 X"$_am_arg" : 'X\(//\)$' \| \
15249 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15250$as_echo X"$_am_arg" |
15251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15252 s//\1/
15253 q
15254 }
15255 /^X\(\/\/\)[^/].*/{
15256 s//\1/
15257 q
15258 }
15259 /^X\(\/\/\)$/{
15260 s//\1/
15261 q
15262 }
15263 /^X\(\/\).*/{
15264 s//\1/
15265 q
15266 }
15267 s/.*/./; q'`/stamp-h$_am_stamp_count
15268 ;;
db137867 15269
7083c021
AC
15270 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15271$as_echo "$as_me: executing $ac_file commands" >&6;}
15272 ;;
15273 esac
db137867 15274
db137867 15275
7083c021
AC
15276 case $ac_file$ac_mode in
15277 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15278 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15279 # are listed without --file. Let's play safe and only enable the eval
15280 # if we detect the quoting.
15281 case $CONFIG_FILES in
15282 *\'*) eval set x "$CONFIG_FILES" ;;
15283 *) set x $CONFIG_FILES ;;
15284 esac
15285 shift
15286 for mf
15287 do
15288 # Strip MF so we end up with the name of the file.
15289 mf=`echo "$mf" | sed -e 's/:.*$//'`
15290 # Check whether this is an Automake generated Makefile or not.
15291 # We used to match only the files named `Makefile.in', but
15292 # some people rename them; so instead we look at the file content.
15293 # Grep'ing the first line is not enough: some people post-process
15294 # each Makefile.in and add a new line on top of each file to say so.
15295 # Grep'ing the whole file is not good either: AIX grep has a line
15296 # limit of 2048, but all sed's we know have understand at least 4000.
15297 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15298 dirpart=`$as_dirname -- "$mf" ||
15299$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15300 X"$mf" : 'X\(//\)[^/]' \| \
15301 X"$mf" : 'X\(//\)$' \| \
15302 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15303$as_echo X"$mf" |
15304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15305 s//\1/
15306 q
15307 }
15308 /^X\(\/\/\)[^/].*/{
15309 s//\1/
15310 q
15311 }
15312 /^X\(\/\/\)$/{
15313 s//\1/
15314 q
15315 }
15316 /^X\(\/\).*/{
15317 s//\1/
15318 q
15319 }
15320 s/.*/./; q'`
15321 else
15322 continue
15323 fi
15324 # Extract the definition of DEPDIR, am__include, and am__quote
15325 # from the Makefile without running `make'.
15326 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15327 test -z "$DEPDIR" && continue
15328 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15329 test -z "am__include" && continue
15330 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15331 # When using ansi2knr, U may be empty or an underscore; expand it
15332 U=`sed -n 's/^U = //p' < "$mf"`
15333 # Find all dependency output files, they are included files with
15334 # $(DEPDIR) in their names. We invoke sed twice because it is the
15335 # simplest approach to changing $(DEPDIR) to its actual value in the
15336 # expansion.
15337 for file in `sed -n "
15338 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15339 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15340 # Make sure the directory exists.
15341 test -f "$dirpart/$file" && continue
15342 fdir=`$as_dirname -- "$file" ||
15343$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15344 X"$file" : 'X\(//\)[^/]' \| \
15345 X"$file" : 'X\(//\)$' \| \
15346 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15347$as_echo X"$file" |
15348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15349 s//\1/
15350 q
15351 }
15352 /^X\(\/\/\)[^/].*/{
15353 s//\1/
15354 q
15355 }
15356 /^X\(\/\/\)$/{
15357 s//\1/
15358 q
15359 }
15360 /^X\(\/\).*/{
15361 s//\1/
15362 q
15363 }
15364 s/.*/./; q'`
15365 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15366 # echo "creating $dirpart/$file"
15367 echo '# dummy' > "$dirpart/$file"
15368 done
15369 done
15370}
15371 ;;
15372 "libtool":C)
db137867 15373
7083c021
AC
15374 # See if we are running on zsh, and set the options which allow our
15375 # commands through without removal of \ escapes.
15376 if test -n "${ZSH_VERSION+set}" ; then
15377 setopt NO_GLOB_SUBST
15378 fi
c2ac22cc 15379
7083c021
AC
15380 cfgfile="${ofile}T"
15381 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15382 $RM "$cfgfile"
db137867 15383
7083c021
AC
15384 cat <<_LT_EOF >> "$cfgfile"
15385#! $SHELL
db137867 15386
7083c021
AC
15387# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15388# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15389# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15390# NOTE: Changes made to this file will be lost: look at ltmain.sh.
db137867 15391#
7083c021
AC
15392# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15393# 2006, 2007, 2008 Free Software Foundation, Inc.
15394# Written by Gordon Matzigkeit, 1996
db137867 15395#
7083c021
AC
15396# This file is part of GNU Libtool.
15397#
15398# GNU Libtool is free software; you can redistribute it and/or
15399# modify it under the terms of the GNU General Public License as
15400# published by the Free Software Foundation; either version 2 of
15401# the License, or (at your option) any later version.
15402#
15403# As a special exception to the GNU General Public License,
15404# if you distribute this file as part of a program or library that
15405# is built using GNU Libtool, you may include this file under the
15406# same distribution terms that you use for the rest of that program.
15407#
15408# GNU Libtool is distributed in the hope that it will be useful,
15409# but WITHOUT ANY WARRANTY; without even the implied warranty of
15410# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15411# GNU General Public License for more details.
15412#
15413# You should have received a copy of the GNU General Public License
15414# along with GNU Libtool; see the file COPYING. If not, a copy
15415# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15416# obtained by writing to the Free Software Foundation, Inc.,
15417# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
db137867 15418
db137867 15419
7083c021
AC
15420# The names of the tagged configurations supported by this script.
15421available_tags=""
db137867 15422
7083c021 15423# ### BEGIN LIBTOOL CONFIG
db137867 15424
7083c021
AC
15425# Whether or not to build static libraries.
15426build_old_libs=$enable_static
db137867 15427
7083c021
AC
15428# Whether or not to build shared libraries.
15429build_libtool_libs=$enable_shared
db137867 15430
7083c021
AC
15431# Which release of libtool.m4 was used?
15432macro_version=$macro_version
15433macro_revision=$macro_revision
db137867 15434
7083c021
AC
15435# What type of objects to build.
15436pic_mode=$pic_mode
db137867 15437
7083c021
AC
15438# Whether or not to optimize for fast installation.
15439fast_install=$enable_fast_install
db137867 15440
7083c021
AC
15441# The host system.
15442host_alias=$host_alias
15443host=$host
15444host_os=$host_os
db137867 15445
7083c021
AC
15446# The build system.
15447build_alias=$build_alias
15448build=$build
15449build_os=$build_os
db137867 15450
7083c021
AC
15451# A sed program that does not truncate output.
15452SED=$lt_SED
db137867 15453
7083c021
AC
15454# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15455Xsed="\$SED -e 1s/^X//"
db137867 15456
7083c021
AC
15457# A grep program that handles long lines.
15458GREP=$lt_GREP
db137867 15459
7083c021
AC
15460# An ERE matcher.
15461EGREP=$lt_EGREP
db137867 15462
7083c021
AC
15463# A literal string matcher.
15464FGREP=$lt_FGREP
db137867 15465
7083c021
AC
15466# A BSD- or MS-compatible name lister.
15467NM=$lt_NM
030272f3 15468
7083c021
AC
15469# Whether we need soft or hard links.
15470LN_S=$lt_LN_S
db137867 15471
7083c021
AC
15472# What is the maximum length of a command?
15473max_cmd_len=$max_cmd_len
db137867 15474
7083c021
AC
15475# Object file suffix (normally "o").
15476objext=$ac_objext
db137867 15477
7083c021
AC
15478# Executable file suffix (normally "").
15479exeext=$exeext
db137867 15480
7083c021
AC
15481# whether the shell understands "unset".
15482lt_unset=$lt_unset
db137867 15483
7083c021
AC
15484# turn spaces into newlines.
15485SP2NL=$lt_lt_SP2NL
db137867 15486
7083c021
AC
15487# turn newlines into spaces.
15488NL2SP=$lt_lt_NL2SP
db137867 15489
7083c021
AC
15490# How to create reloadable object files.
15491reload_flag=$lt_reload_flag
15492reload_cmds=$lt_reload_cmds
db137867 15493
7083c021
AC
15494# An object symbol dumper.
15495OBJDUMP=$lt_OBJDUMP
db137867 15496
7083c021
AC
15497# Method to check whether dependent libraries are shared objects.
15498deplibs_check_method=$lt_deplibs_check_method
db137867 15499
7083c021
AC
15500# Command to use when deplibs_check_method == "file_magic".
15501file_magic_cmd=$lt_file_magic_cmd
db137867 15502
7083c021
AC
15503# The archiver.
15504AR=$lt_AR
15505AR_FLAGS=$lt_AR_FLAGS
db137867 15506
7083c021
AC
15507# A symbol stripping program.
15508STRIP=$lt_STRIP
db137867 15509
7083c021
AC
15510# Commands used to install an old-style archive.
15511RANLIB=$lt_RANLIB
15512old_postinstall_cmds=$lt_old_postinstall_cmds
15513old_postuninstall_cmds=$lt_old_postuninstall_cmds
db137867 15514
7083c021
AC
15515# A C compiler.
15516LTCC=$lt_CC
db137867 15517
7083c021
AC
15518# LTCC compiler flags.
15519LTCFLAGS=$lt_CFLAGS
db137867 15520
7083c021
AC
15521# Take the output of nm and produce a listing of raw symbols and C names.
15522global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
db137867 15523
7083c021
AC
15524# Transform the output of nm in a proper C declaration.
15525global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
db137867 15526
7083c021
AC
15527# Transform the output of nm in a C name address pair.
15528global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
db137867 15529
7083c021
AC
15530# Transform the output of nm in a C name address pair when lib prefix is needed.
15531global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
db137867 15532
7083c021
AC
15533# The name of the directory that contains temporary libtool files.
15534objdir=$objdir
db137867 15535
7083c021
AC
15536# Shell to use when invoking shell scripts.
15537SHELL=$lt_SHELL
db137867 15538
7083c021
AC
15539# An echo program that does not interpret backslashes.
15540ECHO=$lt_ECHO
db137867 15541
7083c021
AC
15542# Used to examine libraries when file_magic_cmd begins with "file".
15543MAGIC_CMD=$MAGIC_CMD
15544
15545# Must we lock files when doing compilation?
15546need_locks=$lt_need_locks
db137867 15547
7083c021
AC
15548# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15549DSYMUTIL=$lt_DSYMUTIL
db137867 15550
7083c021
AC
15551# Tool to change global to local symbols on Mac OS X.
15552NMEDIT=$lt_NMEDIT
db137867 15553
7083c021
AC
15554# Tool to manipulate fat objects and archives on Mac OS X.
15555LIPO=$lt_LIPO
db137867 15556
7083c021
AC
15557# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15558OTOOL=$lt_OTOOL
db137867 15559
7083c021
AC
15560# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15561OTOOL64=$lt_OTOOL64
db137867 15562
7083c021
AC
15563# Old archive suffix (normally "a").
15564libext=$libext
db137867 15565
7083c021
AC
15566# Shared library suffix (normally ".so").
15567shrext_cmds=$lt_shrext_cmds
db137867 15568
7083c021
AC
15569# The commands to extract the exported symbol list from a shared archive.
15570extract_expsyms_cmds=$lt_extract_expsyms_cmds
db137867 15571
7083c021
AC
15572# Variables whose values should be saved in libtool wrapper scripts and
15573# restored at link time.
15574variables_saved_for_relink=$lt_variables_saved_for_relink
030272f3 15575
7083c021
AC
15576# Do we need the "lib" prefix for modules?
15577need_lib_prefix=$need_lib_prefix
030272f3 15578
7083c021
AC
15579# Do we need a version for libraries?
15580need_version=$need_version
030272f3 15581
7083c021
AC
15582# Library versioning type.
15583version_type=$version_type
db137867 15584
7083c021
AC
15585# Shared library runtime path variable.
15586runpath_var=$runpath_var
db137867 15587
7083c021
AC
15588# Shared library path variable.
15589shlibpath_var=$shlibpath_var
db137867 15590
7083c021
AC
15591# Is shlibpath searched before the hard-coded library search path?
15592shlibpath_overrides_runpath=$shlibpath_overrides_runpath
db137867 15593
7083c021
AC
15594# Format of library name prefix.
15595libname_spec=$lt_libname_spec
db137867 15596
7083c021
AC
15597# List of archive names. First name is the real one, the rest are links.
15598# The last name is the one that the linker finds with -lNAME
15599library_names_spec=$lt_library_names_spec
db137867 15600
7083c021
AC
15601# The coded name of the library, if different from the real name.
15602soname_spec=$lt_soname_spec
db137867 15603
7083c021
AC
15604# Command to use after installation of a shared archive.
15605postinstall_cmds=$lt_postinstall_cmds
db137867 15606
7083c021
AC
15607# Command to use after uninstallation of a shared archive.
15608postuninstall_cmds=$lt_postuninstall_cmds
db137867 15609
7083c021
AC
15610# Commands used to finish a libtool library installation in a directory.
15611finish_cmds=$lt_finish_cmds
db137867 15612
7083c021
AC
15613# As "finish_cmds", except a single script fragment to be evaled but
15614# not shown.
15615finish_eval=$lt_finish_eval
db137867 15616
7083c021
AC
15617# Whether we should hardcode library paths into libraries.
15618hardcode_into_libs=$hardcode_into_libs
db137867 15619
7083c021
AC
15620# Compile-time system search path for libraries.
15621sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
db137867 15622
7083c021
AC
15623# Run-time system search path for libraries.
15624sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
db137867 15625
7083c021
AC
15626# Whether dlopen is supported.
15627dlopen_support=$enable_dlopen
db137867 15628
7083c021
AC
15629# Whether dlopen of programs is supported.
15630dlopen_self=$enable_dlopen_self
db137867 15631
7083c021
AC
15632# Whether dlopen of statically linked programs is supported.
15633dlopen_self_static=$enable_dlopen_self_static
db137867 15634
7083c021
AC
15635# Commands to strip libraries.
15636old_striplib=$lt_old_striplib
15637striplib=$lt_striplib
db137867 15638
db137867 15639
7083c021
AC
15640# The linker used to build libraries.
15641LD=$lt_LD
db137867 15642
7083c021
AC
15643# Commands used to build an old-style archive.
15644old_archive_cmds=$lt_old_archive_cmds
db137867 15645
7083c021
AC
15646# A language specific compiler.
15647CC=$lt_compiler
db137867 15648
7083c021
AC
15649# Is the compiler the GNU compiler?
15650with_gcc=$GCC
db137867 15651
7083c021
AC
15652# Compiler flag to turn off builtin functions.
15653no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
db137867 15654
7083c021
AC
15655# How to pass a linker flag through the compiler.
15656wl=$lt_lt_prog_compiler_wl
15657
15658# Additional compiler flags for building library objects.
15659pic_flag=$lt_lt_prog_compiler_pic
15660
15661# Compiler flag to prevent dynamic linking.
15662link_static_flag=$lt_lt_prog_compiler_static
15663
15664# Does compiler simultaneously support -c and -o options?
15665compiler_c_o=$lt_lt_cv_prog_compiler_c_o
a9fb3ed0 15666
7083c021
AC
15667# Whether or not to add -lc for building shared libraries.
15668build_libtool_need_lc=$archive_cmds_need_lc
a9fb3ed0 15669
7083c021
AC
15670# Whether or not to disallow shared libs when runtime libs are static.
15671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
db137867 15672
7083c021
AC
15673# Compiler flag to allow reflexive dlopens.
15674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
db137867 15675
7083c021
AC
15676# Compiler flag to generate shared objects directly from archives.
15677whole_archive_flag_spec=$lt_whole_archive_flag_spec
db137867 15678
7083c021
AC
15679# Whether the compiler copes with passing no objects directly.
15680compiler_needs_object=$lt_compiler_needs_object
db137867 15681
7083c021
AC
15682# Create an old-style archive from a shared archive.
15683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
db137867 15684
7083c021
AC
15685# Create a temporary old-style archive to link instead of a shared archive.
15686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
db137867 15687
7083c021
AC
15688# Commands used to build a shared archive.
15689archive_cmds=$lt_archive_cmds
15690archive_expsym_cmds=$lt_archive_expsym_cmds
db137867 15691
7083c021
AC
15692# Commands used to build a loadable module if different from building
15693# a shared archive.
15694module_cmds=$lt_module_cmds
15695module_expsym_cmds=$lt_module_expsym_cmds
db137867 15696
7083c021
AC
15697# Whether we are building with GNU ld or not.
15698with_gnu_ld=$lt_with_gnu_ld
db137867 15699
7083c021
AC
15700# Flag that allows shared libraries with undefined symbols to be built.
15701allow_undefined_flag=$lt_allow_undefined_flag
db137867 15702
7083c021
AC
15703# Flag that enforces no undefined symbols.
15704no_undefined_flag=$lt_no_undefined_flag
db137867 15705
7083c021
AC
15706# Flag to hardcode \$libdir into a binary during linking.
15707# This must work even if \$libdir does not exist
15708hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
db137867 15709
7083c021
AC
15710# If ld is used when linking, flag to hardcode \$libdir into a binary
15711# during linking. This must work even if \$libdir does not exist.
15712hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
db137867 15713
7083c021
AC
15714# Whether we need a single "-rpath" flag with a separated argument.
15715hardcode_libdir_separator=$lt_hardcode_libdir_separator
db137867 15716
7083c021
AC
15717# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15718# DIR into the resulting binary.
15719hardcode_direct=$hardcode_direct
db137867 15720
7083c021
AC
15721# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15722# DIR into the resulting binary and the resulting library dependency is
15723# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15724# library is relocated.
15725hardcode_direct_absolute=$hardcode_direct_absolute
db137867 15726
7083c021
AC
15727# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15728# into the resulting binary.
15729hardcode_minus_L=$hardcode_minus_L
db137867 15730
7083c021
AC
15731# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15732# into the resulting binary.
15733hardcode_shlibpath_var=$hardcode_shlibpath_var
db137867 15734
7083c021
AC
15735# Set to "yes" if building a shared library automatically hardcodes DIR
15736# into the library and all subsequent libraries and executables linked
15737# against it.
15738hardcode_automatic=$hardcode_automatic
db137867 15739
7083c021
AC
15740# Set to yes if linker adds runtime paths of dependent libraries
15741# to runtime path list.
15742inherit_rpath=$inherit_rpath
db137867 15743
7083c021
AC
15744# Whether libtool must link a program against all its dependency libraries.
15745link_all_deplibs=$link_all_deplibs
db137867 15746
7083c021
AC
15747# Fix the shell variable \$srcfile for the compiler.
15748fix_srcfile_path=$lt_fix_srcfile_path
030272f3 15749
7083c021
AC
15750# Set to "yes" if exported symbols are required.
15751always_export_symbols=$always_export_symbols
030272f3 15752
7083c021
AC
15753# The commands to list exported symbols.
15754export_symbols_cmds=$lt_export_symbols_cmds
db137867 15755
7083c021
AC
15756# Symbols that should not be listed in the preloaded symbols.
15757exclude_expsyms=$lt_exclude_expsyms
030272f3 15758
7083c021
AC
15759# Symbols that must always be exported.
15760include_expsyms=$lt_include_expsyms
db137867 15761
7083c021
AC
15762# Commands necessary for linking programs (against libraries) with templates.
15763prelink_cmds=$lt_prelink_cmds
db137867 15764
7083c021
AC
15765# Specify filename containing input files.
15766file_list_spec=$lt_file_list_spec
db137867 15767
7083c021
AC
15768# How to hardcode a shared library path into an executable.
15769hardcode_action=$hardcode_action
db137867 15770
7083c021 15771# ### END LIBTOOL CONFIG
030272f3 15772
7083c021
AC
15773_LT_EOF
15774
15775 case $host_os in
15776 aix3*)
15777 cat <<\_LT_EOF >> "$cfgfile"
15778# AIX sometimes has problems with the GCC collect2 program. For some
15779# reason, if we set the COLLECT_NAMES environment variable, the problems
15780# vanish in a puff of smoke.
15781if test "X${COLLECT_NAMES+set}" != Xset; then
15782 COLLECT_NAMES=
15783 export COLLECT_NAMES
15784fi
15785_LT_EOF
15786 ;;
15787 esac
030272f3 15788
030272f3 15789
7083c021 15790ltmain="$ac_aux_dir/ltmain.sh"
030272f3 15791
030272f3 15792
7083c021
AC
15793 # We use sed instead of cat because bash on DJGPP gets confused if
15794 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15795 # text mode, it properly converts lines to CR/LF. This bash problem
15796 # is reportedly fixed, but why not run on old versions too?
15797 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15798 || (rm -f "$cfgfile"; exit 1)
030272f3 15799
7083c021
AC
15800 case $xsi_shell in
15801 yes)
15802 cat << \_LT_EOF >> "$cfgfile"
db137867 15803
7083c021
AC
15804# func_dirname file append nondir_replacement
15805# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15806# otherwise set result to NONDIR_REPLACEMENT.
15807func_dirname ()
15808{
15809 case ${1} in
15810 */*) func_dirname_result="${1%/*}${2}" ;;
15811 * ) func_dirname_result="${3}" ;;
db137867 15812 esac
7083c021
AC
15813}
15814
15815# func_basename file
15816func_basename ()
15817{
15818 func_basename_result="${1##*/}"
15819}
15820
15821# func_dirname_and_basename file append nondir_replacement
15822# perform func_basename and func_dirname in a single function
15823# call:
15824# dirname: Compute the dirname of FILE. If nonempty,
15825# add APPEND to the result, otherwise set result
15826# to NONDIR_REPLACEMENT.
15827# value returned in "$func_dirname_result"
15828# basename: Compute filename of FILE.
15829# value retuned in "$func_basename_result"
15830# Implementation must be kept synchronized with func_dirname
15831# and func_basename. For efficiency, we do not delegate to
15832# those functions but instead duplicate the functionality here.
15833func_dirname_and_basename ()
15834{
15835 case ${1} in
15836 */*) func_dirname_result="${1%/*}${2}" ;;
15837 * ) func_dirname_result="${3}" ;;
db137867 15838 esac
7083c021
AC
15839 func_basename_result="${1##*/}"
15840}
db137867 15841
7083c021
AC
15842# func_stripname prefix suffix name
15843# strip PREFIX and SUFFIX off of NAME.
15844# PREFIX and SUFFIX must not contain globbing or regex special
15845# characters, hashes, percent signs, but SUFFIX may contain a leading
15846# dot (in which case that matches only a dot).
15847func_stripname ()
15848{
15849 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15850 # positional parameters, so assign one to ordinary parameter first.
15851 func_stripname_result=${3}
15852 func_stripname_result=${func_stripname_result#"${1}"}
15853 func_stripname_result=${func_stripname_result%"${2}"}
15854}
db137867 15855
7083c021
AC
15856# func_opt_split
15857func_opt_split ()
15858{
15859 func_opt_split_opt=${1%%=*}
15860 func_opt_split_arg=${1#*=}
15861}
db137867 15862
7083c021
AC
15863# func_lo2o object
15864func_lo2o ()
15865{
15866 case ${1} in
15867 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15868 *) func_lo2o_result=${1} ;;
db137867 15869 esac
7083c021 15870}
db137867 15871
7083c021
AC
15872# func_xform libobj-or-source
15873func_xform ()
15874{
15875 func_xform_result=${1%.*}.lo
15876}
db137867 15877
7083c021
AC
15878# func_arith arithmetic-term...
15879func_arith ()
15880{
15881 func_arith_result=$(( $* ))
15882}
db137867 15883
7083c021
AC
15884# func_len string
15885# STRING may not start with a hyphen.
15886func_len ()
15887{
15888 func_len_result=${#1}
15889}
15890
15891_LT_EOF
15892 ;;
15893 *) # Bourne compatible functions.
15894 cat << \_LT_EOF >> "$cfgfile"
15895
15896# func_dirname file append nondir_replacement
15897# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15898# otherwise set result to NONDIR_REPLACEMENT.
15899func_dirname ()
15900{
15901 # Extract subdirectory from the argument.
15902 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15903 if test "X$func_dirname_result" = "X${1}"; then
15904 func_dirname_result="${3}"
15905 else
15906 func_dirname_result="$func_dirname_result${2}"
15907 fi
15908}
db137867 15909
7083c021
AC
15910# func_basename file
15911func_basename ()
15912{
15913 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15914}
db137867 15915
db137867 15916
7083c021
AC
15917# func_stripname prefix suffix name
15918# strip PREFIX and SUFFIX off of NAME.
15919# PREFIX and SUFFIX must not contain globbing or regex special
15920# characters, hashes, percent signs, but SUFFIX may contain a leading
15921# dot (in which case that matches only a dot).
15922# func_strip_suffix prefix name
15923func_stripname ()
15924{
15925 case ${2} in
15926 .*) func_stripname_result=`$ECHO "X${3}" \
15927 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15928 *) func_stripname_result=`$ECHO "X${3}" \
15929 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
db137867 15930 esac
7083c021 15931}
db137867 15932
7083c021
AC
15933# sed scripts:
15934my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15935my_sed_long_arg='1s/^-[^=]*=//'
db137867 15936
7083c021
AC
15937# func_opt_split
15938func_opt_split ()
15939{
15940 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15941 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
db137867 15942}
7083c021
AC
15943
15944# func_lo2o object
15945func_lo2o ()
15946{
15947 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15948}
15949
15950# func_xform libobj-or-source
15951func_xform ()
15952{
15953 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15954}
15955
15956# func_arith arithmetic-term...
15957func_arith ()
15958{
15959 func_arith_result=`expr "$@"`
15960}
15961
15962# func_len string
15963# STRING may not start with a hyphen.
15964func_len ()
15965{
15966 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15967}
15968
15969_LT_EOF
db137867 15970esac
db137867 15971
7083c021
AC
15972case $lt_shell_append in
15973 yes)
15974 cat << \_LT_EOF >> "$cfgfile"
db137867 15975
7083c021
AC
15976# func_append var value
15977# Append VALUE to the end of shell variable VAR.
15978func_append ()
15979{
15980 eval "$1+=\$2"
15981}
15982_LT_EOF
15983 ;;
15984 *)
15985 cat << \_LT_EOF >> "$cfgfile"
db137867 15986
7083c021
AC
15987# func_append var value
15988# Append VALUE to the end of shell variable VAR.
15989func_append ()
15990{
15991 eval "$1=\$$1\$2"
15992}
db137867 15993
7083c021
AC
15994_LT_EOF
15995 ;;
db137867
AC
15996 esac
15997
15998
7083c021
AC
15999 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16000 || (rm -f "$cfgfile"; exit 1)
16001
16002 mv -f "$cfgfile" "$ofile" ||
16003 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16004 chmod +x "$ofile"
16005
db137867
AC
16006 ;;
16007 "include/librb-config.h":C)
16008 outfile=include/librb-config.h.tmp
16009 cat > $outfile <<\_______EOF
16010/*
16011 * librb-config.h: libratbox config file. Please modify configure.ac
16012 */
16013
16014#ifndef __LIBRB_CONFIG_H
16015#define __LIBRB_CONFIG_H
16016
16017_______EOF
16018
16019if test "x$rb_have_ipv6" = "xyes"; then
16020 echo "#define RB_IPV6 1" >> $outfile
16021fi
16022
16023if test "x$rb_windows_h" = "xyes"; then
16024 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
16025 echo '#include <windows.h>' >> $outfile
16026 echo '#include <winsock2.h>' >> $outfile
16027 echo '#include <iphlpapi.h>' >> $outfile
16028fi
16029
16030if test "x$rb_alloca_h" = "xyes"; then
16031 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
16032fi
16033
16034if test "x$rb_header_stdc" = "xyes"; then
16035 echo '#include <stdlib.h>' >> $outfile
16036 echo '#include <stddef.h>' >> $outfile
16037elif test "x$rb_header_stdlib" = "xyes"; then
16038 echo '#include <stdlib.h>' >> $outfile
16039fi
16040
16041if test "x$rb_header_string_h" = "xyes"; then
16042 echo '#include <string.h>' >> $outfile
16043fi
16044
16045if test "x$rb_stdint_h" = "xyes"; then
16046 echo '#include <stdint.h>' >> $outfile
16047fi
16048
16049if test "x$rb_inttypes_h" = "xyes"; then
16050 echo '#include <inttypes.h>' >> $outfile
16051fi
16052
16053if test "x$rb_sys_types_h" = "xyes"; then
16054 echo '#include <sys/types.h>' >> $outfile
16055fi
16056if test "x$rb_sys_time_h" = "xyes"; then
16057 echo '#include <sys/time.h>' >> $outfile
16058fi
16059if test "x$rb_sys_stat_h" = "xyes"; then
16060 echo '#include <sys/stat.h>' >> $outfile
16061fi
16062if test "x$rb_time_h" = "xyes"; then
16063 echo '#include <time.h>' >> $outfile
16064fi
16065
16066if test "x$rb_sys_socket_h" = "xyes"; then
16067 echo '#include <sys/socket.h>' >> $outfile
16068fi
16069
16070if test "x$rb_netinet_in_h" = "xyes"; then
16071 echo '#include <netinet/in.h>' >> $outfile
16072fi
16073
16074if test "x$rb_arpa_inet_h" = "xyes"; then
16075 echo '#include <arpa/inet.h>' >> $outfile
16076fi
16077
16078if test "x$rb_unistd_h" = "xyes"; then
16079 echo '#include <unistd.h>' >> $outfile
16080fi
16081
16082if test "x$rb_crypt_h" = "xyes"; then
16083 echo '#include <crypt.h>' >> $outfile
16084fi
16085
16086if test "x$rb_errno_h" = "xyes"; then
16087 echo '#include <errno.h>' >> $outfile
16088fi
16089
a9fb3ed0
VY
16090echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
16091
16092
db137867
AC
16093if test "x$rb_sockaddr_sa_len" = "xyes"; then
16094 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
16095fi
16096
db137867
AC
16097if test "x$rb_sockaddr_storage" = "xyes"; then
16098 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
16099else
3202e249 16100 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
db137867
AC
16101fi
16102
16103cat >> $outfile <<\_______EOF
16104#endif /* __LIBRB_CONFIG_H */
16105_______EOF
16106
16107if cmp -s $outfile include/librb-config.h; then
7083c021 16108 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
030272f3 16109$as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
db137867
AC
16110 ${rb_rm} -f $outfile
16111else
16112 ${rb_mv} $outfile include/librb-config.h
16113fi
16114
16115 ;;
16116
16117 esac
16118done # for ac_tag
16119
16120
7083c021 16121as_fn_exit 0
db137867 16122_ACEOF
db137867
AC
16123ac_clean_files=$ac_clean_files_save
16124
030272f3 16125test $ac_write_fail = 0 ||
7083c021 16126 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
030272f3 16127
db137867
AC
16128
16129# configure is writing to config.log, and then calls config.status.
16130# config.status does its own redirection, appending to config.log.
16131# Unfortunately, on DOS this fails, as config.log is still kept open
16132# by configure, so config.status won't be able to write to it; its
16133# output is simply discarded. So we exec the FD to /dev/null,
16134# effectively closing config.log, so it can be properly (re)opened and
16135# appended to by config.status. When coming back to configure, we
16136# need to make the FD available again.
16137if test "$no_create" != yes; then
16138 ac_cs_success=:
16139 ac_config_status_args=
16140 test "$silent" = yes &&
16141 ac_config_status_args="$ac_config_status_args --quiet"
16142 exec 5>/dev/null
16143 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16144 exec 5>>config.log
16145 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16146 # would make configure fail if this is the last instruction.
7083c021 16147 $ac_cs_success || as_fn_exit $?
db137867 16148fi
030272f3 16149if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7083c021 16150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
030272f3
VY
16151$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16152fi
db137867 16153
db137867
AC
16154
16155
16156echo
16157echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
16158echo
16159
16160echo "Installing into: $prefix"
16161
16162echo "IPv6 support ................... $have_v6"
16163echo "Assert debugging ............... $assert"
16164echo "Block allocator ................ $balloc"
c2ac22cc 16165echo "SSL Type........................ $SSL_TYPE"
db137867
AC
16166echo
16167