]> jfr.im git - solanum.git/blame - configure
authd: implement DNS module
[solanum.git] / configure
CommitLineData
212380e3
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
c52df125 3# Generated by GNU Autoconf 2.69 for charybdis 3.6.0-dev.
212380e3 4#
6fb6bd15 5#
2eff3833 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
6fb6bd15 7#
7083c021 8#
212380e3
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
7083c021
AC
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
212380e3 14
631ef239
AC
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
7083c021 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
18 emulate sh
19 NULLCMD=:
7083c021 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
631ef239
AC
23 setopt NO_GLOB_SUBST
24else
7083c021
AC
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
631ef239 30esac
631ef239
AC
31fi
32
33
7083c021
AC
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
631ef239 54 else
7083c021
AC
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 67 fi
7083c021
AC
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
212380e3 70fi
212380e3 71
7083c021
AC
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
212380e3
AC
79fi
80
81
631ef239
AC
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
631ef239
AC
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 90as_myself=
7083c021 91case $0 in #((
631ef239
AC
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
7083c021
AC
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
631ef239
AC
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
7083c021
AC
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
631ef239
AC
112fi
113
7083c021
AC
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 121done
212380e3
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
7083c021
AC
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
2eff3833
JT
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
7083c021
AC
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
2eff3833
JT
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
7083c021
AC
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
c52df125
AC
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
7083c021
AC
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212380e3 219do
7083c021
AC
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
2eff3833
JT
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
7083c021
AC
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
212380e3 274 else
7083c021
AC
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
212380e3 279 fi
7083c021
AC
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
364
365
366} # as_fn_mkdir_p
2eff3833
JT
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
7083c021
AC
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
b6d0720c
AC
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
7083c021
AC
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 415# script with STATUS, using 1 if that was 0.
7083c021
AC
416as_fn_error ()
417{
b6d0720c
AC
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 422 fi
b6d0720c 423 $as_echo "$as_me: error: $2" >&2
7083c021
AC
424 as_fn_exit $as_status
425} # as_fn_error
212380e3 426
631ef239
AC
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
429 as_expr=expr
430else
431 as_expr=false
432fi
433
631ef239 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
435 as_basename=basename
436else
437 as_basename=false
438fi
439
7083c021
AC
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
212380e3 445
631ef239 446as_me=`$as_basename -- "$0" ||
212380e3
AC
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
631ef239 449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 450$as_echo X/"$0" |
631ef239
AC
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
212380e3 464
7083c021
AC
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
212380e3 471
212380e3 472
7083c021
AC
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
212380e3 495
2eff3833
JT
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
7083c021
AC
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
631ef239 506}
212380e3 507
7083c021
AC
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
631ef239 520
7083c021
AC
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2eff3833 534 # In both cases, we have to default to `cp -pR'.
7083c021 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2eff3833 536 as_ln_s='cp -pR'
7083c021
AC
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
2eff3833 540 as_ln_s='cp -pR'
7083c021 541 fi
631ef239 542else
2eff3833 543 as_ln_s='cp -pR'
631ef239 544fi
7083c021
AC
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
631ef239 547
7083c021
AC
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
631ef239
AC
553fi
554
2eff3833
JT
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
631ef239 557
7083c021
AC
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
631ef239 560
7083c021
AC
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
631ef239 563
c52df125
AC
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566lt_ltdl_dir='extra/libltdl'
567
568lt_dlopen_dir="$lt_ltdl_dir"
569
631ef239 570
6fb6bd15
AC
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
631ef239 573
7083c021 574# Name of the host.
b6d0720c 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
7083c021
AC
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
631ef239 578
7083c021
AC
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
212380e3 590
212380e3
AC
591# Identity of this package.
592PACKAGE_NAME='charybdis'
593PACKAGE_TARNAME='charybdis'
c52df125
AC
594PACKAGE_VERSION='3.6.0-dev'
595PACKAGE_STRING='charybdis 3.6.0-dev'
212380e3 596PACKAGE_BUGREPORT=''
7083c021 597PACKAGE_URL=''
212380e3
AC
598
599ac_default_prefix=$HOME/ircd
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
631ef239 603#ifdef HAVE_SYS_TYPES_H
212380e3
AC
604# include <sys/types.h>
605#endif
631ef239 606#ifdef HAVE_SYS_STAT_H
212380e3
AC
607# include <sys/stat.h>
608#endif
631ef239 609#ifdef STDC_HEADERS
212380e3
AC
610# include <stdlib.h>
611# include <stddef.h>
612#else
631ef239 613# ifdef HAVE_STDLIB_H
212380e3
AC
614# include <stdlib.h>
615# endif
616#endif
631ef239
AC
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3
AC
619# include <memory.h>
620# endif
621# include <string.h>
622#endif
631ef239 623#ifdef HAVE_STRINGS_H
212380e3
AC
624# include <strings.h>
625#endif
631ef239 626#ifdef HAVE_INTTYPES_H
212380e3 627# include <inttypes.h>
212380e3 628#endif
631ef239
AC
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
212380e3
AC
633# include <unistd.h>
634#endif"
635
1db8e007 636enable_option_checking=no
c52df125
AC
637ac_subst_vars='ltdl_LTLIBOBJS
638ltdl_LIBOBJS
639am__EXEEXT_FALSE
640am__EXEEXT_TRUE
641LTLIBOBJS
631ef239 642LIBOBJS
7083c021
AC
643SEDOBJ
644IRC_CFLAGS
645PICFLAGS
646SSL_LIBS
647SSL_INCLUDES
648SSL_SRCS_ENABLE
649MOD_TARGET
650MODULES_LIBS
651SELECT_TYPE
9f9b7042
NPB
652PROGRAM_PREFIX
653PKGRUNDIR
7083c021
AC
654moduledir
655MODULE_DIR
656helpdir
657HELP_DIR
658logdir
659LOG_DIR
7083c021 660ETC_DIR
c52df125 661SQLITE_OBJ
a5471f24 662SQLITE_INCLUDES
497e30a0 663SQLITE_LD
a5471f24
LS
664SQLITE_LIBS
665SQLITE_CFLAGS
666PKG_CONFIG_LIBDIR
667PKG_CONFIG_PATH
668PKG_CONFIG
7083c021
AC
669ZLIB_LD
670ENCSPEED
671ALLOCA
672VICONF
673CRYPT_LIB
9f9b7042
NPB
674PKGLIBEXECDIR
675pkglibexecdir
676PKGLOCALSTATEDIR
677pkglocalstatedir
678pkgrundir
679rundir
680pkglibdir
7083c021
AC
681LEXLIB
682LEX_OUTPUT_ROOT
683LEX
684YFLAGS
685YACC
686TOUCH
7083c021
AC
687LN
688MV
689CP
690RM
c52df125
AC
691BUILD_LTDL_FALSE
692BUILD_LTDL_TRUE
693LTDLOPEN
694LT_CONFIG_H
1db8e007 695subdirs
c52df125
AC
696CONVENIENCE_LTDL_FALSE
697CONVENIENCE_LTDL_TRUE
698INSTALL_LTDL_FALSE
699INSTALL_LTDL_TRUE
700ARGZ_H
701sys_symbol_underscore
702LIBADD_DL
703LT_DLPREOPEN
704LIBADD_DLD_LINK
705LIBADD_SHL_LOAD
706LIBADD_DLOPEN
707LT_DLLOADERS
708INCLTDL
709LTDLINCL
710LTDLDEPS
711LIBLTDL
712CPP
713OTOOL64
714OTOOL
715LIPO
716NMEDIT
717DSYMUTIL
718MANIFEST_TOOL
719RANLIB
720DLLTOOL
721OBJDUMP
722LN_S
723NM
724ac_ct_DUMPBIN
725DUMPBIN
726LD
727FGREP
7083c021
AC
728EGREP
729GREP
c52df125
AC
730SED
731host_os
732host_vendor
733host_cpu
734host
735build_os
736build_vendor
737build_cpu
738build
739LIBTOOL
740am__fastdepCC_FALSE
741am__fastdepCC_TRUE
742CCDEPMODE
743am__nodep
744AMDEPBACKSLASH
745AMDEP_FALSE
746AMDEP_TRUE
747am__quote
748am__include
749DEPDIR
7083c021
AC
750OBJEXT
751EXEEXT
752ac_ct_CC
753CPPFLAGS
754LDFLAGS
755CFLAGS
756CC
c52df125
AC
757ac_ct_AR
758AR
759AM_BACKSLASH
760AM_DEFAULT_VERBOSITY
761AM_DEFAULT_V
762AM_V
763am__untar
764am__tar
765AMTAR
766am__leading_dot
767SET_MAKE
768AWK
769mkdir_p
770MKDIR_P
771INSTALL_STRIP_PROGRAM
772STRIP
773install_sh
774MAKEINFO
775AUTOHEADER
776AUTOMAKE
777AUTOCONF
778ACLOCAL
779VERSION
780PACKAGE
781CYGPATH_W
782am__isrc
783INSTALL_DATA
784INSTALL_SCRIPT
785INSTALL_PROGRAM
7083c021
AC
786target_alias
787host_alias
788build_alias
789LIBS
790ECHO_T
791ECHO_N
792ECHO_C
793DEFS
794mandir
795localedir
796libdir
797psdir
798pdfdir
799dvidir
800htmldir
801infodir
802docdir
803oldincludedir
804includedir
805localstatedir
806sharedstatedir
807sysconfdir
808datadir
809datarootdir
810libexecdir
811sbindir
812bindir
813program_transform_name
814prefix
815exec_prefix
816PACKAGE_URL
817PACKAGE_BUGREPORT
818PACKAGE_STRING
819PACKAGE_VERSION
820PACKAGE_TARNAME
821PACKAGE_NAME
822PATH_SEPARATOR
823SHELL'
212380e3 824ac_subst_files=''
7083c021
AC
825ac_user_opts='
826enable_option_checking
c52df125
AC
827enable_silent_rules
828enable_dependency_tracking
829enable_static
830enable_shared
831with_pic
832enable_fast_install
833with_gnu_ld
834with_sysroot
835enable_libtool_lock
836with_included_ltdl
837with_ltdl_include
838with_ltdl_lib
839enable_ltdl_install
9f9b7042 840enable_fhs_paths
7083c021
AC
841enable_ipv6
842enable_openssl
843with_zlib_path
844enable_zlib
a6ef3156 845with_shared_sqlite
7083c021
AC
846enable_ports
847enable_poll
848enable_select
849enable_kqueue
850enable_epoll
851with_confdir
852with_logdir
853with_helpdir
854with_moduledir
9f9b7042
NPB
855with_rundir
856with_program_prefix
b6d0720c
AC
857with_custom_branding
858with_custom_version
7083c021
AC
859enable_assert
860enable_iodebug
861enable_profile
862enable_balloc
863enable_small_net
864with_nicklen
865with_topiclen
866enable_warnings
867'
631ef239
AC
868 ac_precious_vars='build_alias
869host_alias
870target_alias
871CC
872CFLAGS
873LDFLAGS
874LIBS
875CPPFLAGS
876CPP
877YACC
a5471f24
LS
878YFLAGS
879PKG_CONFIG
880PKG_CONFIG_PATH
881PKG_CONFIG_LIBDIR
882SQLITE_CFLAGS
883SQLITE_LIBS'
c52df125
AC
884ac_subdirs_all='extra/libltdl
885libratbox'
212380e3
AC
886
887# Initialize some variables set by options.
888ac_init_help=
889ac_init_version=false
7083c021
AC
890ac_unrecognized_opts=
891ac_unrecognized_sep=
212380e3
AC
892# The variables have the same names as the options, with
893# dashes changed to underlines.
894cache_file=/dev/null
895exec_prefix=NONE
896no_create=
897no_recursion=
898prefix=NONE
899program_prefix=NONE
900program_suffix=NONE
901program_transform_name=s,x,x,
902silent=
903site=
904srcdir=
905verbose=
906x_includes=NONE
907x_libraries=NONE
908
909# Installation directory options.
910# These are left unexpanded so users can "make install exec_prefix=/foo"
911# and all the variables that are supposed to be based on exec_prefix
912# by default will actually change.
913# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 914# (The list follows the same order as the GNU Coding Standards.)
212380e3
AC
915bindir='${exec_prefix}/bin'
916sbindir='${exec_prefix}/sbin'
917libexecdir='${exec_prefix}/libexec'
631ef239
AC
918datarootdir='${prefix}/share'
919datadir='${datarootdir}'
212380e3
AC
920sysconfdir='${prefix}/etc'
921sharedstatedir='${prefix}/com'
922localstatedir='${prefix}/var'
212380e3
AC
923includedir='${prefix}/include'
924oldincludedir='/usr/include'
631ef239
AC
925docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
926infodir='${datarootdir}/info'
927htmldir='${docdir}'
928dvidir='${docdir}'
929pdfdir='${docdir}'
930psdir='${docdir}'
931libdir='${exec_prefix}/lib'
932localedir='${datarootdir}/locale'
933mandir='${datarootdir}/man'
212380e3
AC
934
935ac_prev=
631ef239 936ac_dashdash=
212380e3
AC
937for ac_option
938do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
631ef239 941 eval $ac_prev=\$ac_option
212380e3
AC
942 ac_prev=
943 continue
944 fi
945
631ef239 946 case $ac_option in
b6d0720c
AC
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
631ef239 950 esac
212380e3
AC
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
631ef239
AC
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
212380e3
AC
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
962
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
977
631ef239 978 -datadir | --datadir | --datadi | --datad)
212380e3 979 ac_prev=datadir ;;
631ef239 980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3
AC
981 datadir=$ac_optarg ;;
982
631ef239
AC
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
212380e3 990 -disable-* | --disable-*)
7083c021 991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
212380e3 992 # Reject names that are not valid shell variable names.
7083c021 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 994 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"enable_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
631ef239
AC
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
212380e3
AC
1015
1016 -enable-* | --enable-*)
7083c021 1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
212380e3 1018 # Reject names that are not valid shell variable names.
7083c021 1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1020 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025"enable_$ac_useropt"
1026"*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1051
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1056
631ef239
AC
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
212380e3
AC
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1086
631ef239
AC
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
212380e3 1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 1093 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3
AC
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3
AC
1097 localstatedir=$ac_optarg ;;
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1160
631ef239
AC
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
212380e3
AC
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1219
1220 -with-* | --with-*)
7083c021 1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
212380e3 1222 # Reject names that are not valid shell variable names.
7083c021 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1224 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229"with_$ac_useropt"
1230"*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1235
1236 -without-* | --without-*)
7083c021 1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
212380e3 1238 # Reject names that are not valid shell variable names.
7083c021 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1240 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
212380e3
AC
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1269
b6d0720c
AC
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271Try \`$0 --help' for more information"
212380e3
AC
1272 ;;
1273
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
7083c021
AC
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
b6d0720c 1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1280 esac
631ef239 1281 eval $ac_envvar=\$ac_optarg
212380e3
AC
1282 export $ac_envvar ;;
1283
1284 *)
1285 # FIXME: should be removed in autoconf 3.0.
7083c021 1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
212380e3 1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
7083c021 1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b6d0720c 1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
212380e3
AC
1290 ;;
1291
1292 esac
1293done
1294
1295if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b6d0720c 1297 as_fn_error $? "missing argument to $ac_option"
212380e3
AC
1298fi
1299
7083c021
AC
1300if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
b6d0720c 1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
7083c021
AC
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 esac
1306fi
1307
1308# Check all directory arguments for consistency.
631ef239
AC
1309for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
212380e3 1313do
631ef239 1314 eval ac_val=\$$ac_var
7083c021
AC
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
212380e3 1322 case $ac_val in
631ef239
AC
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1325 esac
b6d0720c 1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
212380e3
AC
1327done
1328
1329# There might be people who depend on the old broken behavior: `$host'
1330# used to hold the argument of --host etc.
1331# FIXME: To remove some day.
1332build=$build_alias
1333host=$host_alias
1334target=$target_alias
1335
1336# FIXME: To remove some day.
1337if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
212380e3
AC
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343fi
1344
1345ac_tool_prefix=
1346test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348test "$silent" = yes && exec 6>/dev/null
1349
1350
631ef239
AC
1351ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352ac_ls_di=`ls -di .` &&
1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b6d0720c 1354 as_fn_error $? "working directory cannot be determined"
631ef239 1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b6d0720c 1356 as_fn_error $? "pwd does not report name of working directory"
631ef239
AC
1357
1358
1359# Find the source files, if location was not specified.
1360if test -z "$srcdir"; then
212380e3 1361 ac_srcdir_defaulted=yes
631ef239 1362 # Try the directory containing this script, then the parent directory.
7083c021
AC
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368$as_echo X"$as_myself" |
631ef239
AC
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
212380e3 1386 srcdir=$ac_confdir
631ef239 1387 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3
AC
1388 srcdir=..
1389 fi
1390else
1391 ac_srcdir_defaulted=no
1392fi
631ef239
AC
1393if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b6d0720c 1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
212380e3 1396fi
631ef239
AC
1397ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398ac_abs_confdir=`(
b6d0720c 1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
631ef239
AC
1400 pwd)`
1401# When building in place, set srcdir=.
1402if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404fi
1405# Remove unnecessary trailing slashes from srcdir.
1406# Double slashes in file names in object file debugging info
1407# mess up M-x gdb in Emacs.
1408case $srcdir in
1409*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410esac
1411for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416done
212380e3
AC
1417
1418#
1419# Report the --help message.
1420#
1421if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
c52df125 1425\`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems.
212380e3
AC
1426
1427Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430VAR=VALUE. See below for descriptions of some of the useful variables.
1431
1432Defaults for the options are specified in brackets.
1433
1434Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
b6d0720c 1439 -q, --quiet, --silent do not print \`checking ...' messages
212380e3
AC
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
212380e3
AC
1445Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
7083c021 1447 [$ac_default_prefix]
212380e3 1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7083c021 1449 [PREFIX]
212380e3
AC
1450
1451By default, \`make install' will install all the files in
1452\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454for instance \`--prefix=\$HOME'.
1455
1456For better control, use the options below.
1457
1458Fine tuning of the installation directories:
7083c021
AC
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
212380e3
AC
1478_ACEOF
1479
1480 cat <<\_ACEOF
c52df125
AC
1481
1482Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486
1487System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
212380e3
AC
1490_ACEOF
1491fi
1492
1493if test -n "$ac_init_help"; then
1494 case $ac_init_help in
c52df125 1495 short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";;
212380e3
AC
1496 esac
1497 cat <<\_ACEOF
1498
1499Optional Features:
7083c021 1500 --disable-option-checking ignore unrecognized --enable/--with options
212380e3
AC
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c52df125
AC
1503 --enable-silent-rules less verbose build output (undo: "make V=1")
1504 --disable-silent-rules verbose build output (undo: "make V=0")
1505 --enable-dependency-tracking
1506 do not reject slow dependency extractors
1507 --disable-dependency-tracking
1508 speeds up one-time build
1509 --enable-static[=PKGS] build static libraries [default=no]
1510 --enable-shared[=PKGS] build shared libraries [default=yes]
1511 --enable-fast-install[=PKGS]
1512 optimize for fast installation [default=yes]
1513 --disable-libtool-lock avoid locking (might break parallel builds)
1514 --enable-ltdl-install install libltdl
6929cd01 1515 --enable-fhs-paths Use more FHS-like pathnames (for packagers).
212380e3 1516 --enable-ipv6 Enable IPv6 support
631ef239 1517 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3
AC
1518 --disable-openssl Disable OpenSSL support.
1519 --disable-zlib Disable ziplinks support
c1c5fdc4 1520 --enable-ports Force solaris I/O ports subsystem usage.
212380e3
AC
1521 --enable-poll Force poll() usage.
1522 --enable-select Force select() usage.
1523 --enable-kqueue Force kqueue() usage.
212380e3
AC
1524 --enable-epoll Force sys_epoll usage (Linux only).
1525 --enable-assert Enable assert(). Choose between soft(warnings) and
1526 hard(aborts the daemon)
1527 --enable-iodebug Enable IO Debugging hooks
1528 --enable-profile Enable profiling
1529 --disable-balloc Disable the block allocator.
212380e3 1530 --enable-small-net Enable small network support.
212380e3
AC
1531 --enable-warnings Enable all sorts of warnings for debugging.
1532
1533Optional Packages:
1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
c52df125
AC
1536 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1537 both]
1538 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1539 --with-sysroot=DIR Search for dependent libraries within DIR
1540 (or the compiler's sysroot if not specified).
1541 --with-included-ltdl use the GNU ltdl sources included here
1542 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1543 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
212380e3 1544 --with-zlib-path=DIR Path to libz.so for ziplinks support.
a6ef3156 1545 --with-shared-sqlite Use shared sqlite
634d4aad
NPB
1546 --with-confdir=DIR Directory to install config files [deprecated, use
1547 --sysconfdir instead].
212380e3
AC
1548 --with-logdir=DIR Directory where to write logfiles.
1549 --with-helpdir=DIR Directory to install help files.
1550 --with-moduledir=DIR Directory to install modules.
9f9b7042
NPB
1551 --with-rundir=DIR Directory in which to store pidfile.
1552 --with-program-prefix= If set, programs installed into PATH will be
1553 installed with names prefixed by this prefix.
b6d0720c
AC
1554 --with-custom-branding=NAME
1555 Custom branding name.
1556 --with-custom-version=NAME
1557 Custom version branding.
b583faf9 1558 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
cf533739 1559 31, max 50)
212380e3
AC
1560 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1561 390)
212380e3
AC
1562
1563Some influential environment variables:
1564 CC C compiler command
1565 CFLAGS C compiler flags
1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1567 nonstandard directory <lib dir>
631ef239 1568 LIBS libraries to pass to the linker, e.g. -l<library>
6fb6bd15 1569 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
631ef239 1570 you have headers in a nonstandard directory <include dir>
212380e3 1571 CPP C preprocessor
b6d0720c
AC
1572 YACC The `Yet Another Compiler Compiler' implementation to use.
1573 Defaults to the first program found out of: `bison -y', `byacc',
1574 `yacc'.
631ef239
AC
1575 YFLAGS The list of arguments that will be passed by default to $YACC.
1576 This script will default YFLAGS to the empty string to avoid a
1577 default value of `-d' given by some make applications.
a5471f24
LS
1578 PKG_CONFIG path to pkg-config utility
1579 PKG_CONFIG_PATH
1580 directories to add to pkg-config's search path
1581 PKG_CONFIG_LIBDIR
1582 path overriding pkg-config's built-in search path
1583 SQLITE_CFLAGS
1584 C compiler flags for SQLITE, overriding pkg-config
1585 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
212380e3
AC
1586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
7083c021 1590Report bugs to the package provider.
212380e3 1591_ACEOF
631ef239 1592ac_status=$?
212380e3
AC
1593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
212380e3 1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7083c021
AC
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
212380e3
AC
1601 ac_builddir=.
1602
631ef239
AC
1603case "$ac_dir" in
1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605*)
7083c021 1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 1607 # A ".." for each directory in $ac_dir_suffix.
7083c021 1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 esac ;;
1613esac
1614ac_abs_top_builddir=$ac_pwd
1615ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616# for backward compatibility:
1617ac_top_builddir=$ac_top_build_prefix
212380e3
AC
1618
1619case $srcdir in
631ef239 1620 .) # We are building in place.
212380e3 1621 ac_srcdir=.
631ef239
AC
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1625 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1628 *) # Relative name.
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1632esac
631ef239
AC
1633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1643 else
7083c021 1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239
AC
1645 fi || ac_status=$?
1646 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3
AC
1647 done
1648fi
1649
631ef239 1650test -n "$ac_init_help" && exit $ac_status
212380e3
AC
1651if $ac_init_version; then
1652 cat <<\_ACEOF
c52df125 1653charybdis configure 3.6.0-dev
2eff3833 1654generated by GNU Autoconf 2.69
212380e3 1655
2eff3833 1656Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
1657This configure script is free software; the Free Software Foundation
1658gives unlimited permission to copy, distribute and modify it.
212380e3 1659_ACEOF
631ef239 1660 exit
212380e3 1661fi
212380e3 1662
7083c021
AC
1663## ------------------------ ##
1664## Autoconf initialization. ##
1665## ------------------------ ##
212380e3 1666
7083c021
AC
1667# ac_fn_c_try_compile LINENO
1668# --------------------------
1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_compile ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1693 ac_retval=0
1694else
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1697
7083c021
AC
1698 ac_retval=1
1699fi
b6d0720c 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1701 as_fn_set_status $ac_retval
7083c021
AC
1702
1703} # ac_fn_c_try_compile
1704
c52df125
AC
1705# ac_fn_c_try_link LINENO
1706# -----------------------
1707# Try to link conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_link ()
212380e3 1709{
7083c021 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c52df125
AC
1711 rm -f conftest.$ac_objext conftest$ac_exeext
1712 if { { ac_try="$ac_link"
7083c021
AC
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
c52df125 1719 (eval "$ac_link") 2>conftest.err
7083c021
AC
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c52df125
AC
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
7083c021 1729 test ! -s conftest.err
c52df125
AC
1730 } && test -s conftest$ac_exeext && {
1731 test "$cross_compiling" = yes ||
1732 test -x conftest$ac_exeext
7083c021
AC
1733 }; then :
1734 ac_retval=0
1735else
1736 $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1738
c52df125 1739 ac_retval=1
7083c021 1740fi
c52df125
AC
1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743 # interfere with the next link command; also delete a directory that is
1744 # left behind by Apple's compiler. We do this before executing the actions.
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1747 as_fn_set_status $ac_retval
212380e3 1748
c52df125 1749} # ac_fn_c_try_link
212380e3 1750
c52df125 1751# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
7083c021 1752# -------------------------------------------------------
c52df125
AC
1753# Tests whether HEADER exists and can be compiled using the include files in
1754# INCLUDES, setting the cache variable VAR accordingly.
1755ac_fn_c_check_header_compile ()
7083c021
AC
1756{
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7083c021
AC
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
b6d0720c 1760if eval \${$3+:} false; then :
7083c021 1761 $as_echo_n "(cached) " >&6
7083c021 1762else
c52df125 1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021
AC
1764/* end confdefs.h. */
1765$4
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"; then :
c52df125 1769 eval "$3=yes"
7083c021 1770else
c52df125 1771 eval "$3=no"
7083c021
AC
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
1774fi
1775eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
c52df125
AC
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780} # ac_fn_c_check_header_compile
1781
1782# ac_fn_c_try_cpp LINENO
1783# ----------------------
1784# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_cpp ()
1786{
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_cpp conftest.$ac_ext"
1789case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1801 fi
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } > conftest.i && {
1804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 }; then :
1807 ac_retval=0
1808else
1809 $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=1
7083c021 1813fi
b6d0720c 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c52df125 1815 as_fn_set_status $ac_retval
212380e3 1816
c52df125 1817} # ac_fn_c_try_cpp
212380e3 1818
7083c021
AC
1819# ac_fn_c_try_run LINENO
1820# ----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822# that executables *can* be run.
1823ac_fn_c_try_run ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1847 ac_retval=0
1848else
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1852
7083c021
AC
1853 ac_retval=$ac_status
1854fi
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1857 as_fn_set_status $ac_retval
212380e3 1858
7083c021 1859} # ac_fn_c_try_run
212380e3 1860
c52df125
AC
1861# ac_fn_c_check_func LINENO FUNC VAR
1862# ----------------------------------
1863# Tests whether FUNC exists, setting the cache variable VAR accordingly
1864ac_fn_c_check_func ()
7083c021
AC
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
b6d0720c 1869if eval \${$3+:} false; then :
7083c021
AC
1870 $as_echo_n "(cached) " >&6
1871else
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h. */
c52df125
AC
1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1876#define $2 innocuous_$2
1877
1878/* System header to define __stub macros and hopefully few prototypes,
1879 which can conflict with char $2 (); below.
1880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881 <limits.h> exists even on freestanding compilers. */
1882
1883#ifdef __STDC__
1884# include <limits.h>
1885#else
1886# include <assert.h>
1887#endif
1888
1889#undef $2
1890
1891/* Override any GCC internal prototype to avoid an error.
1892 Use char because int might match the return type of a GCC
1893 builtin and then its argument prototype would still apply. */
1894#ifdef __cplusplus
1895extern "C"
1896#endif
1897char $2 ();
1898/* The GNU C library defines this for functions which it implements
1899 to always fail with ENOSYS. Some functions are actually named
1900 something starting with __ and the normal name is an alias. */
1901#if defined __stub_$2 || defined __stub___$2
1902choke me
1903#endif
1904
1905int
1906main ()
1907{
1908return $2 ();
1909 ;
1910 return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_link "$LINENO"; then :
1914 eval "$3=yes"
1915else
1916 eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext \
1919 conftest$ac_exeext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_func
1927
1928# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1929# ---------------------------------------------
1930# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1931# accordingly.
1932ac_fn_c_check_decl ()
1933{
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 as_decl_name=`echo $2|sed 's/ *(.*//'`
1936 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1938$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1939if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
7083c021 1944$4
c52df125
AC
1945int
1946main ()
1947{
1948#ifndef $as_decl_name
1949#ifdef __cplusplus
1950 (void) $as_decl_use;
1951#else
1952 (void) $as_decl_name;
1953#endif
1954#endif
1955
1956 ;
1957 return 0;
1958}
212380e3 1959_ACEOF
7083c021
AC
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 eval "$3=yes"
1962else
1963 eval "$3=no"
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
b6d0720c 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1971
c52df125 1972} # ac_fn_c_check_decl
212380e3 1973
c52df125
AC
1974# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1975# -------------------------------------------
1976# Tests whether TYPE exists after having included INCLUDES, setting cache
1977# variable VAR accordingly.
1978ac_fn_c_check_type ()
7083c021
AC
1979{
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982$as_echo_n "checking for $2... " >&6; }
b6d0720c 1983if eval \${$3+:} false; then :
7083c021 1984 $as_echo_n "(cached) " >&6
212380e3 1985else
7083c021
AC
1986 eval "$3=no"
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$4
1990int
1991main ()
1992{
1993if (sizeof ($2))
1994 return 0;
1995 ;
1996 return 0;
1997}
212380e3 1998_ACEOF
7083c021
AC
1999if ac_fn_c_try_compile "$LINENO"; then :
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2001/* end confdefs.h. */
7083c021 2002$4
212380e3
AC
2003int
2004main ()
2005{
7083c021
AC
2006if (sizeof (($2)))
2007 return 0;
212380e3
AC
2008 ;
2009 return 0;
2010}
2011_ACEOF
7083c021 2012if ac_fn_c_try_compile "$LINENO"; then :
212380e3 2013
631ef239 2014else
7083c021 2015 eval "$3=yes"
212380e3 2016fi
7083c021 2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2018fi
7083c021 2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2020fi
7083c021
AC
2021eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023$as_echo "$ac_res" >&6; }
b6d0720c 2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 2025
7083c021
AC
2026} # ac_fn_c_check_type
2027
c52df125
AC
2028# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2029# -------------------------------------------------------
2030# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2031# the include files in INCLUDES and setting the cache variable VAR
2032# accordingly.
2033ac_fn_c_check_header_mongrel ()
2034{
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if eval \${$3+:} false; then :
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038$as_echo_n "checking for $2... " >&6; }
2039if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2041fi
2042eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045else
2046 # Is the header compilable?
2047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2048$as_echo_n "checking $2 usability... " >&6; }
2049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h. */
2051$4
2052#include <$2>
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_header_compiler=yes
2056else
2057 ac_header_compiler=no
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2061$as_echo "$ac_header_compiler" >&6; }
2062
2063# Is the header present?
2064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2065$as_echo_n "checking $2 presence... " >&6; }
2066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h. */
2068#include <$2>
2069_ACEOF
2070if ac_fn_c_try_cpp "$LINENO"; then :
2071 ac_header_preproc=yes
2072else
2073 ac_header_preproc=no
2074fi
2075rm -f conftest.err conftest.i conftest.$ac_ext
2076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2077$as_echo "$ac_header_preproc" >&6; }
2078
2079# So? What about this header?
2080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2081 yes:no: )
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2083$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086 ;;
2087 no:yes:* )
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2089$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2091$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2093$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2095$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2097$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2098 ;;
2099esac
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101$as_echo_n "checking for $2... " >&6; }
2102if eval \${$3+:} false; then :
2103 $as_echo_n "(cached) " >&6
2104else
2105 eval "$3=\$ac_header_compiler"
2106fi
2107eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109$as_echo "$ac_res" >&6; }
2110fi
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_header_mongrel
2114
7083c021
AC
2115# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116# --------------------------------------------
2117# Tries to find the compile-time value of EXPR in a program that includes
2118# INCLUDES, setting VAR accordingly. Returns whether the value could be
2119# computed
2120ac_fn_c_compute_int ()
2121{
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if test "$cross_compiling" = yes; then
2124 # Depending upon the size, compute the lo and hi bounds.
2125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h. */
2127$4
2128int
2129main ()
2130{
2131static int test_array [1 - 2 * !(($2) >= 0)];
2eff3833
JT
2132test_array [0] = 0;
2133return test_array [0];
7083c021
AC
2134
2135 ;
2136 return 0;
2137}
212380e3 2138_ACEOF
7083c021
AC
2139if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_lo=0 ac_mid=0
2141 while :; do
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2143/* end confdefs.h. */
7083c021
AC
2144$4
2145int
2146main ()
2147{
2148static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
2149test_array [0] = 0;
2150return test_array [0];
212380e3 2151
7083c021
AC
2152 ;
2153 return 0;
2154}
212380e3 2155_ACEOF
7083c021
AC
2156if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_hi=$ac_mid; break
212380e3 2158else
7083c021
AC
2159 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2160 if test $ac_lo -le $ac_mid; then
2161 ac_lo= ac_hi=
2162 break
2163 fi
2164 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
212380e3 2165fi
631ef239 2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
2167 done
2168else
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170/* end confdefs.h. */
2171$4
2172int
2173main ()
2174{
2175static int test_array [1 - 2 * !(($2) < 0)];
2eff3833
JT
2176test_array [0] = 0;
2177return test_array [0];
212380e3 2178
7083c021
AC
2179 ;
2180 return 0;
2181}
212380e3 2182_ACEOF
7083c021
AC
2183if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=-1 ac_mid=-1
2185 while :; do
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h. */
2188$4
2189int
2190main ()
2191{
2192static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2eff3833
JT
2193test_array [0] = 0;
2194return test_array [0];
212380e3 2195
7083c021
AC
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200if ac_fn_c_try_compile "$LINENO"; then :
2201 ac_lo=$ac_mid; break
2202else
2203 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2204 if test $ac_mid -le $ac_hi; then
2205 ac_lo= ac_hi=
2206 break
2207 fi
2208 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
212380e3 2209fi
7083c021
AC
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 done
212380e3 2212else
7083c021
AC
2213 ac_lo= ac_hi=
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218# Binary search between lo and hi bounds.
2219while test "x$ac_lo" != "x$ac_hi"; do
2220 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2222/* end confdefs.h. */
7083c021
AC
2223$4
2224int
2225main ()
2226{
2227static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
2228test_array [0] = 0;
2229return test_array [0];
7083c021
AC
2230
2231 ;
2232 return 0;
2233}
212380e3 2234_ACEOF
7083c021
AC
2235if ac_fn_c_try_compile "$LINENO"; then :
2236 ac_hi=$ac_mid
212380e3 2237else
7083c021 2238 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
212380e3 2239fi
7083c021
AC
2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241done
2242case $ac_lo in #((
2243?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2244'') ac_retval=1 ;;
2245esac
2246 else
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h. */
2249$4
2250static long int longval () { return $2; }
2251static unsigned long int ulongval () { return $2; }
2252#include <stdio.h>
2253#include <stdlib.h>
2254int
2255main ()
2256{
631ef239 2257
7083c021
AC
2258 FILE *f = fopen ("conftest.val", "w");
2259 if (! f)
2260 return 1;
2261 if (($2) < 0)
2262 {
2263 long int i = longval ();
2264 if (i != ($2))
2265 return 1;
2266 fprintf (f, "%ld", i);
2267 }
2268 else
2269 {
2270 unsigned long int i = ulongval ();
2271 if (i != ($2))
2272 return 1;
2273 fprintf (f, "%lu", i);
2274 }
2275 /* Do not output a trailing newline, as this causes \r\n confusion
2276 on some platforms. */
2277 return ferror (f) || fclose (f) != 0;
212380e3 2278
7083c021
AC
2279 ;
2280 return 0;
2281}
212380e3 2282_ACEOF
7083c021
AC
2283if ac_fn_c_try_run "$LINENO"; then :
2284 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
212380e3 2285else
7083c021 2286 ac_retval=1
212380e3 2287fi
7083c021
AC
2288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2289 conftest.$ac_objext conftest.beam conftest.$ac_ext
2290rm -f conftest.val
631ef239 2291
7083c021 2292 fi
b6d0720c 2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 2294 as_fn_set_status $ac_retval
212380e3 2295
7083c021 2296} # ac_fn_c_compute_int
7083c021
AC
2297cat >config.log <<_ACEOF
2298This file contains any messages produced by compilers while
2299running configure, to aid debugging if configure makes a mistake.
212380e3 2300
c52df125 2301It was created by charybdis $as_me 3.6.0-dev, which was
2eff3833 2302generated by GNU Autoconf 2.69. Invocation command line was
212380e3 2303
7083c021 2304 $ $0 $@
212380e3 2305
7083c021
AC
2306_ACEOF
2307exec 5>>config.log
2308{
2309cat <<_ASUNAME
2310## --------- ##
2311## Platform. ##
2312## --------- ##
2313
2314hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2315uname -m = `(uname -m) 2>/dev/null || echo unknown`
2316uname -r = `(uname -r) 2>/dev/null || echo unknown`
2317uname -s = `(uname -s) 2>/dev/null || echo unknown`
2318uname -v = `(uname -v) 2>/dev/null || echo unknown`
2319
2320/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2321/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2322
2323/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2324/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2325/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2326/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2327/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2328/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2329/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2330
2331_ASUNAME
212380e3 2332
631ef239 2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083c021 2334for as_dir in $PATH
631ef239
AC
2335do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
7083c021 2338 $as_echo "PATH: $as_dir"
631ef239 2339 done
631ef239
AC
2340IFS=$as_save_IFS
2341
7083c021 2342} >&5
631ef239 2343
7083c021 2344cat >&5 <<_ACEOF
631ef239 2345
631ef239 2346
7083c021
AC
2347## ----------- ##
2348## Core tests. ##
2349## ----------- ##
631ef239 2350
7083c021 2351_ACEOF
631ef239
AC
2352
2353
7083c021
AC
2354# Keep a trace of the command line.
2355# Strip out --no-create and --no-recursion so they do not pile up.
2356# Strip out --silent because we don't want to record it for future runs.
2357# Also quote any args containing shell meta-characters.
2358# Make two passes to allow for proper duplicate-argument suppression.
2359ac_configure_args=
2360ac_configure_args0=
2361ac_configure_args1=
2362ac_must_keep_next=false
2363for ac_pass in 1 2
631ef239 2364do
7083c021 2365 for ac_arg
631ef239 2366 do
7083c021
AC
2367 case $ac_arg in
2368 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2370 | -silent | --silent | --silen | --sile | --sil)
2371 continue ;;
2372 *\'*)
2373 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2374 esac
2375 case $ac_pass in
2376 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2377 2)
2378 as_fn_append ac_configure_args1 " '$ac_arg'"
2379 if test $ac_must_keep_next = true; then
2380 ac_must_keep_next=false # Got value, back to normal.
2381 else
2382 case $ac_arg in
2383 *=* | --config-cache | -C | -disable-* | --disable-* \
2384 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2385 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2386 | -with-* | --with-* | -without-* | --without-* | --x)
2387 case "$ac_configure_args0 " in
2388 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2389 esac
2390 ;;
2391 -* ) ac_must_keep_next=true ;;
2392 esac
2393 fi
2394 as_fn_append ac_configure_args " '$ac_arg'"
2395 ;;
2396 esac
631ef239
AC
2397 done
2398done
7083c021
AC
2399{ ac_configure_args0=; unset ac_configure_args0;}
2400{ ac_configure_args1=; unset ac_configure_args1;}
631ef239 2401
7083c021
AC
2402# When interrupted or exit'd, cleanup temporary files, and complete
2403# config.log. We remove comments because anyway the quotes in there
2404# would cause problems or look ugly.
2405# WARNING: Use '\'' to represent an apostrophe within the trap.
2406# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2407trap 'exit_status=$?
2408 # Save into config.log some information that might help in debugging.
2409 {
2410 echo
631ef239 2411
b6d0720c 2412 $as_echo "## ---------------- ##
7083c021 2413## Cache variables. ##
b6d0720c 2414## ---------------- ##"
7083c021
AC
2415 echo
2416 # The following way of writing the cache mishandles newlines in values,
2417(
2418 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2419 eval ac_val=\$$ac_var
2420 case $ac_val in #(
2421 *${as_nl}*)
2422 case $ac_var in #(
2423 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2424$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2425 esac
2426 case $ac_var in #(
2427 _ | IFS | as_nl) ;; #(
2428 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2429 *) { eval $ac_var=; unset $ac_var;} ;;
2430 esac ;;
2431 esac
2432 done
2433 (set) 2>&1 |
2434 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2435 *${as_nl}ac_space=\ *)
2436 sed -n \
2437 "s/'\''/'\''\\\\'\'''\''/g;
2438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2439 ;; #(
2440 *)
2441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2442 ;;
2443 esac |
2444 sort
2445)
2446 echo
631ef239 2447
b6d0720c 2448 $as_echo "## ----------------- ##
7083c021 2449## Output variables. ##
b6d0720c 2450## ----------------- ##"
7083c021
AC
2451 echo
2452 for ac_var in $ac_subst_vars
2453 do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
631ef239 2461
7083c021 2462 if test -n "$ac_subst_files"; then
b6d0720c 2463 $as_echo "## ------------------- ##
7083c021 2464## File substitutions. ##
b6d0720c 2465## ------------------- ##"
7083c021
AC
2466 echo
2467 for ac_var in $ac_subst_files
2468 do
2469 eval ac_val=\$$ac_var
2470 case $ac_val in
2471 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2472 esac
2473 $as_echo "$ac_var='\''$ac_val'\''"
2474 done | sort
2475 echo
2476 fi
631ef239 2477
7083c021 2478 if test -s confdefs.h; then
b6d0720c 2479 $as_echo "## ----------- ##
7083c021 2480## confdefs.h. ##
b6d0720c 2481## ----------- ##"
7083c021
AC
2482 echo
2483 cat confdefs.h
2484 echo
2485 fi
2486 test "$ac_signal" != 0 &&
2487 $as_echo "$as_me: caught signal $ac_signal"
2488 $as_echo "$as_me: exit $exit_status"
2489 } >&5
2490 rm -f core *.core core.conftest.* &&
2491 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2492 exit $exit_status
2493' 0
2494for ac_signal in 1 2 13 15; do
2495 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2496done
2497ac_signal=0
631ef239 2498
7083c021
AC
2499# confdefs.h avoids OS command line length limits that DEFS can exceed.
2500rm -f -r conftest* confdefs.h
631ef239 2501
7083c021 2502$as_echo "/* confdefs.h */" > confdefs.h
212380e3 2503
7083c021 2504# Predefined preprocessor variables.
212380e3 2505
7083c021
AC
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_NAME "$PACKAGE_NAME"
212380e3 2508_ACEOF
212380e3 2509
7083c021
AC
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212380e3 2512_ACEOF
212380e3 2513
7083c021
AC
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_VERSION "$PACKAGE_VERSION"
212380e3 2516_ACEOF
212380e3 2517
7083c021
AC
2518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_STRING "$PACKAGE_STRING"
2520_ACEOF
212380e3 2521
7083c021
AC
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2524_ACEOF
212380e3 2525
7083c021
AC
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_URL "$PACKAGE_URL"
2528_ACEOF
212380e3 2529
631ef239 2530
7083c021
AC
2531# Let the site file select an alternate cache file if it wants to.
2532# Prefer an explicitly selected file to automatically selected ones.
2533ac_site_file1=NONE
2534ac_site_file2=NONE
2535if test -n "$CONFIG_SITE"; then
b6d0720c
AC
2536 # We do not want a PATH search for config.site.
2537 case $CONFIG_SITE in #((
2538 -*) ac_site_file1=./$CONFIG_SITE;;
2539 */*) ac_site_file1=$CONFIG_SITE;;
2540 *) ac_site_file1=./$CONFIG_SITE;;
2541 esac
7083c021
AC
2542elif test "x$prefix" != xNONE; then
2543 ac_site_file1=$prefix/share/config.site
2544 ac_site_file2=$prefix/etc/config.site
212380e3 2545else
7083c021
AC
2546 ac_site_file1=$ac_default_prefix/share/config.site
2547 ac_site_file2=$ac_default_prefix/etc/config.site
2548fi
2549for ac_site_file in "$ac_site_file1" "$ac_site_file2"
212380e3 2550do
7083c021 2551 test "x$ac_site_file" = xNONE && continue
6fb6bd15 2552 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021
AC
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2554$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2555 sed 's/^/| /' "$ac_site_file" >&5
b6d0720c
AC
2556 . "$ac_site_file" \
2557 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559as_fn_error $? "failed to load site script $ac_site_file
2560See \`config.log' for more details" "$LINENO" 5; }
212380e3
AC
2561 fi
2562done
212380e3 2563
7083c021 2564if test -r "$cache_file"; then
6fb6bd15
AC
2565 # Some versions of bash will fail to source /dev/null (special files
2566 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2567 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021
AC
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2569$as_echo "$as_me: loading cache $cache_file" >&6;}
2570 case $cache_file in
2571 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2572 *) . "./$cache_file";;
2573 esac
2574 fi
212380e3 2575else
7083c021
AC
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2577$as_echo "$as_me: creating cache $cache_file" >&6;}
2578 >$cache_file
212380e3
AC
2579fi
2580
7083c021
AC
2581# Check that the precious variables saved in the cache have kept the same
2582# value.
2583ac_cache_corrupted=false
2584for ac_var in $ac_precious_vars; do
2585 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2586 eval ac_new_set=\$ac_env_${ac_var}_set
2587 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2588 eval ac_new_val=\$ac_env_${ac_var}_value
2589 case $ac_old_set,$ac_new_set in
2590 set,)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2592$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,set)
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2596$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2597 ac_cache_corrupted=: ;;
2598 ,);;
2599 *)
2600 if test "x$ac_old_val" != "x$ac_new_val"; then
2601 # differences in whitespace do not lead to failure.
2602 ac_old_val_w=`echo x $ac_old_val`
2603 ac_new_val_w=`echo x $ac_new_val`
2604 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2606$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2607 ac_cache_corrupted=:
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2610$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2611 eval $ac_var=\$ac_old_val
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2614$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2616$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2617 fi;;
2618 esac
2619 # Pass precious variables to config.status.
2620 if test "$ac_new_set" = set; then
2621 case $ac_new_val in
2622 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2623 *) ac_arg=$ac_var=$ac_new_val ;;
2624 esac
2625 case " $ac_configure_args " in
2626 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2627 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2628 esac
212380e3
AC
2629 fi
2630done
7083c021
AC
2631if $ac_cache_corrupted; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2635$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b6d0720c 2636 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
212380e3 2637fi
7083c021
AC
2638## -------------------- ##
2639## Main body of script. ##
2640## -------------------- ##
212380e3 2641
7083c021
AC
2642ac_ext=c
2643ac_cpp='$CPP $CPPFLAGS'
2644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2647
212380e3 2648
212380e3 2649
a5471f24 2650
212380e3 2651
c52df125 2652ac_config_headers="$ac_config_headers include/setup.h"
212380e3 2653
631ef239 2654
c52df125
AC
2655ac_aux_dir=
2656for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
2657 if test -f "$ac_dir/install-sh"; then
2658 ac_aux_dir=$ac_dir
2659 ac_install_sh="$ac_aux_dir/install-sh -c"
2660 break
2661 elif test -f "$ac_dir/install.sh"; then
2662 ac_aux_dir=$ac_dir
2663 ac_install_sh="$ac_aux_dir/install.sh -c"
2664 break
2665 elif test -f "$ac_dir/shtool"; then
2666 ac_aux_dir=$ac_dir
2667 ac_install_sh="$ac_aux_dir/shtool install -c"
2668 break
212380e3
AC
2669 fi
2670done
c52df125
AC
2671if test -z "$ac_aux_dir"; then
2672 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5
212380e3
AC
2673fi
2674
c52df125
AC
2675# These three variables are undocumented and unsupported,
2676# and are intended to be withdrawn in a future Autoconf release.
2677# They can cause serious problems if a builder's source tree is in a directory
2678# whose full name contains unusual characters.
2679ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2680ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2681ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
631ef239 2682
c52df125
AC
2683
2684
2685am__api_version='1.15'
2686
2687# Find a good install program. We prefer a C program (faster),
2688# so one script is as good as another. But avoid the broken or
2689# incompatible versions:
2690# SysV /etc/install, /usr/sbin/install
2691# SunOS /usr/etc/install
2692# IRIX /sbin/install
2693# AIX /bin/install
2694# AmigaOS /C/install, which installs bootblocks on floppy discs
2695# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2696# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2697# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2698# OS/2's system install, which has a completely different semantic
2699# ./install, which can be erroneously created by make from ./install.sh.
2700# Reject install programs that cannot install multiple files.
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2702$as_echo_n "checking for a BSD-compatible install... " >&6; }
2703if test -z "$INSTALL"; then
2704if ${ac_cv_path_install+:} false; then :
7083c021 2705 $as_echo_n "(cached) " >&6
212380e3 2706else
c52df125 2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2708for as_dir in $PATH
2709do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
c52df125
AC
2712 # Account for people who put trailing slashes in PATH elements.
2713case $as_dir/ in #((
2714 ./ | .// | /[cC]/* | \
2715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2716 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2717 /usr/ucb/* ) ;;
2718 *)
2719 # OSF1 and SCO ODT 3.0 have their own names for install.
2720 # Don't use installbsd from OSF since it installs stuff as root
2721 # by default.
2722 for ac_prog in ginstall scoinst install; do
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2725 if test $ac_prog = install &&
2726 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2727 # AIX install. It has an incompatible calling convention.
2728 :
2729 elif test $ac_prog = install &&
2730 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731 # program-specific install script used by HP pwplus--don't use.
2732 :
2733 else
2734 rm -rf conftest.one conftest.two conftest.dir
2735 echo one > conftest.one
2736 echo two > conftest.two
2737 mkdir conftest.dir
2738 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2739 test -s conftest.one && test -s conftest.two &&
2740 test -s conftest.dir/conftest.one &&
2741 test -s conftest.dir/conftest.two
2742 then
2743 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2744 break 3
2745 fi
2746 fi
2747 fi
2748 done
2749 done
2750 ;;
2751esac
2752
7083c021 2753 done
631ef239 2754IFS=$as_save_IFS
212380e3 2755
c52df125
AC
2756rm -rf conftest.one conftest.two conftest.dir
2757
212380e3 2758fi
c52df125
AC
2759 if test "${ac_cv_path_install+set}" = set; then
2760 INSTALL=$ac_cv_path_install
2761 else
2762 # As a last resort, use the slow shell script. Don't cache a
2763 # value for INSTALL within a source directory, because that will
2764 # break other packages using the cache if that directory is
2765 # removed, or if the value is a relative name.
2766 INSTALL=$ac_install_sh
2767 fi
7083c021 2768fi
c52df125
AC
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2770$as_echo "$INSTALL" >&6; }
212380e3 2771
c52df125
AC
2772# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2773# It thinks the first close brace ends the variable substitution.
2774test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2775
2776test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2777
2778test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2779
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2781$as_echo_n "checking whether build environment is sane... " >&6; }
2782# Reject unsafe characters in $srcdir or the absolute working directory
2783# name. Accept space and tab only in the latter.
2784am_lf='
2785'
2786case `pwd` in
2787 *[\\\"\#\$\&\'\`$am_lf]*)
2788 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
7083c021 2789esac
c52df125
AC
2790case $srcdir in
2791 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2792 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2793esac
2794
2795# Do 'set' in a subshell so we don't clobber the current shell's
2796# arguments. Must try -L first in case configure is actually a
2797# symlink; some systems play weird games with the mod time of symlinks
2798# (eg FreeBSD returns the mod time of the symlink's containing
2799# directory).
2800if (
2801 am_has_slept=no
2802 for am_try in 1 2; do
2803 echo "timestamp, slept: $am_has_slept" > conftest.file
2804 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2805 if test "$*" = "X"; then
2806 # -L didn't work.
2807 set X `ls -t "$srcdir/configure" conftest.file`
2808 fi
2809 if test "$*" != "X $srcdir/configure conftest.file" \
2810 && test "$*" != "X conftest.file $srcdir/configure"; then
2811
2812 # If neither matched, then we have a broken ls. This can happen
2813 # if, for instance, CONFIG_SHELL is bash and it inherits a
2814 # broken ls alias from the environment. This has actually
2815 # happened. Such a system could not be considered "sane".
2816 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2817 alias in your environment" "$LINENO" 5
2818 fi
2819 if test "$2" = conftest.file || test $am_try -eq 2; then
2820 break
2821 fi
2822 # Just in case.
2823 sleep 1
2824 am_has_slept=yes
2825 done
2826 test "$2" = conftest.file
2827 )
2828then
2829 # Ok.
2830 :
7083c021 2831else
c52df125
AC
2832 as_fn_error $? "newly created file is older than distributed files!
2833Check your system clock" "$LINENO" 5
2834fi
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836$as_echo "yes" >&6; }
2837# If we didn't sleep, we still need to ensure time stamps of config.status and
2838# generated files are strictly newer.
2839am_sleep_pid=
2840if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2841 ( sleep 1 ) &
2842 am_sleep_pid=$!
2843fi
2844
2845rm -f conftest.file
2846
2847test "$program_prefix" != NONE &&
2848 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2849# Use a double $ so make ignores it.
2850test "$program_suffix" != NONE &&
2851 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2852# Double any \ or $.
2853# By default was `s,x,x', remove it if useless.
2854ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2855program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2856
2857# Expand $ac_aux_dir to an absolute path.
2858am_aux_dir=`cd "$ac_aux_dir" && pwd`
2859
2860if test x"${MISSING+set}" != xset; then
2861 case $am_aux_dir in
2862 *\ * | *\ *)
2863 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2864 *)
2865 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2866 esac
2867fi
2868# Use eval to expand $SHELL
2869if eval "$MISSING --is-lightweight"; then
2870 am_missing_run="$MISSING "
2871else
2872 am_missing_run=
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2874$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
7083c021 2875fi
631ef239 2876
c52df125
AC
2877if test x"${install_sh+set}" != xset; then
2878 case $am_aux_dir in
2879 *\ * | *\ *)
2880 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2881 *)
2882 install_sh="\${SHELL} $am_aux_dir/install-sh"
2883 esac
2884fi
2885
2886# Installed binaries are usually stripped using 'strip' when the user
2887# run "make install-strip". However 'strip' might not be the right
2888# tool to use in cross-compilation environments, therefore Automake
2889# will honor the 'STRIP' environment variable to overrule this program.
2890if test "$cross_compiling" != no; then
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2893set dummy ${ac_tool_prefix}strip; ac_word=$2
7083c021
AC
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895$as_echo_n "checking for $ac_word... " >&6; }
c52df125 2896if ${ac_cv_prog_STRIP+:} false; then :
7083c021 2897 $as_echo_n "(cached) " >&6
212380e3 2898else
c52df125
AC
2899 if test -n "$STRIP"; then
2900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7083c021
AC
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
7083c021 2907 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c52df125 2909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7083c021 2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2911 break 2
2912 fi
2913done
7083c021 2914 done
631ef239 2915IFS=$as_save_IFS
7083c021 2916
212380e3 2917fi
7083c021 2918fi
c52df125
AC
2919STRIP=$ac_cv_prog_STRIP
2920if test -n "$STRIP"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2922$as_echo "$STRIP" >&6; }
212380e3 2923else
7083c021
AC
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
212380e3
AC
2926fi
2927
631ef239 2928
7083c021 2929fi
c52df125
AC
2930if test -z "$ac_cv_prog_STRIP"; then
2931 ac_ct_STRIP=$STRIP
2932 # Extract the first word of "strip", so it can be a program name with args.
2933set dummy strip; ac_word=$2
7083c021
AC
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935$as_echo_n "checking for $ac_word... " >&6; }
c52df125 2936if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7083c021 2937 $as_echo_n "(cached) " >&6
212380e3 2938else
c52df125
AC
2939 if test -n "$ac_ct_STRIP"; then
2940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7083c021 2941else
7083c021 2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2943for as_dir in $PATH
2944do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
7083c021 2947 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c52df125 2949 ac_cv_prog_ac_ct_STRIP="strip"
7083c021 2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2951 break 2
2952 fi
2953done
7083c021 2954 done
631ef239 2955IFS=$as_save_IFS
212380e3 2956
212380e3 2957fi
7083c021 2958fi
c52df125
AC
2959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2960if test -n "$ac_ct_STRIP"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2962$as_echo "$ac_ct_STRIP" >&6; }
212380e3 2963else
7083c021
AC
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
212380e3
AC
2966fi
2967
c52df125
AC
2968 if test "x$ac_ct_STRIP" = x; then
2969 STRIP=":"
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972yes:)
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975ac_tool_warned=yes ;;
2976esac
2977 STRIP=$ac_ct_STRIP
2978 fi
2979else
2980 STRIP="$ac_cv_prog_STRIP"
2981fi
212380e3 2982
7083c021 2983fi
c52df125
AC
2984INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2985
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2987$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2988if test -z "$MKDIR_P"; then
2989 if ${ac_cv_path_mkdir+:} false; then :
7083c021 2990 $as_echo_n "(cached) " >&6
212380e3 2991else
c52df125
AC
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
212380e3
AC
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
c52df125
AC
2997 for ac_prog in mkdir gmkdir; do
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3000 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3001 'mkdir (GNU coreutils) '* | \
3002 'mkdir (coreutils) '* | \
3003 'mkdir (fileutils) '4.1*)
3004 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3005 break 3;;
3006 esac
3007 done
3008 done
7083c021 3009 done
631ef239 3010IFS=$as_save_IFS
212380e3
AC
3011
3012fi
631ef239 3013
c52df125
AC
3014 test -d ./--version && rmdir ./--version
3015 if test "${ac_cv_path_mkdir+set}" = set; then
3016 MKDIR_P="$ac_cv_path_mkdir -p"
3017 else
3018 # As a last resort, use the slow shell script. Don't cache a
3019 # value for MKDIR_P within a source directory, because that will
3020 # break other packages using the cache if that directory is
3021 # removed, or if the value is a relative name.
3022 MKDIR_P="$ac_install_sh -d"
3023 fi
212380e3 3024fi
c52df125
AC
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3026$as_echo "$MKDIR_P" >&6; }
3027
3028for ac_prog in gawk mawk nawk awk
212380e3
AC
3029do
3030 # Extract the first word of "$ac_prog", so it can be a program name with args.
3031set dummy $ac_prog; ac_word=$2
7083c021
AC
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033$as_echo_n "checking for $ac_word... " >&6; }
c52df125 3034if ${ac_cv_prog_AWK+:} false; then :
7083c021 3035 $as_echo_n "(cached) " >&6
212380e3 3036else
c52df125
AC
3037 if test -n "$AWK"; then
3038 ac_cv_prog_AWK="$AWK" # Let the user override the test.
212380e3
AC
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
7083c021 3045 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c52df125 3047 ac_cv_prog_AWK="$ac_prog"
7083c021 3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
3049 break 2
3050 fi
3051done
7083c021 3052 done
631ef239 3053IFS=$as_save_IFS
212380e3
AC
3054
3055fi
3056fi
c52df125
AC
3057AWK=$ac_cv_prog_AWK
3058if test -n "$AWK"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3060$as_echo "$AWK" >&6; }
212380e3 3061else
7083c021
AC
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
212380e3
AC
3064fi
3065
631ef239 3066
c52df125 3067 test -n "$AWK" && break
212380e3 3068done
212380e3 3069
c52df125
AC
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3071$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3072set x ${MAKE-make}
3073ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3074if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3075 $as_echo_n "(cached) " >&6
3076else
3077 cat >conftest.make <<\_ACEOF
3078SHELL = /bin/sh
3079all:
3080 @echo '@@@%%%=$(MAKE)=@@@%%%'
3081_ACEOF
3082# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3083case `${MAKE-make} -f conftest.make 2>/dev/null` in
3084 *@@@%%%=?*=@@@%%%*)
3085 eval ac_cv_prog_make_${ac_make}_set=yes;;
3086 *)
3087 eval ac_cv_prog_make_${ac_make}_set=no;;
3088esac
3089rm -f conftest.make
3090fi
3091if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093$as_echo "yes" >&6; }
3094 SET_MAKE=
3095else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
3098 SET_MAKE="MAKE=${MAKE-make}"
3099fi
3100
3101rm -rf .tst 2>/dev/null
3102mkdir .tst 2>/dev/null
3103if test -d .tst; then
3104 am__leading_dot=.
3105else
3106 am__leading_dot=_
3107fi
3108rmdir .tst 2>/dev/null
3109
3110# Check whether --enable-silent-rules was given.
3111if test "${enable_silent_rules+set}" = set; then :
3112 enableval=$enable_silent_rules;
3113fi
3114
3115case $enable_silent_rules in # (((
3116 yes) AM_DEFAULT_VERBOSITY=0;;
3117 no) AM_DEFAULT_VERBOSITY=1;;
3118 *) AM_DEFAULT_VERBOSITY=1;;
3119esac
3120am_make=${MAKE-make}
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3122$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3123if ${am_cv_make_support_nested_variables+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125else
3126 if $as_echo 'TRUE=$(BAR$(V))
3127BAR0=false
3128BAR1=true
3129V=1
3130am__doit:
3131 @$(TRUE)
3132.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3133 am_cv_make_support_nested_variables=yes
3134else
3135 am_cv_make_support_nested_variables=no
3136fi
3137fi
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3139$as_echo "$am_cv_make_support_nested_variables" >&6; }
3140if test $am_cv_make_support_nested_variables = yes; then
3141 AM_V='$(V)'
3142 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3143else
3144 AM_V=$AM_DEFAULT_VERBOSITY
3145 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3146fi
3147AM_BACKSLASH='\'
3148
3149if test "`cd $srcdir && pwd`" != "`pwd`"; then
3150 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3151 # is not polluted with repeated "-I."
3152 am__isrc=' -I$(srcdir)'
3153 # test to see if srcdir already configured
3154 if test -f $srcdir/config.status; then
3155 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3156 fi
3157fi
3158
3159# test whether we have cygpath
3160if test -z "$CYGPATH_W"; then
3161 if (cygpath --version) >/dev/null 2>/dev/null; then
3162 CYGPATH_W='cygpath -w'
3163 else
3164 CYGPATH_W=echo
3165 fi
3166fi
3167
3168
3169# Define the identity of the package.
3170 PACKAGE='charybdis'
3171 VERSION='3.6.0-dev'
3172
3173
3174cat >>confdefs.h <<_ACEOF
3175#define PACKAGE "$PACKAGE"
3176_ACEOF
3177
3178
3179cat >>confdefs.h <<_ACEOF
3180#define VERSION "$VERSION"
3181_ACEOF
3182
3183# Some tools Automake needs.
3184
3185ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3186
3187
3188AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3189
3190
3191AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3192
3193
3194AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3195
3196
3197MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3198
3199# For better backward compatibility. To be removed once Automake 1.9.x
3200# dies out for good. For more background, see:
3201# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3202# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3203mkdir_p='$(MKDIR_P)'
3204
3205# We need awk for the "check" target (and possibly the TAP driver). The
3206# system "awk" is bad on some platforms.
3207# Always define AMTAR for backward compatibility. Yes, it's still used
3208# in the wild :-( We should find a proper way to deprecate it ...
3209AMTAR='$${TAR-tar}'
3210
3211
3212# We'll loop over all known methods to create a tar archive until one works.
3213_am_tools='gnutar pax cpio none'
3214
3215am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3216
3217
3218
3219
3220
3221
3222# POSIX will say in a future version that running "rm -f" with no argument
3223# is OK; and we want to be able to make that assumption in our Makefile
3224# recipes. So use an aggressive probe to check that the usage we want is
3225# actually supported "in the wild" to an acceptable degree.
3226# See automake bug#10828.
3227# To make any issue more visible, cause the running configure to be aborted
3228# by default if the 'rm' program in use doesn't match our expectations; the
3229# user can still override this though.
3230if rm -f && rm -fr && rm -rf; then : OK; else
3231 cat >&2 <<'END'
3232Oops!
3233
3234Your 'rm' program seems unable to run without file operands specified
3235on the command line, even when the '-f' option is present. This is contrary
3236to the behaviour of most rm programs out there, and not conforming with
3237the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3238
3239Please tell bug-automake@gnu.org about your system, including the value
3240of your $PATH and any error possibly output before this message. This
3241can help us improve future automake versions.
3242
3243END
3244 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3245 echo 'Configuration will proceed anyway, since you have set the' >&2
3246 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3247 echo >&2
3248 else
3249 cat >&2 <<'END'
3250Aborting the configuration process, to ensure you take notice of the issue.
3251
3252You can download and install GNU coreutils to get an 'rm' implementation
3253that behaves properly: <http://www.gnu.org/software/coreutils/>.
3254
3255If you want to complete the configuration process using your problematic
3256'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3257to "yes", and re-run configure.
3258
3259END
3260 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3261 fi
3262fi
3263
3264# Check whether --enable-silent-rules was given.
3265if test "${enable_silent_rules+set}" = set; then :
3266 enableval=$enable_silent_rules;
3267fi
3268
3269case $enable_silent_rules in # (((
3270 yes) AM_DEFAULT_VERBOSITY=0;;
3271 no) AM_DEFAULT_VERBOSITY=1;;
3272 *) AM_DEFAULT_VERBOSITY=0;;
3273esac
3274am_make=${MAKE-make}
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3276$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3277if ${am_cv_make_support_nested_variables+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279else
3280 if $as_echo 'TRUE=$(BAR$(V))
3281BAR0=false
3282BAR1=true
3283V=1
3284am__doit:
3285 @$(TRUE)
3286.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3287 am_cv_make_support_nested_variables=yes
3288else
3289 am_cv_make_support_nested_variables=no
3290fi
3291fi
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3293$as_echo "$am_cv_make_support_nested_variables" >&6; }
3294if test $am_cv_make_support_nested_variables = yes; then
3295 AM_V='$(V)'
3296 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3297else
3298 AM_V=$AM_DEFAULT_VERBOSITY
3299 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3300fi
3301AM_BACKSLASH='\'
3302
3303DEPDIR="${am__leading_dot}deps"
3304
3305ac_config_commands="$ac_config_commands depfiles"
3306
3307
3308am_make=${MAKE-make}
3309cat > confinc << 'END'
3310am__doit:
3311 @echo this is the am__doit target
3312.PHONY: am__doit
3313END
3314# If we don't find an include directive, just comment out the code.
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3316$as_echo_n "checking for style of include used by $am_make... " >&6; }
3317am__include="#"
3318am__quote=
3319_am_result=none
3320# First try GNU make style include.
3321echo "include confinc" > confmf
3322# Ignore all kinds of additional output from 'make'.
3323case `$am_make -s -f confmf 2> /dev/null` in #(
3324*the\ am__doit\ target*)
3325 am__include=include
3326 am__quote=
3327 _am_result=GNU
3328 ;;
3329esac
3330# Now try BSD make style include.
3331if test "$am__include" = "#"; then
3332 echo '.include "confinc"' > confmf
3333 case `$am_make -s -f confmf 2> /dev/null` in #(
3334 *the\ am__doit\ target*)
3335 am__include=.include
3336 am__quote="\""
3337 _am_result=BSD
3338 ;;
3339 esac
3340fi
3341
3342
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3344$as_echo "$_am_result" >&6; }
3345rm -f confinc confmf
3346
3347# Check whether --enable-dependency-tracking was given.
3348if test "${enable_dependency_tracking+set}" = set; then :
3349 enableval=$enable_dependency_tracking;
3350fi
3351
3352if test "x$enable_dependency_tracking" != xno; then
3353 am_depcomp="$ac_aux_dir/depcomp"
3354 AMDEPBACKSLASH='\'
3355 am__nodep='_no'
3356fi
3357 if test "x$enable_dependency_tracking" != xno; then
3358 AMDEP_TRUE=
3359 AMDEP_FALSE='#'
3360else
3361 AMDEP_TRUE='#'
3362 AMDEP_FALSE=
3363fi
3364
3365
3366ac_ext=c
3367ac_cpp='$CPP $CPPFLAGS'
3368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371if test -n "$ac_tool_prefix"; then
3372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3373set dummy ${ac_tool_prefix}gcc; ac_word=$2
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375$as_echo_n "checking for $ac_word... " >&6; }
3376if ${ac_cv_prog_CC+:} false; then :
3377 $as_echo_n "(cached) " >&6
3378else
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381else
3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383for as_dir in $PATH
3384do
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393done
3394 done
3395IFS=$as_save_IFS
3396
3397fi
3398fi
3399CC=$ac_cv_prog_CC
3400if test -n "$CC"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402$as_echo "$CC" >&6; }
3403else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405$as_echo "no" >&6; }
3406fi
3407
3408
3409fi
3410if test -z "$ac_cv_prog_CC"; then
3411 ac_ct_CC=$CC
3412 # Extract the first word of "gcc", so it can be a program name with args.
3413set dummy gcc; ac_word=$2
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415$as_echo_n "checking for $ac_word... " >&6; }
3416if ${ac_cv_prog_ac_ct_CC+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418else
3419 if test -n "$ac_ct_CC"; then
3420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3421else
3422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423for as_dir in $PATH
3424do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_ac_ct_CC="gcc"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433done
3434 done
3435IFS=$as_save_IFS
3436
3437fi
3438fi
3439ac_ct_CC=$ac_cv_prog_ac_ct_CC
3440if test -n "$ac_ct_CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3442$as_echo "$ac_ct_CC" >&6; }
3443else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445$as_echo "no" >&6; }
3446fi
3447
3448 if test "x$ac_ct_CC" = x; then
3449 CC=""
7083c021
AC
3450 else
3451 case $cross_compiling:$ac_tool_warned in
3452yes:)
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3455ac_tool_warned=yes ;;
3456esac
3457 CC=$ac_ct_CC
3458 fi
c52df125
AC
3459else
3460 CC="$ac_cv_prog_CC"
3461fi
3462
3463if test -z "$CC"; then
3464 if test -n "$ac_tool_prefix"; then
3465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3466set dummy ${ac_tool_prefix}cc; ac_word=$2
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468$as_echo_n "checking for $ac_word... " >&6; }
3469if ${ac_cv_prog_CC+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471else
3472 if test -n "$CC"; then
3473 ac_cv_prog_CC="$CC" # Let the user override the test.
3474else
3475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH
3477do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_CC="${ac_tool_prefix}cc"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486done
3487 done
3488IFS=$as_save_IFS
3489
3490fi
3491fi
3492CC=$ac_cv_prog_CC
3493if test -n "$CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495$as_echo "$CC" >&6; }
3496else
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498$as_echo "no" >&6; }
3499fi
3500
3501
3502 fi
3503fi
3504if test -z "$CC"; then
3505 # Extract the first word of "cc", so it can be a program name with args.
3506set dummy cc; ac_word=$2
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508$as_echo_n "checking for $ac_word... " >&6; }
3509if ${ac_cv_prog_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511else
3512 if test -n "$CC"; then
3513 ac_cv_prog_CC="$CC" # Let the user override the test.
3514else
3515 ac_prog_rejected=no
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3524 ac_prog_rejected=yes
3525 continue
3526 fi
3527 ac_cv_prog_CC="cc"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3530 fi
3531done
3532 done
3533IFS=$as_save_IFS
3534
3535if test $ac_prog_rejected = yes; then
3536 # We found a bogon in the path, so make sure we never use it.
3537 set dummy $ac_cv_prog_CC
3538 shift
3539 if test $# != 0; then
3540 # We chose a different compiler from the bogus one.
3541 # However, it has the same basename, so the bogon will be chosen
3542 # first if we set CC to just the basename; use the full file name.
3543 shift
3544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3545 fi
3546fi
3547fi
3548fi
3549CC=$ac_cv_prog_CC
3550if test -n "$CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552$as_echo "$CC" >&6; }
3553else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556fi
3557
3558
3559fi
3560if test -z "$CC"; then
3561 if test -n "$ac_tool_prefix"; then
3562 for ac_prog in cl.exe
3563 do
3564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3565set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567$as_echo_n "checking for $ac_word... " >&6; }
3568if ${ac_cv_prog_CC+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570else
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3584 fi
3585done
3586 done
3587IFS=$as_save_IFS
3588
3589fi
3590fi
3591CC=$ac_cv_prog_CC
3592if test -n "$CC"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3594$as_echo "$CC" >&6; }
3595else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598fi
3599
3600
3601 test -n "$CC" && break
3602 done
3603fi
3604if test -z "$CC"; then
3605 ac_ct_CC=$CC
3606 for ac_prog in cl.exe
3607do
3608 # Extract the first word of "$ac_prog", so it can be a program name with args.
3609set dummy $ac_prog; ac_word=$2
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611$as_echo_n "checking for $ac_word... " >&6; }
3612if ${ac_cv_prog_ac_ct_CC+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614else
3615 if test -n "$ac_ct_CC"; then
3616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3617else
3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619for as_dir in $PATH
3620do
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_ac_ct_CC="$ac_prog"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629done
3630 done
3631IFS=$as_save_IFS
3632
3633fi
3634fi
3635ac_ct_CC=$ac_cv_prog_ac_ct_CC
3636if test -n "$ac_ct_CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3638$as_echo "$ac_ct_CC" >&6; }
3639else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641$as_echo "no" >&6; }
3642fi
3643
3644
3645 test -n "$ac_ct_CC" && break
3646done
3647
3648 if test "x$ac_ct_CC" = x; then
3649 CC=""
3650 else
3651 case $cross_compiling:$ac_tool_warned in
3652yes:)
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655ac_tool_warned=yes ;;
3656esac
3657 CC=$ac_ct_CC
3658 fi
3659fi
3660
3661fi
3662
3663
3664test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666as_fn_error $? "no acceptable C compiler found in \$PATH
3667See \`config.log' for more details" "$LINENO" 5; }
3668
3669# Provide some information about the compiler.
3670$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3671set X $ac_compile
3672ac_compiler=$2
3673for ac_option in --version -v -V -qversion; do
3674 { { ac_try="$ac_compiler $ac_option >&5"
3675case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678esac
3679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680$as_echo "$ac_try_echo"; } >&5
3681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3682 ac_status=$?
3683 if test -s conftest.err; then
3684 sed '10a\
3685... rest of stderr output deleted ...
3686 10q' conftest.err >conftest.er1
3687 cat conftest.er1 >&5
3688 fi
3689 rm -f conftest.er1 conftest.err
3690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691 test $ac_status = 0; }
3692done
3693
3694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h. */
3696
3697int
3698main ()
3699{
3700
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705ac_clean_files_save=$ac_clean_files
3706ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3707# Try to create an executable without -o first, disregard a.out.
3708# It will help us diagnose broken compilers, and finding out an intuition
3709# of exeext.
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3711$as_echo_n "checking whether the C compiler works... " >&6; }
3712ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3713
3714# The possible output files:
3715ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3716
3717ac_rmfiles=
3718for ac_file in $ac_files
3719do
3720 case $ac_file in
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3722 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3723 esac
3724done
3725rm -f $ac_rmfiles
3726
3727if { { ac_try="$ac_link_default"
3728case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731esac
3732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733$as_echo "$ac_try_echo"; } >&5
3734 (eval "$ac_link_default") 2>&5
3735 ac_status=$?
3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737 test $ac_status = 0; }; then :
3738 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3739# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3740# in a Makefile. We should not override ac_cv_exeext if it was cached,
3741# so that the user can short-circuit this test for compilers unknown to
3742# Autoconf.
3743for ac_file in $ac_files ''
3744do
3745 test -f "$ac_file" || continue
3746 case $ac_file in
3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3748 ;;
3749 [ab].out )
3750 # We found the default executable, but exeext='' is most
3751 # certainly right.
3752 break;;
3753 *.* )
3754 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3755 then :; else
3756 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3757 fi
3758 # We set ac_cv_exeext here because the later test for it is not
3759 # safe: cross compilers may not add the suffix if given an `-o'
3760 # argument, so we may need to know it at that point already.
3761 # Even if this section looks crufty: it has the advantage of
3762 # actually working.
3763 break;;
3764 * )
3765 break;;
3766 esac
3767done
3768test "$ac_cv_exeext" = no && ac_cv_exeext=
3769
3770else
3771 ac_file=''
3772fi
3773if test -z "$ac_file"; then :
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775$as_echo "no" >&6; }
3776$as_echo "$as_me: failed program was:" >&5
3777sed 's/^/| /' conftest.$ac_ext >&5
3778
3779{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781as_fn_error 77 "C compiler cannot create executables
3782See \`config.log' for more details" "$LINENO" 5; }
3783else
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3785$as_echo "yes" >&6; }
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3788$as_echo_n "checking for C compiler default output file name... " >&6; }
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3790$as_echo "$ac_file" >&6; }
3791ac_exeext=$ac_cv_exeext
3792
3793rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3794ac_clean_files=$ac_clean_files_save
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3796$as_echo_n "checking for suffix of executables... " >&6; }
3797if { { ac_try="$ac_link"
3798case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801esac
3802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803$as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_link") 2>&5
3805 ac_status=$?
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }; then :
3808 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3809# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3810# work properly (i.e., refer to `conftest.exe'), while it won't with
3811# `rm'.
3812for ac_file in conftest.exe conftest conftest.*; do
3813 test -f "$ac_file" || continue
3814 case $ac_file in
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3816 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3817 break;;
3818 * ) break;;
3819 esac
3820done
3821else
3822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3825See \`config.log' for more details" "$LINENO" 5; }
3826fi
3827rm -f conftest conftest$ac_cv_exeext
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3829$as_echo "$ac_cv_exeext" >&6; }
3830
3831rm -f conftest.$ac_ext
3832EXEEXT=$ac_cv_exeext
3833ac_exeext=$EXEEXT
3834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
3836#include <stdio.h>
3837int
3838main ()
3839{
3840FILE *f = fopen ("conftest.out", "w");
3841 return ferror (f) || fclose (f) != 0;
3842
3843 ;
3844 return 0;
3845}
3846_ACEOF
3847ac_clean_files="$ac_clean_files conftest.out"
3848# Check that the compiler produces executables we can run. If not, either
3849# the compiler is broken, or we cross compile.
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3851$as_echo_n "checking whether we are cross compiling... " >&6; }
3852if test "$cross_compiling" != yes; then
3853 { { ac_try="$ac_link"
3854case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857esac
3858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859$as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_link") 2>&5
3861 ac_status=$?
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }
3864 if { ac_try='./conftest$ac_cv_exeext'
3865 { { case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868esac
3869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870$as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_try") 2>&5
3872 ac_status=$?
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }; }; then
3875 cross_compiling=no
3876 else
3877 if test "$cross_compiling" = maybe; then
3878 cross_compiling=yes
3879 else
3880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882as_fn_error $? "cannot run C compiled programs.
3883If you meant to cross compile, use \`--host'.
3884See \`config.log' for more details" "$LINENO" 5; }
3885 fi
3886 fi
3887fi
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3889$as_echo "$cross_compiling" >&6; }
3890
3891rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3892ac_clean_files=$ac_clean_files_save
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3894$as_echo_n "checking for suffix of object files... " >&6; }
3895if ${ac_cv_objext+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897else
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h. */
3900
3901int
3902main ()
3903{
3904
3905 ;
3906 return 0;
3907}
3908_ACEOF
3909rm -f conftest.o conftest.obj
3910if { { ac_try="$ac_compile"
3911case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916$as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_compile") 2>&5
3918 ac_status=$?
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }; then :
3921 for ac_file in conftest.o conftest.obj conftest.*; do
3922 test -f "$ac_file" || continue;
3923 case $ac_file in
3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3926 break;;
3927 esac
3928done
3929else
3930 $as_echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935as_fn_error $? "cannot compute suffix of object files: cannot compile
3936See \`config.log' for more details" "$LINENO" 5; }
3937fi
3938rm -f conftest.$ac_cv_objext conftest.$ac_ext
3939fi
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3941$as_echo "$ac_cv_objext" >&6; }
3942OBJEXT=$ac_cv_objext
3943ac_objext=$OBJEXT
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3945$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3946if ${ac_cv_c_compiler_gnu+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948else
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950/* end confdefs.h. */
3951
3952int
3953main ()
3954{
3955#ifndef __GNUC__
3956 choke me
3957#endif
3958
3959 ;
3960 return 0;
3961}
3962_ACEOF
3963if ac_fn_c_try_compile "$LINENO"; then :
3964 ac_compiler_gnu=yes
3965else
3966 ac_compiler_gnu=no
3967fi
3968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969ac_cv_c_compiler_gnu=$ac_compiler_gnu
3970
3971fi
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3973$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3974if test $ac_compiler_gnu = yes; then
3975 GCC=yes
3976else
3977 GCC=
3978fi
3979ac_test_CFLAGS=${CFLAGS+set}
3980ac_save_CFLAGS=$CFLAGS
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3982$as_echo_n "checking whether $CC accepts -g... " >&6; }
3983if ${ac_cv_prog_cc_g+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985else
3986 ac_save_c_werror_flag=$ac_c_werror_flag
3987 ac_c_werror_flag=yes
3988 ac_cv_prog_cc_g=no
3989 CFLAGS="-g"
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991/* end confdefs.h. */
3992
3993int
3994main ()
3995{
3996
3997 ;
3998 return 0;
3999}
4000_ACEOF
4001if ac_fn_c_try_compile "$LINENO"; then :
4002 ac_cv_prog_cc_g=yes
4003else
4004 CFLAGS=""
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006/* end confdefs.h. */
4007
4008int
4009main ()
4010{
4011
4012 ;
4013 return 0;
4014}
4015_ACEOF
4016if ac_fn_c_try_compile "$LINENO"; then :
4017
4018else
4019 ac_c_werror_flag=$ac_save_c_werror_flag
4020 CFLAGS="-g"
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h. */
4023
4024int
4025main ()
4026{
4027
4028 ;
4029 return 0;
4030}
4031_ACEOF
4032if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_cv_prog_cc_g=yes
4034fi
4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036fi
4037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038fi
4039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 ac_c_werror_flag=$ac_save_c_werror_flag
4041fi
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4043$as_echo "$ac_cv_prog_cc_g" >&6; }
4044if test "$ac_test_CFLAGS" = set; then
4045 CFLAGS=$ac_save_CFLAGS
4046elif test $ac_cv_prog_cc_g = yes; then
4047 if test "$GCC" = yes; then
4048 CFLAGS="-g -O2"
4049 else
4050 CFLAGS="-g"
4051 fi
4052else
4053 if test "$GCC" = yes; then
4054 CFLAGS="-O2"
4055 else
4056 CFLAGS=
4057 fi
4058fi
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4060$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4061if ${ac_cv_prog_cc_c89+:} false; then :
4062 $as_echo_n "(cached) " >&6
4063else
4064 ac_cv_prog_cc_c89=no
4065ac_save_CC=$CC
4066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h. */
4068#include <stdarg.h>
4069#include <stdio.h>
4070struct stat;
4071/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4072struct buf { int x; };
4073FILE * (*rcsopen) (struct buf *, struct stat *, int);
4074static char *e (p, i)
4075 char **p;
4076 int i;
4077{
4078 return p[i];
4079}
4080static char *f (char * (*g) (char **, int), char **p, ...)
4081{
4082 char *s;
4083 va_list v;
4084 va_start (v,p);
4085 s = g (p, va_arg (v,int));
4086 va_end (v);
4087 return s;
4088}
4089
4090/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4091 function prototypes and stuff, but not '\xHH' hex character constants.
4092 These don't provoke an error unfortunately, instead are silently treated
4093 as 'x'. The following induces an error, until -std is added to get
4094 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4095 array size at least. It's necessary to write '\x00'==0 to get something
4096 that's true only with -std. */
4097int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4098
4099/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4100 inside strings and character constants. */
4101#define FOO(x) 'x'
4102int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4103
4104int test (int i, double x);
4105struct s1 {int (*f) (int a);};
4106struct s2 {int (*f) (double a);};
4107int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4108int argc;
4109char **argv;
4110int
4111main ()
4112{
4113return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4114 ;
4115 return 0;
4116}
4117_ACEOF
4118for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4119 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4120do
4121 CC="$ac_save_CC $ac_arg"
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_cv_prog_cc_c89=$ac_arg
4124fi
4125rm -f core conftest.err conftest.$ac_objext
4126 test "x$ac_cv_prog_cc_c89" != "xno" && break
4127done
4128rm -f conftest.$ac_ext
4129CC=$ac_save_CC
4130
4131fi
4132# AC_CACHE_VAL
4133case "x$ac_cv_prog_cc_c89" in
4134 x)
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4136$as_echo "none needed" >&6; } ;;
4137 xno)
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4139$as_echo "unsupported" >&6; } ;;
4140 *)
4141 CC="$CC $ac_cv_prog_cc_c89"
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4143$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4144esac
4145if test "x$ac_cv_prog_cc_c89" != xno; then :
4146
4147fi
4148
4149ac_ext=c
4150ac_cpp='$CPP $CPPFLAGS'
4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155ac_ext=c
4156ac_cpp='$CPP $CPPFLAGS'
4157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4161$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4162if ${am_cv_prog_cc_c_o+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164else
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h. */
4167
4168int
4169main ()
4170{
4171
4172 ;
4173 return 0;
4174}
4175_ACEOF
4176 # Make sure it works both with $CC and with simple cc.
4177 # Following AC_PROG_CC_C_O, we do the test twice because some
4178 # compilers refuse to overwrite an existing .o file with -o,
4179 # though they will create one.
4180 am_cv_prog_cc_c_o=yes
4181 for am_i in 1 2; do
4182 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4183 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } \
4187 && test -f conftest2.$ac_objext; then
4188 : OK
4189 else
4190 am_cv_prog_cc_c_o=no
4191 break
4192 fi
4193 done
4194 rm -f core conftest*
4195 unset am_i
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4198$as_echo "$am_cv_prog_cc_c_o" >&6; }
4199if test "$am_cv_prog_cc_c_o" != yes; then
4200 # Losing compiler, so override with the script.
4201 # FIXME: It is wrong to rewrite CC.
4202 # But if we don't then we get into trouble of one sort or another.
4203 # A longer-term fix would be to have automake use am__CC in this case,
4204 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4205 CC="$am_aux_dir/compile $CC"
4206fi
4207ac_ext=c
4208ac_cpp='$CPP $CPPFLAGS'
4209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213
4214depcc="$CC" am_compiler_list=
4215
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4217$as_echo_n "checking dependency style of $depcc... " >&6; }
4218if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220else
4221 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4222 # We make a subdir and do the tests there. Otherwise we can end up
4223 # making bogus files that we don't know about and never remove. For
4224 # instance it was reported that on HP-UX the gcc test will end up
4225 # making a dummy file named 'D' -- because '-MD' means "put the output
4226 # in D".
4227 rm -rf conftest.dir
4228 mkdir conftest.dir
4229 # Copy depcomp to subdir because otherwise we won't find it if we're
4230 # using a relative directory.
4231 cp "$am_depcomp" conftest.dir
4232 cd conftest.dir
4233 # We will build objects and dependencies in a subdirectory because
4234 # it helps to detect inapplicable dependency modes. For instance
4235 # both Tru64's cc and ICC support -MD to output dependencies as a
4236 # side effect of compilation, but ICC will put the dependencies in
4237 # the current directory while Tru64 will put them in the object
4238 # directory.
4239 mkdir sub
4240
4241 am_cv_CC_dependencies_compiler_type=none
4242 if test "$am_compiler_list" = ""; then
4243 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4244 fi
4245 am__universal=false
4246 case " $depcc " in #(
4247 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4248 esac
4249
4250 for depmode in $am_compiler_list; do
4251 # Setup a source with many dependencies, because some compilers
4252 # like to wrap large dependency lists on column 80 (with \), and
4253 # we should not choose a depcomp mode which is confused by this.
4254 #
4255 # We need to recreate these files for each test, as the compiler may
4256 # overwrite some of them when testing with obscure command lines.
4257 # This happens at least with the AIX C compiler.
4258 : > sub/conftest.c
4259 for i in 1 2 3 4 5 6; do
4260 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4261 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4262 # Solaris 10 /bin/sh.
4263 echo '/* dummy */' > sub/conftst$i.h
4264 done
4265 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4266
4267 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4268 # mode. It turns out that the SunPro C++ compiler does not properly
4269 # handle '-M -o', and we need to detect this. Also, some Intel
4270 # versions had trouble with output in subdirs.
4271 am__obj=sub/conftest.${OBJEXT-o}
4272 am__minus_obj="-o $am__obj"
4273 case $depmode in
4274 gcc)
4275 # This depmode causes a compiler race in universal mode.
4276 test "$am__universal" = false || continue
4277 ;;
4278 nosideeffect)
4279 # After this tag, mechanisms are not by side-effect, so they'll
4280 # only be used when explicitly requested.
4281 if test "x$enable_dependency_tracking" = xyes; then
4282 continue
4283 else
4284 break
4285 fi
4286 ;;
4287 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4288 # This compiler won't grok '-c -o', but also, the minuso test has
4289 # not run yet. These depmodes are late enough in the game, and
4290 # so weak that their functioning should not be impacted.
4291 am__obj=conftest.${OBJEXT-o}
4292 am__minus_obj=
4293 ;;
4294 none) break ;;
4295 esac
4296 if depmode=$depmode \
4297 source=sub/conftest.c object=$am__obj \
4298 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4299 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4300 >/dev/null 2>conftest.err &&
4301 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4302 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4303 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4304 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4305 # icc doesn't choke on unknown options, it will just issue warnings
4306 # or remarks (even with -Werror). So we grep stderr for any message
4307 # that says an option was ignored or not supported.
4308 # When given -MP, icc 7.0 and 7.1 complain thusly:
4309 # icc: Command line warning: ignoring option '-M'; no argument required
4310 # The diagnosis changed in icc 8.0:
4311 # icc: Command line remark: option '-MP' not supported
4312 if (grep 'ignoring option' conftest.err ||
4313 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4314 am_cv_CC_dependencies_compiler_type=$depmode
4315 break
4316 fi
4317 fi
4318 done
4319
4320 cd ..
4321 rm -rf conftest.dir
4322else
4323 am_cv_CC_dependencies_compiler_type=none
4324fi
4325
4326fi
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4328$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4329CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4330
4331 if
4332 test "x$enable_dependency_tracking" != xno \
4333 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4334 am__fastdepCC_TRUE=
4335 am__fastdepCC_FALSE='#'
4336else
4337 am__fastdepCC_TRUE='#'
4338 am__fastdepCC_FALSE=
4339fi
4340
4341
4342
4343if test -n "$ac_tool_prefix"; then
4344 for ac_prog in ar lib "link -lib"
4345 do
4346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349$as_echo_n "checking for $ac_word... " >&6; }
4350if ${ac_cv_prog_AR+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352else
4353 if test -n "$AR"; then
4354 ac_cv_prog_AR="$AR" # Let the user override the test.
4355else
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367done
4368 done
4369IFS=$as_save_IFS
4370
4371fi
4372fi
4373AR=$ac_cv_prog_AR
4374if test -n "$AR"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4376$as_echo "$AR" >&6; }
4377else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379$as_echo "no" >&6; }
4380fi
4381
4382
4383 test -n "$AR" && break
4384 done
4385fi
4386if test -z "$AR"; then
4387 ac_ct_AR=$AR
4388 for ac_prog in ar lib "link -lib"
4389do
4390 # Extract the first word of "$ac_prog", so it can be a program name with args.
4391set dummy $ac_prog; ac_word=$2
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393$as_echo_n "checking for $ac_word... " >&6; }
4394if ${ac_cv_prog_ac_ct_AR+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396else
4397 if test -n "$ac_ct_AR"; then
4398 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_prog_ac_ct_AR="$ac_prog"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4410 fi
4411done
4412 done
4413IFS=$as_save_IFS
4414
4415fi
4416fi
4417ac_ct_AR=$ac_cv_prog_ac_ct_AR
4418if test -n "$ac_ct_AR"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4420$as_echo "$ac_ct_AR" >&6; }
4421else
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423$as_echo "no" >&6; }
4424fi
4425
4426
4427 test -n "$ac_ct_AR" && break
4428done
4429
4430 if test "x$ac_ct_AR" = x; then
4431 AR="false"
4432 else
4433 case $cross_compiling:$ac_tool_warned in
4434yes:)
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4437ac_tool_warned=yes ;;
4438esac
4439 AR=$ac_ct_AR
4440 fi
4441fi
4442
4443: ${AR=ar}
4444
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4446$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4447if ${am_cv_ar_interface+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449else
4450 ac_ext=c
4451ac_cpp='$CPP $CPPFLAGS'
4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456 am_cv_ar_interface=ar
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h. */
4459int some_variable = 0;
4460_ACEOF
4461if ac_fn_c_try_compile "$LINENO"; then :
4462 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4464 (eval $am_ar_try) 2>&5
4465 ac_status=$?
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }
4468 if test "$ac_status" -eq 0; then
4469 am_cv_ar_interface=ar
4470 else
4471 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4473 (eval $am_ar_try) 2>&5
4474 ac_status=$?
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }
4477 if test "$ac_status" -eq 0; then
4478 am_cv_ar_interface=lib
4479 else
4480 am_cv_ar_interface=unknown
4481 fi
4482 fi
4483 rm -f conftest.lib libconftest.a
4484
4485fi
4486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 ac_ext=c
4488ac_cpp='$CPP $CPPFLAGS'
4489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492
4493fi
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4495$as_echo "$am_cv_ar_interface" >&6; }
4496
4497case $am_cv_ar_interface in
4498ar)
4499 ;;
4500lib)
4501 # Microsoft lib, so override with the ar-lib wrapper script.
4502 # FIXME: It is wrong to rewrite AR.
4503 # But if we don't then we get into trouble of one sort or another.
4504 # A longer-term fix would be to have automake use am__AR in this case,
4505 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4506 # similar.
4507 AR="$am_aux_dir/ar-lib $AR"
4508 ;;
4509unknown)
4510 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4511 ;;
4512esac
4513
4514
4515case `pwd` in
4516 *\ * | *\ *)
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4518$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4519esac
4520
4521
4522
4523macro_version='2.4.2'
4524macro_revision='1.3337'
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538ltmain="$ac_aux_dir/ltmain.sh"
4539
4540# Make sure we can run config.sub.
4541$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4542 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4543
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4545$as_echo_n "checking build system type... " >&6; }
4546if ${ac_cv_build+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548else
4549 ac_build_alias=$build_alias
4550test "x$ac_build_alias" = x &&
4551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4552test "x$ac_build_alias" = x &&
4553 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4554ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4556
4557fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4559$as_echo "$ac_cv_build" >&6; }
4560case $ac_cv_build in
4561*-*-*) ;;
4562*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4563esac
4564build=$ac_cv_build
4565ac_save_IFS=$IFS; IFS='-'
4566set x $ac_cv_build
4567shift
4568build_cpu=$1
4569build_vendor=$2
4570shift; shift
4571# Remember, the first character of IFS is used to create $*,
4572# except with old shells:
4573build_os=$*
4574IFS=$ac_save_IFS
4575case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4576
4577
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4579$as_echo_n "checking host system type... " >&6; }
4580if ${ac_cv_host+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582else
4583 if test "x$host_alias" = x; then
4584 ac_cv_host=$ac_cv_build
4585else
4586 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4588fi
4589
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4592$as_echo "$ac_cv_host" >&6; }
4593case $ac_cv_host in
4594*-*-*) ;;
4595*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4596esac
4597host=$ac_cv_host
4598ac_save_IFS=$IFS; IFS='-'
4599set x $ac_cv_host
4600shift
4601host_cpu=$1
4602host_vendor=$2
4603shift; shift
4604# Remember, the first character of IFS is used to create $*,
4605# except with old shells:
4606host_os=$*
4607IFS=$ac_save_IFS
4608case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4609
4610
4611# Backslashify metacharacters that are still active within
4612# double-quoted strings.
4613sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4614
4615# Same as above, but do not quote variable references.
4616double_quote_subst='s/\(["`\\]\)/\\\1/g'
4617
4618# Sed substitution to delay expansion of an escaped shell variable in a
4619# double_quote_subst'ed string.
4620delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4621
4622# Sed substitution to delay expansion of an escaped single quote.
4623delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4624
4625# Sed substitution to avoid accidental globbing in evaled expressions
4626no_glob_subst='s/\*/\\\*/g'
4627
4628ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4629ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4630ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4631
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4633$as_echo_n "checking how to print strings... " >&6; }
4634# Test print first, because it will be a builtin if present.
4635if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4636 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4637 ECHO='print -r --'
4638elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4639 ECHO='printf %s\n'
4640else
4641 # Use this function as a fallback that always works.
4642 func_fallback_echo ()
4643 {
4644 eval 'cat <<_LTECHO_EOF
4645$1
4646_LTECHO_EOF'
4647 }
4648 ECHO='func_fallback_echo'
4649fi
4650
4651# func_echo_all arg...
4652# Invoke $ECHO with all args, space-separated.
4653func_echo_all ()
4654{
4655 $ECHO ""
4656}
4657
4658case "$ECHO" in
4659 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4660$as_echo "printf" >&6; } ;;
4661 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4662$as_echo "print -r" >&6; } ;;
4663 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4664$as_echo "cat" >&6; } ;;
4665esac
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4681$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4682if ${ac_cv_path_SED+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684else
4685 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4686 for ac_i in 1 2 3 4 5 6 7; do
4687 ac_script="$ac_script$as_nl$ac_script"
4688 done
4689 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4690 { ac_script=; unset ac_script;}
4691 if test -z "$SED"; then
4692 ac_path_SED_found=false
4693 # Loop through the user's path and test for each of PROGNAME-LIST
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_prog in sed gsed; do
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4702 as_fn_executable_p "$ac_path_SED" || continue
4703# Check for GNU ac_path_SED and select it if it is found.
4704 # Check for GNU $ac_path_SED
4705case `"$ac_path_SED" --version 2>&1` in
4706*GNU*)
4707 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4708*)
4709 ac_count=0
4710 $as_echo_n 0123456789 >"conftest.in"
4711 while :
4712 do
4713 cat "conftest.in" "conftest.in" >"conftest.tmp"
4714 mv "conftest.tmp" "conftest.in"
4715 cp "conftest.in" "conftest.nl"
4716 $as_echo '' >> "conftest.nl"
4717 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719 as_fn_arith $ac_count + 1 && ac_count=$as_val
4720 if test $ac_count -gt ${ac_path_SED_max-0}; then
4721 # Best one so far, save it but keep looking for a better one
4722 ac_cv_path_SED="$ac_path_SED"
4723 ac_path_SED_max=$ac_count
4724 fi
4725 # 10*(2^10) chars as input seems more than enough
4726 test $ac_count -gt 10 && break
4727 done
4728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729esac
4730
4731 $ac_path_SED_found && break 3
4732 done
4733 done
4734 done
4735IFS=$as_save_IFS
4736 if test -z "$ac_cv_path_SED"; then
4737 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4738 fi
4739else
4740 ac_cv_path_SED=$SED
4741fi
4742
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4745$as_echo "$ac_cv_path_SED" >&6; }
4746 SED="$ac_cv_path_SED"
4747 rm -f conftest.sed
4748
4749test -z "$SED" && SED=sed
4750Xsed="$SED -e 1s/^X//"
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4763$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4764if ${ac_cv_path_GREP+:} false; then :
4765 $as_echo_n "(cached) " >&6
4766else
4767 if test -z "$GREP"; then
4768 ac_path_GREP_found=false
4769 # Loop through the user's path and test for each of PROGNAME-LIST
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_prog in grep ggrep; do
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4778 as_fn_executable_p "$ac_path_GREP" || continue
4779# Check for GNU ac_path_GREP and select it if it is found.
4780 # Check for GNU $ac_path_GREP
4781case `"$ac_path_GREP" --version 2>&1` in
4782*GNU*)
4783 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4784*)
4785 ac_count=0
4786 $as_echo_n 0123456789 >"conftest.in"
4787 while :
4788 do
4789 cat "conftest.in" "conftest.in" >"conftest.tmp"
4790 mv "conftest.tmp" "conftest.in"
4791 cp "conftest.in" "conftest.nl"
4792 $as_echo 'GREP' >> "conftest.nl"
4793 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4795 as_fn_arith $ac_count + 1 && ac_count=$as_val
4796 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4797 # Best one so far, save it but keep looking for a better one
4798 ac_cv_path_GREP="$ac_path_GREP"
4799 ac_path_GREP_max=$ac_count
4800 fi
4801 # 10*(2^10) chars as input seems more than enough
4802 test $ac_count -gt 10 && break
4803 done
4804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4805esac
4806
4807 $ac_path_GREP_found && break 3
4808 done
4809 done
4810 done
4811IFS=$as_save_IFS
4812 if test -z "$ac_cv_path_GREP"; then
4813 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4814 fi
4815else
4816 ac_cv_path_GREP=$GREP
4817fi
4818
4819fi
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4821$as_echo "$ac_cv_path_GREP" >&6; }
4822 GREP="$ac_cv_path_GREP"
4823
4824
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4826$as_echo_n "checking for egrep... " >&6; }
4827if ${ac_cv_path_EGREP+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829else
4830 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4831 then ac_cv_path_EGREP="$GREP -E"
4832 else
4833 if test -z "$EGREP"; then
4834 ac_path_EGREP_found=false
4835 # Loop through the user's path and test for each of PROGNAME-LIST
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4838do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_prog in egrep; do
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4844 as_fn_executable_p "$ac_path_EGREP" || continue
4845# Check for GNU ac_path_EGREP and select it if it is found.
4846 # Check for GNU $ac_path_EGREP
4847case `"$ac_path_EGREP" --version 2>&1` in
4848*GNU*)
4849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4850*)
4851 ac_count=0
4852 $as_echo_n 0123456789 >"conftest.in"
4853 while :
4854 do
4855 cat "conftest.in" "conftest.in" >"conftest.tmp"
4856 mv "conftest.tmp" "conftest.in"
4857 cp "conftest.in" "conftest.nl"
4858 $as_echo 'EGREP' >> "conftest.nl"
4859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4861 as_fn_arith $ac_count + 1 && ac_count=$as_val
4862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4863 # Best one so far, save it but keep looking for a better one
4864 ac_cv_path_EGREP="$ac_path_EGREP"
4865 ac_path_EGREP_max=$ac_count
4866 fi
4867 # 10*(2^10) chars as input seems more than enough
4868 test $ac_count -gt 10 && break
4869 done
4870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4871esac
4872
4873 $ac_path_EGREP_found && break 3
4874 done
4875 done
4876 done
4877IFS=$as_save_IFS
4878 if test -z "$ac_cv_path_EGREP"; then
4879 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4880 fi
4881else
4882 ac_cv_path_EGREP=$EGREP
4883fi
4884
4885 fi
4886fi
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4888$as_echo "$ac_cv_path_EGREP" >&6; }
4889 EGREP="$ac_cv_path_EGREP"
4890
4891
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4893$as_echo_n "checking for fgrep... " >&6; }
4894if ${ac_cv_path_FGREP+:} false; then :
4895 $as_echo_n "(cached) " >&6
4896else
4897 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4898 then ac_cv_path_FGREP="$GREP -F"
4899 else
4900 if test -z "$FGREP"; then
4901 ac_path_FGREP_found=false
4902 # Loop through the user's path and test for each of PROGNAME-LIST
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4905do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_prog in fgrep; do
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4911 as_fn_executable_p "$ac_path_FGREP" || continue
4912# Check for GNU ac_path_FGREP and select it if it is found.
4913 # Check for GNU $ac_path_FGREP
4914case `"$ac_path_FGREP" --version 2>&1` in
4915*GNU*)
4916 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4917*)
4918 ac_count=0
4919 $as_echo_n 0123456789 >"conftest.in"
4920 while :
4921 do
4922 cat "conftest.in" "conftest.in" >"conftest.tmp"
4923 mv "conftest.tmp" "conftest.in"
4924 cp "conftest.in" "conftest.nl"
4925 $as_echo 'FGREP' >> "conftest.nl"
4926 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4928 as_fn_arith $ac_count + 1 && ac_count=$as_val
4929 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4930 # Best one so far, save it but keep looking for a better one
4931 ac_cv_path_FGREP="$ac_path_FGREP"
4932 ac_path_FGREP_max=$ac_count
4933 fi
4934 # 10*(2^10) chars as input seems more than enough
4935 test $ac_count -gt 10 && break
4936 done
4937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4938esac
4939
4940 $ac_path_FGREP_found && break 3
4941 done
4942 done
4943 done
4944IFS=$as_save_IFS
4945 if test -z "$ac_cv_path_FGREP"; then
4946 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4947 fi
4948else
4949 ac_cv_path_FGREP=$FGREP
4950fi
4951
4952 fi
4953fi
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4955$as_echo "$ac_cv_path_FGREP" >&6; }
4956 FGREP="$ac_cv_path_FGREP"
4957
4958
4959test -z "$GREP" && GREP=grep
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979# Check whether --with-gnu-ld was given.
4980if test "${with_gnu_ld+set}" = set; then :
4981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4982else
4983 with_gnu_ld=no
4984fi
4985
4986ac_prog=ld
4987if test "$GCC" = yes; then
4988 # Check if gcc -print-prog-name=ld gives a path.
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4990$as_echo_n "checking for ld used by $CC... " >&6; }
4991 case $host in
4992 *-*-mingw*)
4993 # gcc leaves a trailing carriage return which upsets mingw
4994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4995 *)
4996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4997 esac
4998 case $ac_prog in
4999 # Accept absolute paths.
5000 [\\/]* | ?:[\\/]*)
5001 re_direlt='/[^/][^/]*/\.\./'
5002 # Canonicalize the pathname of ld
5003 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5004 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5005 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5006 done
5007 test -z "$LD" && LD="$ac_prog"
5008 ;;
5009 "")
5010 # If it fails, then pretend we aren't using GCC.
5011 ac_prog=ld
5012 ;;
5013 *)
5014 # If it is relative, then search for the first ld in PATH.
5015 with_gnu_ld=unknown
5016 ;;
5017 esac
5018elif test "$with_gnu_ld" = yes; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5020$as_echo_n "checking for GNU ld... " >&6; }
5021else
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5023$as_echo_n "checking for non-GNU ld... " >&6; }
5024fi
5025if ${lt_cv_path_LD+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 if test -z "$LD"; then
5029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5030 for ac_dir in $PATH; do
5031 IFS="$lt_save_ifs"
5032 test -z "$ac_dir" && ac_dir=.
5033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5034 lt_cv_path_LD="$ac_dir/$ac_prog"
5035 # Check to see if the program is GNU ld. I'd rather use --version,
5036 # but apparently some variants of GNU ld only accept -v.
5037 # Break only if it was the GNU/non-GNU ld that we prefer.
5038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5039 *GNU* | *'with BFD'*)
5040 test "$with_gnu_ld" != no && break
5041 ;;
5042 *)
5043 test "$with_gnu_ld" != yes && break
5044 ;;
5045 esac
5046 fi
5047 done
5048 IFS="$lt_save_ifs"
5049else
5050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5051fi
5052fi
5053
5054LD="$lt_cv_path_LD"
5055if test -n "$LD"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5057$as_echo "$LD" >&6; }
5058else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060$as_echo "no" >&6; }
5061fi
5062test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5064$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5065if ${lt_cv_prog_gnu_ld+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067else
5068 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5069case `$LD -v 2>&1 </dev/null` in
5070*GNU* | *'with BFD'*)
5071 lt_cv_prog_gnu_ld=yes
5072 ;;
5073*)
5074 lt_cv_prog_gnu_ld=no
5075 ;;
5076esac
5077fi
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5079$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5080with_gnu_ld=$lt_cv_prog_gnu_ld
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5091$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5092if ${lt_cv_path_NM+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094else
5095 if test -n "$NM"; then
5096 # Let the user override the test.
5097 lt_cv_path_NM="$NM"
5098else
5099 lt_nm_to_check="${ac_tool_prefix}nm"
5100 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5101 lt_nm_to_check="$lt_nm_to_check nm"
5102 fi
5103 for lt_tmp_nm in $lt_nm_to_check; do
5104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5105 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5106 IFS="$lt_save_ifs"
5107 test -z "$ac_dir" && ac_dir=.
5108 tmp_nm="$ac_dir/$lt_tmp_nm"
5109 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5110 # Check to see if the nm accepts a BSD-compat flag.
5111 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5112 # nm: unknown option "B" ignored
5113 # Tru64's nm complains that /dev/null is an invalid object file
5114 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5115 */dev/null* | *'Invalid file or object type'*)
5116 lt_cv_path_NM="$tmp_nm -B"
5117 break
5118 ;;
5119 *)
5120 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5121 */dev/null*)
5122 lt_cv_path_NM="$tmp_nm -p"
5123 break
5124 ;;
5125 *)
5126 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5127 continue # so that we can try to find one that supports BSD flags
5128 ;;
5129 esac
5130 ;;
5131 esac
5132 fi
5133 done
5134 IFS="$lt_save_ifs"
5135 done
5136 : ${lt_cv_path_NM=no}
5137fi
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5140$as_echo "$lt_cv_path_NM" >&6; }
5141if test "$lt_cv_path_NM" != "no"; then
5142 NM="$lt_cv_path_NM"
5143else
5144 # Didn't find any BSD compatible name lister, look for dumpbin.
5145 if test -n "$DUMPBIN"; then :
5146 # Let the user override the test.
5147 else
5148 if test -n "$ac_tool_prefix"; then
5149 for ac_prog in dumpbin "link -dump"
5150 do
5151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5152set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
5155if ${ac_cv_prog_DUMPBIN+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157else
5158 if test -n "$DUMPBIN"; then
5159 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172done
5173 done
5174IFS=$as_save_IFS
5175
5176fi
5177fi
5178DUMPBIN=$ac_cv_prog_DUMPBIN
5179if test -n "$DUMPBIN"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5181$as_echo "$DUMPBIN" >&6; }
5182else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184$as_echo "no" >&6; }
5185fi
5186
5187
5188 test -n "$DUMPBIN" && break
5189 done
5190fi
5191if test -z "$DUMPBIN"; then
5192 ac_ct_DUMPBIN=$DUMPBIN
5193 for ac_prog in dumpbin "link -dump"
5194do
5195 # Extract the first word of "$ac_prog", so it can be a program name with args.
5196set dummy $ac_prog; ac_word=$2
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198$as_echo_n "checking for $ac_word... " >&6; }
5199if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201else
5202 if test -n "$ac_ct_DUMPBIN"; then
5203 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5204else
5205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206for as_dir in $PATH
5207do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216done
5217 done
5218IFS=$as_save_IFS
5219
5220fi
5221fi
5222ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5223if test -n "$ac_ct_DUMPBIN"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5225$as_echo "$ac_ct_DUMPBIN" >&6; }
5226else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228$as_echo "no" >&6; }
5229fi
5230
5231
5232 test -n "$ac_ct_DUMPBIN" && break
5233done
5234
5235 if test "x$ac_ct_DUMPBIN" = x; then
5236 DUMPBIN=":"
5237 else
5238 case $cross_compiling:$ac_tool_warned in
5239yes:)
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242ac_tool_warned=yes ;;
5243esac
5244 DUMPBIN=$ac_ct_DUMPBIN
5245 fi
5246fi
5247
5248 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5249 *COFF*)
5250 DUMPBIN="$DUMPBIN -symbols"
5251 ;;
5252 *)
5253 DUMPBIN=:
5254 ;;
5255 esac
5256 fi
5257
5258 if test "$DUMPBIN" != ":"; then
5259 NM="$DUMPBIN"
5260 fi
5261fi
5262test -z "$NM" && NM=nm
5263
5264
5265
5266
5267
5268
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5270$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5271if ${lt_cv_nm_interface+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273else
5274 lt_cv_nm_interface="BSD nm"
5275 echo "int some_variable = 0;" > conftest.$ac_ext
5276 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5277 (eval "$ac_compile" 2>conftest.err)
5278 cat conftest.err >&5
5279 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5280 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5281 cat conftest.err >&5
5282 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5283 cat conftest.out >&5
5284 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5285 lt_cv_nm_interface="MS dumpbin"
5286 fi
5287 rm -f conftest*
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5290$as_echo "$lt_cv_nm_interface" >&6; }
5291
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5293$as_echo_n "checking whether ln -s works... " >&6; }
5294LN_S=$as_ln_s
5295if test "$LN_S" = "ln -s"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5297$as_echo "yes" >&6; }
5298else
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5300$as_echo "no, using $LN_S" >&6; }
5301fi
5302
5303# find the maximum length of command line arguments
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5305$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5306if ${lt_cv_sys_max_cmd_len+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308else
5309 i=0
5310 teststring="ABCD"
5311
5312 case $build_os in
5313 msdosdjgpp*)
5314 # On DJGPP, this test can blow up pretty badly due to problems in libc
5315 # (any single argument exceeding 2000 bytes causes a buffer overrun
5316 # during glob expansion). Even if it were fixed, the result of this
5317 # check would be larger than it should be.
5318 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5319 ;;
5320
5321 gnu*)
5322 # Under GNU Hurd, this test is not required because there is
5323 # no limit to the length of command line arguments.
5324 # Libtool will interpret -1 as no limit whatsoever
5325 lt_cv_sys_max_cmd_len=-1;
5326 ;;
5327
5328 cygwin* | mingw* | cegcc*)
5329 # On Win9x/ME, this test blows up -- it succeeds, but takes
5330 # about 5 minutes as the teststring grows exponentially.
5331 # Worse, since 9x/ME are not pre-emptively multitasking,
5332 # you end up with a "frozen" computer, even though with patience
5333 # the test eventually succeeds (with a max line length of 256k).
5334 # Instead, let's just punt: use the minimum linelength reported by
5335 # all of the supported platforms: 8192 (on NT/2K/XP).
5336 lt_cv_sys_max_cmd_len=8192;
5337 ;;
5338
5339 mint*)
5340 # On MiNT this can take a long time and run out of memory.
5341 lt_cv_sys_max_cmd_len=8192;
5342 ;;
5343
5344 amigaos*)
5345 # On AmigaOS with pdksh, this test takes hours, literally.
5346 # So we just punt and use a minimum line length of 8192.
5347 lt_cv_sys_max_cmd_len=8192;
5348 ;;
5349
5350 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5351 # This has been around since 386BSD, at least. Likely further.
5352 if test -x /sbin/sysctl; then
5353 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5354 elif test -x /usr/sbin/sysctl; then
5355 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5356 else
5357 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5358 fi
5359 # And add a safety zone
5360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5362 ;;
5363
5364 interix*)
5365 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5366 lt_cv_sys_max_cmd_len=196608
5367 ;;
5368
5369 os2*)
5370 # The test takes a long time on OS/2.
5371 lt_cv_sys_max_cmd_len=8192
5372 ;;
5373
5374 osf*)
5375 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5376 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5377 # nice to cause kernel panics so lets avoid the loop below.
5378 # First set a reasonable default.
5379 lt_cv_sys_max_cmd_len=16384
5380 #
5381 if test -x /sbin/sysconfig; then
5382 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5383 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5384 esac
5385 fi
5386 ;;
5387 sco3.2v5*)
5388 lt_cv_sys_max_cmd_len=102400
5389 ;;
5390 sysv5* | sco5v6* | sysv4.2uw2*)
5391 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5392 if test -n "$kargmax"; then
5393 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5394 else
5395 lt_cv_sys_max_cmd_len=32768
5396 fi
5397 ;;
5398 *)
5399 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5400 if test -n "$lt_cv_sys_max_cmd_len" && \
5401 test undefined != "$lt_cv_sys_max_cmd_len"; then
5402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5404 else
5405 # Make teststring a little bigger before we do anything with it.
5406 # a 1K string should be a reasonable start.
5407 for i in 1 2 3 4 5 6 7 8 ; do
5408 teststring=$teststring$teststring
5409 done
5410 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5411 # If test is not a shell built-in, we'll probably end up computing a
5412 # maximum length that is only half of the actual maximum length, but
5413 # we can't tell.
5414 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5415 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5416 test $i != 17 # 1/2 MB should be enough
5417 do
5418 i=`expr $i + 1`
5419 teststring=$teststring$teststring
5420 done
5421 # Only check the string length outside the loop.
5422 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5423 teststring=
5424 # Add a significant safety factor because C++ compilers can tack on
5425 # massive amounts of additional arguments before passing them to the
5426 # linker. It appears as though 1/2 is a usable value.
5427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5428 fi
5429 ;;
5430 esac
5431
5432fi
5433
5434if test -n $lt_cv_sys_max_cmd_len ; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5436$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5437else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5439$as_echo "none" >&6; }
5440fi
5441max_cmd_len=$lt_cv_sys_max_cmd_len
5442
5443
5444
5445
5446
5447
5448: ${CP="cp -f"}
5449: ${MV="mv -f"}
5450: ${RM="rm -f"}
5451
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5453$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5454# Try some XSI features
5455xsi_shell=no
5456( _lt_dummy="a/b/c"
5457 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5458 = c,a/b,b/c, \
5459 && eval 'test $(( 1 + 1 )) -eq 2 \
5460 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5461 && xsi_shell=yes
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5463$as_echo "$xsi_shell" >&6; }
5464
5465
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5467$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5468lt_shell_append=no
5469( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5470 >/dev/null 2>&1 \
5471 && lt_shell_append=yes
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5473$as_echo "$lt_shell_append" >&6; }
5474
5475
5476if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5477 lt_unset=unset
5478else
5479 lt_unset=false
5480fi
5481
5482
5483
5484
5485
5486# test EBCDIC or ASCII
5487case `echo X|tr X '\101'` in
5488 A) # ASCII based system
5489 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5490 lt_SP2NL='tr \040 \012'
5491 lt_NL2SP='tr \015\012 \040\040'
5492 ;;
5493 *) # EBCDIC based system
5494 lt_SP2NL='tr \100 \n'
5495 lt_NL2SP='tr \r\n \100\100'
5496 ;;
5497esac
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5508$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5509if ${lt_cv_to_host_file_cmd+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511else
5512 case $host in
5513 *-*-mingw* )
5514 case $build in
5515 *-*-mingw* ) # actually msys
5516 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5517 ;;
5518 *-*-cygwin* )
5519 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5520 ;;
5521 * ) # otherwise, assume *nix
5522 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5523 ;;
5524 esac
5525 ;;
5526 *-*-cygwin* )
5527 case $build in
5528 *-*-mingw* ) # actually msys
5529 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5530 ;;
5531 *-*-cygwin* )
5532 lt_cv_to_host_file_cmd=func_convert_file_noop
5533 ;;
5534 * ) # otherwise, assume *nix
5535 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5536 ;;
5537 esac
5538 ;;
5539 * ) # unhandled hosts (and "normal" native builds)
5540 lt_cv_to_host_file_cmd=func_convert_file_noop
5541 ;;
5542esac
5543
5544fi
5545
5546to_host_file_cmd=$lt_cv_to_host_file_cmd
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5548$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5549
5550
5551
5552
5553
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5555$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5556if ${lt_cv_to_tool_file_cmd+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558else
5559 #assume ordinary cross tools, or native build.
5560lt_cv_to_tool_file_cmd=func_convert_file_noop
5561case $host in
5562 *-*-mingw* )
5563 case $build in
5564 *-*-mingw* ) # actually msys
5565 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5566 ;;
5567 esac
5568 ;;
5569esac
5570
5571fi
5572
5573to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5575$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5576
5577
5578
5579
5580
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5582$as_echo_n "checking for $LD option to reload object files... " >&6; }
5583if ${lt_cv_ld_reload_flag+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585else
5586 lt_cv_ld_reload_flag='-r'
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5589$as_echo "$lt_cv_ld_reload_flag" >&6; }
5590reload_flag=$lt_cv_ld_reload_flag
5591case $reload_flag in
5592"" | " "*) ;;
5593*) reload_flag=" $reload_flag" ;;
5594esac
5595reload_cmds='$LD$reload_flag -o $output$reload_objs'
5596case $host_os in
5597 cygwin* | mingw* | pw32* | cegcc*)
5598 if test "$GCC" != yes; then
5599 reload_cmds=false
5600 fi
5601 ;;
5602 darwin*)
5603 if test "$GCC" = yes; then
5604 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5605 else
5606 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5607 fi
5608 ;;
5609esac
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619if test -n "$ac_tool_prefix"; then
5620 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5621set dummy ${ac_tool_prefix}objdump; ac_word=$2
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623$as_echo_n "checking for $ac_word... " >&6; }
5624if ${ac_cv_prog_OBJDUMP+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626else
5627 if test -n "$OBJDUMP"; then
5628 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642 done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647OBJDUMP=$ac_cv_prog_OBJDUMP
5648if test -n "$OBJDUMP"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5650$as_echo "$OBJDUMP" >&6; }
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
5654fi
5655
5656
5657fi
5658if test -z "$ac_cv_prog_OBJDUMP"; then
5659 ac_ct_OBJDUMP=$OBJDUMP
5660 # Extract the first word of "objdump", so it can be a program name with args.
5661set dummy objdump; ac_word=$2
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663$as_echo_n "checking for $ac_word... " >&6; }
5664if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666else
5667 if test -n "$ac_ct_OBJDUMP"; then
5668 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5669else
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5680 fi
5681done
5682 done
5683IFS=$as_save_IFS
5684
5685fi
5686fi
5687ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5688if test -n "$ac_ct_OBJDUMP"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5690$as_echo "$ac_ct_OBJDUMP" >&6; }
5691else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; }
5694fi
5695
5696 if test "x$ac_ct_OBJDUMP" = x; then
5697 OBJDUMP="false"
5698 else
5699 case $cross_compiling:$ac_tool_warned in
5700yes:)
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5703ac_tool_warned=yes ;;
5704esac
5705 OBJDUMP=$ac_ct_OBJDUMP
5706 fi
5707else
5708 OBJDUMP="$ac_cv_prog_OBJDUMP"
5709fi
5710
5711test -z "$OBJDUMP" && OBJDUMP=objdump
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5722$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5723if ${lt_cv_deplibs_check_method+:} false; then :
5724 $as_echo_n "(cached) " >&6
5725else
5726 lt_cv_file_magic_cmd='$MAGIC_CMD'
5727lt_cv_file_magic_test_file=
5728lt_cv_deplibs_check_method='unknown'
5729# Need to set the preceding variable on all platforms that support
5730# interlibrary dependencies.
5731# 'none' -- dependencies not supported.
5732# `unknown' -- same as none, but documents that we really don't know.
5733# 'pass_all' -- all dependencies passed with no checks.
5734# 'test_compile' -- check by making test program.
5735# 'file_magic [[regex]]' -- check by looking for files in library path
5736# which responds to the $file_magic_cmd with a given extended regex.
5737# If you have `file' or equivalent on your system and you're not sure
5738# whether `pass_all' will *always* work, you probably want this one.
5739
5740case $host_os in
5741aix[4-9]*)
5742 lt_cv_deplibs_check_method=pass_all
5743 ;;
5744
5745beos*)
5746 lt_cv_deplibs_check_method=pass_all
5747 ;;
5748
5749bsdi[45]*)
5750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5751 lt_cv_file_magic_cmd='/usr/bin/file -L'
5752 lt_cv_file_magic_test_file=/shlib/libc.so
5753 ;;
5754
5755cygwin*)
5756 # func_win32_libid is a shell function defined in ltmain.sh
5757 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5758 lt_cv_file_magic_cmd='func_win32_libid'
5759 ;;
5760
5761mingw* | pw32*)
5762 # Base MSYS/MinGW do not provide the 'file' command needed by
5763 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5764 # unless we find 'file', for example because we are cross-compiling.
5765 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5766 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5768 lt_cv_file_magic_cmd='func_win32_libid'
5769 else
5770 # Keep this pattern in sync with the one in func_win32_libid.
5771 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5772 lt_cv_file_magic_cmd='$OBJDUMP -f'
5773 fi
5774 ;;
5775
5776cegcc*)
5777 # use the weaker test based on 'objdump'. See mingw*.
5778 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5779 lt_cv_file_magic_cmd='$OBJDUMP -f'
5780 ;;
5781
5782darwin* | rhapsody*)
5783 lt_cv_deplibs_check_method=pass_all
5784 ;;
5785
5786freebsd* | dragonfly*)
5787 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5788 case $host_cpu in
5789 i*86 )
5790 # Not sure whether the presence of OpenBSD here was a mistake.
5791 # Let's accept both of them until this is cleared up.
5792 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5793 lt_cv_file_magic_cmd=/usr/bin/file
5794 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5795 ;;
5796 esac
5797 else
5798 lt_cv_deplibs_check_method=pass_all
5799 fi
5800 ;;
5801
5802haiku*)
5803 lt_cv_deplibs_check_method=pass_all
5804 ;;
5805
5806hpux10.20* | hpux11*)
5807 lt_cv_file_magic_cmd=/usr/bin/file
5808 case $host_cpu in
5809 ia64*)
5810 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5811 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5812 ;;
5813 hppa*64*)
5814 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5815 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5816 ;;
5817 *)
5818 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5819 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5820 ;;
5821 esac
5822 ;;
5823
5824interix[3-9]*)
5825 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5827 ;;
5828
5829irix5* | irix6* | nonstopux*)
5830 case $LD in
5831 *-32|*"-32 ") libmagic=32-bit;;
5832 *-n32|*"-n32 ") libmagic=N32;;
5833 *-64|*"-64 ") libmagic=64-bit;;
5834 *) libmagic=never-match;;
5835 esac
5836 lt_cv_deplibs_check_method=pass_all
5837 ;;
5838
5839# This must be glibc/ELF.
5840linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
5843
5844netbsd* | netbsdelf*-gnu)
5845 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5847 else
5848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5849 fi
5850 ;;
5851
5852newos6*)
5853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5854 lt_cv_file_magic_cmd=/usr/bin/file
5855 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5856 ;;
5857
5858*nto* | *qnx*)
5859 lt_cv_deplibs_check_method=pass_all
5860 ;;
5861
5862openbsd*)
5863 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5864 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5865 else
5866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5867 fi
5868 ;;
5869
5870osf3* | osf4* | osf5*)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873
5874rdos*)
5875 lt_cv_deplibs_check_method=pass_all
5876 ;;
5877
5878solaris*)
5879 lt_cv_deplibs_check_method=pass_all
5880 ;;
5881
5882sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5883 lt_cv_deplibs_check_method=pass_all
5884 ;;
5885
5886sysv4 | sysv4.3*)
5887 case $host_vendor in
5888 motorola)
5889 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]'
5890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5891 ;;
5892 ncr)
5893 lt_cv_deplibs_check_method=pass_all
5894 ;;
5895 sequent)
5896 lt_cv_file_magic_cmd='/bin/file'
5897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5898 ;;
5899 sni)
5900 lt_cv_file_magic_cmd='/bin/file'
5901 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5902 lt_cv_file_magic_test_file=/lib/libc.so
5903 ;;
5904 siemens)
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907 pc)
5908 lt_cv_deplibs_check_method=pass_all
5909 ;;
5910 esac
5911 ;;
5912
5913tpf*)
5914 lt_cv_deplibs_check_method=pass_all
5915 ;;
5916esac
5917
5918fi
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5920$as_echo "$lt_cv_deplibs_check_method" >&6; }
5921
5922file_magic_glob=
5923want_nocaseglob=no
5924if test "$build" = "$host"; then
5925 case $host_os in
5926 mingw* | pw32*)
5927 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5928 want_nocaseglob=yes
5929 else
5930 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5931 fi
5932 ;;
5933 esac
5934fi
5935
5936file_magic_cmd=$lt_cv_file_magic_cmd
5937deplibs_check_method=$lt_cv_deplibs_check_method
5938test -z "$deplibs_check_method" && deplibs_check_method=unknown
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961if test -n "$ac_tool_prefix"; then
5962 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5963set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965$as_echo_n "checking for $ac_word... " >&6; }
5966if ${ac_cv_prog_DLLTOOL+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968else
5969 if test -n "$DLLTOOL"; then
5970 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983done
5984 done
5985IFS=$as_save_IFS
5986
5987fi
5988fi
5989DLLTOOL=$ac_cv_prog_DLLTOOL
5990if test -n "$DLLTOOL"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5992$as_echo "$DLLTOOL" >&6; }
5993else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
5996fi
5997
5998
5999fi
6000if test -z "$ac_cv_prog_DLLTOOL"; then
6001 ac_ct_DLLTOOL=$DLLTOOL
6002 # Extract the first word of "dlltool", so it can be a program name with args.
6003set dummy dlltool; ac_word=$2
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005$as_echo_n "checking for $ac_word... " >&6; }
6006if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008else
6009 if test -n "$ac_ct_DLLTOOL"; then
6010 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6011else
6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013for as_dir in $PATH
6014do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6022 fi
6023done
6024 done
6025IFS=$as_save_IFS
6026
6027fi
6028fi
6029ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6030if test -n "$ac_ct_DLLTOOL"; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6032$as_echo "$ac_ct_DLLTOOL" >&6; }
6033else
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035$as_echo "no" >&6; }
6036fi
6037
6038 if test "x$ac_ct_DLLTOOL" = x; then
6039 DLLTOOL="false"
6040 else
6041 case $cross_compiling:$ac_tool_warned in
6042yes:)
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6045ac_tool_warned=yes ;;
6046esac
6047 DLLTOOL=$ac_ct_DLLTOOL
6048 fi
6049else
6050 DLLTOOL="$ac_cv_prog_DLLTOOL"
6051fi
6052
6053test -z "$DLLTOOL" && DLLTOOL=dlltool
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6065$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6066if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068else
6069 lt_cv_sharedlib_from_linklib_cmd='unknown'
6070
6071case $host_os in
6072cygwin* | mingw* | pw32* | cegcc*)
6073 # two different shell functions defined in ltmain.sh
6074 # decide which to use based on capabilities of $DLLTOOL
6075 case `$DLLTOOL --help 2>&1` in
6076 *--identify-strict*)
6077 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6078 ;;
6079 *)
6080 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6081 ;;
6082 esac
6083 ;;
6084*)
6085 # fallback: assume linklib IS sharedlib
6086 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6087 ;;
6088esac
6089
6090fi
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6092$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6093sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6094test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6095
6096
6097
6098
6099
6100
6101
6102if test -n "$ac_tool_prefix"; then
6103 for ac_prog in ar
6104 do
6105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108$as_echo_n "checking for $ac_word... " >&6; }
6109if ${ac_cv_prog_AR+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111else
6112 if test -n "$AR"; then
6113 ac_cv_prog_AR="$AR" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6125 fi
6126done
6127 done
6128IFS=$as_save_IFS
6129
6130fi
6131fi
6132AR=$ac_cv_prog_AR
6133if test -n "$AR"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6135$as_echo "$AR" >&6; }
6136else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138$as_echo "no" >&6; }
6139fi
6140
6141
6142 test -n "$AR" && break
6143 done
6144fi
6145if test -z "$AR"; then
6146 ac_ct_AR=$AR
6147 for ac_prog in ar
6148do
6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
6150set dummy $ac_prog; ac_word=$2
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
6153if ${ac_cv_prog_ac_ct_AR+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155else
6156 if test -n "$ac_ct_AR"; then
6157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_ac_ct_AR="$ac_prog"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171 done
6172IFS=$as_save_IFS
6173
6174fi
6175fi
6176ac_ct_AR=$ac_cv_prog_ac_ct_AR
6177if test -n "$ac_ct_AR"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6179$as_echo "$ac_ct_AR" >&6; }
6180else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182$as_echo "no" >&6; }
6183fi
6184
6185
6186 test -n "$ac_ct_AR" && break
6187done
6188
6189 if test "x$ac_ct_AR" = x; then
6190 AR="false"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193yes:)
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196ac_tool_warned=yes ;;
6197esac
6198 AR=$ac_ct_AR
6199 fi
6200fi
6201
6202: ${AR=ar}
6203: ${AR_FLAGS=cru}
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6216$as_echo_n "checking for archiver @FILE support... " >&6; }
6217if ${lt_cv_ar_at_file+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219else
6220 lt_cv_ar_at_file=no
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h. */
6223
6224int
6225main ()
6226{
6227
6228 ;
6229 return 0;
6230}
6231_ACEOF
6232if ac_fn_c_try_compile "$LINENO"; then :
6233 echo conftest.$ac_objext > conftest.lst
6234 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6236 (eval $lt_ar_try) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }
6240 if test "$ac_status" -eq 0; then
6241 # Ensure the archiver fails upon bogus file names.
6242 rm -f conftest.$ac_objext libconftest.a
6243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6244 (eval $lt_ar_try) 2>&5
6245 ac_status=$?
6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; }
6248 if test "$ac_status" -ne 0; then
6249 lt_cv_ar_at_file=@
6250 fi
6251 fi
6252 rm -f conftest.* libconftest.a
6253
6254fi
6255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256
6257fi
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6259$as_echo "$lt_cv_ar_at_file" >&6; }
6260
6261if test "x$lt_cv_ar_at_file" = xno; then
6262 archiver_list_spec=
6263else
6264 archiver_list_spec=$lt_cv_ar_at_file
6265fi
6266
6267
6268
6269
6270
6271
6272
6273if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6275set dummy ${ac_tool_prefix}strip; ac_word=$2
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277$as_echo_n "checking for $ac_word... " >&6; }
6278if ${ac_cv_prog_STRIP+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280else
6281 if test -n "$STRIP"; then
6282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295done
6296 done
6297IFS=$as_save_IFS
6298
6299fi
6300fi
6301STRIP=$ac_cv_prog_STRIP
6302if test -n "$STRIP"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6304$as_echo "$STRIP" >&6; }
6305else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; }
6308fi
6309
6310
6311fi
6312if test -z "$ac_cv_prog_STRIP"; then
6313 ac_ct_STRIP=$STRIP
6314 # Extract the first word of "strip", so it can be a program name with args.
6315set dummy strip; ac_word=$2
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317$as_echo_n "checking for $ac_word... " >&6; }
6318if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320else
6321 if test -n "$ac_ct_STRIP"; then
6322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6323else
6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331 ac_cv_prog_ac_ct_STRIP="strip"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335done
6336 done
6337IFS=$as_save_IFS
6338
6339fi
6340fi
6341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6342if test -n "$ac_ct_STRIP"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6344$as_echo "$ac_ct_STRIP" >&6; }
6345else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347$as_echo "no" >&6; }
6348fi
6349
6350 if test "x$ac_ct_STRIP" = x; then
6351 STRIP=":"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354yes:)
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357ac_tool_warned=yes ;;
6358esac
6359 STRIP=$ac_ct_STRIP
6360 fi
6361else
6362 STRIP="$ac_cv_prog_STRIP"
6363fi
6364
6365test -z "$STRIP" && STRIP=:
6366
6367
6368
6369
6370
6371
6372if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6374set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376$as_echo_n "checking for $ac_word... " >&6; }
6377if ${ac_cv_prog_RANLIB+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379else
6380 if test -n "$RANLIB"; then
6381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394done
6395 done
6396IFS=$as_save_IFS
6397
6398fi
6399fi
6400RANLIB=$ac_cv_prog_RANLIB
6401if test -n "$RANLIB"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6403$as_echo "$RANLIB" >&6; }
6404else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406$as_echo "no" >&6; }
6407fi
6408
6409
6410fi
6411if test -z "$ac_cv_prog_RANLIB"; then
6412 ac_ct_RANLIB=$RANLIB
6413 # Extract the first word of "ranlib", so it can be a program name with args.
6414set dummy ranlib; ac_word=$2
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416$as_echo_n "checking for $ac_word... " >&6; }
6417if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419else
6420 if test -n "$ac_ct_RANLIB"; then
6421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6422else
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430 ac_cv_prog_ac_ct_RANLIB="ranlib"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434done
6435 done
6436IFS=$as_save_IFS
6437
6438fi
6439fi
6440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6441if test -n "$ac_ct_RANLIB"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6443$as_echo "$ac_ct_RANLIB" >&6; }
6444else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446$as_echo "no" >&6; }
6447fi
6448
6449 if test "x$ac_ct_RANLIB" = x; then
6450 RANLIB=":"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453yes:)
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456ac_tool_warned=yes ;;
6457esac
6458 RANLIB=$ac_ct_RANLIB
6459 fi
6460else
6461 RANLIB="$ac_cv_prog_RANLIB"
6462fi
6463
6464test -z "$RANLIB" && RANLIB=:
6465
6466
6467
6468
6469
6470
6471# Determine commands to create old-style static archives.
6472old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6473old_postinstall_cmds='chmod 644 $oldlib'
6474old_postuninstall_cmds=
6475
6476if test -n "$RANLIB"; then
6477 case $host_os in
6478 openbsd*)
6479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6480 ;;
6481 *)
6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6483 ;;
6484 esac
6485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6486fi
6487
6488case $host_os in
6489 darwin*)
6490 lock_old_archive_extraction=yes ;;
6491 *)
6492 lock_old_archive_extraction=no ;;
6493esac
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533# If no C compiler was specified, use CC.
6534LTCC=${LTCC-"$CC"}
6535
6536# If no C compiler flags were specified, use CFLAGS.
6537LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6538
6539# Allow CC to be a program name with arguments.
6540compiler=$CC
6541
6542
6543# Check for command to grab the raw symbol name followed by C symbol from nm.
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6545$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6546if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548else
6549
6550# These are sane defaults that work on at least a few old systems.
6551# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6552
6553# Character class describing NM global symbol codes.
6554symcode='[BCDEGRST]'
6555
6556# Regexp to match symbols that can be accessed directly from C.
6557sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6558
6559# Define system-specific variables.
6560case $host_os in
6561aix*)
6562 symcode='[BCDT]'
6563 ;;
6564cygwin* | mingw* | pw32* | cegcc*)
6565 symcode='[ABCDGISTW]'
6566 ;;
6567hpux*)
6568 if test "$host_cpu" = ia64; then
6569 symcode='[ABCDEGRST]'
6570 fi
6571 ;;
6572irix* | nonstopux*)
6573 symcode='[BCDEGRST]'
6574 ;;
6575osf*)
6576 symcode='[BCDEGQRST]'
6577 ;;
6578solaris*)
6579 symcode='[BDRT]'
6580 ;;
6581sco3.2v5*)
6582 symcode='[DT]'
6583 ;;
6584sysv4.2uw2*)
6585 symcode='[DT]'
6586 ;;
6587sysv5* | sco5v6* | unixware* | OpenUNIX*)
6588 symcode='[ABDT]'
6589 ;;
6590sysv4)
6591 symcode='[DFNSTU]'
6592 ;;
6593esac
6594
6595# If we're using GNU nm, then use its standard symbol codes.
6596case `$NM -V 2>&1` in
6597*GNU* | *'with BFD'*)
6598 symcode='[ABCDGIRSTW]' ;;
6599esac
6600
6601# Transform an extracted symbol line into a proper C declaration.
6602# Some systems (esp. on ia64) link data and code symbols differently,
6603# so use this general approach.
6604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6605
6606# Transform an extracted symbol line into symbol name and symbol address
6607lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6608lt_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'"
6609
6610# Handle CRLF in mingw tool chain
6611opt_cr=
6612case $build_os in
6613mingw*)
6614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6615 ;;
6616esac
6617
6618# Try without a prefix underscore, then with it.
6619for ac_symprfx in "" "_"; do
6620
6621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6622 symxfrm="\\1 $ac_symprfx\\2 \\2"
6623
6624 # Write the raw and C identifiers.
6625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6626 # Fake it for dumpbin and say T for any non-static function
6627 # and D for any global variable.
6628 # Also find C++ and __fastcall symbols from MSVC++,
6629 # which start with @ or ?.
6630 lt_cv_sys_global_symbol_pipe="$AWK '"\
6631" {last_section=section; section=\$ 3};"\
6632" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6633" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6634" \$ 0!~/External *\|/{next};"\
6635" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6636" {if(hide[section]) next};"\
6637" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6638" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6639" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6640" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6641" ' prfx=^$ac_symprfx"
6642 else
6643 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6644 fi
6645 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6646
6647 # Check to see that the pipe works correctly.
6648 pipe_works=no
6649
6650 rm -f conftest*
6651 cat > conftest.$ac_ext <<_LT_EOF
6652#ifdef __cplusplus
6653extern "C" {
6654#endif
6655char nm_test_var;
6656void nm_test_func(void);
6657void nm_test_func(void){}
6658#ifdef __cplusplus
6659}
6660#endif
6661int main(){nm_test_var='a';nm_test_func();return(0);}
6662_LT_EOF
6663
6664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6665 (eval $ac_compile) 2>&5
6666 ac_status=$?
6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668 test $ac_status = 0; }; then
6669 # Now try to grab the symbols.
6670 nlist=conftest.nm
6671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6672 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6673 ac_status=$?
6674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6675 test $ac_status = 0; } && test -s "$nlist"; then
6676 # Try sorting and uniquifying the output.
6677 if sort "$nlist" | uniq > "$nlist"T; then
6678 mv -f "$nlist"T "$nlist"
6679 else
6680 rm -f "$nlist"T
6681 fi
6682
6683 # Make sure that we snagged all the symbols we need.
6684 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6685 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6686 cat <<_LT_EOF > conftest.$ac_ext
6687/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6688#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6689/* DATA imports from DLLs on WIN32 con't be const, because runtime
6690 relocations are performed -- see ld's documentation on pseudo-relocs. */
6691# define LT_DLSYM_CONST
6692#elif defined(__osf__)
6693/* This system does not cope well with relocations in const data. */
6694# define LT_DLSYM_CONST
6695#else
6696# define LT_DLSYM_CONST const
6697#endif
6698
6699#ifdef __cplusplus
6700extern "C" {
6701#endif
6702
6703_LT_EOF
6704 # Now generate the symbol file.
6705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6706
6707 cat <<_LT_EOF >> conftest.$ac_ext
6708
6709/* The mapping between symbol names and symbols. */
6710LT_DLSYM_CONST struct {
6711 const char *name;
6712 void *address;
6713}
6714lt__PROGRAM__LTX_preloaded_symbols[] =
6715{
6716 { "@PROGRAM@", (void *) 0 },
6717_LT_EOF
6718 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6719 cat <<\_LT_EOF >> conftest.$ac_ext
6720 {0, (void *) 0}
6721};
6722
6723/* This works around a problem in FreeBSD linker */
6724#ifdef FREEBSD_WORKAROUND
6725static const void *lt_preloaded_setup() {
6726 return lt__PROGRAM__LTX_preloaded_symbols;
6727}
6728#endif
6729
6730#ifdef __cplusplus
6731}
6732#endif
6733_LT_EOF
6734 # Now try linking the two files.
6735 mv conftest.$ac_objext conftstm.$ac_objext
6736 lt_globsym_save_LIBS=$LIBS
6737 lt_globsym_save_CFLAGS=$CFLAGS
6738 LIBS="conftstm.$ac_objext"
6739 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6741 (eval $ac_link) 2>&5
6742 ac_status=$?
6743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6745 pipe_works=yes
6746 fi
6747 LIBS=$lt_globsym_save_LIBS
6748 CFLAGS=$lt_globsym_save_CFLAGS
6749 else
6750 echo "cannot find nm_test_func in $nlist" >&5
6751 fi
6752 else
6753 echo "cannot find nm_test_var in $nlist" >&5
6754 fi
6755 else
6756 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6757 fi
6758 else
6759 echo "$progname: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6761 fi
6762 rm -rf conftest* conftst*
6763
6764 # Do not use the global_symbol_pipe unless it works.
6765 if test "$pipe_works" = yes; then
6766 break
6767 else
6768 lt_cv_sys_global_symbol_pipe=
6769 fi
6770done
6771
6772fi
6773
6774if test -z "$lt_cv_sys_global_symbol_pipe"; then
6775 lt_cv_sys_global_symbol_to_cdecl=
6776fi
6777if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6779$as_echo "failed" >&6; }
6780else
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6782$as_echo "ok" >&6; }
6783fi
6784
6785# Response file support.
6786if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6787 nm_file_list_spec='@'
6788elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6789 nm_file_list_spec='@'
6790fi
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6819$as_echo_n "checking for sysroot... " >&6; }
6820
6821# Check whether --with-sysroot was given.
6822if test "${with_sysroot+set}" = set; then :
6823 withval=$with_sysroot;
6824else
6825 with_sysroot=no
6826fi
6827
6828
6829lt_sysroot=
6830case ${with_sysroot} in #(
6831 yes)
6832 if test "$GCC" = yes; then
6833 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6834 fi
6835 ;; #(
6836 /*)
6837 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6838 ;; #(
6839 no|'')
6840 ;; #(
6841 *)
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6843$as_echo "${with_sysroot}" >&6; }
6844 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6845 ;;
6846esac
6847
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6849$as_echo "${lt_sysroot:-no}" >&6; }
6850
6851
6852
6853
6854
6855# Check whether --enable-libtool-lock was given.
6856if test "${enable_libtool_lock+set}" = set; then :
6857 enableval=$enable_libtool_lock;
6858fi
6859
6860test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6861
6862# Some flags need to be propagated to the compiler or linker for good
6863# libtool support.
6864case $host in
6865ia64-*-hpux*)
6866 # Find out which ABI we are using.
6867 echo 'int i;' > conftest.$ac_ext
6868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869 (eval $ac_compile) 2>&5
6870 ac_status=$?
6871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872 test $ac_status = 0; }; then
6873 case `/usr/bin/file conftest.$ac_objext` in
6874 *ELF-32*)
6875 HPUX_IA64_MODE="32"
6876 ;;
6877 *ELF-64*)
6878 HPUX_IA64_MODE="64"
6879 ;;
6880 esac
6881 fi
6882 rm -rf conftest*
6883 ;;
6884*-*-irix6*)
6885 # Find out which ABI we are using.
6886 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888 (eval $ac_compile) 2>&5
6889 ac_status=$?
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; }; then
6892 if test "$lt_cv_prog_gnu_ld" = yes; then
6893 case `/usr/bin/file conftest.$ac_objext` in
6894 *32-bit*)
6895 LD="${LD-ld} -melf32bsmip"
6896 ;;
6897 *N32*)
6898 LD="${LD-ld} -melf32bmipn32"
6899 ;;
6900 *64-bit*)
6901 LD="${LD-ld} -melf64bmip"
6902 ;;
6903 esac
6904 else
6905 case `/usr/bin/file conftest.$ac_objext` in
6906 *32-bit*)
6907 LD="${LD-ld} -32"
6908 ;;
6909 *N32*)
6910 LD="${LD-ld} -n32"
6911 ;;
6912 *64-bit*)
6913 LD="${LD-ld} -64"
6914 ;;
6915 esac
6916 fi
6917 fi
6918 rm -rf conftest*
6919 ;;
6920
6921x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6922s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6923 # Find out which ABI we are using.
6924 echo 'int i;' > conftest.$ac_ext
6925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6926 (eval $ac_compile) 2>&5
6927 ac_status=$?
6928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929 test $ac_status = 0; }; then
6930 case `/usr/bin/file conftest.o` in
6931 *32-bit*)
6932 case $host in
6933 x86_64-*kfreebsd*-gnu)
6934 LD="${LD-ld} -m elf_i386_fbsd"
6935 ;;
6936 x86_64-*linux*)
6937 case `/usr/bin/file conftest.o` in
6938 *x86-64*)
6939 LD="${LD-ld} -m elf32_x86_64"
6940 ;;
6941 *)
6942 LD="${LD-ld} -m elf_i386"
6943 ;;
6944 esac
6945 ;;
6946 powerpc64le-*)
6947 LD="${LD-ld} -m elf32lppclinux"
6948 ;;
6949 powerpc64-*)
6950 LD="${LD-ld} -m elf32ppclinux"
6951 ;;
6952 s390x-*linux*)
6953 LD="${LD-ld} -m elf_s390"
6954 ;;
6955 sparc64-*linux*)
6956 LD="${LD-ld} -m elf32_sparc"
6957 ;;
6958 esac
6959 ;;
6960 *64-bit*)
6961 case $host in
6962 x86_64-*kfreebsd*-gnu)
6963 LD="${LD-ld} -m elf_x86_64_fbsd"
6964 ;;
6965 x86_64-*linux*)
6966 LD="${LD-ld} -m elf_x86_64"
6967 ;;
6968 powerpcle-*)
6969 LD="${LD-ld} -m elf64lppc"
6970 ;;
6971 powerpc-*)
6972 LD="${LD-ld} -m elf64ppc"
6973 ;;
6974 s390*-*linux*|s390*-*tpf*)
6975 LD="${LD-ld} -m elf64_s390"
6976 ;;
6977 sparc*-*linux*)
6978 LD="${LD-ld} -m elf64_sparc"
6979 ;;
6980 esac
6981 ;;
6982 esac
6983 fi
6984 rm -rf conftest*
6985 ;;
6986
6987*-*-sco3.2v5*)
6988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6989 SAVE_CFLAGS="$CFLAGS"
6990 CFLAGS="$CFLAGS -belf"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6992$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6993if ${lt_cv_cc_needs_belf+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995else
6996 ac_ext=c
6997ac_cpp='$CPP $CPPFLAGS'
6998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003/* end confdefs.h. */
7004
7005int
7006main ()
7007{
7008
7009 ;
7010 return 0;
7011}
7012_ACEOF
7013if ac_fn_c_try_link "$LINENO"; then :
7014 lt_cv_cc_needs_belf=yes
7015else
7016 lt_cv_cc_needs_belf=no
7017fi
7018rm -f core conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 ac_ext=c
7021ac_cpp='$CPP $CPPFLAGS'
7022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025
7026fi
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7028$as_echo "$lt_cv_cc_needs_belf" >&6; }
7029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7031 CFLAGS="$SAVE_CFLAGS"
7032 fi
7033 ;;
7034*-*solaris*)
7035 # Find out which ABI we are using.
7036 echo 'int i;' > conftest.$ac_ext
7037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7038 (eval $ac_compile) 2>&5
7039 ac_status=$?
7040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7041 test $ac_status = 0; }; then
7042 case `/usr/bin/file conftest.o` in
7043 *64-bit*)
7044 case $lt_cv_prog_gnu_ld in
7045 yes*)
7046 case $host in
7047 i?86-*-solaris*)
7048 LD="${LD-ld} -m elf_x86_64"
7049 ;;
7050 sparc*-*-solaris*)
7051 LD="${LD-ld} -m elf64_sparc"
7052 ;;
7053 esac
7054 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7055 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7056 LD="${LD-ld}_sol2"
7057 fi
7058 ;;
7059 *)
7060 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7061 LD="${LD-ld} -64"
7062 fi
7063 ;;
7064 esac
7065 ;;
7066 esac
7067 fi
7068 rm -rf conftest*
7069 ;;
7070esac
7071
7072need_locks="$enable_libtool_lock"
7073
7074if test -n "$ac_tool_prefix"; then
7075 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7076set dummy ${ac_tool_prefix}mt; ac_word=$2
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078$as_echo_n "checking for $ac_word... " >&6; }
7079if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081else
7082 if test -n "$MANIFEST_TOOL"; then
7083 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7084else
7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086for as_dir in $PATH
7087do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096done
7097 done
7098IFS=$as_save_IFS
7099
7100fi
7101fi
7102MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7103if test -n "$MANIFEST_TOOL"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7105$as_echo "$MANIFEST_TOOL" >&6; }
7106else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108$as_echo "no" >&6; }
7109fi
7110
7111
7112fi
7113if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7114 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7115 # Extract the first word of "mt", so it can be a program name with args.
7116set dummy mt; ac_word=$2
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118$as_echo_n "checking for $ac_word... " >&6; }
7119if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121else
7122 if test -n "$ac_ct_MANIFEST_TOOL"; then
7123 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7124else
7125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126for as_dir in $PATH
7127do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7135 fi
7136done
7137 done
7138IFS=$as_save_IFS
7139
7140fi
7141fi
7142ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7143if test -n "$ac_ct_MANIFEST_TOOL"; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7145$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7146else
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148$as_echo "no" >&6; }
7149fi
7150
7151 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7152 MANIFEST_TOOL=":"
7153 else
7154 case $cross_compiling:$ac_tool_warned in
7155yes:)
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158ac_tool_warned=yes ;;
7159esac
7160 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7161 fi
7162else
7163 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7164fi
7165
7166test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7168$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7169if ${lt_cv_path_mainfest_tool+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171else
7172 lt_cv_path_mainfest_tool=no
7173 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7174 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7175 cat conftest.err >&5
7176 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7177 lt_cv_path_mainfest_tool=yes
7178 fi
7179 rm -f conftest*
7180fi
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7182$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7183if test "x$lt_cv_path_mainfest_tool" != xyes; then
7184 MANIFEST_TOOL=:
7185fi
7186
7187
7188
7189
7190
7191
7192 case $host_os in
7193 rhapsody* | darwin*)
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7196set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198$as_echo_n "checking for $ac_word... " >&6; }
7199if ${ac_cv_prog_DSYMUTIL+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201else
7202 if test -n "$DSYMUTIL"; then
7203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7204else
7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216done
7217 done
7218IFS=$as_save_IFS
7219
7220fi
7221fi
7222DSYMUTIL=$ac_cv_prog_DSYMUTIL
7223if test -n "$DSYMUTIL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7225$as_echo "$DSYMUTIL" >&6; }
7226else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228$as_echo "no" >&6; }
7229fi
7230
7231
7232fi
7233if test -z "$ac_cv_prog_DSYMUTIL"; then
7234 ac_ct_DSYMUTIL=$DSYMUTIL
7235 # Extract the first word of "dsymutil", so it can be a program name with args.
7236set dummy dsymutil; ac_word=$2
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238$as_echo_n "checking for $ac_word... " >&6; }
7239if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241else
7242 if test -n "$ac_ct_DSYMUTIL"; then
7243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7244else
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256done
7257 done
7258IFS=$as_save_IFS
7259
7260fi
7261fi
7262ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7263if test -n "$ac_ct_DSYMUTIL"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7265$as_echo "$ac_ct_DSYMUTIL" >&6; }
7266else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268$as_echo "no" >&6; }
7269fi
7270
7271 if test "x$ac_ct_DSYMUTIL" = x; then
7272 DSYMUTIL=":"
7273 else
7274 case $cross_compiling:$ac_tool_warned in
7275yes:)
7276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278ac_tool_warned=yes ;;
7279esac
7280 DSYMUTIL=$ac_ct_DSYMUTIL
7281 fi
7282else
7283 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7284fi
7285
7286 if test -n "$ac_tool_prefix"; then
7287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7288set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290$as_echo_n "checking for $ac_word... " >&6; }
7291if ${ac_cv_prog_NMEDIT+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293else
7294 if test -n "$NMEDIT"; then
7295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7296else
7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7307 fi
7308done
7309 done
7310IFS=$as_save_IFS
7311
7312fi
7313fi
7314NMEDIT=$ac_cv_prog_NMEDIT
7315if test -n "$NMEDIT"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7317$as_echo "$NMEDIT" >&6; }
7318else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
7321fi
7322
7323
7324fi
7325if test -z "$ac_cv_prog_NMEDIT"; then
7326 ac_ct_NMEDIT=$NMEDIT
7327 # Extract the first word of "nmedit", so it can be a program name with args.
7328set dummy nmedit; ac_word=$2
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333else
7334 if test -n "$ac_ct_NMEDIT"; then
7335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348done
7349 done
7350IFS=$as_save_IFS
7351
7352fi
7353fi
7354ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7355if test -n "$ac_ct_NMEDIT"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7357$as_echo "$ac_ct_NMEDIT" >&6; }
7358else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360$as_echo "no" >&6; }
7361fi
7362
7363 if test "x$ac_ct_NMEDIT" = x; then
7364 NMEDIT=":"
7365 else
7366 case $cross_compiling:$ac_tool_warned in
7367yes:)
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370ac_tool_warned=yes ;;
7371esac
7372 NMEDIT=$ac_ct_NMEDIT
7373 fi
7374else
7375 NMEDIT="$ac_cv_prog_NMEDIT"
7376fi
7377
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7380set dummy ${ac_tool_prefix}lipo; ac_word=$2
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382$as_echo_n "checking for $ac_word... " >&6; }
7383if ${ac_cv_prog_LIPO+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385else
7386 if test -n "$LIPO"; then
7387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7388else
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400done
7401 done
7402IFS=$as_save_IFS
7403
7404fi
7405fi
7406LIPO=$ac_cv_prog_LIPO
7407if test -n "$LIPO"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7409$as_echo "$LIPO" >&6; }
7410else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412$as_echo "no" >&6; }
7413fi
7414
7415
7416fi
7417if test -z "$ac_cv_prog_LIPO"; then
7418 ac_ct_LIPO=$LIPO
7419 # Extract the first word of "lipo", so it can be a program name with args.
7420set dummy lipo; ac_word=$2
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422$as_echo_n "checking for $ac_word... " >&6; }
7423if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425else
7426 if test -n "$ac_ct_LIPO"; then
7427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7428else
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_ac_ct_LIPO="lipo"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440done
7441 done
7442IFS=$as_save_IFS
7443
7444fi
7445fi
7446ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7447if test -n "$ac_ct_LIPO"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7449$as_echo "$ac_ct_LIPO" >&6; }
7450else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
7453fi
7454
7455 if test "x$ac_ct_LIPO" = x; then
7456 LIPO=":"
7457 else
7458 case $cross_compiling:$ac_tool_warned in
7459yes:)
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462ac_tool_warned=yes ;;
7463esac
7464 LIPO=$ac_ct_LIPO
7465 fi
7466else
7467 LIPO="$ac_cv_prog_LIPO"
7468fi
7469
7470 if test -n "$ac_tool_prefix"; then
7471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7472set dummy ${ac_tool_prefix}otool; ac_word=$2
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474$as_echo_n "checking for $ac_word... " >&6; }
7475if ${ac_cv_prog_OTOOL+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477else
7478 if test -n "$OTOOL"; then
7479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7480else
7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492done
7493 done
7494IFS=$as_save_IFS
7495
7496fi
7497fi
7498OTOOL=$ac_cv_prog_OTOOL
7499if test -n "$OTOOL"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7501$as_echo "$OTOOL" >&6; }
7502else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504$as_echo "no" >&6; }
7505fi
7506
7507
7508fi
7509if test -z "$ac_cv_prog_OTOOL"; then
7510 ac_ct_OTOOL=$OTOOL
7511 # Extract the first word of "otool", so it can be a program name with args.
7512set dummy otool; ac_word=$2
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514$as_echo_n "checking for $ac_word... " >&6; }
7515if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517else
7518 if test -n "$ac_ct_OTOOL"; then
7519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7520else
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_ac_ct_OTOOL="otool"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7531 fi
7532done
7533 done
7534IFS=$as_save_IFS
7535
7536fi
7537fi
7538ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7539if test -n "$ac_ct_OTOOL"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7541$as_echo "$ac_ct_OTOOL" >&6; }
7542else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544$as_echo "no" >&6; }
7545fi
7546
7547 if test "x$ac_ct_OTOOL" = x; then
7548 OTOOL=":"
7549 else
7550 case $cross_compiling:$ac_tool_warned in
7551yes:)
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7554ac_tool_warned=yes ;;
7555esac
7556 OTOOL=$ac_ct_OTOOL
7557 fi
7558else
7559 OTOOL="$ac_cv_prog_OTOOL"
7560fi
7561
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7564set dummy ${ac_tool_prefix}otool64; ac_word=$2
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566$as_echo_n "checking for $ac_word... " >&6; }
7567if ${ac_cv_prog_OTOOL64+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569else
7570 if test -n "$OTOOL64"; then
7571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7572else
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584done
7585 done
7586IFS=$as_save_IFS
7587
7588fi
7589fi
7590OTOOL64=$ac_cv_prog_OTOOL64
7591if test -n "$OTOOL64"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7593$as_echo "$OTOOL64" >&6; }
7594else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596$as_echo "no" >&6; }
7597fi
7598
7599
7600fi
7601if test -z "$ac_cv_prog_OTOOL64"; then
7602 ac_ct_OTOOL64=$OTOOL64
7603 # Extract the first word of "otool64", so it can be a program name with args.
7604set dummy otool64; ac_word=$2
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606$as_echo_n "checking for $ac_word... " >&6; }
7607if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609else
7610 if test -n "$ac_ct_OTOOL64"; then
7611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7612else
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_ac_ct_OTOOL64="otool64"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7623 fi
7624done
7625 done
7626IFS=$as_save_IFS
7627
7628fi
7629fi
7630ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7631if test -n "$ac_ct_OTOOL64"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7633$as_echo "$ac_ct_OTOOL64" >&6; }
7634else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636$as_echo "no" >&6; }
7637fi
7638
7639 if test "x$ac_ct_OTOOL64" = x; then
7640 OTOOL64=":"
7641 else
7642 case $cross_compiling:$ac_tool_warned in
7643yes:)
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646ac_tool_warned=yes ;;
7647esac
7648 OTOOL64=$ac_ct_OTOOL64
7649 fi
7650else
7651 OTOOL64="$ac_cv_prog_OTOOL64"
7652fi
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7681$as_echo_n "checking for -single_module linker flag... " >&6; }
7682if ${lt_cv_apple_cc_single_mod+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684else
7685 lt_cv_apple_cc_single_mod=no
7686 if test -z "${LT_MULTI_MODULE}"; then
7687 # By default we will add the -single_module flag. You can override
7688 # by either setting the environment variable LT_MULTI_MODULE
7689 # non-empty at configure time, or by adding -multi_module to the
7690 # link flags.
7691 rm -rf libconftest.dylib*
7692 echo "int foo(void){return 1;}" > conftest.c
7693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7694-dynamiclib -Wl,-single_module conftest.c" >&5
7695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7697 _lt_result=$?
7698 # If there is a non-empty error log, and "single_module"
7699 # appears in it, assume the flag caused a linker warning
7700 if test -s conftest.err && $GREP single_module conftest.err; then
7701 cat conftest.err >&5
7702 # Otherwise, if the output was created with a 0 exit code from
7703 # the compiler, it worked.
7704 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7705 lt_cv_apple_cc_single_mod=yes
7706 else
7707 cat conftest.err >&5
7708 fi
7709 rm -rf libconftest.dylib*
7710 rm -f conftest.*
7711 fi
7712fi
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7714$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7717$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7718if ${lt_cv_ld_exported_symbols_list+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720else
7721 lt_cv_ld_exported_symbols_list=no
7722 save_LDFLAGS=$LDFLAGS
7723 echo "_main" > conftest.sym
7724 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h. */
7727
7728int
7729main ()
7730{
7731
7732 ;
7733 return 0;
7734}
7735_ACEOF
7736if ac_fn_c_try_link "$LINENO"; then :
7737 lt_cv_ld_exported_symbols_list=yes
7738else
7739 lt_cv_ld_exported_symbols_list=no
7740fi
7741rm -f core conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743 LDFLAGS="$save_LDFLAGS"
7744
7745fi
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7747$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7748
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7750$as_echo_n "checking for -force_load linker flag... " >&6; }
7751if ${lt_cv_ld_force_load+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753else
7754 lt_cv_ld_force_load=no
7755 cat > conftest.c << _LT_EOF
7756int forced_loaded() { return 2;}
7757_LT_EOF
7758 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7759 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7760 echo "$AR cru libconftest.a conftest.o" >&5
7761 $AR cru libconftest.a conftest.o 2>&5
7762 echo "$RANLIB libconftest.a" >&5
7763 $RANLIB libconftest.a 2>&5
7764 cat > conftest.c << _LT_EOF
7765int main() { return 0;}
7766_LT_EOF
7767 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7768 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7769 _lt_result=$?
7770 if test -s conftest.err && $GREP force_load conftest.err; then
7771 cat conftest.err >&5
7772 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7773 lt_cv_ld_force_load=yes
7774 else
7775 cat conftest.err >&5
7776 fi
7777 rm -f conftest.err libconftest.a conftest conftest.c
7778 rm -rf conftest.dSYM
7779
7780fi
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7782$as_echo "$lt_cv_ld_force_load" >&6; }
7783 case $host_os in
7784 rhapsody* | darwin1.[012])
7785 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7786 darwin1.*)
7787 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7788 darwin*) # darwin 5.x on
7789 # if running on 10.5 or later, the deployment target defaults
7790 # to the OS version, if on x86, and 10.4, the deployment
7791 # target defaults to 10.4. Don't you love it?
7792 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7793 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7794 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7795 10.[012]*)
7796 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7797 10.*)
7798 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7799 esac
7800 ;;
7801 esac
7802 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7803 _lt_dar_single_mod='$single_module'
7804 fi
7805 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7806 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7807 else
7808 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7809 fi
7810 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7811 _lt_dsymutil='~$DSYMUTIL $lib || :'
7812 else
7813 _lt_dsymutil=
7814 fi
7815 ;;
7816 esac
7817
7818ac_ext=c
7819ac_cpp='$CPP $CPPFLAGS'
7820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7824$as_echo_n "checking how to run the C preprocessor... " >&6; }
7825# On Suns, sometimes $CPP names a directory.
7826if test -n "$CPP" && test -d "$CPP"; then
7827 CPP=
7828fi
7829if test -z "$CPP"; then
7830 if ${ac_cv_prog_CPP+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832else
7833 # Double quotes because CPP needs to be expanded
7834 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7835 do
7836 ac_preproc_ok=false
7837for ac_c_preproc_warn_flag in '' yes
7838do
7839 # Use a header file that comes with gcc, so configuring glibc
7840 # with a fresh cross-compiler works.
7841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7842 # <limits.h> exists even on freestanding compilers.
7843 # On the NeXT, cc -E runs the code through the compiler's parser,
7844 # not just through cpp. "Syntax error" is here to catch this case.
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846/* end confdefs.h. */
7847#ifdef __STDC__
7848# include <limits.h>
7849#else
7850# include <assert.h>
7851#endif
7852 Syntax error
7853_ACEOF
7854if ac_fn_c_try_cpp "$LINENO"; then :
7855
7856else
7857 # Broken: fails on valid input.
7858continue
7859fi
7860rm -f conftest.err conftest.i conftest.$ac_ext
7861
7862 # OK, works on sane cases. Now check whether nonexistent headers
7863 # can be detected and how.
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h. */
7866#include <ac_nonexistent.h>
7867_ACEOF
7868if ac_fn_c_try_cpp "$LINENO"; then :
7869 # Broken: success on invalid input.
7870continue
7871else
7872 # Passes both tests.
7873ac_preproc_ok=:
7874break
7875fi
7876rm -f conftest.err conftest.i conftest.$ac_ext
7877
7878done
7879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7880rm -f conftest.i conftest.err conftest.$ac_ext
7881if $ac_preproc_ok; then :
7882 break
7883fi
7884
7885 done
7886 ac_cv_prog_CPP=$CPP
7887
7888fi
7889 CPP=$ac_cv_prog_CPP
7890else
7891 ac_cv_prog_CPP=$CPP
7892fi
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7894$as_echo "$CPP" >&6; }
7895ac_preproc_ok=false
7896for ac_c_preproc_warn_flag in '' yes
7897do
7898 # Use a header file that comes with gcc, so configuring glibc
7899 # with a fresh cross-compiler works.
7900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7901 # <limits.h> exists even on freestanding compilers.
7902 # On the NeXT, cc -E runs the code through the compiler's parser,
7903 # not just through cpp. "Syntax error" is here to catch this case.
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h. */
7906#ifdef __STDC__
7907# include <limits.h>
7908#else
7909# include <assert.h>
7910#endif
7911 Syntax error
7912_ACEOF
7913if ac_fn_c_try_cpp "$LINENO"; then :
7914
7915else
7916 # Broken: fails on valid input.
7917continue
7918fi
7919rm -f conftest.err conftest.i conftest.$ac_ext
7920
7921 # OK, works on sane cases. Now check whether nonexistent headers
7922 # can be detected and how.
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924/* end confdefs.h. */
7925#include <ac_nonexistent.h>
7926_ACEOF
7927if ac_fn_c_try_cpp "$LINENO"; then :
7928 # Broken: success on invalid input.
7929continue
7930else
7931 # Passes both tests.
7932ac_preproc_ok=:
7933break
7934fi
7935rm -f conftest.err conftest.i conftest.$ac_ext
7936
7937done
7938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7939rm -f conftest.i conftest.err conftest.$ac_ext
7940if $ac_preproc_ok; then :
7941
7942else
7943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7945as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7946See \`config.log' for more details" "$LINENO" 5; }
7947fi
7948
7949ac_ext=c
7950ac_cpp='$CPP $CPPFLAGS'
7951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7953ac_compiler_gnu=$ac_cv_c_compiler_gnu
7954
7955
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7957$as_echo_n "checking for ANSI C header files... " >&6; }
7958if ${ac_cv_header_stdc+:} false; then :
7959 $as_echo_n "(cached) " >&6
7960else
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h. */
7963#include <stdlib.h>
7964#include <stdarg.h>
7965#include <string.h>
7966#include <float.h>
7967
7968int
7969main ()
7970{
7971
7972 ;
7973 return 0;
7974}
7975_ACEOF
7976if ac_fn_c_try_compile "$LINENO"; then :
7977 ac_cv_header_stdc=yes
7978else
7979 ac_cv_header_stdc=no
7980fi
7981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982
7983if test $ac_cv_header_stdc = yes; then
7984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h. */
7987#include <string.h>
7988
7989_ACEOF
7990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991 $EGREP "memchr" >/dev/null 2>&1; then :
7992
7993else
7994 ac_cv_header_stdc=no
7995fi
7996rm -f conftest*
7997
7998fi
7999
8000if test $ac_cv_header_stdc = yes; then
8001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003/* end confdefs.h. */
8004#include <stdlib.h>
8005
8006_ACEOF
8007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8008 $EGREP "free" >/dev/null 2>&1; then :
8009
8010else
8011 ac_cv_header_stdc=no
8012fi
8013rm -f conftest*
8014
8015fi
8016
8017if test $ac_cv_header_stdc = yes; then
8018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8019 if test "$cross_compiling" = yes; then :
8020 :
8021else
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023/* end confdefs.h. */
8024#include <ctype.h>
8025#include <stdlib.h>
8026#if ((' ' & 0x0FF) == 0x020)
8027# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8028# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8029#else
8030# define ISLOWER(c) \
8031 (('a' <= (c) && (c) <= 'i') \
8032 || ('j' <= (c) && (c) <= 'r') \
8033 || ('s' <= (c) && (c) <= 'z'))
8034# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8035#endif
8036
8037#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8038int
8039main ()
8040{
8041 int i;
8042 for (i = 0; i < 256; i++)
8043 if (XOR (islower (i), ISLOWER (i))
8044 || toupper (i) != TOUPPER (i))
8045 return 2;
8046 return 0;
8047}
8048_ACEOF
8049if ac_fn_c_try_run "$LINENO"; then :
8050
8051else
8052 ac_cv_header_stdc=no
8053fi
8054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8055 conftest.$ac_objext conftest.beam conftest.$ac_ext
8056fi
8057
8058fi
8059fi
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8061$as_echo "$ac_cv_header_stdc" >&6; }
8062if test $ac_cv_header_stdc = yes; then
8063
8064$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8065
8066fi
8067
8068# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8069for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8070 inttypes.h stdint.h unistd.h
8071do :
8072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8073ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8074"
8075if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8076 cat >>confdefs.h <<_ACEOF
8077#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8078_ACEOF
8079
8080fi
8081
8082done
8083
8084
8085for ac_header in dlfcn.h
8086do :
8087 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8088"
8089if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8090 cat >>confdefs.h <<_ACEOF
8091#define HAVE_DLFCN_H 1
8092_ACEOF
8093
8094fi
8095
8096done
8097
8098
8099
8100
8101
8102# Set options
8103enable_dlopen=yes
8104# Check whether --enable-static was given.
8105if test "${enable_static+set}" = set; then :
8106 enableval=$enable_static; p=${PACKAGE-default}
8107 case $enableval in
8108 yes) enable_static=yes ;;
8109 no) enable_static=no ;;
8110 *)
8111 enable_static=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114 for pkg in $enableval; do
8115 IFS="$lt_save_ifs"
8116 if test "X$pkg" = "X$p"; then
8117 enable_static=yes
8118 fi
8119 done
8120 IFS="$lt_save_ifs"
8121 ;;
8122 esac
8123else
8124 enable_static=no
8125fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 enable_win32_dll=no
8138
8139
8140 # Check whether --enable-shared was given.
8141if test "${enable_shared+set}" = set; then :
8142 enableval=$enable_shared; p=${PACKAGE-default}
8143 case $enableval in
8144 yes) enable_shared=yes ;;
8145 no) enable_shared=no ;;
8146 *)
8147 enable_shared=no
8148 # Look at the argument we got. We use all the common list separators.
8149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8150 for pkg in $enableval; do
8151 IFS="$lt_save_ifs"
8152 if test "X$pkg" = "X$p"; then
8153 enable_shared=yes
8154 fi
8155 done
8156 IFS="$lt_save_ifs"
8157 ;;
8158 esac
8159else
8160 enable_shared=yes
8161fi
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173# Check whether --with-pic was given.
8174if test "${with_pic+set}" = set; then :
8175 withval=$with_pic; lt_p=${PACKAGE-default}
8176 case $withval in
8177 yes|no) pic_mode=$withval ;;
8178 *)
8179 pic_mode=default
8180 # Look at the argument we got. We use all the common list separators.
8181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8182 for lt_pkg in $withval; do
8183 IFS="$lt_save_ifs"
8184 if test "X$lt_pkg" = "X$lt_p"; then
8185 pic_mode=yes
8186 fi
8187 done
8188 IFS="$lt_save_ifs"
8189 ;;
8190 esac
8191else
8192 pic_mode=default
8193fi
8194
8195
8196test -z "$pic_mode" && pic_mode=default
8197
8198
8199
8200
8201
8202
8203
8204 # Check whether --enable-fast-install was given.
8205if test "${enable_fast_install+set}" = set; then :
8206 enableval=$enable_fast_install; p=${PACKAGE-default}
8207 case $enableval in
8208 yes) enable_fast_install=yes ;;
8209 no) enable_fast_install=no ;;
8210 *)
8211 enable_fast_install=no
8212 # Look at the argument we got. We use all the common list separators.
8213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8214 for pkg in $enableval; do
8215 IFS="$lt_save_ifs"
8216 if test "X$pkg" = "X$p"; then
8217 enable_fast_install=yes
8218 fi
8219 done
8220 IFS="$lt_save_ifs"
8221 ;;
8222 esac
8223else
8224 enable_fast_install=yes
8225fi
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237# This can be used to rebuild libtool when needed
8238LIBTOOL_DEPS="$ltmain"
8239
8240# Always use our own libtool.
8241LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272test -z "$LN_S" && LN_S="ln -s"
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287if test -n "${ZSH_VERSION+set}" ; then
8288 setopt NO_GLOB_SUBST
8289fi
8290
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8292$as_echo_n "checking for objdir... " >&6; }
8293if ${lt_cv_objdir+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295else
8296 rm -f .libs 2>/dev/null
8297mkdir .libs 2>/dev/null
8298if test -d .libs; then
8299 lt_cv_objdir=.libs
8300else
8301 # MS-DOS does not allow filenames that begin with a dot.
8302 lt_cv_objdir=_libs
8303fi
8304rmdir .libs 2>/dev/null
8305fi
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8307$as_echo "$lt_cv_objdir" >&6; }
8308objdir=$lt_cv_objdir
8309
8310
8311
8312
8313
8314cat >>confdefs.h <<_ACEOF
8315#define LT_OBJDIR "$lt_cv_objdir/"
8316_ACEOF
8317
8318
8319
8320
8321case $host_os in
8322aix3*)
8323 # AIX sometimes has problems with the GCC collect2 program. For some
8324 # reason, if we set the COLLECT_NAMES environment variable, the problems
8325 # vanish in a puff of smoke.
8326 if test "X${COLLECT_NAMES+set}" != Xset; then
8327 COLLECT_NAMES=
8328 export COLLECT_NAMES
8329 fi
8330 ;;
8331esac
8332
8333# Global variables:
8334ofile=libtool
8335can_build_shared=yes
8336
8337# All known linkers require a `.a' archive for static linking (except MSVC,
8338# which needs '.lib').
8339libext=a
8340
8341with_gnu_ld="$lt_cv_prog_gnu_ld"
8342
8343old_CC="$CC"
8344old_CFLAGS="$CFLAGS"
8345
8346# Set sane defaults for various variables
8347test -z "$CC" && CC=cc
8348test -z "$LTCC" && LTCC=$CC
8349test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8350test -z "$LD" && LD=ld
8351test -z "$ac_objext" && ac_objext=o
8352
8353for cc_temp in $compiler""; do
8354 case $cc_temp in
8355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8357 \-*) ;;
8358 *) break;;
8359 esac
8360done
8361cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8362
8363
8364# Only perform the check for file, if the check method requires it
8365test -z "$MAGIC_CMD" && MAGIC_CMD=file
8366case $deplibs_check_method in
8367file_magic*)
8368 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8370$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8371if ${lt_cv_path_MAGIC_CMD+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373else
8374 case $MAGIC_CMD in
8375[\\/*] | ?:[\\/]*)
8376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8377 ;;
8378*)
8379 lt_save_MAGIC_CMD="$MAGIC_CMD"
8380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8382 for ac_dir in $ac_dummy; do
8383 IFS="$lt_save_ifs"
8384 test -z "$ac_dir" && ac_dir=.
8385 if test -f $ac_dir/${ac_tool_prefix}file; then
8386 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8387 if test -n "$file_magic_test_file"; then
8388 case $deplibs_check_method in
8389 "file_magic "*)
8390 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8393 $EGREP "$file_magic_regex" > /dev/null; then
8394 :
8395 else
8396 cat <<_LT_EOF 1>&2
8397
8398*** Warning: the command libtool uses to detect shared libraries,
8399*** $file_magic_cmd, produces output that libtool cannot recognize.
8400*** The result is that libtool may fail to recognize shared libraries
8401*** as such. This will affect the creation of libtool libraries that
8402*** depend on shared libraries, but programs linked with such libtool
8403*** libraries will work regardless of this problem. Nevertheless, you
8404*** may want to report the problem to your system manager and/or to
8405*** bug-libtool@gnu.org
8406
8407_LT_EOF
8408 fi ;;
8409 esac
8410 fi
8411 break
8412 fi
8413 done
8414 IFS="$lt_save_ifs"
8415 MAGIC_CMD="$lt_save_MAGIC_CMD"
8416 ;;
8417esac
8418fi
8419
8420MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421if test -n "$MAGIC_CMD"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8423$as_echo "$MAGIC_CMD" >&6; }
8424else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426$as_echo "no" >&6; }
8427fi
8428
8429
8430
8431
8432
8433if test -z "$lt_cv_path_MAGIC_CMD"; then
8434 if test -n "$ac_tool_prefix"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8436$as_echo_n "checking for file... " >&6; }
8437if ${lt_cv_path_MAGIC_CMD+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439else
8440 case $MAGIC_CMD in
8441[\\/*] | ?:[\\/]*)
8442 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8443 ;;
8444*)
8445 lt_save_MAGIC_CMD="$MAGIC_CMD"
8446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8447 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8448 for ac_dir in $ac_dummy; do
8449 IFS="$lt_save_ifs"
8450 test -z "$ac_dir" && ac_dir=.
8451 if test -f $ac_dir/file; then
8452 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8453 if test -n "$file_magic_test_file"; then
8454 case $deplibs_check_method in
8455 "file_magic "*)
8456 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8459 $EGREP "$file_magic_regex" > /dev/null; then
8460 :
8461 else
8462 cat <<_LT_EOF 1>&2
8463
8464*** Warning: the command libtool uses to detect shared libraries,
8465*** $file_magic_cmd, produces output that libtool cannot recognize.
8466*** The result is that libtool may fail to recognize shared libraries
8467*** as such. This will affect the creation of libtool libraries that
8468*** depend on shared libraries, but programs linked with such libtool
8469*** libraries will work regardless of this problem. Nevertheless, you
8470*** may want to report the problem to your system manager and/or to
8471*** bug-libtool@gnu.org
8472
8473_LT_EOF
8474 fi ;;
8475 esac
8476 fi
8477 break
8478 fi
8479 done
8480 IFS="$lt_save_ifs"
8481 MAGIC_CMD="$lt_save_MAGIC_CMD"
8482 ;;
8483esac
8484fi
8485
8486MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8487if test -n "$MAGIC_CMD"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8489$as_echo "$MAGIC_CMD" >&6; }
8490else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492$as_echo "no" >&6; }
8493fi
8494
8495
8496 else
8497 MAGIC_CMD=:
8498 fi
8499fi
8500
8501 fi
8502 ;;
8503esac
8504
8505# Use C for the default configuration in the libtool script
8506
8507lt_save_CC="$CC"
8508ac_ext=c
8509ac_cpp='$CPP $CPPFLAGS'
8510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8512ac_compiler_gnu=$ac_cv_c_compiler_gnu
8513
8514
8515# Source file extension for C test sources.
8516ac_ext=c
8517
8518# Object file extension for compiled C test sources.
8519objext=o
8520objext=$objext
8521
8522# Code to be used in simple compile tests
8523lt_simple_compile_test_code="int some_variable = 0;"
8524
8525# Code to be used in simple link tests
8526lt_simple_link_test_code='int main(){return(0);}'
8527
8528
8529
8530
8531
8532
8533
8534# If no C compiler was specified, use CC.
8535LTCC=${LTCC-"$CC"}
8536
8537# If no C compiler flags were specified, use CFLAGS.
8538LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8539
8540# Allow CC to be a program name with arguments.
8541compiler=$CC
8542
8543# Save the default compiler, since it gets overwritten when the other
8544# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8545compiler_DEFAULT=$CC
8546
8547# save warnings/boilerplate of simple test code
8548ac_outfile=conftest.$ac_objext
8549echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8550eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8551_lt_compiler_boilerplate=`cat conftest.err`
8552$RM conftest*
8553
8554ac_outfile=conftest.$ac_objext
8555echo "$lt_simple_link_test_code" >conftest.$ac_ext
8556eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8557_lt_linker_boilerplate=`cat conftest.err`
8558$RM -r conftest*
8559
8560
8561## CAVEAT EMPTOR:
8562## There is no encapsulation within the following macros, do not change
8563## the running order or otherwise move them around unless you know exactly
8564## what you are doing...
8565if test -n "$compiler"; then
8566
8567lt_prog_compiler_no_builtin_flag=
8568
8569if test "$GCC" = yes; then
8570 case $cc_basename in
8571 nvcc*)
8572 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8573 *)
8574 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8575 esac
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8578$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8579if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581else
8582 lt_cv_prog_compiler_rtti_exceptions=no
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8585 lt_compiler_flag="-fno-rtti -fno-exceptions"
8586 # Insert the option either (1) after the last *FLAGS variable, or
8587 # (2) before a word containing "conftest.", or (3) at the end.
8588 # Note that $ac_compile itself does not contain backslashes and begins
8589 # with a dollar sign (not a hyphen), so the echo should work correctly.
8590 # The option is referenced via a variable to avoid confusing sed.
8591 lt_compile=`echo "$ac_compile" | $SED \
8592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8594 -e 's:$: $lt_compiler_flag:'`
8595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8596 (eval "$lt_compile" 2>conftest.err)
8597 ac_status=$?
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 if (exit $ac_status) && test -s "$ac_outfile"; then
8601 # The compiler can only warn and ignore the option if not recognized
8602 # So say no if there are warnings other than the usual output.
8603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8606 lt_cv_prog_compiler_rtti_exceptions=yes
8607 fi
8608 fi
8609 $RM conftest*
8610
8611fi
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8613$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8614
8615if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8616 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8617else
8618 :
8619fi
8620
8621fi
8622
8623
8624
8625
8626
8627
8628 lt_prog_compiler_wl=
8629lt_prog_compiler_pic=
8630lt_prog_compiler_static=
8631
8632
8633 if test "$GCC" = yes; then
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_static='-static'
8636
8637 case $host_os in
8638 aix*)
8639 # All AIX code is PIC.
8640 if test "$host_cpu" = ia64; then
8641 # AIX 5 now supports IA64 processor
8642 lt_prog_compiler_static='-Bstatic'
8643 fi
8644 ;;
8645
8646 amigaos*)
8647 case $host_cpu in
8648 powerpc)
8649 # see comment about AmigaOS4 .so support
8650 lt_prog_compiler_pic='-fPIC'
8651 ;;
8652 m68k)
8653 # FIXME: we need at least 68020 code to build shared libraries, but
8654 # adding the `-m68020' flag to GCC prevents building anything better,
8655 # like `-m68040'.
8656 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8657 ;;
8658 esac
8659 ;;
8660
8661 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8662 # PIC is the default for these OSes.
8663 ;;
8664
8665 mingw* | cygwin* | pw32* | os2* | cegcc*)
8666 # This hack is so that the source file can tell whether it is being
8667 # built for inclusion in a dll (and should export symbols for example).
8668 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8669 # (--disable-auto-import) libraries
8670 lt_prog_compiler_pic='-DDLL_EXPORT'
8671 ;;
8672
8673 darwin* | rhapsody*)
8674 # PIC is the default on this platform
8675 # Common symbols not allowed in MH_DYLIB files
8676 lt_prog_compiler_pic='-fno-common'
8677 ;;
8678
8679 haiku*)
8680 # PIC is the default for Haiku.
8681 # The "-static" flag exists, but is broken.
8682 lt_prog_compiler_static=
8683 ;;
8684
8685 hpux*)
8686 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8687 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8688 # sets the default TLS model and affects inlining.
8689 case $host_cpu in
8690 hppa*64*)
8691 # +Z the default
8692 ;;
8693 *)
8694 lt_prog_compiler_pic='-fPIC'
8695 ;;
8696 esac
8697 ;;
8698
8699 interix[3-9]*)
8700 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8701 # Instead, we relocate shared libraries at runtime.
8702 ;;
8703
8704 msdosdjgpp*)
8705 # Just because we use GCC doesn't mean we suddenly get shared libraries
8706 # on systems that don't support them.
8707 lt_prog_compiler_can_build_shared=no
8708 enable_shared=no
8709 ;;
8710
8711 *nto* | *qnx*)
8712 # QNX uses GNU C++, but need to define -shared option too, otherwise
8713 # it will coredump.
8714 lt_prog_compiler_pic='-fPIC -shared'
8715 ;;
8716
8717 sysv4*MP*)
8718 if test -d /usr/nec; then
8719 lt_prog_compiler_pic=-Kconform_pic
8720 fi
8721 ;;
8722
8723 *)
8724 lt_prog_compiler_pic='-fPIC'
8725 ;;
8726 esac
8727
8728 case $cc_basename in
8729 nvcc*) # Cuda Compiler Driver 2.2
8730 lt_prog_compiler_wl='-Xlinker '
8731 if test -n "$lt_prog_compiler_pic"; then
8732 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8733 fi
8734 ;;
8735 esac
8736 else
8737 # PORTME Check for flag to pass linker flags through the system compiler.
8738 case $host_os in
8739 aix*)
8740 lt_prog_compiler_wl='-Wl,'
8741 if test "$host_cpu" = ia64; then
8742 # AIX 5 now supports IA64 processor
8743 lt_prog_compiler_static='-Bstatic'
8744 else
8745 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8746 fi
8747 ;;
8748
8749 mingw* | cygwin* | pw32* | os2* | cegcc*)
8750 # This hack is so that the source file can tell whether it is being
8751 # built for inclusion in a dll (and should export symbols for example).
8752 lt_prog_compiler_pic='-DDLL_EXPORT'
8753 ;;
8754
8755 hpux9* | hpux10* | hpux11*)
8756 lt_prog_compiler_wl='-Wl,'
8757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8758 # not for PA HP-UX.
8759 case $host_cpu in
8760 hppa*64*|ia64*)
8761 # +Z the default
8762 ;;
8763 *)
8764 lt_prog_compiler_pic='+Z'
8765 ;;
8766 esac
8767 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8768 lt_prog_compiler_static='${wl}-a ${wl}archive'
8769 ;;
8770
8771 irix5* | irix6* | nonstopux*)
8772 lt_prog_compiler_wl='-Wl,'
8773 # PIC (with -KPIC) is the default.
8774 lt_prog_compiler_static='-non_shared'
8775 ;;
8776
8777 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8778 case $cc_basename in
8779 # old Intel for x86_64 which still supported -KPIC.
8780 ecc*)
8781 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_pic='-KPIC'
8783 lt_prog_compiler_static='-static'
8784 ;;
8785 # icc used to be incompatible with GCC.
8786 # ICC 10 doesn't accept -KPIC any more.
8787 icc* | ifort*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-fPIC'
8790 lt_prog_compiler_static='-static'
8791 ;;
8792 # Lahey Fortran 8.1.
8793 lf95*)
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_pic='--shared'
8796 lt_prog_compiler_static='--static'
8797 ;;
8798 nagfor*)
8799 # NAG Fortran compiler
8800 lt_prog_compiler_wl='-Wl,-Wl,,'
8801 lt_prog_compiler_pic='-PIC'
8802 lt_prog_compiler_static='-Bstatic'
8803 ;;
8804 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8805 # Portland Group compilers (*not* the Pentium gcc compiler,
8806 # which looks to be a dead project)
8807 lt_prog_compiler_wl='-Wl,'
8808 lt_prog_compiler_pic='-fpic'
8809 lt_prog_compiler_static='-Bstatic'
8810 ;;
8811 ccc*)
8812 lt_prog_compiler_wl='-Wl,'
8813 # All Alpha code is PIC.
8814 lt_prog_compiler_static='-non_shared'
8815 ;;
8816 xl* | bgxl* | bgf* | mpixl*)
8817 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-qpic'
8820 lt_prog_compiler_static='-qstaticlink'
8821 ;;
8822 *)
8823 case `$CC -V 2>&1 | sed 5q` in
8824 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8825 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 lt_prog_compiler_wl=''
8829 ;;
8830 *Sun\ F* | *Sun*Fortran*)
8831 lt_prog_compiler_pic='-KPIC'
8832 lt_prog_compiler_static='-Bstatic'
8833 lt_prog_compiler_wl='-Qoption ld '
8834 ;;
8835 *Sun\ C*)
8836 # Sun C 5.9
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8839 lt_prog_compiler_wl='-Wl,'
8840 ;;
8841 *Intel*\ [CF]*Compiler*)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-fPIC'
8844 lt_prog_compiler_static='-static'
8845 ;;
8846 *Portland\ Group*)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fpic'
8849 lt_prog_compiler_static='-Bstatic'
8850 ;;
8851 esac
8852 ;;
8853 esac
8854 ;;
8855
8856 newsos6)
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8859 ;;
8860
8861 *nto* | *qnx*)
8862 # QNX uses GNU C++, but need to define -shared option too, otherwise
8863 # it will coredump.
8864 lt_prog_compiler_pic='-fPIC -shared'
8865 ;;
8866
8867 osf3* | osf4* | osf5*)
8868 lt_prog_compiler_wl='-Wl,'
8869 # All OSF/1 code is PIC.
8870 lt_prog_compiler_static='-non_shared'
8871 ;;
8872
8873 rdos*)
8874 lt_prog_compiler_static='-non_shared'
8875 ;;
8876
8877 solaris*)
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 case $cc_basename in
8881 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8882 lt_prog_compiler_wl='-Qoption ld ';;
8883 *)
8884 lt_prog_compiler_wl='-Wl,';;
8885 esac
8886 ;;
8887
8888 sunos4*)
8889 lt_prog_compiler_wl='-Qoption ld '
8890 lt_prog_compiler_pic='-PIC'
8891 lt_prog_compiler_static='-Bstatic'
8892 ;;
8893
8894 sysv4 | sysv4.2uw2* | sysv4.3*)
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8898 ;;
8899
8900 sysv4*MP*)
8901 if test -d /usr/nec ;then
8902 lt_prog_compiler_pic='-Kconform_pic'
8903 lt_prog_compiler_static='-Bstatic'
8904 fi
8905 ;;
8906
8907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8911 ;;
8912
8913 unicos*)
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_can_build_shared=no
8916 ;;
8917
8918 uts4*)
8919 lt_prog_compiler_pic='-pic'
8920 lt_prog_compiler_static='-Bstatic'
8921 ;;
8922
8923 *)
8924 lt_prog_compiler_can_build_shared=no
8925 ;;
8926 esac
8927 fi
8928
8929case $host_os in
8930 # For platforms which do not support PIC, -DPIC is meaningless:
8931 *djgpp*)
8932 lt_prog_compiler_pic=
8933 ;;
8934 *)
8935 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8936 ;;
8937esac
8938
8939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8940$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8941if ${lt_cv_prog_compiler_pic+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943else
8944 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8945fi
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8947$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8948lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8949
8950#
8951# Check to make sure the PIC flag actually works.
8952#
8953if test -n "$lt_prog_compiler_pic"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8955$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8956if ${lt_cv_prog_compiler_pic_works+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958else
8959 lt_cv_prog_compiler_pic_works=no
8960 ac_outfile=conftest.$ac_objext
8961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8962 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8963 # Insert the option either (1) after the last *FLAGS variable, or
8964 # (2) before a word containing "conftest.", or (3) at the end.
8965 # Note that $ac_compile itself does not contain backslashes and begins
8966 # with a dollar sign (not a hyphen), so the echo should work correctly.
8967 # The option is referenced via a variable to avoid confusing sed.
8968 lt_compile=`echo "$ac_compile" | $SED \
8969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8971 -e 's:$: $lt_compiler_flag:'`
8972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8973 (eval "$lt_compile" 2>conftest.err)
8974 ac_status=$?
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 if (exit $ac_status) && test -s "$ac_outfile"; then
8978 # The compiler can only warn and ignore the option if not recognized
8979 # So say no if there are warnings other than the usual output.
8980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8983 lt_cv_prog_compiler_pic_works=yes
8984 fi
8985 fi
8986 $RM conftest*
8987
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8990$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8991
8992if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8993 case $lt_prog_compiler_pic in
8994 "" | " "*) ;;
8995 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8996 esac
8997else
8998 lt_prog_compiler_pic=
8999 lt_prog_compiler_can_build_shared=no
9000fi
9001
9002fi
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014#
9015# Check to make sure the static flag actually works.
9016#
9017wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9019$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9020if ${lt_cv_prog_compiler_static_works+:} false; then :
9021 $as_echo_n "(cached) " >&6
9022else
9023 lt_cv_prog_compiler_static_works=no
9024 save_LDFLAGS="$LDFLAGS"
9025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9028 # The linker can only warn and ignore the option if not recognized
9029 # So say no if there are warnings
9030 if test -s conftest.err; then
9031 # Append any errors to the config.log.
9032 cat conftest.err 1>&5
9033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_static_works=yes
9037 fi
9038 else
9039 lt_cv_prog_compiler_static_works=yes
9040 fi
9041 fi
9042 $RM -r conftest*
9043 LDFLAGS="$save_LDFLAGS"
9044
9045fi
9046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9047$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9048
9049if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9050 :
9051else
9052 lt_prog_compiler_static=
9053fi
9054
9055
9056
9057
9058
9059
9060
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9062$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9063if ${lt_cv_prog_compiler_c_o+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065else
9066 lt_cv_prog_compiler_c_o=no
9067 $RM -r conftest 2>/dev/null
9068 mkdir conftest
9069 cd conftest
9070 mkdir out
9071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072
9073 lt_compiler_flag="-o out/conftest2.$ac_objext"
9074 # Insert the option either (1) after the last *FLAGS variable, or
9075 # (2) before a word containing "conftest.", or (3) at the end.
9076 # Note that $ac_compile itself does not contain backslashes and begins
9077 # with a dollar sign (not a hyphen), so the echo should work correctly.
9078 lt_compile=`echo "$ac_compile" | $SED \
9079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081 -e 's:$: $lt_compiler_flag:'`
9082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083 (eval "$lt_compile" 2>out/conftest.err)
9084 ac_status=$?
9085 cat out/conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9088 then
9089 # The compiler can only warn and ignore the option if not recognized
9090 # So say no if there are warnings
9091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9094 lt_cv_prog_compiler_c_o=yes
9095 fi
9096 fi
9097 chmod u+w . 2>&5
9098 $RM conftest*
9099 # SGI C++ compiler will create directory out/ii_files/ for
9100 # template instantiation
9101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9102 $RM out/* && rmdir out
9103 cd ..
9104 $RM -r conftest
9105 $RM conftest*
9106
9107fi
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9109$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9110
9111
9112
9113
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9117$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9118if ${lt_cv_prog_compiler_c_o+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120else
9121 lt_cv_prog_compiler_c_o=no
9122 $RM -r conftest 2>/dev/null
9123 mkdir conftest
9124 cd conftest
9125 mkdir out
9126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127
9128 lt_compiler_flag="-o out/conftest2.$ac_objext"
9129 # Insert the option either (1) after the last *FLAGS variable, or
9130 # (2) before a word containing "conftest.", or (3) at the end.
9131 # Note that $ac_compile itself does not contain backslashes and begins
9132 # with a dollar sign (not a hyphen), so the echo should work correctly.
9133 lt_compile=`echo "$ac_compile" | $SED \
9134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136 -e 's:$: $lt_compiler_flag:'`
9137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9138 (eval "$lt_compile" 2>out/conftest.err)
9139 ac_status=$?
9140 cat out/conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9143 then
9144 # The compiler can only warn and ignore the option if not recognized
9145 # So say no if there are warnings
9146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_c_o=yes
9150 fi
9151 fi
9152 chmod u+w . 2>&5
9153 $RM conftest*
9154 # SGI C++ compiler will create directory out/ii_files/ for
9155 # template instantiation
9156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9157 $RM out/* && rmdir out
9158 cd ..
9159 $RM -r conftest
9160 $RM conftest*
9161
9162fi
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9164$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9165
9166
9167
9168
9169hard_links="nottested"
9170if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9171 # do not overwrite the value of need_locks provided by the user
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9173$as_echo_n "checking if we can lock with hard links... " >&6; }
9174 hard_links=yes
9175 $RM conftest*
9176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9177 touch conftest.a
9178 ln conftest.a conftest.b 2>&5 || hard_links=no
9179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9181$as_echo "$hard_links" >&6; }
9182 if test "$hard_links" = no; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9184$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9185 need_locks=warn
9186 fi
9187else
9188 need_locks=no
9189fi
9190
9191
9192
9193
9194
9195
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9197$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9198
9199 runpath_var=
9200 allow_undefined_flag=
9201 always_export_symbols=no
9202 archive_cmds=
9203 archive_expsym_cmds=
9204 compiler_needs_object=no
9205 enable_shared_with_static_runtimes=no
9206 export_dynamic_flag_spec=
9207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9208 hardcode_automatic=no
9209 hardcode_direct=no
9210 hardcode_direct_absolute=no
9211 hardcode_libdir_flag_spec=
9212 hardcode_libdir_separator=
9213 hardcode_minus_L=no
9214 hardcode_shlibpath_var=unsupported
9215 inherit_rpath=no
9216 link_all_deplibs=unknown
9217 module_cmds=
9218 module_expsym_cmds=
9219 old_archive_from_new_cmds=
9220 old_archive_from_expsyms_cmds=
9221 thread_safe_flag_spec=
9222 whole_archive_flag_spec=
9223 # include_expsyms should be a list of space-separated symbols to be *always*
9224 # included in the symbol list
9225 include_expsyms=
9226 # exclude_expsyms can be an extended regexp of symbols to exclude
9227 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9228 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9229 # as well as any symbol that contains `d'.
9230 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9231 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9232 # platforms (ab)use it in PIC code, but their linkers get confused if
9233 # the symbol is explicitly referenced. Since portable code cannot
9234 # rely on this symbol name, it's probably fine to never include it in
9235 # preloaded symbol tables.
9236 # Exclude shared library initialization/finalization symbols.
9237 extract_expsyms_cmds=
9238
9239 case $host_os in
9240 cygwin* | mingw* | pw32* | cegcc*)
9241 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9242 # When not using gcc, we currently assume that we are using
9243 # Microsoft Visual C++.
9244 if test "$GCC" != yes; then
9245 with_gnu_ld=no
9246 fi
9247 ;;
9248 interix*)
9249 # we just hope/assume this is gcc and not c89 (= MSVC++)
9250 with_gnu_ld=yes
9251 ;;
9252 openbsd*)
9253 with_gnu_ld=no
9254 ;;
9255 linux* | k*bsd*-gnu | gnu*)
9256 link_all_deplibs=no
9257 ;;
9258 esac
9259
9260 ld_shlibs=yes
9261
9262 # On some targets, GNU ld is compatible enough with the native linker
9263 # that we're better off using the native interface for both.
9264 lt_use_gnu_ld_interface=no
9265 if test "$with_gnu_ld" = yes; then
9266 case $host_os in
9267 aix*)
9268 # The AIX port of GNU ld has always aspired to compatibility
9269 # with the native linker. However, as the warning in the GNU ld
9270 # block says, versions before 2.19.5* couldn't really create working
9271 # shared libraries, regardless of the interface used.
9272 case `$LD -v 2>&1` in
9273 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9274 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9275 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9276 *)
9277 lt_use_gnu_ld_interface=yes
9278 ;;
9279 esac
9280 ;;
9281 *)
9282 lt_use_gnu_ld_interface=yes
9283 ;;
9284 esac
9285 fi
9286
9287 if test "$lt_use_gnu_ld_interface" = yes; then
9288 # If archive_cmds runs LD, not CC, wlarc should be empty
9289 wlarc='${wl}'
9290
9291 # Set some defaults for GNU ld with shared library support. These
9292 # are reset later if shared libraries are not supported. Putting them
9293 # here allows them to be overridden if necessary.
9294 runpath_var=LD_RUN_PATH
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 export_dynamic_flag_spec='${wl}--export-dynamic'
9297 # ancient GNU ld didn't support --whole-archive et. al.
9298 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9299 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9300 else
9301 whole_archive_flag_spec=
9302 fi
9303 supports_anon_versioning=no
9304 case `$LD -v 2>&1` in
9305 *GNU\ gold*) supports_anon_versioning=yes ;;
9306 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9307 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9308 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9309 *\ 2.11.*) ;; # other 2.11 versions
9310 *) supports_anon_versioning=yes ;;
9311 esac
9312
9313 # See if GNU ld supports shared libraries.
9314 case $host_os in
9315 aix[3-9]*)
9316 # On AIX/PPC, the GNU linker is very broken
9317 if test "$host_cpu" != ia64; then
9318 ld_shlibs=no
9319 cat <<_LT_EOF 1>&2
9320
9321*** Warning: the GNU linker, at least up to release 2.19, is reported
9322*** to be unable to reliably create shared libraries on AIX.
9323*** Therefore, libtool is disabling shared libraries support. If you
9324*** really care for shared libraries, you may want to install binutils
9325*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9326*** You will then need to restart the configuration process.
9327
9328_LT_EOF
9329 fi
9330 ;;
9331
9332 amigaos*)
9333 case $host_cpu in
9334 powerpc)
9335 # see comment about AmigaOS4 .so support
9336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337 archive_expsym_cmds=''
9338 ;;
9339 m68k)
9340 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)'
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 hardcode_minus_L=yes
9343 ;;
9344 esac
9345 ;;
9346
9347 beos*)
9348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9349 allow_undefined_flag=unsupported
9350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9351 # support --undefined. This deserves some investigation. FIXME
9352 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353 else
9354 ld_shlibs=no
9355 fi
9356 ;;
9357
9358 cygwin* | mingw* | pw32* | cegcc*)
9359 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9360 # as there is no search path for DLLs.
9361 hardcode_libdir_flag_spec='-L$libdir'
9362 export_dynamic_flag_spec='${wl}--export-all-symbols'
9363 allow_undefined_flag=unsupported
9364 always_export_symbols=no
9365 enable_shared_with_static_runtimes=yes
9366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9367 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9368
9369 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9371 # If the export-symbols file already is a .def file (1st line
9372 # is EXPORTS), use it as is; otherwise, prepend...
9373 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9374 cp $export_symbols $output_objdir/$soname.def;
9375 else
9376 echo EXPORTS > $output_objdir/$soname.def;
9377 cat $export_symbols >> $output_objdir/$soname.def;
9378 fi~
9379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9380 else
9381 ld_shlibs=no
9382 fi
9383 ;;
9384
9385 haiku*)
9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387 link_all_deplibs=yes
9388 ;;
9389
9390 interix[3-9]*)
9391 hardcode_direct=no
9392 hardcode_shlibpath_var=no
9393 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9394 export_dynamic_flag_spec='${wl}-E'
9395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9396 # Instead, shared libraries are loaded at an image base (0x10000000 by
9397 # default) and relocated if they conflict, which is a slow very memory
9398 # consuming and fragmenting process. To avoid this, we pick a random,
9399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9400 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9401 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9402 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'
9403 ;;
9404
9405 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9406 tmp_diet=no
9407 if test "$host_os" = linux-dietlibc; then
9408 case $cc_basename in
9409 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9410 esac
9411 fi
9412 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9413 && test "$tmp_diet" = no
9414 then
9415 tmp_addflag=' $pic_flag'
9416 tmp_sharedflag='-shared'
9417 case $cc_basename,$host_cpu in
9418 pgcc*) # Portland Group C compiler
9419 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9420 tmp_addflag=' $pic_flag'
9421 ;;
9422 pgf77* | pgf90* | pgf95* | pgfortran*)
9423 # Portland Group f77 and f90 compilers
9424 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9425 tmp_addflag=' $pic_flag -Mnomain' ;;
9426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9427 tmp_addflag=' -i_dynamic' ;;
9428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9429 tmp_addflag=' -i_dynamic -nofor_main' ;;
9430 ifc* | ifort*) # Intel Fortran compiler
9431 tmp_addflag=' -nofor_main' ;;
9432 lf95*) # Lahey Fortran 8.1
9433 whole_archive_flag_spec=
9434 tmp_sharedflag='--shared' ;;
9435 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9436 tmp_sharedflag='-qmkshrobj'
9437 tmp_addflag= ;;
9438 nvcc*) # Cuda Compiler Driver 2.2
9439 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9440 compiler_needs_object=yes
9441 ;;
9442 esac
9443 case `$CC -V 2>&1 | sed 5q` in
9444 *Sun\ C*) # Sun C 5.9
9445 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9446 compiler_needs_object=yes
9447 tmp_sharedflag='-G' ;;
9448 *Sun\ F*) # Sun Fortran 8.3
9449 tmp_sharedflag='-G' ;;
9450 esac
9451 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452
9453 if test "x$supports_anon_versioning" = xyes; then
9454 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9456 echo "local: *; };" >> $output_objdir/$libname.ver~
9457 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9458 fi
9459
9460 case $cc_basename in
9461 xlf* | bgf* | bgxlf* | mpixlf*)
9462 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9463 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9466 if test "x$supports_anon_versioning" = xyes; then
9467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9469 echo "local: *; };" >> $output_objdir/$libname.ver~
9470 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9471 fi
9472 ;;
9473 esac
9474 else
9475 ld_shlibs=no
9476 fi
9477 ;;
9478
9479 netbsd* | netbsdelf*-gnu)
9480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9481 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9482 wlarc=
9483 else
9484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9486 fi
9487 ;;
9488
9489 solaris*)
9490 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9491 ld_shlibs=no
9492 cat <<_LT_EOF 1>&2
9493
9494*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9495*** create shared libraries on Solaris systems. Therefore, libtool
9496*** is disabling shared libraries support. We urge you to upgrade GNU
9497*** binutils to release 2.9.1 or newer. Another option is to modify
9498*** your PATH or compiler configuration so that the native linker is
9499*** used, and then restart.
9500
9501_LT_EOF
9502 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9504 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9505 else
9506 ld_shlibs=no
9507 fi
9508 ;;
9509
9510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9511 case `$LD -v 2>&1` in
9512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9513 ld_shlibs=no
9514 cat <<_LT_EOF 1>&2
9515
9516*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9517*** reliably create shared libraries on SCO systems. Therefore, libtool
9518*** is disabling shared libraries support. We urge you to upgrade GNU
9519*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9520*** your PATH or compiler configuration so that the native linker is
9521*** used, and then restart.
9522
9523_LT_EOF
9524 ;;
9525 *)
9526 # For security reasons, it is highly recommended that you always
9527 # use absolute paths for naming shared libraries, and exclude the
9528 # DT_RUNPATH tag from executables and libraries. But doing so
9529 # requires that you compile everything twice, which is a pain.
9530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9534 else
9535 ld_shlibs=no
9536 fi
9537 ;;
9538 esac
9539 ;;
9540
9541 sunos4*)
9542 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9543 wlarc=
9544 hardcode_direct=yes
9545 hardcode_shlibpath_var=no
9546 ;;
9547
9548 *)
9549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9552 else
9553 ld_shlibs=no
9554 fi
9555 ;;
9556 esac
9557
9558 if test "$ld_shlibs" = no; then
9559 runpath_var=
9560 hardcode_libdir_flag_spec=
9561 export_dynamic_flag_spec=
9562 whole_archive_flag_spec=
9563 fi
9564 else
9565 # PORTME fill in a description of your system's linker (not GNU ld)
9566 case $host_os in
9567 aix3*)
9568 allow_undefined_flag=unsupported
9569 always_export_symbols=yes
9570 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'
9571 # Note: this linker hardcodes the directories in LIBPATH if there
9572 # are no directories specified by -L.
9573 hardcode_minus_L=yes
9574 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9575 # Neither direct hardcoding nor static linking is supported with a
9576 # broken collect2.
9577 hardcode_direct=unsupported
9578 fi
9579 ;;
9580
9581 aix[4-9]*)
9582 if test "$host_cpu" = ia64; then
9583 # On IA64, the linker does run time linking by default, so we don't
9584 # have to do anything special.
9585 aix_use_runtimelinking=no
9586 exp_sym_flag='-Bexport'
9587 no_entry_flag=""
9588 else
9589 # If we're using GNU nm, then we don't want the "-C" option.
9590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9591 # Also, AIX nm treats weak defined symbols like other global
9592 # defined symbols, whereas GNU nm marks them as "W".
9593 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9594 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9595 else
9596 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'
9597 fi
9598 aix_use_runtimelinking=no
9599
9600 # Test if we are trying to use run time linking or normal
9601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9602 # need to do runtime linking.
9603 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9604 for ld_flag in $LDFLAGS; do
9605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9606 aix_use_runtimelinking=yes
9607 break
9608 fi
9609 done
9610 ;;
9611 esac
9612
9613 exp_sym_flag='-bexport'
9614 no_entry_flag='-bnoentry'
9615 fi
9616
9617 # When large executables or shared objects are built, AIX ld can
9618 # have problems creating the table of contents. If linking a library
9619 # or program results in "error TOC overflow" add -mminimal-toc to
9620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9622
9623 archive_cmds=''
9624 hardcode_direct=yes
9625 hardcode_direct_absolute=yes
9626 hardcode_libdir_separator=':'
9627 link_all_deplibs=yes
9628 file_list_spec='${wl}-f,'
9629
9630 if test "$GCC" = yes; then
9631 case $host_os in aix4.[012]|aix4.[012].*)
9632 # We only want to do this on AIX 4.2 and lower, the check
9633 # below for broken collect2 doesn't work under 4.3+
9634 collect2name=`${CC} -print-prog-name=collect2`
9635 if test -f "$collect2name" &&
9636 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9637 then
9638 # We have reworked collect2
9639 :
9640 else
9641 # We have old collect2
9642 hardcode_direct=unsupported
9643 # It fails to find uninstalled libraries when the uninstalled
9644 # path is not listed in the libpath. Setting hardcode_minus_L
9645 # to unsupported forces relinking
9646 hardcode_minus_L=yes
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_libdir_separator=
9649 fi
9650 ;;
9651 esac
9652 shared_flag='-shared'
9653 if test "$aix_use_runtimelinking" = yes; then
9654 shared_flag="$shared_flag "'${wl}-G'
9655 fi
9656 link_all_deplibs=no
9657 else
9658 # not using gcc
9659 if test "$host_cpu" = ia64; then
9660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9661 # chokes on -Wl,-G. The following line is correct:
9662 shared_flag='-G'
9663 else
9664 if test "$aix_use_runtimelinking" = yes; then
9665 shared_flag='${wl}-G'
9666 else
9667 shared_flag='${wl}-bM:SRE'
9668 fi
9669 fi
9670 fi
9671
9672 export_dynamic_flag_spec='${wl}-bexpall'
9673 # It seems that -bexpall does not export symbols beginning with
9674 # underscore (_), so it is better to generate a list of symbols to export.
9675 always_export_symbols=yes
9676 if test "$aix_use_runtimelinking" = yes; then
9677 # Warning - without using the other runtime loading flags (-brtl),
9678 # -berok will link without error, but may produce a broken library.
9679 allow_undefined_flag='-berok'
9680 # Determine the default libpath from the value encoded in an
9681 # empty executable.
9682 if test "${lt_cv_aix_libpath+set}" = set; then
9683 aix_libpath=$lt_cv_aix_libpath
9684else
9685 if ${lt_cv_aix_libpath_+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687else
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689/* end confdefs.h. */
9690
9691int
9692main ()
9693{
9694
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699if ac_fn_c_try_link "$LINENO"; then :
9700
9701 lt_aix_libpath_sed='
9702 /Import File Strings/,/^$/ {
9703 /^0/ {
9704 s/^0 *\([^ ]*\) *$/\1/
9705 p
9706 }
9707 }'
9708 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9709 # Check for a 64-bit object if we didn't find anything.
9710 if test -z "$lt_cv_aix_libpath_"; then
9711 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9712 fi
9713fi
9714rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716 if test -z "$lt_cv_aix_libpath_"; then
9717 lt_cv_aix_libpath_="/usr/lib:/lib"
9718 fi
9719
9720fi
9721
9722 aix_libpath=$lt_cv_aix_libpath_
9723fi
9724
9725 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9726 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9727 else
9728 if test "$host_cpu" = ia64; then
9729 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9730 allow_undefined_flag="-z nodefs"
9731 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"
9732 else
9733 # Determine the default libpath from the value encoded in an
9734 # empty executable.
9735 if test "${lt_cv_aix_libpath+set}" = set; then
9736 aix_libpath=$lt_cv_aix_libpath
9737else
9738 if ${lt_cv_aix_libpath_+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740else
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h. */
9743
9744int
9745main ()
9746{
9747
9748 ;
9749 return 0;
9750}
9751_ACEOF
9752if ac_fn_c_try_link "$LINENO"; then :
9753
9754 lt_aix_libpath_sed='
9755 /Import File Strings/,/^$/ {
9756 /^0/ {
9757 s/^0 *\([^ ]*\) *$/\1/
9758 p
9759 }
9760 }'
9761 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9762 # Check for a 64-bit object if we didn't find anything.
9763 if test -z "$lt_cv_aix_libpath_"; then
9764 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9765 fi
9766fi
9767rm -f core conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769 if test -z "$lt_cv_aix_libpath_"; then
9770 lt_cv_aix_libpath_="/usr/lib:/lib"
9771 fi
9772
9773fi
9774
9775 aix_libpath=$lt_cv_aix_libpath_
9776fi
9777
9778 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9779 # Warning - without using the other run time loading flags,
9780 # -berok will link without error, but may produce a broken library.
9781 no_undefined_flag=' ${wl}-bernotok'
9782 allow_undefined_flag=' ${wl}-berok'
9783 if test "$with_gnu_ld" = yes; then
9784 # We only use this code for GNU lds that support --whole-archive.
9785 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9786 else
9787 # Exported symbols can be pulled into shared objects from archives
9788 whole_archive_flag_spec='$convenience'
9789 fi
9790 archive_cmds_need_lc=yes
9791 # This is similar to how AIX traditionally builds its shared libraries.
9792 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'
9793 fi
9794 fi
9795 ;;
9796
9797 amigaos*)
9798 case $host_cpu in
9799 powerpc)
9800 # see comment about AmigaOS4 .so support
9801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 archive_expsym_cmds=''
9803 ;;
9804 m68k)
9805 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)'
9806 hardcode_libdir_flag_spec='-L$libdir'
9807 hardcode_minus_L=yes
9808 ;;
9809 esac
9810 ;;
9811
9812 bsdi[45]*)
9813 export_dynamic_flag_spec=-rdynamic
9814 ;;
9815
9816 cygwin* | mingw* | pw32* | cegcc*)
9817 # When not using gcc, we currently assume that we are using
9818 # Microsoft Visual C++.
9819 # hardcode_libdir_flag_spec is actually meaningless, as there is
9820 # no search path for DLLs.
9821 case $cc_basename in
9822 cl*)
9823 # Native MSVC
9824 hardcode_libdir_flag_spec=' '
9825 allow_undefined_flag=unsupported
9826 always_export_symbols=yes
9827 file_list_spec='@'
9828 # Tell ltmain to make .lib files, not .a files.
9829 libext=lib
9830 # Tell ltmain to make .dll files, not .so files.
9831 shrext_cmds=".dll"
9832 # FIXME: Setting linknames here is a bad hack.
9833 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9834 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9835 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9836 else
9837 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9838 fi~
9839 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9840 linknames='
9841 # The linker will not automatically build a static lib if we build a DLL.
9842 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9843 enable_shared_with_static_runtimes=yes
9844 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9846 # Don't use ranlib
9847 old_postinstall_cmds='chmod 644 $oldlib'
9848 postlink_cmds='lt_outputfile="@OUTPUT@"~
9849 lt_tool_outputfile="@TOOL_OUTPUT@"~
9850 case $lt_outputfile in
9851 *.exe|*.EXE) ;;
9852 *)
9853 lt_outputfile="$lt_outputfile.exe"
9854 lt_tool_outputfile="$lt_tool_outputfile.exe"
9855 ;;
9856 esac~
9857 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9858 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9859 $RM "$lt_outputfile.manifest";
9860 fi'
9861 ;;
9862 *)
9863 # Assume MSVC wrapper
9864 hardcode_libdir_flag_spec=' '
9865 allow_undefined_flag=unsupported
9866 # Tell ltmain to make .lib files, not .a files.
9867 libext=lib
9868 # Tell ltmain to make .dll files, not .so files.
9869 shrext_cmds=".dll"
9870 # FIXME: Setting linknames here is a bad hack.
9871 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9872 # The linker will automatically build a .lib file if we build a DLL.
9873 old_archive_from_new_cmds='true'
9874 # FIXME: Should let the user specify the lib program.
9875 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9876 enable_shared_with_static_runtimes=yes
9877 ;;
9878 esac
9879 ;;
9880
9881 darwin* | rhapsody*)
9882
9883
9884 archive_cmds_need_lc=no
9885 hardcode_direct=no
9886 hardcode_automatic=yes
9887 hardcode_shlibpath_var=unsupported
9888 if test "$lt_cv_ld_force_load" = "yes"; then
9889 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9890
9891 else
9892 whole_archive_flag_spec=''
9893 fi
9894 link_all_deplibs=yes
9895 allow_undefined_flag="$_lt_dar_allow_undefined"
9896 case $cc_basename in
9897 ifort*) _lt_dar_can_shared=yes ;;
9898 *) _lt_dar_can_shared=$GCC ;;
9899 esac
9900 if test "$_lt_dar_can_shared" = "yes"; then
9901 output_verbose_link_cmd=func_echo_all
9902 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9903 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9904 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}"
9905 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}"
9906
9907 else
9908 ld_shlibs=no
9909 fi
9910
9911 ;;
9912
9913 dgux*)
9914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915 hardcode_libdir_flag_spec='-L$libdir'
9916 hardcode_shlibpath_var=no
9917 ;;
9918
9919 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9920 # support. Future versions do this automatically, but an explicit c++rt0.o
9921 # does not break anything, and helps significantly (at the cost of a little
9922 # extra space).
9923 freebsd2.2*)
9924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9925 hardcode_libdir_flag_spec='-R$libdir'
9926 hardcode_direct=yes
9927 hardcode_shlibpath_var=no
9928 ;;
9929
9930 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9931 freebsd2.*)
9932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9933 hardcode_direct=yes
9934 hardcode_minus_L=yes
9935 hardcode_shlibpath_var=no
9936 ;;
9937
9938 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9939 freebsd* | dragonfly*)
9940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9941 hardcode_libdir_flag_spec='-R$libdir'
9942 hardcode_direct=yes
9943 hardcode_shlibpath_var=no
9944 ;;
9945
9946 hpux9*)
9947 if test "$GCC" = yes; then
9948 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9949 else
9950 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'
9951 fi
9952 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9953 hardcode_libdir_separator=:
9954 hardcode_direct=yes
9955
9956 # hardcode_minus_L: Not really in the search PATH,
9957 # but as the default location of the library.
9958 hardcode_minus_L=yes
9959 export_dynamic_flag_spec='${wl}-E'
9960 ;;
9961
9962 hpux10*)
9963 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9964 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9965 else
9966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9967 fi
9968 if test "$with_gnu_ld" = no; then
9969 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9970 hardcode_libdir_separator=:
9971 hardcode_direct=yes
9972 hardcode_direct_absolute=yes
9973 export_dynamic_flag_spec='${wl}-E'
9974 # hardcode_minus_L: Not really in the search PATH,
9975 # but as the default location of the library.
9976 hardcode_minus_L=yes
9977 fi
9978 ;;
9979
9980 hpux11*)
9981 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9982 case $host_cpu in
9983 hppa*64*)
9984 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9985 ;;
9986 ia64*)
9987 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9988 ;;
9989 *)
9990 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9991 ;;
9992 esac
9993 else
9994 case $host_cpu in
9995 hppa*64*)
9996 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 ;;
9998 ia64*)
9999 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10000 ;;
10001 *)
10002
10003 # Older versions of the 11.00 compiler do not understand -b yet
10004 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10006$as_echo_n "checking if $CC understands -b... " >&6; }
10007if ${lt_cv_prog_compiler__b+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009else
10010 lt_cv_prog_compiler__b=no
10011 save_LDFLAGS="$LDFLAGS"
10012 LDFLAGS="$LDFLAGS -b"
10013 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10014 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10015 # The linker can only warn and ignore the option if not recognized
10016 # So say no if there are warnings
10017 if test -s conftest.err; then
10018 # Append any errors to the config.log.
10019 cat conftest.err 1>&5
10020 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10022 if diff conftest.exp conftest.er2 >/dev/null; then
10023 lt_cv_prog_compiler__b=yes
10024 fi
10025 else
10026 lt_cv_prog_compiler__b=yes
10027 fi
10028 fi
10029 $RM -r conftest*
10030 LDFLAGS="$save_LDFLAGS"
10031
10032fi
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10034$as_echo "$lt_cv_prog_compiler__b" >&6; }
10035
10036if test x"$lt_cv_prog_compiler__b" = xyes; then
10037 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10038else
10039 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10040fi
10041
10042 ;;
10043 esac
10044 fi
10045 if test "$with_gnu_ld" = no; then
10046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10047 hardcode_libdir_separator=:
10048
10049 case $host_cpu in
10050 hppa*64*|ia64*)
10051 hardcode_direct=no
10052 hardcode_shlibpath_var=no
10053 ;;
10054 *)
10055 hardcode_direct=yes
10056 hardcode_direct_absolute=yes
10057 export_dynamic_flag_spec='${wl}-E'
10058
10059 # hardcode_minus_L: Not really in the search PATH,
10060 # but as the default location of the library.
10061 hardcode_minus_L=yes
10062 ;;
10063 esac
10064 fi
10065 ;;
10066
10067 irix5* | irix6* | nonstopux*)
10068 if test "$GCC" = yes; then
10069 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10070 # Try to use the -exported_symbol ld option, if it does not
10071 # work, assume that -exports_file does not work either and
10072 # implicitly export all symbols.
10073 # This should be the same for all languages, so no per-tag cache variable.
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10075$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10076if ${lt_cv_irix_exported_symbol+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078else
10079 save_LDFLAGS="$LDFLAGS"
10080 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h. */
10083int foo (void) { return 0; }
10084_ACEOF
10085if ac_fn_c_try_link "$LINENO"; then :
10086 lt_cv_irix_exported_symbol=yes
10087else
10088 lt_cv_irix_exported_symbol=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 LDFLAGS="$save_LDFLAGS"
10093fi
10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10095$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10096 if test "$lt_cv_irix_exported_symbol" = yes; then
10097 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10098 fi
10099 else
10100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10101 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10102 fi
10103 archive_cmds_need_lc='no'
10104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10105 hardcode_libdir_separator=:
10106 inherit_rpath=yes
10107 link_all_deplibs=yes
10108 ;;
10109
10110 netbsd* | netbsdelf*-gnu)
10111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10112 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10113 else
10114 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10115 fi
10116 hardcode_libdir_flag_spec='-R$libdir'
10117 hardcode_direct=yes
10118 hardcode_shlibpath_var=no
10119 ;;
10120
10121 newsos6)
10122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123 hardcode_direct=yes
10124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10125 hardcode_libdir_separator=:
10126 hardcode_shlibpath_var=no
10127 ;;
10128
10129 *nto* | *qnx*)
10130 ;;
10131
10132 openbsd*)
10133 if test -f /usr/libexec/ld.so; then
10134 hardcode_direct=yes
10135 hardcode_shlibpath_var=no
10136 hardcode_direct_absolute=yes
10137 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10138 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10139 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10140 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10141 export_dynamic_flag_spec='${wl}-E'
10142 else
10143 case $host_os in
10144 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10146 hardcode_libdir_flag_spec='-R$libdir'
10147 ;;
10148 *)
10149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10150 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10151 ;;
10152 esac
10153 fi
10154 else
10155 ld_shlibs=no
10156 fi
10157 ;;
10158
10159 os2*)
10160 hardcode_libdir_flag_spec='-L$libdir'
10161 hardcode_minus_L=yes
10162 allow_undefined_flag=unsupported
10163 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'
10164 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10165 ;;
10166
10167 osf3*)
10168 if test "$GCC" = yes; then
10169 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10170 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10171 else
10172 allow_undefined_flag=' -expect_unresolved \*'
10173 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10174 fi
10175 archive_cmds_need_lc='no'
10176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10177 hardcode_libdir_separator=:
10178 ;;
10179
10180 osf4* | osf5*) # as osf3* with the addition of -msym flag
10181 if test "$GCC" = yes; then
10182 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10183 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10185 else
10186 allow_undefined_flag=' -expect_unresolved \*'
10187 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10188 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~
10189 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10190
10191 # Both c and cxx compiler support -rpath directly
10192 hardcode_libdir_flag_spec='-rpath $libdir'
10193 fi
10194 archive_cmds_need_lc='no'
10195 hardcode_libdir_separator=:
10196 ;;
10197
10198 solaris*)
10199 no_undefined_flag=' -z defs'
10200 if test "$GCC" = yes; then
10201 wlarc='${wl}'
10202 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10203 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10204 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10205 else
10206 case `$CC -V 2>&1` in
10207 *"Compilers 5.0"*)
10208 wlarc=''
10209 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10211 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10212 ;;
10213 *)
10214 wlarc='${wl}'
10215 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10217 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10218 ;;
10219 esac
10220 fi
10221 hardcode_libdir_flag_spec='-R$libdir'
10222 hardcode_shlibpath_var=no
10223 case $host_os in
10224 solaris2.[0-5] | solaris2.[0-5].*) ;;
10225 *)
10226 # The compiler driver will combine and reorder linker options,
10227 # but understands `-z linker_flag'. GCC discards it without `$wl',
10228 # but is careful enough not to reorder.
10229 # Supported since Solaris 2.6 (maybe 2.5.1?)
10230 if test "$GCC" = yes; then
10231 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10232 else
10233 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10234 fi
10235 ;;
10236 esac
10237 link_all_deplibs=yes
10238 ;;
10239
10240 sunos4*)
10241 if test "x$host_vendor" = xsequent; then
10242 # Use $CC to link under sequent, because it throws in some extra .o
10243 # files that make .init and .fini sections work.
10244 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10245 else
10246 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10247 fi
10248 hardcode_libdir_flag_spec='-L$libdir'
10249 hardcode_direct=yes
10250 hardcode_minus_L=yes
10251 hardcode_shlibpath_var=no
10252 ;;
10253
10254 sysv4)
10255 case $host_vendor in
10256 sni)
10257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10258 hardcode_direct=yes # is this really true???
10259 ;;
10260 siemens)
10261 ## LD is ld it makes a PLAMLIB
10262 ## CC just makes a GrossModule.
10263 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10264 reload_cmds='$CC -r -o $output$reload_objs'
10265 hardcode_direct=no
10266 ;;
10267 motorola)
10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10270 ;;
10271 esac
10272 runpath_var='LD_RUN_PATH'
10273 hardcode_shlibpath_var=no
10274 ;;
10275
10276 sysv4.3*)
10277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278 hardcode_shlibpath_var=no
10279 export_dynamic_flag_spec='-Bexport'
10280 ;;
10281
10282 sysv4*MP*)
10283 if test -d /usr/nec; then
10284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285 hardcode_shlibpath_var=no
10286 runpath_var=LD_RUN_PATH
10287 hardcode_runpath_var=yes
10288 ld_shlibs=yes
10289 fi
10290 ;;
10291
10292 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10293 no_undefined_flag='${wl}-z,text'
10294 archive_cmds_need_lc=no
10295 hardcode_shlibpath_var=no
10296 runpath_var='LD_RUN_PATH'
10297
10298 if test "$GCC" = yes; then
10299 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10301 else
10302 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10303 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10304 fi
10305 ;;
10306
10307 sysv5* | sco3.2v5* | sco5v6*)
10308 # Note: We can NOT use -z defs as we might desire, because we do not
10309 # link with -lc, and that would cause any symbols used from libc to
10310 # always be unresolved, which means just about no library would
10311 # ever link correctly. If we're not using GNU ld we use -z text
10312 # though, which does catch some bad symbols but isn't as heavy-handed
10313 # as -z defs.
10314 no_undefined_flag='${wl}-z,text'
10315 allow_undefined_flag='${wl}-z,nodefs'
10316 archive_cmds_need_lc=no
10317 hardcode_shlibpath_var=no
10318 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10319 hardcode_libdir_separator=':'
10320 link_all_deplibs=yes
10321 export_dynamic_flag_spec='${wl}-Bexport'
10322 runpath_var='LD_RUN_PATH'
10323
10324 if test "$GCC" = yes; then
10325 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 else
10328 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330 fi
10331 ;;
10332
10333 uts4*)
10334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335 hardcode_libdir_flag_spec='-L$libdir'
10336 hardcode_shlibpath_var=no
10337 ;;
10338
10339 *)
10340 ld_shlibs=no
10341 ;;
10342 esac
10343
10344 if test x$host_vendor = xsni; then
10345 case $host in
10346 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10347 export_dynamic_flag_spec='${wl}-Blargedynsym'
10348 ;;
10349 esac
10350 fi
10351 fi
10352
10353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10354$as_echo "$ld_shlibs" >&6; }
10355test "$ld_shlibs" = no && can_build_shared=no
10356
10357with_gnu_ld=$with_gnu_ld
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373#
10374# Do we need to explicitly link libc?
10375#
10376case "x$archive_cmds_need_lc" in
10377x|xyes)
10378 # Assume -lc should be added
10379 archive_cmds_need_lc=yes
10380
10381 if test "$enable_shared" = yes && test "$GCC" = yes; then
10382 case $archive_cmds in
10383 *'~'*)
10384 # FIXME: we may have to deal with multi-command sequences.
10385 ;;
10386 '$CC '*)
10387 # Test whether the compiler implicitly links with -lc since on some
10388 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10389 # to ld, don't add -lc before -lgcc.
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10391$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10392if ${lt_cv_archive_cmds_need_lc+:} false; then :
10393 $as_echo_n "(cached) " >&6
10394else
10395 $RM conftest*
10396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10397
10398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10399 (eval $ac_compile) 2>&5
10400 ac_status=$?
10401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10402 test $ac_status = 0; } 2>conftest.err; then
10403 soname=conftest
10404 lib=conftest
10405 libobjs=conftest.$ac_objext
10406 deplibs=
10407 wl=$lt_prog_compiler_wl
10408 pic_flag=$lt_prog_compiler_pic
10409 compiler_flags=-v
10410 linker_flags=-v
10411 verstring=
10412 output_objdir=.
10413 libname=conftest
10414 lt_save_allow_undefined_flag=$allow_undefined_flag
10415 allow_undefined_flag=
10416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10417 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10418 ac_status=$?
10419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10420 test $ac_status = 0; }
10421 then
10422 lt_cv_archive_cmds_need_lc=no
10423 else
10424 lt_cv_archive_cmds_need_lc=yes
10425 fi
10426 allow_undefined_flag=$lt_save_allow_undefined_flag
10427 else
10428 cat conftest.err 1>&5
10429 fi
10430 $RM conftest*
10431
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10434$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10435 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10436 ;;
10437 esac
10438 fi
10439 ;;
10440esac
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10594$as_echo_n "checking dynamic linker characteristics... " >&6; }
10595
10596if test "$GCC" = yes; then
10597 case $host_os in
10598 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10599 *) lt_awk_arg="/^libraries:/" ;;
10600 esac
10601 case $host_os in
10602 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10603 *) lt_sed_strip_eq="s,=/,/,g" ;;
10604 esac
10605 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10606 case $lt_search_path_spec in
10607 *\;*)
10608 # if the path contains ";" then we assume it to be the separator
10609 # otherwise default to the standard path separator (i.e. ":") - it is
10610 # assumed that no part of a normal pathname contains ";" but that should
10611 # okay in the real world where ";" in dirpaths is itself problematic.
10612 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10613 ;;
10614 *)
10615 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10616 ;;
10617 esac
10618 # Ok, now we have the path, separated by spaces, we can step through it
10619 # and add multilib dir if necessary.
10620 lt_tmp_lt_search_path_spec=
10621 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10622 for lt_sys_path in $lt_search_path_spec; do
10623 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10624 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10625 else
10626 test -d "$lt_sys_path" && \
10627 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10628 fi
10629 done
10630 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10631BEGIN {RS=" "; FS="/|\n";} {
10632 lt_foo="";
10633 lt_count=0;
10634 for (lt_i = NF; lt_i > 0; lt_i--) {
10635 if ($lt_i != "" && $lt_i != ".") {
10636 if ($lt_i == "..") {
10637 lt_count++;
10638 } else {
10639 if (lt_count == 0) {
10640 lt_foo="/" $lt_i lt_foo;
10641 } else {
10642 lt_count--;
10643 }
10644 }
10645 }
10646 }
10647 if (lt_foo != "") { lt_freq[lt_foo]++; }
10648 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10649}'`
10650 # AWK program above erroneously prepends '/' to C:/dos/paths
10651 # for these hosts.
10652 case $host_os in
10653 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10654 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10655 esac
10656 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10657else
10658 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10659fi
10660library_names_spec=
10661libname_spec='lib$name'
10662soname_spec=
10663shrext_cmds=".so"
10664postinstall_cmds=
10665postuninstall_cmds=
10666finish_cmds=
10667finish_eval=
10668shlibpath_var=
10669shlibpath_overrides_runpath=unknown
10670version_type=none
10671dynamic_linker="$host_os ld.so"
10672sys_lib_dlsearch_path_spec="/lib /usr/lib"
10673need_lib_prefix=unknown
10674hardcode_into_libs=no
10675
10676# when you set need_version to no, make sure it does not cause -set_version
10677# flags to be left without arguments
10678need_version=unknown
10679
10680case $host_os in
10681aix3*)
10682 version_type=linux # correct to gnu/linux during the next big refactor
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10684 shlibpath_var=LIBPATH
10685
10686 # AIX 3 has no versioning support, so we append a major version to the name.
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 ;;
10689
10690aix[4-9]*)
10691 version_type=linux # correct to gnu/linux during the next big refactor
10692 need_lib_prefix=no
10693 need_version=no
10694 hardcode_into_libs=yes
10695 if test "$host_cpu" = ia64; then
10696 # AIX 5 supports IA64
10697 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 else
10700 # With GCC up to 2.95.x, collect2 would create an import file
10701 # for dependence libraries. The import file would start with
10702 # the line `#! .'. This would cause the generated library to
10703 # depend on `.', always an invalid library. This was fixed in
10704 # development snapshots of GCC prior to 3.0.
10705 case $host_os in
10706 aix4 | aix4.[01] | aix4.[01].*)
10707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10708 echo ' yes '
10709 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10710 :
10711 else
10712 can_build_shared=no
10713 fi
10714 ;;
10715 esac
10716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10717 # soname into executable. Probably we can add versioning support to
10718 # collect2, so additional links can be useful in future.
10719 if test "$aix_use_runtimelinking" = yes; then
10720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10721 # instead of lib<name>.a to let people know that these are not
10722 # typical AIX shared libraries.
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 else
10725 # We preserve .a as extension for shared libraries through AIX4.2
10726 # and later when we are not doing run time linking.
10727 library_names_spec='${libname}${release}.a $libname.a'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 fi
10730 shlibpath_var=LIBPATH
10731 fi
10732 ;;
10733
10734amigaos*)
10735 case $host_cpu in
10736 powerpc)
10737 # Since July 2007 AmigaOS4 officially supports .so libraries.
10738 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 ;;
10741 m68k)
10742 library_names_spec='$libname.ixlibrary $libname.a'
10743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10744 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10745 ;;
10746 esac
10747 ;;
10748
10749beos*)
10750 library_names_spec='${libname}${shared_ext}'
10751 dynamic_linker="$host_os ld.so"
10752 shlibpath_var=LIBRARY_PATH
10753 ;;
10754
10755bsdi[45]*)
10756 version_type=linux # correct to gnu/linux during the next big refactor
10757 need_version=no
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10763 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10764 # the default ld.so.conf also contains /usr/contrib/lib and
10765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10766 # libtool to hard-code these into programs
10767 ;;
10768
10769cygwin* | mingw* | pw32* | cegcc*)
10770 version_type=windows
10771 shrext_cmds=".dll"
10772 need_version=no
10773 need_lib_prefix=no
10774
10775 case $GCC,$cc_basename in
10776 yes,*)
10777 # gcc
10778 library_names_spec='$libname.dll.a'
10779 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10780 postinstall_cmds='base_file=`basename \${file}`~
10781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10782 dldir=$destdir/`dirname \$dlpath`~
10783 test -d \$dldir || mkdir -p \$dldir~
10784 $install_prog $dir/$dlname \$dldir/$dlname~
10785 chmod a+x \$dldir/$dlname~
10786 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10787 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10788 fi'
10789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10790 dlpath=$dir/\$dldll~
10791 $RM \$dlpath'
10792 shlibpath_overrides_runpath=yes
10793
10794 case $host_os in
10795 cygwin*)
10796 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10797 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10798
10799 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10800 ;;
10801 mingw* | cegcc*)
10802 # MinGW DLLs use traditional 'lib' prefix
10803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10804 ;;
10805 pw32*)
10806 # pw32 DLLs use 'pw' prefix rather than 'lib'
10807 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10808 ;;
10809 esac
10810 dynamic_linker='Win32 ld.exe'
10811 ;;
10812
10813 *,cl*)
10814 # Native MSVC
10815 libname_spec='$name'
10816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10817 library_names_spec='${libname}.dll.lib'
10818
10819 case $build_os in
10820 mingw*)
10821 sys_lib_search_path_spec=
10822 lt_save_ifs=$IFS
10823 IFS=';'
10824 for lt_path in $LIB
10825 do
10826 IFS=$lt_save_ifs
10827 # Let DOS variable expansion print the short 8.3 style file name.
10828 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10829 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10830 done
10831 IFS=$lt_save_ifs
10832 # Convert to MSYS style.
10833 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10834 ;;
10835 cygwin*)
10836 # Convert to unix form, then to dos form, then back to unix form
10837 # but this time dos style (no spaces!) so that the unix form looks
10838 # like /cygdrive/c/PROGRA~1:/cygdr...
10839 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10840 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10841 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10842 ;;
10843 *)
10844 sys_lib_search_path_spec="$LIB"
10845 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10846 # It is most probably a Windows format PATH.
10847 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10848 else
10849 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10850 fi
10851 # FIXME: find the short name or the path components, as spaces are
10852 # common. (e.g. "Program Files" -> "PROGRA~1")
10853 ;;
10854 esac
10855
10856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10857 postinstall_cmds='base_file=`basename \${file}`~
10858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10859 dldir=$destdir/`dirname \$dlpath`~
10860 test -d \$dldir || mkdir -p \$dldir~
10861 $install_prog $dir/$dlname \$dldir/$dlname'
10862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10863 dlpath=$dir/\$dldll~
10864 $RM \$dlpath'
10865 shlibpath_overrides_runpath=yes
10866 dynamic_linker='Win32 link.exe'
10867 ;;
10868
10869 *)
10870 # Assume MSVC wrapper
10871 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10872 dynamic_linker='Win32 ld.exe'
10873 ;;
10874 esac
10875 # FIXME: first we should search . and the directory the executable is in
10876 shlibpath_var=PATH
10877 ;;
10878
10879darwin* | rhapsody*)
10880 dynamic_linker="$host_os dyld"
10881 version_type=darwin
10882 need_lib_prefix=no
10883 need_version=no
10884 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10885 soname_spec='${libname}${release}${major}$shared_ext'
10886 shlibpath_overrides_runpath=yes
10887 shlibpath_var=DYLD_LIBRARY_PATH
10888 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10889
10890 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10891 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10892 ;;
10893
10894dgux*)
10895 version_type=linux # correct to gnu/linux during the next big refactor
10896 need_lib_prefix=no
10897 need_version=no
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 ;;
10902
10903freebsd* | dragonfly*)
10904 # DragonFly does not have aout. When/if they implement a new
10905 # versioning mechanism, adjust this.
10906 if test -x /usr/bin/objformat; then
10907 objformat=`/usr/bin/objformat`
10908 else
10909 case $host_os in
10910 freebsd[23].*) objformat=aout ;;
10911 *) objformat=elf ;;
10912 esac
10913 fi
10914 version_type=freebsd-$objformat
10915 case $version_type in
10916 freebsd-elf*)
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10918 need_version=no
10919 need_lib_prefix=no
10920 ;;
10921 freebsd-*)
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10923 need_version=yes
10924 ;;
10925 esac
10926 shlibpath_var=LD_LIBRARY_PATH
10927 case $host_os in
10928 freebsd2.*)
10929 shlibpath_overrides_runpath=yes
10930 ;;
10931 freebsd3.[01]* | freebsdelf3.[01]*)
10932 shlibpath_overrides_runpath=yes
10933 hardcode_into_libs=yes
10934 ;;
10935 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10936 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10937 shlibpath_overrides_runpath=no
10938 hardcode_into_libs=yes
10939 ;;
10940 *) # from 4.6 on, and DragonFly
10941 shlibpath_overrides_runpath=yes
10942 hardcode_into_libs=yes
10943 ;;
10944 esac
10945 ;;
10946
10947haiku*)
10948 version_type=linux # correct to gnu/linux during the next big refactor
10949 need_lib_prefix=no
10950 need_version=no
10951 dynamic_linker="$host_os runtime_loader"
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 shlibpath_var=LIBRARY_PATH
10955 shlibpath_overrides_runpath=yes
10956 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10957 hardcode_into_libs=yes
10958 ;;
10959
10960hpux9* | hpux10* | hpux11*)
10961 # Give a soname corresponding to the major version so that dld.sl refuses to
10962 # link against other versions.
10963 version_type=sunos
10964 need_lib_prefix=no
10965 need_version=no
10966 case $host_cpu in
10967 ia64*)
10968 shrext_cmds='.so'
10969 hardcode_into_libs=yes
10970 dynamic_linker="$host_os dld.so"
10971 shlibpath_var=LD_LIBRARY_PATH
10972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 if test "X$HPUX_IA64_MODE" = X32; then
10976 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10977 else
10978 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10979 fi
10980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10981 ;;
10982 hppa*64*)
10983 shrext_cmds='.sl'
10984 hardcode_into_libs=yes
10985 dynamic_linker="$host_os dld.sl"
10986 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10992 ;;
10993 *)
10994 shrext_cmds='.sl'
10995 dynamic_linker="$host_os dld.sl"
10996 shlibpath_var=SHLIB_PATH
10997 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10999 soname_spec='${libname}${release}${shared_ext}$major'
11000 ;;
11001 esac
11002 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11003 postinstall_cmds='chmod 555 $lib'
11004 # or fails outright, so override atomically:
11005 install_override_mode=555
11006 ;;
11007
11008interix[3-9]*)
11009 version_type=linux # correct to gnu/linux during the next big refactor
11010 need_lib_prefix=no
11011 need_version=no
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 shlibpath_overrides_runpath=no
11017 hardcode_into_libs=yes
11018 ;;
11019
11020irix5* | irix6* | nonstopux*)
11021 case $host_os in
11022 nonstopux*) version_type=nonstopux ;;
11023 *)
11024 if test "$lt_cv_prog_gnu_ld" = yes; then
11025 version_type=linux # correct to gnu/linux during the next big refactor
11026 else
11027 version_type=irix
11028 fi ;;
11029 esac
11030 need_lib_prefix=no
11031 need_version=no
11032 soname_spec='${libname}${release}${shared_ext}$major'
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11034 case $host_os in
11035 irix5* | nonstopux*)
11036 libsuff= shlibsuff=
11037 ;;
11038 *)
11039 case $LD in # libtool.m4 will add one of these switches to LD
11040 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11041 libsuff= shlibsuff= libmagic=32-bit;;
11042 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11043 libsuff=32 shlibsuff=N32 libmagic=N32;;
11044 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11045 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11046 *) libsuff= shlibsuff= libmagic=never-match;;
11047 esac
11048 ;;
11049 esac
11050 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11051 shlibpath_overrides_runpath=no
11052 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11053 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11054 hardcode_into_libs=yes
11055 ;;
11056
11057# No shared lib support for Linux oldld, aout, or coff.
11058linux*oldld* | linux*aout* | linux*coff*)
11059 dynamic_linker=no
11060 ;;
11061
11062# This must be glibc/ELF.
11063linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11064 version_type=linux # correct to gnu/linux during the next big refactor
11065 need_lib_prefix=no
11066 need_version=no
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 soname_spec='${libname}${release}${shared_ext}$major'
11069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 shlibpath_overrides_runpath=no
11072
11073 # Some binutils ld are patched to set DT_RUNPATH
11074 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11075 $as_echo_n "(cached) " >&6
11076else
11077 lt_cv_shlibpath_overrides_runpath=no
11078 save_LDFLAGS=$LDFLAGS
11079 save_libdir=$libdir
11080 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11081 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083/* end confdefs.h. */
11084
11085int
11086main ()
11087{
11088
11089 ;
11090 return 0;
11091}
11092_ACEOF
11093if ac_fn_c_try_link "$LINENO"; then :
11094 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11095 lt_cv_shlibpath_overrides_runpath=yes
11096fi
11097fi
11098rm -f core conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100 LDFLAGS=$save_LDFLAGS
11101 libdir=$save_libdir
11102
11103fi
11104
11105 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11106
11107 # This implies no fast_install, which is unacceptable.
11108 # Some rework will be needed to allow for fast_install
11109 # before this can be enabled.
11110 hardcode_into_libs=yes
11111
11112 # Append ld.so.conf contents to the search path
11113 if test -f /etc/ld.so.conf; then
11114 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11115 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11116 fi
11117
11118 # We used to test for /lib/ld.so.1 and disable shared libraries on
11119 # powerpc, because MkLinux only supported shared libraries with the
11120 # GNU dynamic linker. Since this was broken with cross compilers,
11121 # most powerpc-linux boxes support dynamic linking these days and
11122 # people can always --disable-shared, the test was removed, and we
11123 # assume the GNU/Linux dynamic linker is in use.
11124 dynamic_linker='GNU/Linux ld.so'
11125 ;;
11126
11127netbsdelf*-gnu)
11128 version_type=linux
11129 need_lib_prefix=no
11130 need_version=no
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=no
11135 hardcode_into_libs=yes
11136 dynamic_linker='NetBSD ld.elf_so'
11137 ;;
11138
11139netbsd*)
11140 version_type=sunos
11141 need_lib_prefix=no
11142 need_version=no
11143 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11146 dynamic_linker='NetBSD (a.out) ld.so'
11147 else
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 dynamic_linker='NetBSD ld.elf_so'
11151 fi
11152 shlibpath_var=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath=yes
11154 hardcode_into_libs=yes
11155 ;;
11156
11157newsos6)
11158 version_type=linux # correct to gnu/linux during the next big refactor
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=yes
11162 ;;
11163
11164*nto* | *qnx*)
11165 version_type=qnx
11166 need_lib_prefix=no
11167 need_version=no
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=no
11172 hardcode_into_libs=yes
11173 dynamic_linker='ldqnx.so'
11174 ;;
11175
11176openbsd*)
11177 version_type=sunos
11178 sys_lib_dlsearch_path_spec="/usr/lib"
11179 need_lib_prefix=no
11180 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11181 case $host_os in
11182 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11183 *) need_version=no ;;
11184 esac
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11189 case $host_os in
11190 openbsd2.[89] | openbsd2.[89].*)
11191 shlibpath_overrides_runpath=no
11192 ;;
11193 *)
11194 shlibpath_overrides_runpath=yes
11195 ;;
11196 esac
11197 else
11198 shlibpath_overrides_runpath=yes
11199 fi
11200 ;;
11201
11202os2*)
11203 libname_spec='$name'
11204 shrext_cmds=".dll"
11205 need_lib_prefix=no
11206 library_names_spec='$libname${shared_ext} $libname.a'
11207 dynamic_linker='OS/2 ld.exe'
11208 shlibpath_var=LIBPATH
11209 ;;
11210
11211osf3* | osf4* | osf5*)
11212 version_type=osf
11213 need_lib_prefix=no
11214 need_version=no
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11219 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11220 ;;
11221
11222rdos*)
11223 dynamic_linker=no
11224 ;;
11225
11226solaris*)
11227 version_type=linux # correct to gnu/linux during the next big refactor
11228 need_lib_prefix=no
11229 need_version=no
11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
11234 hardcode_into_libs=yes
11235 # ldd complains unless libraries are executable
11236 postinstall_cmds='chmod +x $lib'
11237 ;;
11238
11239sunos4*)
11240 version_type=sunos
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes
11245 if test "$with_gnu_ld" = yes; then
11246 need_lib_prefix=no
11247 fi
11248 need_version=yes
11249 ;;
11250
11251sysv4 | sysv4.3*)
11252 version_type=linux # correct to gnu/linux during the next big refactor
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 soname_spec='${libname}${release}${shared_ext}$major'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 case $host_vendor in
11257 sni)
11258 shlibpath_overrides_runpath=no
11259 need_lib_prefix=no
11260 runpath_var=LD_RUN_PATH
11261 ;;
11262 siemens)
11263 need_lib_prefix=no
11264 ;;
11265 motorola)
11266 need_lib_prefix=no
11267 need_version=no
11268 shlibpath_overrides_runpath=no
11269 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11270 ;;
11271 esac
11272 ;;
11273
11274sysv4*MP*)
11275 if test -d /usr/nec ;then
11276 version_type=linux # correct to gnu/linux during the next big refactor
11277 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11278 soname_spec='$libname${shared_ext}.$major'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 fi
11281 ;;
11282
11283sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11284 version_type=freebsd-elf
11285 need_lib_prefix=no
11286 need_version=no
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11288 soname_spec='${libname}${release}${shared_ext}$major'
11289 shlibpath_var=LD_LIBRARY_PATH
11290 shlibpath_overrides_runpath=yes
11291 hardcode_into_libs=yes
11292 if test "$with_gnu_ld" = yes; then
11293 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11294 else
11295 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11296 case $host_os in
11297 sco3.2v5*)
11298 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11299 ;;
11300 esac
11301 fi
11302 sys_lib_dlsearch_path_spec='/usr/lib'
11303 ;;
11304
11305tpf*)
11306 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11307 version_type=linux # correct to gnu/linux during the next big refactor
11308 need_lib_prefix=no
11309 need_version=no
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11311 shlibpath_var=LD_LIBRARY_PATH
11312 shlibpath_overrides_runpath=no
11313 hardcode_into_libs=yes
11314 ;;
11315
11316uts4*)
11317 version_type=linux # correct to gnu/linux during the next big refactor
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 ;;
11322
11323*)
11324 dynamic_linker=no
11325 ;;
11326esac
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11328$as_echo "$dynamic_linker" >&6; }
11329test "$dynamic_linker" = no && can_build_shared=no
11330
11331variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11332if test "$GCC" = yes; then
11333 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11334fi
11335
11336if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11337 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11338fi
11339if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11340 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11341fi
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11435$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11436hardcode_action=
11437if test -n "$hardcode_libdir_flag_spec" ||
11438 test -n "$runpath_var" ||
11439 test "X$hardcode_automatic" = "Xyes" ; then
11440
11441 # We can hardcode non-existent directories.
11442 if test "$hardcode_direct" != no &&
11443 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11444 # have to relink, otherwise we might link with an installed library
11445 # when we should be linking with a yet-to-be-installed one
11446 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11447 test "$hardcode_minus_L" != no; then
11448 # Linking always hardcodes the temporary library directory.
11449 hardcode_action=relink
11450 else
11451 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11452 hardcode_action=immediate
11453 fi
11454else
11455 # We cannot hardcode anything, or else we can only hardcode existing
11456 # directories.
11457 hardcode_action=unsupported
11458fi
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11460$as_echo "$hardcode_action" >&6; }
11461
11462if test "$hardcode_action" = relink ||
11463 test "$inherit_rpath" = yes; then
11464 # Fast installation is not supported
11465 enable_fast_install=no
11466elif test "$shlibpath_overrides_runpath" = yes ||
11467 test "$enable_shared" = no; then
11468 # Fast installation is not necessary
11469 enable_fast_install=needless
11470fi
11471
11472
11473
11474
11475
11476
11477 if test "x$enable_dlopen" != xyes; then
11478 enable_dlopen=unknown
11479 enable_dlopen_self=unknown
11480 enable_dlopen_self_static=unknown
11481else
11482 lt_cv_dlopen=no
11483 lt_cv_dlopen_libs=
11484
11485 case $host_os in
11486 beos*)
11487 lt_cv_dlopen="load_add_on"
11488 lt_cv_dlopen_libs=
11489 lt_cv_dlopen_self=yes
11490 ;;
11491
11492 mingw* | pw32* | cegcc*)
11493 lt_cv_dlopen="LoadLibrary"
11494 lt_cv_dlopen_libs=
11495 ;;
11496
11497 cygwin*)
11498 lt_cv_dlopen="dlopen"
11499 lt_cv_dlopen_libs=
11500 ;;
11501
11502 darwin*)
11503 # if libdl is installed we need to link against it
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11505$as_echo_n "checking for dlopen in -ldl... " >&6; }
11506if ${ac_cv_lib_dl_dlopen+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508else
11509 ac_check_lib_save_LIBS=$LIBS
11510LIBS="-ldl $LIBS"
11511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512/* end confdefs.h. */
11513
11514/* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11517#ifdef __cplusplus
11518extern "C"
11519#endif
11520char dlopen ();
11521int
11522main ()
11523{
11524return dlopen ();
11525 ;
11526 return 0;
11527}
11528_ACEOF
11529if ac_fn_c_try_link "$LINENO"; then :
11530 ac_cv_lib_dl_dlopen=yes
11531else
11532 ac_cv_lib_dl_dlopen=no
11533fi
11534rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536LIBS=$ac_check_lib_save_LIBS
11537fi
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11539$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11540if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11542else
11543
11544 lt_cv_dlopen="dyld"
11545 lt_cv_dlopen_libs=
11546 lt_cv_dlopen_self=yes
11547
11548fi
11549
11550 ;;
11551
11552 *)
11553 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11554if test "x$ac_cv_func_shl_load" = xyes; then :
11555 lt_cv_dlopen="shl_load"
11556else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11558$as_echo_n "checking for shl_load in -ldld... " >&6; }
11559if ${ac_cv_lib_dld_shl_load+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561else
11562 ac_check_lib_save_LIBS=$LIBS
11563LIBS="-ldld $LIBS"
11564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565/* end confdefs.h. */
11566
11567/* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11570#ifdef __cplusplus
11571extern "C"
11572#endif
11573char shl_load ();
11574int
11575main ()
11576{
11577return shl_load ();
11578 ;
11579 return 0;
11580}
11581_ACEOF
11582if ac_fn_c_try_link "$LINENO"; then :
11583 ac_cv_lib_dld_shl_load=yes
11584else
11585 ac_cv_lib_dld_shl_load=no
11586fi
11587rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
11589LIBS=$ac_check_lib_save_LIBS
11590fi
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11592$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11593if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11594 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11595else
11596 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11597if test "x$ac_cv_func_dlopen" = xyes; then :
11598 lt_cv_dlopen="dlopen"
11599else
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11601$as_echo_n "checking for dlopen in -ldl... " >&6; }
11602if ${ac_cv_lib_dl_dlopen+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604else
11605 ac_check_lib_save_LIBS=$LIBS
11606LIBS="-ldl $LIBS"
11607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608/* end confdefs.h. */
11609
11610/* Override any GCC internal prototype to avoid an error.
11611 Use char because int might match the return type of a GCC
11612 builtin and then its argument prototype would still apply. */
11613#ifdef __cplusplus
11614extern "C"
11615#endif
11616char dlopen ();
11617int
11618main ()
11619{
11620return dlopen ();
11621 ;
11622 return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_link "$LINENO"; then :
11626 ac_cv_lib_dl_dlopen=yes
11627else
11628 ac_cv_lib_dl_dlopen=no
11629fi
11630rm -f core conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11632LIBS=$ac_check_lib_save_LIBS
11633fi
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11635$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11636if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11638else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11640$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11641if ${ac_cv_lib_svld_dlopen+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643else
11644 ac_check_lib_save_LIBS=$LIBS
11645LIBS="-lsvld $LIBS"
11646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647/* end confdefs.h. */
11648
11649/* Override any GCC internal prototype to avoid an error.
11650 Use char because int might match the return type of a GCC
11651 builtin and then its argument prototype would still apply. */
11652#ifdef __cplusplus
11653extern "C"
11654#endif
11655char dlopen ();
11656int
11657main ()
11658{
11659return dlopen ();
11660 ;
11661 return 0;
11662}
11663_ACEOF
11664if ac_fn_c_try_link "$LINENO"; then :
11665 ac_cv_lib_svld_dlopen=yes
11666else
11667 ac_cv_lib_svld_dlopen=no
11668fi
11669rm -f core conftest.err conftest.$ac_objext \
11670 conftest$ac_exeext conftest.$ac_ext
11671LIBS=$ac_check_lib_save_LIBS
11672fi
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11674$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11675if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11676 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11677else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11679$as_echo_n "checking for dld_link in -ldld... " >&6; }
11680if ${ac_cv_lib_dld_dld_link+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682else
11683 ac_check_lib_save_LIBS=$LIBS
11684LIBS="-ldld $LIBS"
11685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686/* end confdefs.h. */
11687
11688/* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11691#ifdef __cplusplus
11692extern "C"
11693#endif
11694char dld_link ();
11695int
11696main ()
11697{
11698return dld_link ();
11699 ;
11700 return 0;
11701}
11702_ACEOF
11703if ac_fn_c_try_link "$LINENO"; then :
11704 ac_cv_lib_dld_dld_link=yes
11705else
11706 ac_cv_lib_dld_dld_link=no
11707fi
11708rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710LIBS=$ac_check_lib_save_LIBS
11711fi
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11713$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11714if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11715 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11716fi
11717
11718
11719fi
11720
11721
11722fi
11723
11724
11725fi
11726
11727
11728fi
11729
11730
11731fi
11732
11733 ;;
11734 esac
11735
11736 if test "x$lt_cv_dlopen" != xno; then
11737 enable_dlopen=yes
11738 else
11739 enable_dlopen=no
11740 fi
11741
11742 case $lt_cv_dlopen in
11743 dlopen)
11744 save_CPPFLAGS="$CPPFLAGS"
11745 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11746
11747 save_LDFLAGS="$LDFLAGS"
11748 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11749
11750 save_LIBS="$LIBS"
11751 LIBS="$lt_cv_dlopen_libs $LIBS"
11752
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11754$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11755if ${lt_cv_dlopen_self+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757else
11758 if test "$cross_compiling" = yes; then :
11759 lt_cv_dlopen_self=cross
11760else
11761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11762 lt_status=$lt_dlunknown
11763 cat > conftest.$ac_ext <<_LT_EOF
11764#line $LINENO "configure"
11765#include "confdefs.h"
11766
11767#if HAVE_DLFCN_H
11768#include <dlfcn.h>
11769#endif
11770
11771#include <stdio.h>
11772
11773#ifdef RTLD_GLOBAL
11774# define LT_DLGLOBAL RTLD_GLOBAL
11775#else
11776# ifdef DL_GLOBAL
11777# define LT_DLGLOBAL DL_GLOBAL
11778# else
11779# define LT_DLGLOBAL 0
11780# endif
11781#endif
11782
11783/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11784 find out it does not work in some platform. */
11785#ifndef LT_DLLAZY_OR_NOW
11786# ifdef RTLD_LAZY
11787# define LT_DLLAZY_OR_NOW RTLD_LAZY
11788# else
11789# ifdef DL_LAZY
11790# define LT_DLLAZY_OR_NOW DL_LAZY
11791# else
11792# ifdef RTLD_NOW
11793# define LT_DLLAZY_OR_NOW RTLD_NOW
11794# else
11795# ifdef DL_NOW
11796# define LT_DLLAZY_OR_NOW DL_NOW
11797# else
11798# define LT_DLLAZY_OR_NOW 0
11799# endif
11800# endif
11801# endif
11802# endif
11803#endif
11804
11805/* When -fvisbility=hidden is used, assume the code has been annotated
11806 correspondingly for the symbols needed. */
11807#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11808int fnord () __attribute__((visibility("default")));
11809#endif
11810
11811int fnord () { return 42; }
11812int main ()
11813{
11814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11815 int status = $lt_dlunknown;
11816
11817 if (self)
11818 {
11819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11820 else
11821 {
11822 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11823 else puts (dlerror ());
11824 }
11825 /* dlclose (self); */
11826 }
11827 else
11828 puts (dlerror ());
11829
11830 return status;
11831}
11832_LT_EOF
11833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11834 (eval $ac_link) 2>&5
11835 ac_status=$?
11836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11837 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11838 (./conftest; exit; ) >&5 2>/dev/null
11839 lt_status=$?
11840 case x$lt_status in
11841 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11842 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11843 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11844 esac
11845 else :
11846 # compilation failed
11847 lt_cv_dlopen_self=no
11848 fi
11849fi
11850rm -fr conftest*
11851
11852
11853fi
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11855$as_echo "$lt_cv_dlopen_self" >&6; }
11856
11857 if test "x$lt_cv_dlopen_self" = xyes; then
11858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11860$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11861if ${lt_cv_dlopen_self_static+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863else
11864 if test "$cross_compiling" = yes; then :
11865 lt_cv_dlopen_self_static=cross
11866else
11867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11868 lt_status=$lt_dlunknown
11869 cat > conftest.$ac_ext <<_LT_EOF
11870#line $LINENO "configure"
11871#include "confdefs.h"
11872
11873#if HAVE_DLFCN_H
11874#include <dlfcn.h>
11875#endif
11876
11877#include <stdio.h>
11878
11879#ifdef RTLD_GLOBAL
11880# define LT_DLGLOBAL RTLD_GLOBAL
11881#else
11882# ifdef DL_GLOBAL
11883# define LT_DLGLOBAL DL_GLOBAL
11884# else
11885# define LT_DLGLOBAL 0
11886# endif
11887#endif
11888
11889/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11890 find out it does not work in some platform. */
11891#ifndef LT_DLLAZY_OR_NOW
11892# ifdef RTLD_LAZY
11893# define LT_DLLAZY_OR_NOW RTLD_LAZY
11894# else
11895# ifdef DL_LAZY
11896# define LT_DLLAZY_OR_NOW DL_LAZY
11897# else
11898# ifdef RTLD_NOW
11899# define LT_DLLAZY_OR_NOW RTLD_NOW
11900# else
11901# ifdef DL_NOW
11902# define LT_DLLAZY_OR_NOW DL_NOW
11903# else
11904# define LT_DLLAZY_OR_NOW 0
11905# endif
11906# endif
11907# endif
11908# endif
11909#endif
11910
11911/* When -fvisbility=hidden is used, assume the code has been annotated
11912 correspondingly for the symbols needed. */
11913#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11914int fnord () __attribute__((visibility("default")));
11915#endif
11916
11917int fnord () { return 42; }
11918int main ()
11919{
11920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11921 int status = $lt_dlunknown;
11922
11923 if (self)
11924 {
11925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11926 else
11927 {
11928 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11929 else puts (dlerror ());
11930 }
11931 /* dlclose (self); */
11932 }
11933 else
11934 puts (dlerror ());
11935
11936 return status;
11937}
11938_LT_EOF
11939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11940 (eval $ac_link) 2>&5
11941 ac_status=$?
11942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11943 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11944 (./conftest; exit; ) >&5 2>/dev/null
11945 lt_status=$?
11946 case x$lt_status in
11947 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11948 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11949 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11950 esac
11951 else :
11952 # compilation failed
11953 lt_cv_dlopen_self_static=no
11954 fi
11955fi
11956rm -fr conftest*
11957
11958
11959fi
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11961$as_echo "$lt_cv_dlopen_self_static" >&6; }
11962 fi
11963
11964 CPPFLAGS="$save_CPPFLAGS"
11965 LDFLAGS="$save_LDFLAGS"
11966 LIBS="$save_LIBS"
11967 ;;
11968 esac
11969
11970 case $lt_cv_dlopen_self in
11971 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11972 *) enable_dlopen_self=unknown ;;
11973 esac
11974
11975 case $lt_cv_dlopen_self_static in
11976 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11977 *) enable_dlopen_self_static=unknown ;;
11978 esac
11979fi
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997striplib=
11998old_striplib=
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12000$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12001if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12002 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12003 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12005$as_echo "yes" >&6; }
12006else
12007# FIXME - insert some real tests, host_os isn't really good enough
12008 case $host_os in
12009 darwin*)
12010 if test -n "$STRIP" ; then
12011 striplib="$STRIP -x"
12012 old_striplib="$STRIP -S"
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12014$as_echo "yes" >&6; }
12015 else
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
12018 fi
12019 ;;
12020 *)
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022$as_echo "no" >&6; }
12023 ;;
12024 esac
12025fi
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038 # Report which library types will actually be built
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12040$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12042$as_echo "$can_build_shared" >&6; }
12043
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12045$as_echo_n "checking whether to build shared libraries... " >&6; }
12046 test "$can_build_shared" = "no" && enable_shared=no
12047
12048 # On AIX, shared libraries and static libraries use the same namespace, and
12049 # are all built from PIC.
12050 case $host_os in
12051 aix3*)
12052 test "$enable_shared" = yes && enable_static=no
12053 if test -n "$RANLIB"; then
12054 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12055 postinstall_cmds='$RANLIB $lib'
12056 fi
12057 ;;
12058
12059 aix[4-9]*)
12060 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12061 test "$enable_shared" = yes && enable_static=no
12062 fi
12063 ;;
12064 esac
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12066$as_echo "$enable_shared" >&6; }
12067
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12069$as_echo_n "checking whether to build static libraries... " >&6; }
12070 # Make sure either enable_shared or enable_static is yes.
12071 test "$enable_shared" = yes || enable_static=yes
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12073$as_echo "$enable_static" >&6; }
12074
12075
12076
12077
12078fi
12079ac_ext=c
12080ac_cpp='$CPP $CPPFLAGS'
12081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12083ac_compiler_gnu=$ac_cv_c_compiler_gnu
12084
12085CC="$lt_save_CC"
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101 ac_config_commands="$ac_config_commands libtool"
12102
12103
12104
12105
12106# Only expand once:
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12118$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12119if ${libltdl_cv_shlibext+:} false; then :
12120 $as_echo_n "(cached) " >&6
12121else
12122
12123module=yes
12124eval libltdl_cv_shlibext=$shrext_cmds
12125module=no
12126eval libltdl_cv_shrext=$shrext_cmds
12127
12128fi
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12130$as_echo "$libltdl_cv_shlibext" >&6; }
12131if test -n "$libltdl_cv_shlibext"; then
12132
12133cat >>confdefs.h <<_ACEOF
12134#define LT_MODULE_EXT "$libltdl_cv_shlibext"
12135_ACEOF
12136
12137fi
12138if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12139
12140cat >>confdefs.h <<_ACEOF
12141#define LT_SHARED_EXT "$libltdl_cv_shrext"
12142_ACEOF
12143
12144fi
12145
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12147$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12148if ${lt_cv_module_path_var+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150else
12151 lt_cv_module_path_var="$shlibpath_var"
12152fi
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12154$as_echo "$lt_cv_module_path_var" >&6; }
12155if test -n "$lt_cv_module_path_var"; then
12156
12157cat >>confdefs.h <<_ACEOF
12158#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12159_ACEOF
12160
12161fi
12162
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12164$as_echo_n "checking for the default library search path... " >&6; }
12165if ${lt_cv_sys_dlsearch_path+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167else
12168 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12169fi
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12171$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12172if test -n "$lt_cv_sys_dlsearch_path"; then
12173 sys_dlsearch_path=
12174 for dir in $lt_cv_sys_dlsearch_path; do
12175 if test -z "$sys_dlsearch_path"; then
12176 sys_dlsearch_path="$dir"
12177 else
12178 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12179 fi
12180 done
12181
12182cat >>confdefs.h <<_ACEOF
12183#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12184_ACEOF
12185
12186fi
12187
12188
12189LT_DLLOADERS=
12190
12191
12192ac_ext=c
12193ac_cpp='$CPP $CPPFLAGS'
12194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196ac_compiler_gnu=$ac_cv_c_compiler_gnu
12197
12198
12199LIBADD_DLOPEN=
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12201$as_echo_n "checking for library containing dlopen... " >&6; }
12202if ${ac_cv_search_dlopen+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204else
12205 ac_func_search_save_LIBS=$LIBS
12206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207/* end confdefs.h. */
12208
12209/* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12212#ifdef __cplusplus
12213extern "C"
12214#endif
12215char dlopen ();
12216int
12217main ()
12218{
12219return dlopen ();
12220 ;
12221 return 0;
12222}
12223_ACEOF
12224for ac_lib in '' dl; do
12225 if test -z "$ac_lib"; then
12226 ac_res="none required"
12227 else
12228 ac_res=-l$ac_lib
12229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12230 fi
12231 if ac_fn_c_try_link "$LINENO"; then :
12232 ac_cv_search_dlopen=$ac_res
12233fi
12234rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext
12236 if ${ac_cv_search_dlopen+:} false; then :
12237 break
12238fi
12239done
12240if ${ac_cv_search_dlopen+:} false; then :
12241
12242else
12243 ac_cv_search_dlopen=no
12244fi
12245rm conftest.$ac_ext
12246LIBS=$ac_func_search_save_LIBS
12247fi
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12249$as_echo "$ac_cv_search_dlopen" >&6; }
12250ac_res=$ac_cv_search_dlopen
12251if test "$ac_res" != no; then :
12252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12253
12254$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12255
12256 if test "$ac_cv_search_dlopen" != "none required" ; then
12257 LIBADD_DLOPEN="-ldl"
12258 fi
12259 libltdl_cv_lib_dl_dlopen="yes"
12260 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12261else
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263/* end confdefs.h. */
12264#if HAVE_DLFCN_H
12265# include <dlfcn.h>
12266#endif
12267
12268int
12269main ()
12270{
12271dlopen(0, 0);
12272 ;
12273 return 0;
12274}
12275_ACEOF
12276if ac_fn_c_try_link "$LINENO"; then :
12277
12278$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12279
12280 libltdl_cv_func_dlopen="yes"
12281 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12282else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12284$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12285if ${ac_cv_lib_svld_dlopen+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287else
12288 ac_check_lib_save_LIBS=$LIBS
12289LIBS="-lsvld $LIBS"
12290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291/* end confdefs.h. */
12292
12293/* Override any GCC internal prototype to avoid an error.
12294 Use char because int might match the return type of a GCC
12295 builtin and then its argument prototype would still apply. */
12296#ifdef __cplusplus
12297extern "C"
12298#endif
12299char dlopen ();
12300int
12301main ()
12302{
12303return dlopen ();
12304 ;
12305 return 0;
12306}
12307_ACEOF
12308if ac_fn_c_try_link "$LINENO"; then :
12309 ac_cv_lib_svld_dlopen=yes
12310else
12311 ac_cv_lib_svld_dlopen=no
7083c021 12312fi
c52df125
AC
12313rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315LIBS=$ac_check_lib_save_LIBS
12316fi
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12318$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12319if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7083c021 12320
c52df125
AC
12321$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12322
12323 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12324 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
7083c021
AC
12325fi
12326
c52df125
AC
12327fi
12328rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330fi
7083c021 12331
c52df125
AC
12332if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12333then
12334 lt_save_LIBS="$LIBS"
12335 LIBS="$LIBS $LIBADD_DLOPEN"
12336 for ac_func in dlerror
12337do :
12338 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12339if test "x$ac_cv_func_dlerror" = xyes; then :
12340 cat >>confdefs.h <<_ACEOF
12341#define HAVE_DLERROR 1
12342_ACEOF
7083c021 12343
c52df125 12344fi
7083c021
AC
12345done
12346
c52df125
AC
12347 LIBS="$lt_save_LIBS"
12348fi
12349
12350
12351LIBADD_SHL_LOAD=
12352ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12353if test "x$ac_cv_func_shl_load" = xyes; then :
12354
12355$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12356
12357 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12358else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12360$as_echo_n "checking for shl_load in -ldld... " >&6; }
12361if ${ac_cv_lib_dld_shl_load+:} false; then :
12362 $as_echo_n "(cached) " >&6
12363else
12364 ac_check_lib_save_LIBS=$LIBS
12365LIBS="-ldld $LIBS"
7083c021
AC
12366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367/* end confdefs.h. */
6fb6bd15 12368
c52df125
AC
12369/* Override any GCC internal prototype to avoid an error.
12370 Use char because int might match the return type of a GCC
12371 builtin and then its argument prototype would still apply. */
12372#ifdef __cplusplus
12373extern "C"
12374#endif
12375char shl_load ();
212380e3 12376int
7083c021 12377main ()
212380e3 12378{
c52df125 12379return shl_load ();
7083c021
AC
12380 ;
12381 return 0;
212380e3
AC
12382}
12383_ACEOF
c52df125
AC
12384if ac_fn_c_try_link "$LINENO"; then :
12385 ac_cv_lib_dld_shl_load=yes
12386else
12387 ac_cv_lib_dld_shl_load=no
12388fi
12389rm -f core conftest.err conftest.$ac_objext \
12390 conftest$ac_exeext conftest.$ac_ext
12391LIBS=$ac_check_lib_save_LIBS
12392fi
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12394$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12395if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7083c021 12396
c52df125 12397$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
7083c021 12398
c52df125
AC
12399 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12400 LIBADD_SHL_LOAD="-ldld"
12401fi
7083c021 12402
c52df125 12403fi
212380e3 12404
c52df125
AC
12405
12406
12407case $host_os in
12408darwin[1567].*)
12409# We only want this for pre-Mac OS X 10.4.
12410 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12411if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12412
12413$as_echo "#define HAVE_DYLD 1" >>confdefs.h
12414
12415 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
631ef239 12416fi
7083c021 12417
c52df125
AC
12418 ;;
12419beos*)
12420 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12421 ;;
12422cygwin* | mingw* | os2* | pw32*)
12423 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12424"
12425if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12426 ac_have_decl=1
6fb6bd15 12427else
c52df125 12428 ac_have_decl=0
631ef239 12429fi
631ef239 12430
c52df125
AC
12431cat >>confdefs.h <<_ACEOF
12432#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12433_ACEOF
12434
12435 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12436 ;;
7083c021 12437esac
7083c021 12438
c52df125
AC
12439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12440$as_echo_n "checking for dld_link in -ldld... " >&6; }
12441if ${ac_cv_lib_dld_dld_link+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443else
12444 ac_check_lib_save_LIBS=$LIBS
12445LIBS="-ldld $LIBS"
6fb6bd15
AC
12446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447/* end confdefs.h. */
c52df125
AC
12448
12449/* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12452#ifdef __cplusplus
12453extern "C"
12454#endif
12455char dld_link ();
6fb6bd15
AC
12456int
12457main ()
12458{
c52df125 12459return dld_link ();
6fb6bd15
AC
12460 ;
12461 return 0;
12462}
12463_ACEOF
c52df125
AC
12464if ac_fn_c_try_link "$LINENO"; then :
12465 ac_cv_lib_dld_dld_link=yes
12466else
12467 ac_cv_lib_dld_dld_link=no
12468fi
12469rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471LIBS=$ac_check_lib_save_LIBS
12472fi
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12474$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12475if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12476
12477$as_echo "#define HAVE_DLD 1" >>confdefs.h
12478
12479 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12480fi
12481
12482
12483
12484
12485LT_DLPREOPEN=
12486if test -n "$LT_DLLOADERS"
12487then
12488 for lt_loader in $LT_DLLOADERS; do
12489 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12490 done
12491
12492$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12493
12494fi
12495
12496
12497LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12498
12499
12500ac_ext=c
12501ac_cpp='$CPP $CPPFLAGS'
12502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12504ac_compiler_gnu=$ac_cv_c_compiler_gnu
12505
12506
12507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12508$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12509if ${lt_cv_sys_symbol_underscore+:} false; then :
12510 $as_echo_n "(cached) " >&6
12511else
12512 lt_cv_sys_symbol_underscore=no
12513 cat > conftest.$ac_ext <<_LT_EOF
12514void nm_test_func(){}
12515int main(){nm_test_func;return 0;}
12516_LT_EOF
12517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12518 (eval $ac_compile) 2>&5
6fb6bd15
AC
12519 ac_status=$?
12520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c52df125
AC
12521 test $ac_status = 0; }; then
12522 # Now try to grab the symbols.
12523 ac_nlist=conftest.nm
12524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12525 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
6fb6bd15
AC
12526 ac_status=$?
12527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c52df125
AC
12528 test $ac_status = 0; } && test -s "$ac_nlist"; then
12529 # See whether the symbols have a leading underscore.
12530 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12531 lt_cv_sys_symbol_underscore=yes
12532 else
12533 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12534 :
12535 else
12536 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12537 fi
12538 fi
6fb6bd15 12539 else
c52df125 12540 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
6fb6bd15 12541 fi
c52df125
AC
12542 else
12543 echo "configure: failed program was:" >&5
12544 cat conftest.c >&5
6fb6bd15 12545 fi
c52df125
AC
12546 rm -rf conftest*
12547
6fb6bd15 12548fi
c52df125
AC
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12550$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12551 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
6fb6bd15 12552
c52df125
AC
12553
12554if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12555 if test x"$libltdl_cv_func_dlopen" = xyes ||
12556 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12558$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12559if ${libltdl_cv_need_uscore+:} false; then :
7083c021
AC
12560 $as_echo_n "(cached) " >&6
12561else
c52df125
AC
12562 libltdl_cv_need_uscore=unknown
12563 save_LIBS="$LIBS"
12564 LIBS="$LIBS $LIBADD_DLOPEN"
12565 if test "$cross_compiling" = yes; then :
12566 libltdl_cv_need_uscore=cross
12567else
12568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12569 lt_status=$lt_dlunknown
12570 cat > conftest.$ac_ext <<_LT_EOF
12571#line $LINENO "configure"
12572#include "confdefs.h"
212380e3 12573
c52df125
AC
12574#if HAVE_DLFCN_H
12575#include <dlfcn.h>
12576#endif
12577
12578#include <stdio.h>
12579
12580#ifdef RTLD_GLOBAL
12581# define LT_DLGLOBAL RTLD_GLOBAL
12582#else
12583# ifdef DL_GLOBAL
12584# define LT_DLGLOBAL DL_GLOBAL
12585# else
12586# define LT_DLGLOBAL 0
12587# endif
12588#endif
12589
12590/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12591 find out it does not work in some platform. */
12592#ifndef LT_DLLAZY_OR_NOW
12593# ifdef RTLD_LAZY
12594# define LT_DLLAZY_OR_NOW RTLD_LAZY
12595# else
12596# ifdef DL_LAZY
12597# define LT_DLLAZY_OR_NOW DL_LAZY
12598# else
12599# ifdef RTLD_NOW
12600# define LT_DLLAZY_OR_NOW RTLD_NOW
12601# else
12602# ifdef DL_NOW
12603# define LT_DLLAZY_OR_NOW DL_NOW
12604# else
12605# define LT_DLLAZY_OR_NOW 0
12606# endif
12607# endif
12608# endif
12609# endif
12610#endif
12611
12612/* When -fvisbility=hidden is used, assume the code has been annotated
12613 correspondingly for the symbols needed. */
12614#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12615int fnord () __attribute__((visibility("default")));
12616#endif
12617
12618int fnord () { return 42; }
12619int main ()
7083c021 12620{
c52df125
AC
12621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12622 int status = $lt_dlunknown;
7083c021 12623
c52df125
AC
12624 if (self)
12625 {
12626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12627 else
12628 {
12629 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12630 else puts (dlerror ());
12631 }
12632 /* dlclose (self); */
12633 }
12634 else
12635 puts (dlerror ());
12636
12637 return status;
7083c021 12638}
c52df125
AC
12639_LT_EOF
12640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12641 (eval $ac_link) 2>&5
212380e3 12642 ac_status=$?
7083c021 12643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c52df125
AC
12644 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12645 (./conftest; exit; ) >&5 2>/dev/null
12646 lt_status=$?
12647 case x$lt_status in
12648 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12649 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12650 x$lt_dlunknown|x*) ;;
12651 esac
12652 else :
12653 # compilation failed
212380e3 12654
c52df125 12655 fi
7083c021 12656fi
c52df125
AC
12657rm -fr conftest*
12658
12659 LIBS="$save_LIBS"
12660
212380e3 12661fi
c52df125
AC
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12663$as_echo "$libltdl_cv_need_uscore" >&6; }
12664 fi
12665fi
12666
12667if test x"$libltdl_cv_need_uscore" = xyes; then
12668
12669$as_echo "#define NEED_USCORE 1" >>confdefs.h
12670
12671fi
12672
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12674$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12675if ${lt_cv_sys_dlopen_deplibs+:} false; then :
7083c021
AC
12676 $as_echo_n "(cached) " >&6
12677else
c52df125
AC
12678 # PORTME does your system automatically load deplibs for dlopen?
12679 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12680 # For now, we just catch OSes we know something about -- in the
12681 # future, we'll try test this programmatically.
12682 lt_cv_sys_dlopen_deplibs=unknown
12683 case $host_os in
12684 aix3*|aix4.1.*|aix4.2.*)
12685 # Unknown whether this is true for these versions of AIX, but
12686 # we want this `case' here to explicitly catch those versions.
12687 lt_cv_sys_dlopen_deplibs=unknown
12688 ;;
12689 aix[4-9]*)
12690 lt_cv_sys_dlopen_deplibs=yes
12691 ;;
12692 amigaos*)
12693 case $host_cpu in
12694 powerpc)
12695 lt_cv_sys_dlopen_deplibs=no
12696 ;;
12697 esac
12698 ;;
12699 darwin*)
12700 # Assuming the user has installed a libdl from somewhere, this is true
12701 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12702 lt_cv_sys_dlopen_deplibs=yes
12703 ;;
12704 freebsd* | dragonfly*)
12705 lt_cv_sys_dlopen_deplibs=yes
12706 ;;
12707 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12708 # GNU and its variants, using gnu ld.so (Glibc)
12709 lt_cv_sys_dlopen_deplibs=yes
12710 ;;
12711 hpux10*|hpux11*)
12712 lt_cv_sys_dlopen_deplibs=yes
12713 ;;
12714 interix*)
12715 lt_cv_sys_dlopen_deplibs=yes
12716 ;;
12717 irix[12345]*|irix6.[01]*)
12718 # Catch all versions of IRIX before 6.2, and indicate that we don't
12719 # know how it worked for any of those versions.
12720 lt_cv_sys_dlopen_deplibs=unknown
12721 ;;
12722 irix*)
12723 # The case above catches anything before 6.2, and it's known that
12724 # at 6.2 and later dlopen does load deplibs.
12725 lt_cv_sys_dlopen_deplibs=yes
12726 ;;
12727 netbsd* | netbsdelf*-gnu)
12728 lt_cv_sys_dlopen_deplibs=yes
12729 ;;
12730 openbsd*)
12731 lt_cv_sys_dlopen_deplibs=yes
12732 ;;
12733 osf[1234]*)
12734 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12735 # it did *not* use an RPATH in a shared library to find objects the
12736 # library depends on, so we explicitly say `no'.
12737 lt_cv_sys_dlopen_deplibs=no
12738 ;;
12739 osf5.0|osf5.0a|osf5.1)
12740 # dlopen *does* load deplibs and with the right loader patch applied
12741 # it even uses RPATH in a shared library to search for shared objects
12742 # that the library depends on, but there's no easy way to know if that
12743 # patch is installed. Since this is the case, all we can really
12744 # say is unknown -- it depends on the patch being installed. If
12745 # it is, this changes to `yes'. Without it, it would be `no'.
12746 lt_cv_sys_dlopen_deplibs=unknown
12747 ;;
12748 osf*)
12749 # the two cases above should catch all versions of osf <= 5.1. Read
12750 # the comments above for what we know about them.
12751 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12752 # is used to find them so we can finally say `yes'.
12753 lt_cv_sys_dlopen_deplibs=yes
12754 ;;
12755 qnx*)
12756 lt_cv_sys_dlopen_deplibs=yes
12757 ;;
12758 solaris*)
12759 lt_cv_sys_dlopen_deplibs=yes
12760 ;;
12761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12762 libltdl_cv_sys_dlopen_deplibs=yes
12763 ;;
12764 esac
212380e3 12765
c52df125
AC
12766fi
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12768$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12769if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12770
12771$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12772
12773fi
12774
12775:
12776
12777for ac_header in argz.h
12778do :
12779 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12780"
12781if test "x$ac_cv_header_argz_h" = xyes; then :
12782 cat >>confdefs.h <<_ACEOF
12783#define HAVE_ARGZ_H 1
12784_ACEOF
12785
12786fi
12787
12788done
12789
12790
12791ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12792# include <argz.h>
7083c021 12793#endif
c52df125
AC
12794"
12795if test "x$ac_cv_type_error_t" = xyes; then :
212380e3 12796
c52df125
AC
12797cat >>confdefs.h <<_ACEOF
12798#define HAVE_ERROR_T 1
7083c021 12799_ACEOF
c52df125
AC
12800
12801
7083c021 12802else
c52df125
AC
12803
12804$as_echo "#define error_t int" >>confdefs.h
12805
12806
12807$as_echo "#define __error_t_defined 1" >>confdefs.h
7083c021
AC
12808
12809fi
c52df125
AC
12810
12811
12812ARGZ_H=
12813for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12814 argz_next argz_stringify
12815do :
12816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12817ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12818if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12819 cat >>confdefs.h <<_ACEOF
12820#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12821_ACEOF
12822
7083c021 12823else
c52df125
AC
12824 ARGZ_H=argz.h;
12825
12826 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12827
212380e3 12828fi
c52df125
AC
12829done
12830
12831
12832if test -z "$ARGZ_H"; then :
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12834$as_echo_n "checking if argz actually works... " >&6; }
12835if ${lt_cv_sys_argz_works+:} false; then :
7083c021
AC
12836 $as_echo_n "(cached) " >&6
12837else
c52df125
AC
12838 case $host_os in #(
12839 *cygwin*)
12840 lt_cv_sys_argz_works=no
12841 if test "$cross_compiling" != no; then
12842 lt_cv_sys_argz_works="guessing no"
12843 else
12844 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12845 save_IFS=$IFS
12846 IFS=-.
12847 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12848 IFS=$save_IFS
12849 lt_os_major=${2-0}
12850 lt_os_minor=${3-0}
12851 lt_os_micro=${4-0}
12852 if test "$lt_os_major" -gt 1 \
12853 || { test "$lt_os_major" -eq 1 \
12854 && { test "$lt_os_minor" -gt 5 \
12855 || { test "$lt_os_minor" -eq 5 \
12856 && test "$lt_os_micro" -gt 24; }; }; }; then
12857 lt_cv_sys_argz_works=yes
12858 fi
12859 fi
12860 ;; #(
12861 *) lt_cv_sys_argz_works=yes ;;
12862 esac
12863fi
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12865$as_echo "$lt_cv_sys_argz_works" >&6; }
12866 if test "$lt_cv_sys_argz_works" = yes; then :
212380e3 12867
c52df125 12868$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
631ef239 12869
212380e3 12870else
c52df125
AC
12871 ARGZ_H=argz.h
12872
12873
12874 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12875
12876fi
12877fi
12878
12879
12880
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12882$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12883if ${libltdl_cv_preloaded_symbols+:} false; then :
12884 $as_echo_n "(cached) " >&6
12885else
12886 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12887 libltdl_cv_preloaded_symbols=yes
12888 else
12889 libltdl_cv_preloaded_symbols=no
12890 fi
12891
12892fi
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12894$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12895if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12896
12897$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12898
12899fi
12900
12901
12902
12903# Set options
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916# Check whether --with-included_ltdl was given.
12917if test "${with_included_ltdl+set}" = set; then :
12918 withval=$with_included_ltdl;
12919fi
212380e3 12920
631ef239 12921
c52df125
AC
12922if test "x$with_included_ltdl" != xyes; then
12923 # We are not being forced to use the included libltdl sources, so
12924 # decide whether there is a useful installed version we can use.
12925 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
631ef239 12926
c52df125
AC
12927"
12928if test "x$ac_cv_header_ltdl_h" = xyes; then :
12929 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12930 #include <ltdl.h>
12931"
12932if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12934$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12935if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12936 $as_echo_n "(cached) " >&6
7083c021 12937else
c52df125
AC
12938 ac_check_lib_save_LIBS=$LIBS
12939LIBS="-lltdl $LIBS"
12940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021 12941/* end confdefs.h. */
212380e3 12942
c52df125
AC
12943/* Override any GCC internal prototype to avoid an error.
12944 Use char because int might match the return type of a GCC
12945 builtin and then its argument prototype would still apply. */
12946#ifdef __cplusplus
12947extern "C"
12948#endif
12949char lt_dladvise_preload ();
7083c021
AC
12950int
12951main ()
12952{
c52df125 12953return lt_dladvise_preload ();
7083c021
AC
12954 ;
12955 return 0;
12956}
212380e3 12957_ACEOF
c52df125
AC
12958if ac_fn_c_try_link "$LINENO"; then :
12959 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12960else
12961 ac_cv_lib_ltdl_lt_dladvise_preload=no
212380e3 12962fi
c52df125
AC
12963rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12965LIBS=$ac_check_lib_save_LIBS
212380e3 12966fi
c52df125
AC
12967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12968$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12969if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12970 with_included_ltdl=no
12971else
12972 with_included_ltdl=yes
212380e3 12973fi
c52df125
AC
12974
12975else
12976 with_included_ltdl=yes
212380e3 12977fi
c52df125
AC
12978
12979else
12980 with_included_ltdl=yes
12981fi
12982
12983
12984fi
12985
12986
12987
12988
12989# Check whether --with-ltdl_include was given.
12990if test "${with_ltdl_include+set}" = set; then :
12991 withval=$with_ltdl_include;
12992fi
12993
12994
12995if test -n "$with_ltdl_include"; then
12996 if test -f "$with_ltdl_include/ltdl.h"; then :
7083c021 12997 else
c52df125 12998 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
7083c021 12999 fi
212380e3 13000else
c52df125
AC
13001 with_ltdl_include=no
13002fi
13003
13004
13005# Check whether --with-ltdl_lib was given.
13006if test "${with_ltdl_lib+set}" = set; then :
13007 withval=$with_ltdl_lib;
13008fi
13009
13010
13011if test -n "$with_ltdl_lib"; then
13012 if test -f "$with_ltdl_lib/libltdl.la"; then :
7083c021 13013 else
c52df125 13014 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
7083c021 13015 fi
7083c021 13016else
c52df125
AC
13017 with_ltdl_lib=no
13018fi
7083c021 13019
c52df125
AC
13020case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13021 ,yes,no,no,)
13022 case $enable_ltdl_convenience in
13023 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13024 "") enable_ltdl_convenience=yes
13025 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13026esac
13027LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13028LTDLDEPS=$LIBLTDL
13029LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
7083c021 13030
212380e3 13031
7083c021 13032
c52df125
AC
13033
13034
13035# For backwards non-gettext consistent compatibility...
13036INCLTDL="$LTDLINCL"
13037
13038
13039 ;;
13040 ,no,no,no,)
13041 # If the included ltdl is not to be used, then use the
13042 # preinstalled libltdl we found.
13043
13044$as_echo "#define HAVE_LTDL 1" >>confdefs.h
13045
13046 LIBLTDL=-lltdl
13047 LTDLDEPS=
13048 LTDLINCL=
13049 ;;
13050 ,no*,no,*)
13051 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13052 ;;
13053 *) with_included_ltdl=no
13054 LIBLTDL="-L$with_ltdl_lib -lltdl"
13055 LTDLDEPS=
13056 LTDLINCL="-I$with_ltdl_include"
13057 ;;
631ef239 13058esac
c52df125
AC
13059INCLTDL="$LTDLINCL"
13060
13061# Report our decision...
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13063$as_echo_n "checking where to find libltdl headers... " >&6; }
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13065$as_echo "$LTDLINCL" >&6; }
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13067$as_echo_n "checking where to find libltdl library... " >&6; }
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13069$as_echo "$LIBLTDL" >&6; }
13070
13071
212380e3 13072
c52df125
AC
13073# Check whether --enable-ltdl-install was given.
13074if test "${enable_ltdl_install+set}" = set; then :
13075 enableval=$enable_ltdl_install;
212380e3 13076fi
631ef239 13077
212380e3 13078
c52df125
AC
13079case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13080 *yes*) ;;
13081 *) enable_ltdl_convenience=yes ;;
13082esac
212380e3 13083
c52df125
AC
13084 if test x"${enable_ltdl_install-no}" != xno; then
13085 INSTALL_LTDL_TRUE=
13086 INSTALL_LTDL_FALSE='#'
13087else
13088 INSTALL_LTDL_TRUE='#'
13089 INSTALL_LTDL_FALSE=
7083c021 13090fi
c52df125
AC
13091
13092 if test x"${enable_ltdl_convenience-no}" != xno; then
13093 CONVENIENCE_LTDL_TRUE=
13094 CONVENIENCE_LTDL_FALSE='#'
7083c021 13095else
c52df125
AC
13096 CONVENIENCE_LTDL_TRUE='#'
13097 CONVENIENCE_LTDL_FALSE=
13098fi
13099
13100
13101
13102 subdirs="$subdirs extra/libltdl"
13103
13104
13105
13106
13107# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13108# the user used. This is so that ltdl.h can pick up the parent projects
13109# config.h file, The first file in AC_CONFIG_HEADERS must contain the
13110# definitions required by ltdl.c.
13111# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13112
13113
13114
13115for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13116do :
13117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13118ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13119"
13120if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13121 cat >>confdefs.h <<_ACEOF
13122#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13123_ACEOF
13124
13125fi
13126
13127done
13128
13129
13130for ac_func in closedir opendir readdir
13131do :
13132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13133ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13134if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13135 cat >>confdefs.h <<_ACEOF
13136#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3 13137_ACEOF
212380e3 13138
7083c021 13139else
c52df125
AC
13140
13141
13142 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13143
212380e3 13144fi
c52df125 13145done
212380e3 13146
c52df125
AC
13147for ac_func in strlcat strlcpy
13148do :
13149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13150ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13151if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13152 cat >>confdefs.h <<_ACEOF
13153#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3 13154_ACEOF
c52df125 13155
212380e3 13156else
212380e3 13157
212380e3 13158
c52df125 13159 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
7083c021
AC
13160
13161fi
c52df125
AC
13162done
13163
13164
13165
13166cat >>confdefs.h <<_ACEOF
13167#define LT_LIBEXT "$libext"
212380e3
AC
13168_ACEOF
13169
212380e3 13170
c52df125
AC
13171name=
13172eval "lt_libprefix=\"$libname_spec\""
13173
13174cat >>confdefs.h <<_ACEOF
13175#define LT_LIBPREFIX "$lt_libprefix"
212380e3 13176_ACEOF
212380e3 13177
212380e3 13178
c52df125
AC
13179name=ltdl
13180eval "LTDLOPEN=\"$libname_spec\""
212380e3
AC
13181
13182
13183
7083c021 13184
212380e3 13185
631ef239 13186
212380e3 13187
212380e3 13188
c52df125 13189# Only expand once:
212380e3 13190
c52df125
AC
13191
13192
13193build_ltdl=$with_included_ltdl
13194 if test x"$build_ltdl" = x"yes"; then
13195 BUILD_LTDL_TRUE=
13196 BUILD_LTDL_FALSE='#'
13197else
13198 BUILD_LTDL_TRUE='#'
13199 BUILD_LTDL_FALSE=
212380e3 13200fi
212380e3
AC
13201
13202
c52df125
AC
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13204$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13205if ${ac_cv_prog_cc_c99+:} false; then :
7083c021 13206 $as_echo_n "(cached) " >&6
212380e3 13207else
c52df125
AC
13208 ac_cv_prog_cc_c99=no
13209ac_save_CC=$CC
13210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13211/* end confdefs.h. */
7083c021 13212#include <stdarg.h>
c52df125
AC
13213#include <stdbool.h>
13214#include <stdlib.h>
13215#include <wchar.h>
13216#include <stdio.h>
212380e3 13217
c52df125
AC
13218// Check varargs macros. These examples are taken from C99 6.10.3.5.
13219#define debug(...) fprintf (stderr, __VA_ARGS__)
13220#define showlist(...) puts (#__VA_ARGS__)
13221#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13222static void
13223test_varargs_macros (void)
212380e3 13224{
c52df125
AC
13225 int x = 1234;
13226 int y = 5678;
13227 debug ("Flag");
13228 debug ("X = %d\n", x);
13229 showlist (The first, second, and third items.);
13230 report (x>y, "x is %d but y is %d", x, y);
13231}
212380e3 13232
c52df125
AC
13233// Check long long types.
13234#define BIG64 18446744073709551615ull
13235#define BIG32 4294967295ul
13236#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13237#if !BIG_OK
13238 your preprocessor is broken;
13239#endif
13240#if BIG_OK
13241#else
13242 your preprocessor is broken;
13243#endif
13244static long long int bignum = -9223372036854775807LL;
13245static unsigned long long int ubignum = BIG64;
13246
13247struct incomplete_array
13248{
13249 int datasize;
13250 double data[];
13251};
13252
13253struct named_init {
13254 int number;
13255 const wchar_t *name;
13256 double average;
13257};
13258
13259typedef const char *ccp;
13260
13261static inline int
13262test_restrict (ccp restrict text)
13263{
13264 // See if C++-style comments work.
13265 // Iterate through items via the restricted pointer.
13266 // Also check for declarations in for loops.
13267 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13268 continue;
212380e3
AC
13269 return 0;
13270}
212380e3 13271
c52df125
AC
13272// Check varargs and va_copy.
13273static void
13274test_varargs (const char *format, ...)
13275{
13276 va_list args;
13277 va_start (args, format);
13278 va_list args_copy;
13279 va_copy (args_copy, args);
212380e3 13280
c52df125
AC
13281 const char *str;
13282 int number;
13283 float fnumber;
13284
13285 while (*format)
13286 {
13287 switch (*format++)
13288 {
13289 case 's': // string
13290 str = va_arg (args_copy, const char *);
13291 break;
13292 case 'd': // int
13293 number = va_arg (args_copy, int);
13294 break;
13295 case 'f': // float
13296 fnumber = va_arg (args_copy, double);
13297 break;
13298 default:
13299 break;
13300 }
13301 }
13302 va_end (args_copy);
13303 va_end (args);
13304}
13305
13306int
13307main ()
13308{
13309
13310 // Check bool.
13311 _Bool success = false;
212380e3 13312
c52df125
AC
13313 // Check restrict.
13314 if (test_restrict ("String literal") == 0)
13315 success = true;
13316 char *restrict newvar = "Another string";
212380e3 13317
c52df125
AC
13318 // Check varargs.
13319 test_varargs ("s, d' f .", "string", 65, 34.234);
13320 test_varargs_macros ();
212380e3 13321
c52df125
AC
13322 // Check flexible array members.
13323 struct incomplete_array *ia =
13324 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13325 ia->datasize = 10;
13326 for (int i = 0; i < ia->datasize; ++i)
13327 ia->data[i] = i * 1.234;
212380e3 13328
c52df125
AC
13329 // Check named initializers.
13330 struct named_init ni = {
13331 .number = 34,
13332 .name = L"Test wide string",
13333 .average = 543.34343,
13334 };
7083c021 13335
c52df125 13336 ni.number = 58;
212380e3 13337
c52df125
AC
13338 int dynamic_array[ni.number];
13339 dynamic_array[ni.number - 1] = 543;
631ef239 13340
c52df125
AC
13341 // work around unused variable warnings
13342 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13343 || dynamic_array[ni.number - 1] != 543);
7083c021 13344
c52df125 13345 ;
212380e3
AC
13346 return 0;
13347}
13348_ACEOF
c52df125
AC
13349for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13350do
13351 CC="$ac_save_CC $ac_arg"
13352 if ac_fn_c_try_compile "$LINENO"; then :
13353 ac_cv_prog_cc_c99=$ac_arg
7083c021 13354fi
c52df125
AC
13355rm -f core conftest.err conftest.$ac_objext
13356 test "x$ac_cv_prog_cc_c99" != "xno" && break
13357done
13358rm -f conftest.$ac_ext
13359CC=$ac_save_CC
631ef239 13360
212380e3 13361fi
c52df125
AC
13362# AC_CACHE_VAL
13363case "x$ac_cv_prog_cc_c99" in
13364 x)
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13366$as_echo "none needed" >&6; } ;;
13367 xno)
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13369$as_echo "unsupported" >&6; } ;;
13370 *)
13371 CC="$CC $ac_cv_prog_cc_c99"
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13373$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13374esac
13375if test "x$ac_cv_prog_cc_c99" != xno; then :
631ef239 13376
7083c021 13377fi
631ef239 13378
7083c021
AC
13379
13380
13381
13382 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
b6d0720c 13383if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021 13384 MINIX=yes
212380e3 13385else
7083c021
AC
13386 MINIX=
13387fi
13388
13389
13390 if test "$MINIX" = yes; then
13391
13392$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
13393
212380e3 13394
7083c021 13395$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
631ef239
AC
13396
13397
7083c021 13398$as_echo "#define _MINIX 1" >>confdefs.h
631ef239 13399
7083c021 13400 fi
212380e3 13401
212380e3 13402
7083c021
AC
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
13404$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b6d0720c 13405if ${ac_cv_safe_to_define___extensions__+:} false; then :
7083c021 13406 $as_echo_n "(cached) " >&6
212380e3 13407else
7083c021 13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13409/* end confdefs.h. */
7083c021 13410
2eff3833
JT
13411# define __EXTENSIONS__ 1
13412 $ac_includes_default
212380e3
AC
13413int
13414main ()
13415{
7083c021 13416
212380e3
AC
13417 ;
13418 return 0;
13419}
13420_ACEOF
7083c021
AC
13421if ac_fn_c_try_compile "$LINENO"; then :
13422 ac_cv_safe_to_define___extensions__=yes
212380e3 13423else
7083c021 13424 ac_cv_safe_to_define___extensions__=no
212380e3 13425fi
631ef239 13426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13427fi
7083c021
AC
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
13429$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
13430 test $ac_cv_safe_to_define___extensions__ = yes &&
13431 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 13432
7083c021 13433 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
212380e3 13434
7083c021
AC
13435 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
13436
13437 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
13438
13439 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
212380e3 13440
7083c021
AC
13441
13442
13443
13444OLD_CFLAGS="$CFLAGS"
13445ac_ext=c
13446ac_cpp='$CPP $CPPFLAGS'
13447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13449ac_compiler_gnu=$ac_cv_c_compiler_gnu
13450if test -n "$ac_tool_prefix"; then
13451 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13452set dummy ${ac_tool_prefix}gcc; ac_word=$2
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13454$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13455if ${ac_cv_prog_CC+:} false; then :
7083c021 13456 $as_echo_n "(cached) " >&6
212380e3 13457else
7083c021
AC
13458 if test -n "$CC"; then
13459 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 13460else
7083c021
AC
13461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13462for as_dir in $PATH
13463do
13464 IFS=$as_save_IFS
13465 test -z "$as_dir" && as_dir=.
13466 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13468 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13470 break 2
13471 fi
13472done
13473 done
13474IFS=$as_save_IFS
212380e3 13475
212380e3 13476fi
212380e3 13477fi
7083c021
AC
13478CC=$ac_cv_prog_CC
13479if test -n "$CC"; then
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13481$as_echo "$CC" >&6; }
212380e3 13482else
7083c021
AC
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13484$as_echo "no" >&6; }
13485fi
212380e3 13486
212380e3
AC
13487
13488fi
7083c021
AC
13489if test -z "$ac_cv_prog_CC"; then
13490 ac_ct_CC=$CC
13491 # Extract the first word of "gcc", so it can be a program name with args.
13492set dummy gcc; ac_word=$2
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13495if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 13496 $as_echo_n "(cached) " >&6
212380e3 13497else
7083c021
AC
13498 if test -n "$ac_ct_CC"; then
13499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3 13500else
7083c021
AC
13501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502for as_dir in $PATH
13503do
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13508 ac_cv_prog_ac_ct_CC="gcc"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510 break 2
13511 fi
13512done
13513 done
13514IFS=$as_save_IFS
212380e3 13515
212380e3 13516fi
212380e3 13517fi
7083c021
AC
13518ac_ct_CC=$ac_cv_prog_ac_ct_CC
13519if test -n "$ac_ct_CC"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13521$as_echo "$ac_ct_CC" >&6; }
212380e3 13522else
7083c021
AC
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524$as_echo "no" >&6; }
13525fi
212380e3 13526
7083c021
AC
13527 if test "x$ac_ct_CC" = x; then
13528 CC=""
13529 else
13530 case $cross_compiling:$ac_tool_warned in
13531yes:)
13532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13534ac_tool_warned=yes ;;
631ef239 13535esac
7083c021
AC
13536 CC=$ac_ct_CC
13537 fi
212380e3 13538else
7083c021 13539 CC="$ac_cv_prog_CC"
212380e3 13540fi
631ef239 13541
7083c021
AC
13542if test -z "$CC"; then
13543 if test -n "$ac_tool_prefix"; then
13544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13545set dummy ${ac_tool_prefix}cc; ac_word=$2
13546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13548if ${ac_cv_prog_CC+:} false; then :
7083c021 13549 $as_echo_n "(cached) " >&6
212380e3 13550else
7083c021
AC
13551 if test -n "$CC"; then
13552 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 13553else
7083c021
AC
13554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555for as_dir in $PATH
13556do
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13561 ac_cv_prog_CC="${ac_tool_prefix}cc"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13564 fi
13565done
13566 done
13567IFS=$as_save_IFS
212380e3 13568
212380e3 13569fi
7083c021
AC
13570fi
13571CC=$ac_cv_prog_CC
13572if test -n "$CC"; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13574$as_echo "$CC" >&6; }
212380e3 13575else
7083c021
AC
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577$as_echo "no" >&6; }
13578fi
13579
212380e3 13580
7083c021 13581 fi
212380e3 13582fi
7083c021
AC
13583if test -z "$CC"; then
13584 # Extract the first word of "cc", so it can be a program name with args.
13585set dummy cc; ac_word=$2
13586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13587$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13588if ${ac_cv_prog_CC+:} false; then :
7083c021
AC
13589 $as_echo_n "(cached) " >&6
13590else
13591 if test -n "$CC"; then
13592 ac_cv_prog_CC="$CC" # Let the user override the test.
13593else
13594 ac_prog_rejected=no
13595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596for as_dir in $PATH
13597do
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13603 ac_prog_rejected=yes
13604 continue
13605 fi
13606 ac_cv_prog_CC="cc"
13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13608 break 2
13609 fi
13610done
13611 done
13612IFS=$as_save_IFS
631ef239 13613
7083c021
AC
13614if test $ac_prog_rejected = yes; then
13615 # We found a bogon in the path, so make sure we never use it.
13616 set dummy $ac_cv_prog_CC
13617 shift
13618 if test $# != 0; then
13619 # We chose a different compiler from the bogus one.
13620 # However, it has the same basename, so the bogon will be chosen
13621 # first if we set CC to just the basename; use the full file name.
13622 shift
13623 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13624 fi
13625fi
13626fi
13627fi
13628CC=$ac_cv_prog_CC
13629if test -n "$CC"; then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13631$as_echo "$CC" >&6; }
13632else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634$as_echo "no" >&6; }
212380e3 13635fi
631ef239 13636
212380e3 13637
7083c021
AC
13638fi
13639if test -z "$CC"; then
13640 if test -n "$ac_tool_prefix"; then
13641 for ac_prog in cl.exe
13642 do
13643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13644set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13646$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13647if ${ac_cv_prog_CC+:} false; then :
7083c021 13648 $as_echo_n "(cached) " >&6
212380e3 13649else
7083c021
AC
13650 if test -n "$CC"; then
13651 ac_cv_prog_CC="$CC" # Let the user override the test.
13652else
13653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654for as_dir in $PATH
13655do
13656 IFS=$as_save_IFS
13657 test -z "$as_dir" && as_dir=.
13658 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13660 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13662 break 2
13663 fi
13664done
13665 done
13666IFS=$as_save_IFS
212380e3 13667
212380e3 13668fi
7083c021
AC
13669fi
13670CC=$ac_cv_prog_CC
13671if test -n "$CC"; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13673$as_echo "$CC" >&6; }
212380e3 13674else
7083c021
AC
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676$as_echo "no" >&6; }
13677fi
212380e3 13678
212380e3 13679
7083c021
AC
13680 test -n "$CC" && break
13681 done
13682fi
13683if test -z "$CC"; then
13684 ac_ct_CC=$CC
13685 for ac_prog in cl.exe
13686do
13687 # Extract the first word of "$ac_prog", so it can be a program name with args.
13688set dummy $ac_prog; ac_word=$2
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13690$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13691if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 13692 $as_echo_n "(cached) " >&6
212380e3 13693else
7083c021
AC
13694 if test -n "$ac_ct_CC"; then
13695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13696else
13697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698for as_dir in $PATH
13699do
13700 IFS=$as_save_IFS
13701 test -z "$as_dir" && as_dir=.
13702 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13704 ac_cv_prog_ac_ct_CC="$ac_prog"
13705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13706 break 2
13707 fi
13708done
13709 done
13710IFS=$as_save_IFS
212380e3 13711
212380e3
AC
13712fi
13713fi
7083c021
AC
13714ac_ct_CC=$ac_cv_prog_ac_ct_CC
13715if test -n "$ac_ct_CC"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13717$as_echo "$ac_ct_CC" >&6; }
13718else
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720$as_echo "no" >&6; }
212380e3 13721fi
631ef239
AC
13722
13723
7083c021
AC
13724 test -n "$ac_ct_CC" && break
13725done
631ef239 13726
7083c021
AC
13727 if test "x$ac_ct_CC" = x; then
13728 CC=""
13729 else
13730 case $cross_compiling:$ac_tool_warned in
13731yes:)
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13734ac_tool_warned=yes ;;
13735esac
13736 CC=$ac_ct_CC
13737 fi
13738fi
212380e3 13739
7083c021 13740fi
212380e3 13741
7083c021
AC
13742
13743test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
13745as_fn_error $? "no acceptable C compiler found in \$PATH
13746See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
13747
13748# Provide some information about the compiler.
13749$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13750set X $ac_compile
13751ac_compiler=$2
13752for ac_option in --version -v -V -qversion; do
13753 { { ac_try="$ac_compiler $ac_option >&5"
631ef239
AC
13754case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757esac
7083c021
AC
13758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13759$as_echo "$ac_try_echo"; } >&5
13760 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
212380e3 13761 ac_status=$?
7083c021
AC
13762 if test -s conftest.err; then
13763 sed '10a\
13764... rest of stderr output deleted ...
13765 10q' conftest.err >conftest.er1
13766 cat conftest.er1 >&5
7083c021 13767 fi
6fb6bd15 13768 rm -f conftest.er1 conftest.err
7083c021
AC
13769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13770 test $ac_status = 0; }
13771done
212380e3 13772
7083c021
AC
13773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13774$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 13775if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021 13776 $as_echo_n "(cached) " >&6
212380e3 13777else
7083c021 13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13779/* end confdefs.h. */
7083c021 13780
212380e3
AC
13781int
13782main ()
13783{
7083c021
AC
13784#ifndef __GNUC__
13785 choke me
13786#endif
212380e3
AC
13787
13788 ;
13789 return 0;
13790}
13791_ACEOF
7083c021
AC
13792if ac_fn_c_try_compile "$LINENO"; then :
13793 ac_compiler_gnu=yes
13794else
13795 ac_compiler_gnu=no
13796fi
13797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13798ac_cv_c_compiler_gnu=$ac_compiler_gnu
13799
13800fi
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13802$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13803if test $ac_compiler_gnu = yes; then
13804 GCC=yes
13805else
13806 GCC=
13807fi
13808ac_test_CFLAGS=${CFLAGS+set}
13809ac_save_CFLAGS=$CFLAGS
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13811$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 13812if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
13813 $as_echo_n "(cached) " >&6
13814else
13815 ac_save_c_werror_flag=$ac_c_werror_flag
13816 ac_c_werror_flag=yes
13817 ac_cv_prog_cc_g=no
13818 CFLAGS="-g"
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13820/* end confdefs.h. */
7083c021 13821
212380e3
AC
13822int
13823main ()
13824{
212380e3
AC
13825
13826 ;
13827 return 0;
13828}
13829_ACEOF
7083c021
AC
13830if ac_fn_c_try_compile "$LINENO"; then :
13831 ac_cv_prog_cc_g=yes
212380e3 13832else
7083c021
AC
13833 CFLAGS=""
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13835/* end confdefs.h. */
7083c021 13836
212380e3
AC
13837int
13838main ()
13839{
212380e3
AC
13840
13841 ;
13842 return 0;
13843}
13844_ACEOF
7083c021
AC
13845if ac_fn_c_try_compile "$LINENO"; then :
13846
13847else
13848 ac_c_werror_flag=$ac_save_c_werror_flag
13849 CFLAGS="-g"
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13851/* end confdefs.h. */
7083c021 13852
212380e3
AC
13853int
13854main ()
13855{
212380e3
AC
13856
13857 ;
13858 return 0;
13859}
13860_ACEOF
7083c021
AC
13861if ac_fn_c_try_compile "$LINENO"; then :
13862 ac_cv_prog_cc_g=yes
212380e3 13863fi
631ef239 13864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13865fi
631ef239 13866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13867fi
631ef239 13868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
13869 ac_c_werror_flag=$ac_save_c_werror_flag
13870fi
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13872$as_echo "$ac_cv_prog_cc_g" >&6; }
13873if test "$ac_test_CFLAGS" = set; then
13874 CFLAGS=$ac_save_CFLAGS
13875elif test $ac_cv_prog_cc_g = yes; then
13876 if test "$GCC" = yes; then
13877 CFLAGS="-g -O2"
13878 else
13879 CFLAGS="-g"
13880 fi
13881else
13882 if test "$GCC" = yes; then
13883 CFLAGS="-O2"
13884 else
13885 CFLAGS=
13886 fi
13887fi
13888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13889$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 13890if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
13891 $as_echo_n "(cached) " >&6
13892else
13893 ac_cv_prog_cc_c89=no
13894ac_save_CC=$CC
13895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13896/* end confdefs.h. */
7083c021
AC
13897#include <stdarg.h>
13898#include <stdio.h>
2eff3833 13899struct stat;
7083c021
AC
13900/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13901struct buf { int x; };
13902FILE * (*rcsopen) (struct buf *, struct stat *, int);
13903static char *e (p, i)
13904 char **p;
13905 int i;
13906{
13907 return p[i];
13908}
13909static char *f (char * (*g) (char **, int), char **p, ...)
13910{
13911 char *s;
13912 va_list v;
13913 va_start (v,p);
13914 s = g (p, va_arg (v,int));
13915 va_end (v);
13916 return s;
13917}
13918
13919/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13920 function prototypes and stuff, but not '\xHH' hex character constants.
13921 These don't provoke an error unfortunately, instead are silently treated
13922 as 'x'. The following induces an error, until -std is added to get
13923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13924 array size at least. It's necessary to write '\x00'==0 to get something
13925 that's true only with -std. */
13926int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13927
13928/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13929 inside strings and character constants. */
13930#define FOO(x) 'x'
13931int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13932
13933int test (int i, double x);
13934struct s1 {int (*f) (int a);};
13935struct s2 {int (*f) (double a);};
13936int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13937int argc;
13938char **argv;
212380e3
AC
13939int
13940main ()
13941{
7083c021 13942return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
13943 ;
13944 return 0;
13945}
13946_ACEOF
7083c021
AC
13947for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13949do
13950 CC="$ac_save_CC $ac_arg"
13951 if ac_fn_c_try_compile "$LINENO"; then :
13952 ac_cv_prog_cc_c89=$ac_arg
13953fi
13954rm -f core conftest.err conftest.$ac_objext
13955 test "x$ac_cv_prog_cc_c89" != "xno" && break
13956done
13957rm -f conftest.$ac_ext
13958CC=$ac_save_CC
13959
13960fi
13961# AC_CACHE_VAL
13962case "x$ac_cv_prog_cc_c89" in
13963 x)
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13965$as_echo "none needed" >&6; } ;;
13966 xno)
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13968$as_echo "unsupported" >&6; } ;;
13969 *)
13970 CC="$CC $ac_cv_prog_cc_c89"
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13972$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 13973esac
7083c021 13974if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 13975
212380e3 13976fi
631ef239 13977
7083c021
AC
13978ac_ext=c
13979ac_cpp='$CPP $CPPFLAGS'
13980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13982ac_compiler_gnu=$ac_cv_c_compiler_gnu
13983
13984ac_ext=c
13985ac_cpp='$CPP $CPPFLAGS'
13986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125
AC
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13990$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13991if ${am_cv_prog_cc_c_o+:} false; then :
13992 $as_echo_n "(cached) " >&6
13993else
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995/* end confdefs.h. */
13996
13997int
13998main ()
13999{
14000
14001 ;
14002 return 0;
14003}
14004_ACEOF
14005 # Make sure it works both with $CC and with simple cc.
14006 # Following AC_PROG_CC_C_O, we do the test twice because some
14007 # compilers refuse to overwrite an existing .o file with -o,
14008 # though they will create one.
14009 am_cv_prog_cc_c_o=yes
14010 for am_i in 1 2; do
14011 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14012 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } \
14016 && test -f conftest2.$ac_objext; then
14017 : OK
14018 else
14019 am_cv_prog_cc_c_o=no
14020 break
14021 fi
14022 done
14023 rm -f core conftest*
14024 unset am_i
14025fi
14026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14027$as_echo "$am_cv_prog_cc_c_o" >&6; }
14028if test "$am_cv_prog_cc_c_o" != yes; then
14029 # Losing compiler, so override with the script.
14030 # FIXME: It is wrong to rewrite CC.
14031 # But if we don't then we get into trouble of one sort or another.
14032 # A longer-term fix would be to have automake use am__CC in this case,
14033 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14034 CC="$am_aux_dir/compile $CC"
14035fi
14036ac_ext=c
14037ac_cpp='$CPP $CPPFLAGS'
14038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14040ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083c021
AC
14041
14042
c52df125 14043depcc="$CC" am_compiler_list=
7083c021 14044
c52df125
AC
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14046$as_echo_n "checking dependency style of $depcc... " >&6; }
14047if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14048 $as_echo_n "(cached) " >&6
14049else
14050 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14051 # We make a subdir and do the tests there. Otherwise we can end up
14052 # making bogus files that we don't know about and never remove. For
14053 # instance it was reported that on HP-UX the gcc test will end up
14054 # making a dummy file named 'D' -- because '-MD' means "put the output
14055 # in D".
14056 rm -rf conftest.dir
14057 mkdir conftest.dir
14058 # Copy depcomp to subdir because otherwise we won't find it if we're
14059 # using a relative directory.
14060 cp "$am_depcomp" conftest.dir
14061 cd conftest.dir
14062 # We will build objects and dependencies in a subdirectory because
14063 # it helps to detect inapplicable dependency modes. For instance
14064 # both Tru64's cc and ICC support -MD to output dependencies as a
14065 # side effect of compilation, but ICC will put the dependencies in
14066 # the current directory while Tru64 will put them in the object
14067 # directory.
14068 mkdir sub
14069
14070 am_cv_CC_dependencies_compiler_type=none
14071 if test "$am_compiler_list" = ""; then
14072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1db8e007 14073 fi
c52df125
AC
14074 am__universal=false
14075 case " $depcc " in #(
14076 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14077 esac
14078
14079 for depmode in $am_compiler_list; do
14080 # Setup a source with many dependencies, because some compilers
14081 # like to wrap large dependency lists on column 80 (with \), and
14082 # we should not choose a depcomp mode which is confused by this.
14083 #
14084 # We need to recreate these files for each test, as the compiler may
14085 # overwrite some of them when testing with obscure command lines.
14086 # This happens at least with the AIX C compiler.
14087 : > sub/conftest.c
14088 for i in 1 2 3 4 5 6; do
14089 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14090 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14091 # Solaris 10 /bin/sh.
14092 echo '/* dummy */' > sub/conftst$i.h
14093 done
14094 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14095
14096 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14097 # mode. It turns out that the SunPro C++ compiler does not properly
14098 # handle '-M -o', and we need to detect this. Also, some Intel
14099 # versions had trouble with output in subdirs.
14100 am__obj=sub/conftest.${OBJEXT-o}
14101 am__minus_obj="-o $am__obj"
14102 case $depmode in
14103 gcc)
14104 # This depmode causes a compiler race in universal mode.
14105 test "$am__universal" = false || continue
14106 ;;
14107 nosideeffect)
14108 # After this tag, mechanisms are not by side-effect, so they'll
14109 # only be used when explicitly requested.
14110 if test "x$enable_dependency_tracking" = xyes; then
14111 continue
14112 else
14113 break
14114 fi
14115 ;;
14116 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14117 # This compiler won't grok '-c -o', but also, the minuso test has
14118 # not run yet. These depmodes are late enough in the game, and
14119 # so weak that their functioning should not be impacted.
14120 am__obj=conftest.${OBJEXT-o}
14121 am__minus_obj=
14122 ;;
14123 none) break ;;
14124 esac
14125 if depmode=$depmode \
14126 source=sub/conftest.c object=$am__obj \
14127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14128 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14129 >/dev/null 2>conftest.err &&
14130 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14132 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14134 # icc doesn't choke on unknown options, it will just issue warnings
14135 # or remarks (even with -Werror). So we grep stderr for any message
14136 # that says an option was ignored or not supported.
14137 # When given -MP, icc 7.0 and 7.1 complain thusly:
14138 # icc: Command line warning: ignoring option '-M'; no argument required
14139 # The diagnosis changed in icc 8.0:
14140 # icc: Command line remark: option '-MP' not supported
14141 if (grep 'ignoring option' conftest.err ||
14142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14143 am_cv_CC_dependencies_compiler_type=$depmode
14144 break
14145 fi
14146 fi
14147 done
1db8e007 14148
c52df125
AC
14149 cd ..
14150 rm -rf conftest.dir
14151else
14152 am_cv_CC_dependencies_compiler_type=none
14153fi
1db8e007 14154
c52df125
AC
14155fi
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14157$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14158CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1db8e007 14159
c52df125
AC
14160 if
14161 test "x$enable_dependency_tracking" != xno \
14162 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14163 am__fastdepCC_TRUE=
14164 am__fastdepCC_FALSE='#'
14165else
14166 am__fastdepCC_TRUE='#'
14167 am__fastdepCC_FALSE=
14168fi
1db8e007
JT
14169
14170
c52df125
AC
14171ac_ext=c
14172ac_cpp='$CPP $CPPFLAGS'
14173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14175ac_compiler_gnu=$ac_cv_c_compiler_gnu
1db8e007 14176
7083c021 14177
c52df125 14178CFLAGS="$OLD_CFLAGS"
7083c021 14179
c52df125 14180subdirs="$subdirs libratbox"
7083c021 14181
212380e3 14182
cfa7b5fd 14183if test "$ac_cv_c_compiler_gnu" = yes; then
7083c021 14184 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
212380e3 14185fi
631ef239 14186
7083c021 14187if test "$ac_cv_prog_cc_g" = yes; then
2a19fc3f 14188 IRC_CFLAGS="$IRC_CFLAGS -g"
7083c021 14189fi
7083c021
AC
14190
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
14192$as_echo_n "checking for /dev/null... " >&6; }
14193if test -c /dev/null ; then
14194
14195$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
14196
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14198$as_echo "yes" >&6; }
212380e3 14199else
212380e3 14200
7083c021
AC
14201$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
14202
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
14204$as_echo "no - using devnull.log" >&6; }
212380e3 14205fi
631ef239 14206
7083c021
AC
14207if test ! -z "$CFLAGS"; then
14208 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
212380e3 14209fi
631ef239 14210
7083c021
AC
14211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
14212$as_echo_n "checking for library containing strerror... " >&6; }
b6d0720c 14213if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
14214 $as_echo_n "(cached) " >&6
14215else
14216 ac_func_search_save_LIBS=$LIBS
14217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 14218/* end confdefs.h. */
7083c021
AC
14219
14220/* Override any GCC internal prototype to avoid an error.
14221 Use char because int might match the return type of a GCC
14222 builtin and then its argument prototype would still apply. */
14223#ifdef __cplusplus
14224extern "C"
14225#endif
14226char strerror ();
212380e3
AC
14227int
14228main ()
14229{
7083c021 14230return strerror ();
212380e3
AC
14231 ;
14232 return 0;
14233}
14234_ACEOF
7083c021
AC
14235for ac_lib in '' cposix; do
14236 if test -z "$ac_lib"; then
14237 ac_res="none required"
14238 else
14239 ac_res=-l$ac_lib
14240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14241 fi
14242 if ac_fn_c_try_link "$LINENO"; then :
14243 ac_cv_search_strerror=$ac_res
14244fi
14245rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext
b6d0720c 14247 if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
14248 break
14249fi
14250done
b6d0720c 14251if ${ac_cv_search_strerror+:} false; then :
7083c021 14252
212380e3 14253else
7083c021
AC
14254 ac_cv_search_strerror=no
14255fi
14256rm conftest.$ac_ext
14257LIBS=$ac_func_search_save_LIBS
14258fi
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
14260$as_echo "$ac_cv_search_strerror" >&6; }
14261ac_res=$ac_cv_search_strerror
14262if test "$ac_res" != no; then :
14263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 14264
212380e3 14265fi
631ef239 14266
7083c021
AC
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14268$as_echo_n "checking for inline... " >&6; }
b6d0720c 14269if ${ac_cv_c_inline+:} false; then :
7083c021
AC
14270 $as_echo_n "(cached) " >&6
14271else
14272 ac_cv_c_inline=no
14273for ac_kw in inline __inline__ __inline; do
14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275/* end confdefs.h. */
14276#ifndef __cplusplus
14277typedef int foo_t;
14278static $ac_kw foo_t static_foo () {return 0; }
14279$ac_kw foo_t foo () {return 0; }
14280#endif
14281
14282_ACEOF
14283if ac_fn_c_try_compile "$LINENO"; then :
14284 ac_cv_c_inline=$ac_kw
14285fi
631ef239 14286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021 14287 test "$ac_cv_c_inline" != no && break
212380e3 14288done
7083c021
AC
14289
14290fi
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14292$as_echo "$ac_cv_c_inline" >&6; }
14293
14294case $ac_cv_c_inline in
14295 inline | yes) ;;
14296 *)
14297 case $ac_cv_c_inline in
14298 no) ac_val=;;
14299 *) ac_val=$ac_cv_c_inline;;
14300 esac
14301 cat >>confdefs.h <<_ACEOF
14302#ifndef __cplusplus
14303#define inline $ac_val
14304#endif
14305_ACEOF
14306 ;;
212380e3 14307esac
7083c021
AC
14308
14309if test $ac_cv_c_compiler_gnu = yes; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14311$as_echo_n "checking whether $CC needs -traditional... " >&6; }
b6d0720c 14312if ${ac_cv_prog_gcc_traditional+:} false; then :
7083c021 14313 $as_echo_n "(cached) " >&6
212380e3 14314else
7083c021
AC
14315 ac_pattern="Autoconf.*'x'"
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317/* end confdefs.h. */
14318#include <sgtty.h>
14319Autoconf TIOCGETP
212380e3 14320_ACEOF
7083c021
AC
14321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14322 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14323 ac_cv_prog_gcc_traditional=yes
14324else
14325 ac_cv_prog_gcc_traditional=no
14326fi
14327rm -f conftest*
14328
14329
14330 if test $ac_cv_prog_gcc_traditional = no; then
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 14332/* end confdefs.h. */
7083c021
AC
14333#include <termio.h>
14334Autoconf TCGETA
14335_ACEOF
14336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14337 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14338 ac_cv_prog_gcc_traditional=yes
14339fi
14340rm -f conftest*
212380e3 14341
7083c021
AC
14342 fi
14343fi
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14345$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14346 if test $ac_cv_prog_gcc_traditional = yes; then
14347 CC="$CC -traditional"
14348 fi
14349fi
212380e3 14350
7083c021
AC
14351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14352$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14353set x ${MAKE-make}
14354ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b6d0720c 14355if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7083c021
AC
14356 $as_echo_n "(cached) " >&6
14357else
14358 cat >conftest.make <<\_ACEOF
14359SHELL = /bin/sh
14360all:
14361 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 14362_ACEOF
b6d0720c 14363# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7083c021
AC
14364case `${MAKE-make} -f conftest.make 2>/dev/null` in
14365 *@@@%%%=?*=@@@%%%*)
14366 eval ac_cv_prog_make_${ac_make}_set=yes;;
14367 *)
14368 eval ac_cv_prog_make_${ac_make}_set=no;;
631ef239 14369esac
7083c021
AC
14370rm -f conftest.make
14371fi
14372if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14374$as_echo "yes" >&6; }
14375 SET_MAKE=
14376else
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14378$as_echo "no" >&6; }
c52df125 14379 SET_MAKE="MAKE=${MAKE-make}"
7083c021 14380fi
7083c021 14381
7083c021
AC
14382
14383# Extract the first word of "rm", so it can be a program name with args.
14384set dummy rm; ac_word=$2
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14386$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14387if ${ac_cv_path_RM+:} false; then :
7083c021 14388 $as_echo_n "(cached) " >&6
212380e3 14389else
7083c021
AC
14390 case $RM in
14391 [\\/]* | ?:[\\/]*)
14392 ac_cv_path_RM="$RM" # Let the user override the test with a path.
14393 ;;
14394 *)
14395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396for as_dir in $PATH
14397do
14398 IFS=$as_save_IFS
14399 test -z "$as_dir" && as_dir=.
14400 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14402 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
14403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14404 break 2
14405 fi
14406done
14407 done
14408IFS=$as_save_IFS
212380e3 14409
7083c021
AC
14410 ;;
14411esac
212380e3 14412fi
7083c021
AC
14413RM=$ac_cv_path_RM
14414if test -n "$RM"; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
14416$as_echo "$RM" >&6; }
14417else
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419$as_echo "no" >&6; }
212380e3 14420fi
631ef239
AC
14421
14422
7083c021
AC
14423# Extract the first word of "cp", so it can be a program name with args.
14424set dummy cp; ac_word=$2
14425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14426$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14427if ${ac_cv_path_CP+:} false; then :
7083c021
AC
14428 $as_echo_n "(cached) " >&6
14429else
14430 case $CP in
14431 [\\/]* | ?:[\\/]*)
14432 ac_cv_path_CP="$CP" # Let the user override the test with a path.
14433 ;;
14434 *)
14435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14436for as_dir in $PATH
14437do
14438 IFS=$as_save_IFS
14439 test -z "$as_dir" && as_dir=.
14440 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14442 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
14443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14444 break 2
14445 fi
14446done
14447 done
14448IFS=$as_save_IFS
631ef239 14449
7083c021
AC
14450 ;;
14451esac
14452fi
14453CP=$ac_cv_path_CP
14454if test -n "$CP"; then
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
14456$as_echo "$CP" >&6; }
14457else
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14459$as_echo "no" >&6; }
14460fi
212380e3
AC
14461
14462
7083c021
AC
14463# Extract the first word of "mv", so it can be a program name with args.
14464set dummy mv; ac_word=$2
14465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14466$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14467if ${ac_cv_path_MV+:} false; then :
7083c021 14468 $as_echo_n "(cached) " >&6
212380e3 14469else
7083c021
AC
14470 case $MV in
14471 [\\/]* | ?:[\\/]*)
14472 ac_cv_path_MV="$MV" # Let the user override the test with a path.
14473 ;;
14474 *)
14475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14476for as_dir in $PATH
14477do
14478 IFS=$as_save_IFS
14479 test -z "$as_dir" && as_dir=.
14480 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14482 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
14483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14484 break 2
14485 fi
14486done
14487 done
14488IFS=$as_save_IFS
14489
14490 ;;
631ef239 14491esac
7083c021
AC
14492fi
14493MV=$ac_cv_path_MV
14494if test -n "$MV"; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
14496$as_echo "$MV" >&6; }
212380e3 14497else
7083c021
AC
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14499$as_echo "no" >&6; }
212380e3 14500fi
631ef239 14501
212380e3 14502
7083c021
AC
14503# Extract the first word of "ln", so it can be a program name with args.
14504set dummy ln; ac_word=$2
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14506$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14507if ${ac_cv_path_LN+:} false; then :
7083c021 14508 $as_echo_n "(cached) " >&6
212380e3 14509else
7083c021
AC
14510 case $LN in
14511 [\\/]* | ?:[\\/]*)
14512 ac_cv_path_LN="$LN" # Let the user override the test with a path.
14513 ;;
14514 *)
14515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516for as_dir in $PATH
14517do
14518 IFS=$as_save_IFS
14519 test -z "$as_dir" && as_dir=.
14520 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14522 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
14523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14524 break 2
14525 fi
14526done
14527 done
14528IFS=$as_save_IFS
212380e3 14529
7083c021 14530 ;;
631ef239 14531esac
7083c021
AC
14532fi
14533LN=$ac_cv_path_LN
14534if test -n "$LN"; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
14536$as_echo "$LN" >&6; }
212380e3 14537else
7083c021
AC
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14539$as_echo "no" >&6; }
212380e3 14540fi
631ef239 14541
7083c021
AC
14542
14543# Extract the first word of "sed", so it can be a program name with args.
14544set dummy sed; ac_word=$2
14545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14546$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14547if ${ac_cv_path_SED+:} false; then :
7083c021
AC
14548 $as_echo_n "(cached) " >&6
14549else
14550 case $SED in
14551 [\\/]* | ?:[\\/]*)
14552 ac_cv_path_SED="$SED" # Let the user override the test with a path.
14553 ;;
14554 *)
14555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14556for as_dir in $PATH
14557do
14558 IFS=$as_save_IFS
14559 test -z "$as_dir" && as_dir=.
14560 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14562 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14564 break 2
14565 fi
14566done
212380e3 14567 done
7083c021
AC
14568IFS=$as_save_IFS
14569
14570 ;;
14571esac
14572fi
14573SED=$ac_cv_path_SED
14574if test -n "$SED"; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14576$as_echo "$SED" >&6; }
212380e3 14577else
7083c021
AC
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579$as_echo "no" >&6; }
14580fi
212380e3 14581
212380e3 14582
7083c021
AC
14583# Extract the first word of "ar", so it can be a program name with args.
14584set dummy ar; ac_word=$2
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14586$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14587if ${ac_cv_path_AR+:} false; then :
7083c021
AC
14588 $as_echo_n "(cached) " >&6
14589else
14590 case $AR in
14591 [\\/]* | ?:[\\/]*)
14592 ac_cv_path_AR="$AR" # Let the user override the test with a path.
14593 ;;
14594 *)
14595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14596for as_dir in $PATH
14597do
14598 IFS=$as_save_IFS
14599 test -z "$as_dir" && as_dir=.
14600 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14602 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
14603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14604 break 2
14605 fi
14606done
14607 done
14608IFS=$as_save_IFS
212380e3 14609
7083c021 14610 ;;
631ef239 14611esac
7083c021
AC
14612fi
14613AR=$ac_cv_path_AR
14614if test -n "$AR"; then
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14616$as_echo "$AR" >&6; }
212380e3 14617else
7083c021
AC
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619$as_echo "no" >&6; }
212380e3 14620fi
631ef239 14621
7083c021
AC
14622
14623# Extract the first word of "ld", so it can be a program name with args.
14624set dummy ld; ac_word=$2
14625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14626$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14627if ${ac_cv_path_LD+:} false; then :
7083c021 14628 $as_echo_n "(cached) " >&6
212380e3 14629else
7083c021
AC
14630 case $LD in
14631 [\\/]* | ?:[\\/]*)
14632 ac_cv_path_LD="$LD" # Let the user override the test with a path.
14633 ;;
14634 *)
14635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14636for as_dir in $PATH
14637do
14638 IFS=$as_save_IFS
14639 test -z "$as_dir" && as_dir=.
14640 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14642 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
14643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14644 break 2
14645 fi
14646done
14647 done
14648IFS=$as_save_IFS
212380e3 14649
7083c021
AC
14650 ;;
14651esac
212380e3 14652fi
7083c021
AC
14653LD=$ac_cv_path_LD
14654if test -n "$LD"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14656$as_echo "$LD" >&6; }
14657else
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14659$as_echo "no" >&6; }
212380e3 14660fi
631ef239 14661
212380e3 14662
7083c021
AC
14663# Extract the first word of "ranlib", so it can be a program name with args.
14664set dummy ranlib; ac_word=$2
14665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14666$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14667if ${ac_cv_path_RANLIB+:} false; then :
7083c021 14668 $as_echo_n "(cached) " >&6
212380e3 14669else
7083c021
AC
14670 case $RANLIB in
14671 [\\/]* | ?:[\\/]*)
14672 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
14673 ;;
14674 *)
14675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14676for as_dir in $PATH
14677do
14678 IFS=$as_save_IFS
14679 test -z "$as_dir" && as_dir=.
14680 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14682 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
14683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14684 break 2
14685 fi
14686done
14687 done
14688IFS=$as_save_IFS
212380e3 14689
7083c021
AC
14690 ;;
14691esac
14692fi
14693RANLIB=$ac_cv_path_RANLIB
14694if test -n "$RANLIB"; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14696$as_echo "$RANLIB" >&6; }
14697else
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14699$as_echo "no" >&6; }
212380e3 14700fi
631ef239 14701
7083c021
AC
14702
14703# Extract the first word of "touch", so it can be a program name with args.
14704set dummy touch; ac_word=$2
14705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14706$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14707if ${ac_cv_path_TOUCH+:} false; then :
7083c021
AC
14708 $as_echo_n "(cached) " >&6
14709else
14710 case $TOUCH in
14711 [\\/]* | ?:[\\/]*)
14712 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
14713 ;;
14714 *)
14715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14716for as_dir in $PATH
14717do
14718 IFS=$as_save_IFS
14719 test -z "$as_dir" && as_dir=.
14720 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14722 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
14723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14724 break 2
14725 fi
212380e3 14726done
7083c021
AC
14727 done
14728IFS=$as_save_IFS
14729
14730 ;;
212380e3 14731esac
7083c021
AC
14732fi
14733TOUCH=$ac_cv_path_TOUCH
14734if test -n "$TOUCH"; then
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
14736$as_echo "$TOUCH" >&6; }
212380e3 14737else
7083c021
AC
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14739$as_echo "no" >&6; }
14740fi
212380e3 14741
212380e3 14742
7083c021
AC
14743
14744for ac_prog in 'bison -y' byacc
14745do
14746 # Extract the first word of "$ac_prog", so it can be a program name with args.
14747set dummy $ac_prog; ac_word=$2
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14749$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14750if ${ac_cv_prog_YACC+:} false; then :
7083c021 14751 $as_echo_n "(cached) " >&6
212380e3 14752else
7083c021
AC
14753 if test -n "$YACC"; then
14754 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14755else
14756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757for as_dir in $PATH
14758do
14759 IFS=$as_save_IFS
14760 test -z "$as_dir" && as_dir=.
14761 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14763 ac_cv_prog_YACC="$ac_prog"
14764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14765 break 2
14766 fi
14767done
14768 done
14769IFS=$as_save_IFS
212380e3 14770
212380e3
AC
14771fi
14772fi
7083c021
AC
14773YACC=$ac_cv_prog_YACC
14774if test -n "$YACC"; then
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14776$as_echo "$YACC" >&6; }
14777else
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779$as_echo "no" >&6; }
212380e3 14780fi
631ef239
AC
14781
14782
7083c021
AC
14783 test -n "$YACC" && break
14784done
14785test -n "$YACC" || YACC="yacc"
212380e3
AC
14786
14787
7083c021 14788if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
b6d0720c 14789 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
7083c021 14790fi
212380e3 14791
7083c021
AC
14792for ac_prog in flex lex
14793do
14794 # Extract the first word of "$ac_prog", so it can be a program name with args.
14795set dummy $ac_prog; ac_word=$2
14796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14797$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14798if ${ac_cv_prog_LEX+:} false; then :
7083c021 14799 $as_echo_n "(cached) " >&6
212380e3 14800else
7083c021
AC
14801 if test -n "$LEX"; then
14802 ac_cv_prog_LEX="$LEX" # Let the user override the test.
212380e3 14803else
7083c021
AC
14804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805for as_dir in $PATH
14806do
14807 IFS=$as_save_IFS
14808 test -z "$as_dir" && as_dir=.
14809 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14811 ac_cv_prog_LEX="$ac_prog"
14812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14813 break 2
14814 fi
631ef239 14815done
7083c021
AC
14816 done
14817IFS=$as_save_IFS
631ef239 14818
7083c021
AC
14819fi
14820fi
14821LEX=$ac_cv_prog_LEX
14822if test -n "$LEX"; then
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14824$as_echo "$LEX" >&6; }
631ef239 14825else
7083c021
AC
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14827$as_echo "no" >&6; }
631ef239
AC
14828fi
14829
14830
7083c021
AC
14831 test -n "$LEX" && break
14832done
14833test -n "$LEX" || LEX=":"
212380e3 14834
7083c021
AC
14835if test "x$LEX" != "x:"; then
14836 cat >conftest.l <<_ACEOF
14837%%
14838a { ECHO; }
14839b { REJECT; }
14840c { yymore (); }
14841d { yyless (1); }
2eff3833
JT
14842e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
14843 yyless ((input () != 0)); }
7083c021
AC
14844f { unput (yytext[0]); }
14845. { BEGIN INITIAL; }
14846%%
14847#ifdef YYTEXT_POINTER
14848extern char *yytext;
212380e3 14849#endif
212380e3 14850int
7083c021 14851main (void)
212380e3 14852{
7083c021 14853 return ! yylex () + ! yywrap ();
212380e3
AC
14854}
14855_ACEOF
7083c021 14856{ { ac_try="$LEX conftest.l"
631ef239
AC
14857case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860esac
7083c021
AC
14861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14862$as_echo "$ac_try_echo"; } >&5
14863 (eval "$LEX conftest.l") 2>&5
212380e3 14864 ac_status=$?
7083c021
AC
14865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14866 test $ac_status = 0; }
14867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14868$as_echo_n "checking lex output file root... " >&6; }
b6d0720c 14869if ${ac_cv_prog_lex_root+:} false; then :
7083c021 14870 $as_echo_n "(cached) " >&6
212380e3 14871else
212380e3 14872
7083c021
AC
14873if test -f lex.yy.c; then
14874 ac_cv_prog_lex_root=lex.yy
14875elif test -f lexyy.c; then
14876 ac_cv_prog_lex_root=lexyy
14877else
b6d0720c 14878 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7083c021
AC
14879fi
14880fi
14881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14882$as_echo "$ac_cv_prog_lex_root" >&6; }
14883LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14884
14885if test -z "${LEXLIB+set}"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14887$as_echo_n "checking lex library... " >&6; }
b6d0720c 14888if ${ac_cv_lib_lex+:} false; then :
7083c021
AC
14889 $as_echo_n "(cached) " >&6
14890else
631ef239 14891
7083c021
AC
14892 ac_save_LIBS=$LIBS
14893 ac_cv_lib_lex='none needed'
14894 for ac_lib in '' -lfl -ll; do
14895 LIBS="$ac_lib $ac_save_LIBS"
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897/* end confdefs.h. */
14898`cat $LEX_OUTPUT_ROOT.c`
14899_ACEOF
14900if ac_fn_c_try_link "$LINENO"; then :
14901 ac_cv_lib_lex=$ac_lib
212380e3 14902fi
7083c021
AC
14903rm -f core conftest.err conftest.$ac_objext \
14904 conftest$ac_exeext conftest.$ac_ext
14905 test "$ac_cv_lib_lex" != 'none needed' && break
14906 done
14907 LIBS=$ac_save_LIBS
631ef239 14908
631ef239 14909fi
7083c021
AC
14910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14911$as_echo "$ac_cv_lib_lex" >&6; }
14912 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14913fi
14914
14915
14916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14917$as_echo_n "checking whether yytext is a pointer... " >&6; }
b6d0720c 14918if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7083c021 14919 $as_echo_n "(cached) " >&6
631ef239 14920else
7083c021
AC
14921 # POSIX says lex can declare yytext either as a pointer or an array; the
14922# default is implementation-dependent. Figure out which it is, since
14923# not all implementations provide the %pointer and %array declarations.
14924ac_cv_prog_lex_yytext_pointer=no
14925ac_save_LIBS=$LIBS
14926LIBS="$LEXLIB $ac_save_LIBS"
14927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928/* end confdefs.h. */
b6d0720c
AC
14929
14930 #define YYTEXT_POINTER 1
7083c021
AC
14931`cat $LEX_OUTPUT_ROOT.c`
14932_ACEOF
14933if ac_fn_c_try_link "$LINENO"; then :
14934 ac_cv_prog_lex_yytext_pointer=yes
212380e3 14935fi
7083c021
AC
14936rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938LIBS=$ac_save_LIBS
14939
212380e3 14940fi
7083c021
AC
14941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14942$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14943if test $ac_cv_prog_lex_yytext_pointer = yes; then
212380e3 14944
7083c021
AC
14945$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14946
14947fi
14948rm -f conftest.l $LEX_OUTPUT_ROOT.c
14949
14950fi
14951
14952if test "$LEX" = ":"; then
b6d0720c 14953 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
212380e3
AC
14954fi
14955
9f9b7042
NPB
14956# Check whether --enable-fhs-paths was given.
14957if test "${enable_fhs_paths+set}" = set; then :
14958 enableval=$enable_fhs_paths;
14959else
14960 if test "$libexecdir" = '${exec_prefix}/libexec' && \
14961 test "$localstatedir" = '${prefix}/var' && \
14962 test "$libdir" = '${exec_prefix}/lib'; then :
14963 enable_fhs_paths=no
14964else
14965 enable_fhs_paths=yes
14966fi
14967
14968fi
14969
14970if test "x$enable_fhs_paths" = "xyes"; then :
14971 pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}'
14972 rundir=${rundir-'${prefix}/run'}
14973 pkgrundir='${rundir}/${PACKAGE_TARNAME}'
14974 pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}'
14975else
14976 libexecdir='${bindir}'
14977 pkglibexecdir='${libexecdir}'
14978 rundir='${sysconfdir}'
14979 pkgrundir='${rundir}'
7083c021 14980 localstatedir='${prefix}'
9f9b7042 14981 pkglocalstatedir='${sysconfdir}'
631ef239 14982fi
9f9b7042
NPB
14983pkglibdir='${libdir}/${PACKAGE_TARNAME}'
14984
14985
14986
14987
14988
14989 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14991 last_ac_define_dir=`eval echo $pkglocalstatedir`
14992 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 14993 ac_define_dir_counter=0
9f9b7042
NPB
14994 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
14995 last_ac_define_dir="$ac_define_dir"
14996 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
14997 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
14998 if test "x$ac_define_dir_counter" = x128; then :
14999 as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5
15000 break
15001fi
9f9b7042
NPB
15002 done
15003 PKGLOCALSTATEDIR="$ac_define_dir"
15004
15005
15006cat >>confdefs.h <<_ACEOF
15007#define PKGLOCALSTATEDIR "$ac_define_dir"
15008_ACEOF
15009
15010
15011
15012
15013 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15014 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15015 last_ac_define_dir=`eval echo $pkglibexecdir`
15016 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 15017 ac_define_dir_counter=0
9f9b7042
NPB
15018 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
15019 last_ac_define_dir="$ac_define_dir"
15020 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
15021 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
15022 if test "x$ac_define_dir_counter" = x128; then :
15023 as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5
15024 break
15025fi
9f9b7042
NPB
15026 done
15027 PKGLIBEXECDIR="$ac_define_dir"
15028
15029
15030cat >>confdefs.h <<_ACEOF
15031#define PKGLIBEXECDIR "$ac_define_dir"
15032_ACEOF
15033
15034
212380e3 15035
7083c021
AC
15036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15037$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 15038if ${ac_cv_header_stdc+:} false; then :
7083c021 15039 $as_echo_n "(cached) " >&6
212380e3 15040else
7083c021 15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15042/* end confdefs.h. */
7083c021
AC
15043#include <stdlib.h>
15044#include <stdarg.h>
15045#include <string.h>
15046#include <float.h>
212380e3
AC
15047
15048int
15049main ()
15050{
7083c021 15051
212380e3
AC
15052 ;
15053 return 0;
15054}
15055_ACEOF
7083c021
AC
15056if ac_fn_c_try_compile "$LINENO"; then :
15057 ac_cv_header_stdc=yes
212380e3 15058else
7083c021 15059 ac_cv_header_stdc=no
212380e3 15060fi
631ef239 15061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 15062
7083c021
AC
15063if test $ac_cv_header_stdc = yes; then
15064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066/* end confdefs.h. */
15067#include <string.h>
15068
212380e3 15069_ACEOF
7083c021
AC
15070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15071 $EGREP "memchr" >/dev/null 2>&1; then :
15072
15073else
15074 ac_cv_header_stdc=no
15075fi
15076rm -f conftest*
212380e3
AC
15077
15078fi
15079
7083c021
AC
15080if test $ac_cv_header_stdc = yes; then
15081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083/* end confdefs.h. */
15084#include <stdlib.h>
15085
15086_ACEOF
15087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15088 $EGREP "free" >/dev/null 2>&1; then :
212380e3 15089
212380e3 15090else
7083c021 15091 ac_cv_header_stdc=no
631ef239 15092fi
7083c021 15093rm -f conftest*
631ef239 15094
7083c021 15095fi
212380e3 15096
7083c021
AC
15097if test $ac_cv_header_stdc = yes; then
15098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15099 if test "$cross_compiling" = yes; then :
15100 :
212380e3 15101else
7083c021 15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15103/* end confdefs.h. */
7083c021
AC
15104#include <ctype.h>
15105#include <stdlib.h>
15106#if ((' ' & 0x0FF) == 0x020)
15107# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15108# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15109#else
15110# define ISLOWER(c) \
15111 (('a' <= (c) && (c) <= 'i') \
15112 || ('j' <= (c) && (c) <= 'r') \
15113 || ('s' <= (c) && (c) <= 'z'))
15114# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
212380e3 15115#endif
7083c021
AC
15116
15117#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
15118int
15119main ()
15120{
7083c021
AC
15121 int i;
15122 for (i = 0; i < 256; i++)
15123 if (XOR (islower (i), ISLOWER (i))
15124 || toupper (i) != TOUPPER (i))
15125 return 2;
212380e3
AC
15126 return 0;
15127}
15128_ACEOF
7083c021 15129if ac_fn_c_try_run "$LINENO"; then :
212380e3 15130
7083c021
AC
15131else
15132 ac_cv_header_stdc=no
631ef239 15133fi
7083c021
AC
15134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15135 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 15136fi
7083c021 15137
212380e3 15138fi
212380e3 15139fi
7083c021
AC
15140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15141$as_echo "$ac_cv_header_stdc" >&6; }
15142if test $ac_cv_header_stdc = yes; then
15143
15144$as_echo "#define STDC_HEADERS 1" >>confdefs.h
212380e3
AC
15145
15146fi
15147
15148
7083c021
AC
15149for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h
15150do :
15151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15152ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
b6d0720c 15153if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
15154 cat >>confdefs.h <<_ACEOF
15155#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15156_ACEOF
212380e3 15157
212380e3
AC
15158fi
15159
7083c021 15160done
212380e3
AC
15161
15162
212380e3 15163
7083c021
AC
15164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15165$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b6d0720c 15166if ${ac_cv_c_const+:} false; then :
7083c021
AC
15167 $as_echo_n "(cached) " >&6
15168else
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170/* end confdefs.h. */
212380e3 15171
7083c021
AC
15172int
15173main ()
15174{
2eff3833 15175
7083c021 15176#ifndef __cplusplus
2eff3833 15177 /* Ultrix mips cc rejects this sort of thing. */
7083c021 15178 typedef int charset[2];
2eff3833 15179 const charset cs = { 0, 0 };
7083c021
AC
15180 /* SunOS 4.1.1 cc rejects this. */
15181 char const *const *pcpcc;
15182 char **ppc;
15183 /* NEC SVR4.0.2 mips cc rejects this. */
15184 struct point {int x, y;};
15185 static struct point const zero = {0,0};
15186 /* AIX XL C 1.02.0.0 rejects this.
15187 It does not let you subtract one const X* pointer from another in
15188 an arm of an if-expression whose if-part is not a constant
15189 expression */
15190 const char *g = "string";
15191 pcpcc = &g + (g ? g-g : 0);
15192 /* HPUX 7.0 cc rejects these. */
15193 ++pcpcc;
15194 ppc = (char**) pcpcc;
15195 pcpcc = (char const *const *) ppc;
2eff3833
JT
15196 { /* SCO 3.2v4 cc rejects this sort of thing. */
15197 char tx;
15198 char *t = &tx;
7083c021 15199 char const *s = 0 ? (char *) 0 : (char const *) 0;
212380e3 15200
7083c021
AC
15201 *t++ = 0;
15202 if (s) return 0;
15203 }
15204 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15205 int x[] = {25, 17};
15206 const int *foo = &x[0];
15207 ++foo;
15208 }
15209 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15210 typedef const int *iptr;
15211 iptr p = 0;
15212 ++p;
15213 }
2eff3833 15214 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7083c021 15215 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2eff3833
JT
15216 struct s { int j; const int *ap[3]; } bx;
15217 struct s *b = &bx; b->j = 5;
7083c021
AC
15218 }
15219 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15220 const int foo = 10;
15221 if (!foo) return 0;
15222 }
15223 return !cs[0] && !zero.x;
15224#endif
212380e3 15225
7083c021
AC
15226 ;
15227 return 0;
15228}
212380e3 15229_ACEOF
7083c021
AC
15230if ac_fn_c_try_compile "$LINENO"; then :
15231 ac_cv_c_const=yes
212380e3 15232else
7083c021 15233 ac_cv_c_const=no
212380e3 15234fi
631ef239 15235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 15236fi
7083c021
AC
15237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15238$as_echo "$ac_cv_c_const" >&6; }
15239if test $ac_cv_c_const = no; then
212380e3 15240
7083c021 15241$as_echo "#define const /**/" >>confdefs.h
212380e3
AC
15242
15243fi
15244
7083c021
AC
15245if test "$ac_cv_header_machine_endian_h" = "no" ; then
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15247$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 15248if ${ac_cv_c_bigendian+:} false; then :
7083c021 15249 $as_echo_n "(cached) " >&6
212380e3 15250else
7083c021
AC
15251 ac_cv_c_bigendian=unknown
15252 # See if we're dealing with a universal compiler.
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254/* end confdefs.h. */
15255#ifndef __APPLE_CC__
15256 not a universal capable compiler
15257 #endif
15258 typedef int dummy;
15259
15260_ACEOF
15261if ac_fn_c_try_compile "$LINENO"; then :
15262
15263 # Check for potential -arch flags. It is not universal unless
15264 # there are at least two -arch flags with different values.
15265 ac_arch=
15266 ac_prev=
15267 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15268 if test -n "$ac_prev"; then
15269 case $ac_word in
15270 i?86 | x86_64 | ppc | ppc64)
15271 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15272 ac_arch=$ac_word
15273 else
15274 ac_cv_c_bigendian=universal
15275 break
15276 fi
15277 ;;
15278 esac
15279 ac_prev=
15280 elif test "x$ac_word" = "x-arch"; then
15281 ac_prev=arch
15282 fi
15283 done
15284fi
15285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286 if test $ac_cv_c_bigendian = unknown; then
15287 # See if sys/param.h defines the BYTE_ORDER macro.
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15289/* end confdefs.h. */
15290#include <sys/types.h>
7083c021 15291 #include <sys/param.h>
212380e3
AC
15292
15293int
15294main ()
15295{
7083c021
AC
15296#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15297 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15298 && LITTLE_ENDIAN)
15299 bogus endian macros
15300 #endif
212380e3
AC
15301
15302 ;
15303 return 0;
15304}
15305_ACEOF
7083c021 15306if ac_fn_c_try_compile "$LINENO"; then :
212380e3 15307 # It does; now see whether it defined to BIG_ENDIAN or not.
7083c021 15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15309/* end confdefs.h. */
15310#include <sys/types.h>
7083c021 15311 #include <sys/param.h>
212380e3
AC
15312
15313int
15314main ()
15315{
15316#if BYTE_ORDER != BIG_ENDIAN
7083c021
AC
15317 not big endian
15318 #endif
212380e3
AC
15319
15320 ;
15321 return 0;
15322}
15323_ACEOF
7083c021 15324if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
15325 ac_cv_c_bigendian=yes
15326else
7083c021 15327 ac_cv_c_bigendian=no
212380e3 15328fi
631ef239 15329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
15330fi
15331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15332 fi
15333 if test $ac_cv_c_bigendian = unknown; then
15334 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336/* end confdefs.h. */
15337#include <limits.h>
212380e3 15338
7083c021
AC
15339int
15340main ()
15341{
15342#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15343 bogus endian macros
15344 #endif
15345
15346 ;
15347 return 0;
15348}
212380e3 15349_ACEOF
7083c021
AC
15350if ac_fn_c_try_compile "$LINENO"; then :
15351 # It does; now see whether it defined to _BIG_ENDIAN or not.
15352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15353/* end confdefs.h. */
7083c021
AC
15354#include <limits.h>
15355
212380e3
AC
15356int
15357main ()
15358{
7083c021
AC
15359#ifndef _BIG_ENDIAN
15360 not big endian
15361 #endif
15362
212380e3
AC
15363 ;
15364 return 0;
15365}
15366_ACEOF
7083c021 15367if ac_fn_c_try_compile "$LINENO"; then :
212380e3 15368 ac_cv_c_bigendian=yes
7083c021
AC
15369else
15370 ac_cv_c_bigendian=no
212380e3 15371fi
7083c021 15372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 15373fi
7083c021
AC
15374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 fi
15376 if test $ac_cv_c_bigendian = unknown; then
15377 # Compile a test program.
15378 if test "$cross_compiling" = yes; then :
15379 # Try to guess by grepping values from an object file.
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381/* end confdefs.h. */
15382short int ascii_mm[] =
15383 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15384 short int ascii_ii[] =
15385 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15386 int use_ascii (int i) {
15387 return ascii_mm[i] + ascii_ii[i];
15388 }
15389 short int ebcdic_ii[] =
15390 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15391 short int ebcdic_mm[] =
15392 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15393 int use_ebcdic (int i) {
15394 return ebcdic_mm[i] + ebcdic_ii[i];
15395 }
15396 extern int foo;
631ef239 15397
7083c021
AC
15398int
15399main ()
15400{
15401return use_ascii (foo) == use_ebcdic (foo);
15402 ;
15403 return 0;
15404}
15405_ACEOF
15406if ac_fn_c_try_compile "$LINENO"; then :
15407 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15408 ac_cv_c_bigendian=yes
15409 fi
15410 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15411 if test "$ac_cv_c_bigendian" = unknown; then
15412 ac_cv_c_bigendian=no
15413 else
15414 # finding both strings is unlikely to happen, but who knows?
15415 ac_cv_c_bigendian=unknown
15416 fi
15417 fi
212380e3 15418fi
631ef239 15419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 15420else
7083c021 15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15422/* end confdefs.h. */
631ef239 15423$ac_includes_default
212380e3
AC
15424int
15425main ()
15426{
631ef239 15427
7083c021
AC
15428 /* Are we little or big endian? From Harbison&Steele. */
15429 union
15430 {
15431 long int l;
15432 char c[sizeof (long int)];
15433 } u;
15434 u.l = 1;
15435 return u.c[sizeof (long int) - 1] == 1;
631ef239
AC
15436
15437 ;
15438 return 0;
212380e3
AC
15439}
15440_ACEOF
7083c021 15441if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
15442 ac_cv_c_bigendian=no
15443else
7083c021 15444 ac_cv_c_bigendian=yes
212380e3 15445fi
7083c021
AC
15446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15447 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 15448fi
631ef239 15449
7083c021 15450 fi
212380e3 15451fi
7083c021
AC
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15453$as_echo "$ac_cv_c_bigendian" >&6; }
15454 case $ac_cv_c_bigendian in #(
15455 yes)
15456 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15457;; #(
15458 no)
15459 ;; #(
15460 universal)
15461
15462$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15463
15464 ;; #(
15465 *)
b6d0720c 15466 as_fn_error $? "unknown endianness
7083c021
AC
15467 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15468 esac
631ef239 15469
212380e3 15470fi
7083c021 15471ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
b6d0720c 15472if test "x$ac_cv_type_pid_t" = xyes; then :
212380e3 15473
7083c021 15474else
212380e3 15475
7083c021
AC
15476cat >>confdefs.h <<_ACEOF
15477#define pid_t int
15478_ACEOF
212380e3 15479
212380e3 15480fi
7083c021
AC
15481
15482ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
b6d0720c 15483if test "x$ac_cv_type_size_t" = xyes; then :
7083c021 15484
212380e3 15485else
7083c021
AC
15486
15487cat >>confdefs.h <<_ACEOF
15488#define size_t unsigned int
212380e3 15489_ACEOF
7083c021
AC
15490
15491fi
15492
15493# The cast to long int works around a bug in the HP C Compiler
15494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15496# This bug is HP SR number 8606223364.
15497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15498$as_echo_n "checking size of short... " >&6; }
b6d0720c 15499if ${ac_cv_sizeof_short+:} false; then :
7083c021 15500 $as_echo_n "(cached) " >&6
212380e3 15501else
7083c021
AC
15502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15503
15504else
15505 if test "$ac_cv_type_short" = yes; then
15506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
15508as_fn_error 77 "cannot compute sizeof (short)
15509See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
15510 else
15511 ac_cv_sizeof_short=0
15512 fi
15513fi
212380e3 15514
212380e3 15515fi
7083c021
AC
15516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15517$as_echo "$ac_cv_sizeof_short" >&6; }
631ef239 15518
212380e3 15519
7083c021
AC
15520
15521cat >>confdefs.h <<_ACEOF
15522#define SIZEOF_SHORT $ac_cv_sizeof_short
212380e3 15523_ACEOF
7083c021
AC
15524
15525
15526# The cast to long int works around a bug in the HP C Compiler
15527# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15528# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15529# This bug is HP SR number 8606223364.
15530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15531$as_echo_n "checking size of int... " >&6; }
b6d0720c 15532if ${ac_cv_sizeof_int+:} false; then :
7083c021
AC
15533 $as_echo_n "(cached) " >&6
15534else
15535 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15536
15537else
15538 if test "$ac_cv_type_int" = yes; then
15539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
15541as_fn_error 77 "cannot compute sizeof (int)
15542See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
15543 else
15544 ac_cv_sizeof_int=0
15545 fi
15546fi
15547
15548fi
15549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15550$as_echo "$ac_cv_sizeof_int" >&6; }
15551
15552
15553
15554cat >>confdefs.h <<_ACEOF
15555#define SIZEOF_INT $ac_cv_sizeof_int
212380e3 15556_ACEOF
7083c021
AC
15557
15558
15559# The cast to long int works around a bug in the HP C Compiler
15560# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15561# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15562# This bug is HP SR number 8606223364.
15563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15564$as_echo_n "checking size of long... " >&6; }
b6d0720c 15565if ${ac_cv_sizeof_long+:} false; then :
7083c021 15566 $as_echo_n "(cached) " >&6
212380e3 15567else
7083c021 15568 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
212380e3 15569
7083c021
AC
15570else
15571 if test "$ac_cv_type_long" = yes; then
15572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
15574as_fn_error 77 "cannot compute sizeof (long)
15575See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
15576 else
15577 ac_cv_sizeof_long=0
15578 fi
212380e3 15579fi
631ef239 15580
7083c021
AC
15581fi
15582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15583$as_echo "$ac_cv_sizeof_long" >&6; }
212380e3 15584
631ef239 15585
7083c021
AC
15586
15587cat >>confdefs.h <<_ACEOF
15588#define SIZEOF_LONG $ac_cv_sizeof_long
15589_ACEOF
15590
15591
15592# The cast to long int works around a bug in the HP C Compiler
15593# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15594# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15595# This bug is HP SR number 8606223364.
15596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15597$as_echo_n "checking size of long long... " >&6; }
b6d0720c 15598if ${ac_cv_sizeof_long_long+:} false; then :
7083c021
AC
15599 $as_echo_n "(cached) " >&6
15600else
15601 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
15602
212380e3 15603else
7083c021
AC
15604 if test "$ac_cv_type_long_long" = yes; then
15605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
15607as_fn_error 77 "cannot compute sizeof (long long)
15608See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
15609 else
15610 ac_cv_sizeof_long_long=0
15611 fi
212380e3 15612fi
212380e3
AC
15613
15614fi
7083c021
AC
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15616$as_echo "$ac_cv_sizeof_long_long" >&6; }
212380e3
AC
15617
15618
15619
7083c021
AC
15620cat >>confdefs.h <<_ACEOF
15621#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15622_ACEOF
212380e3 15623
212380e3 15624
212380e3 15625
7083c021
AC
15626
15627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15628$as_echo_n "checking for library containing socket... " >&6; }
b6d0720c 15629if ${ac_cv_search_socket+:} false; then :
7083c021
AC
15630 $as_echo_n "(cached) " >&6
15631else
15632 ac_func_search_save_LIBS=$LIBS
15633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15634/* end confdefs.h. */
7083c021
AC
15635
15636/* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
15639#ifdef __cplusplus
15640extern "C"
15641#endif
15642char socket ();
212380e3
AC
15643int
15644main ()
15645{
7083c021 15646return socket ();
212380e3
AC
15647 ;
15648 return 0;
15649}
15650_ACEOF
7083c021
AC
15651for ac_lib in '' socket; do
15652 if test -z "$ac_lib"; then
15653 ac_res="none required"
15654 else
15655 ac_res=-l$ac_lib
15656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15657 fi
15658 if ac_fn_c_try_link "$LINENO"; then :
15659 ac_cv_search_socket=$ac_res
15660fi
15661rm -f core conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext
b6d0720c 15663 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
15664 break
15665fi
15666done
b6d0720c 15667if ${ac_cv_search_socket+:} false; then :
212380e3
AC
15668
15669else
7083c021
AC
15670 ac_cv_search_socket=no
15671fi
15672rm conftest.$ac_ext
15673LIBS=$ac_func_search_save_LIBS
15674fi
15675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15676$as_echo "$ac_cv_search_socket" >&6; }
15677ac_res=$ac_cv_search_socket
15678if test "$ac_res" != no; then :
15679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 15680
7083c021 15681else
b6d0720c 15682 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
212380e3 15683fi
631ef239 15684
212380e3 15685
7083c021
AC
15686if test x"$SUN" = xyes; then
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
15688$as_echo_n "checking for library containing inet_ntoa... " >&6; }
b6d0720c 15689if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
15690 $as_echo_n "(cached) " >&6
15691else
15692 ac_func_search_save_LIBS=$LIBS
15693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15694/* end confdefs.h. */
7083c021
AC
15695
15696/* Override any GCC internal prototype to avoid an error.
15697 Use char because int might match the return type of a GCC
15698 builtin and then its argument prototype would still apply. */
15699#ifdef __cplusplus
15700extern "C"
15701#endif
15702char inet_ntoa ();
212380e3
AC
15703int
15704main ()
15705{
7083c021 15706return inet_ntoa ();
212380e3
AC
15707 ;
15708 return 0;
15709}
15710_ACEOF
7083c021
AC
15711for ac_lib in '' nsl; do
15712 if test -z "$ac_lib"; then
15713 ac_res="none required"
15714 else
15715 ac_res=-l$ac_lib
15716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15717 fi
15718 if ac_fn_c_try_link "$LINENO"; then :
15719 ac_cv_search_inet_ntoa=$ac_res
15720fi
15721rm -f core conftest.err conftest.$ac_objext \
15722 conftest$ac_exeext
b6d0720c 15723 if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
15724 break
15725fi
15726done
b6d0720c 15727if ${ac_cv_search_inet_ntoa+:} false; then :
212380e3
AC
15728
15729else
7083c021
AC
15730 ac_cv_search_inet_ntoa=no
15731fi
15732rm conftest.$ac_ext
15733LIBS=$ac_func_search_save_LIBS
15734fi
15735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
15736$as_echo "$ac_cv_search_inet_ntoa" >&6; }
15737ac_res=$ac_cv_search_inet_ntoa
15738if test "$ac_res" != no; then :
15739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 15740
7083c021 15741else
b6d0720c 15742 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
212380e3 15743fi
631ef239 15744
7083c021 15745fi
212380e3 15746
7083c021
AC
15747ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
15748#include <sys/socket.h>
15749"
b6d0720c 15750if test "x$ac_cv_type_socklen_t" = xyes; then :
212380e3
AC
15751
15752else
15753
7083c021 15754$as_echo "#define socklen_t unsigned int" >>confdefs.h
212380e3 15755
7083c021 15756fi
212380e3
AC
15757
15758
7083c021
AC
15759# Check whether --enable-ipv6 was given.
15760if test "${enable_ipv6+set}" = set; then :
15761 enableval=$enable_ipv6; ipv6=$enableval
212380e3 15762else
7083c021
AC
15763 ipv6=no
15764fi
212380e3 15765
212380e3 15766
7083c021
AC
15767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15768$as_echo_n "checking for library containing crypt... " >&6; }
b6d0720c 15769if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
15770 $as_echo_n "(cached) " >&6
15771else
15772 ac_func_search_save_LIBS=$LIBS
15773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774/* end confdefs.h. */
212380e3 15775
631ef239
AC
15776/* Override any GCC internal prototype to avoid an error.
15777 Use char because int might match the return type of a GCC
15778 builtin and then its argument prototype would still apply. */
212380e3
AC
15779#ifdef __cplusplus
15780extern "C"
212380e3 15781#endif
7083c021 15782char crypt ();
212380e3
AC
15783int
15784main ()
15785{
7083c021 15786return crypt ();
212380e3
AC
15787 ;
15788 return 0;
15789}
15790_ACEOF
7083c021
AC
15791for ac_lib in '' crypt descrypt; do
15792 if test -z "$ac_lib"; then
15793 ac_res="none required"
15794 else
15795 ac_res=-l$ac_lib
15796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15797 fi
15798 if ac_fn_c_try_link "$LINENO"; then :
15799 ac_cv_search_crypt=$ac_res
15800fi
15801rm -f core conftest.err conftest.$ac_objext \
15802 conftest$ac_exeext
b6d0720c 15803 if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
15804 break
15805fi
15806done
b6d0720c 15807if ${ac_cv_search_crypt+:} false; then :
7083c021 15808
212380e3 15809else
7083c021
AC
15810 ac_cv_search_crypt=no
15811fi
15812rm conftest.$ac_ext
15813LIBS=$ac_func_search_save_LIBS
15814fi
15815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15816$as_echo "$ac_cv_search_crypt" >&6; }
15817ac_res=$ac_cv_search_crypt
15818if test "$ac_res" != no; then :
15819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 15820
212380e3 15821fi
631ef239 15822
7083c021
AC
15823
15824CRYPT_LIB=$ac_cv_search_crypt
15825
15826if test "$CRYPT_LIB" = "none required"; then
15827 unset CRYPT_LIB
15828elif test "$CRYPT_LIB" = no; then
15829 unset CRYPT_LIB
212380e3 15830fi
7083c021
AC
15831
15832
15833
15834if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
15835 VICONF=viconf
15836 else
15837 VICONF=""
15838fi
15839
15840
15841
15842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15843$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
b6d0720c 15844if ${gcc_cv_header_string+:} false; then :
7083c021
AC
15845 $as_echo_n "(cached) " >&6
15846else
15847
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849/* end confdefs.h. */
15850#include <string.h>
15851 #include <strings.h>
212380e3 15852_ACEOF
7083c021
AC
15853if ac_fn_c_try_compile "$LINENO"; then :
15854 gcc_cv_header_string=yes
15855else
15856 gcc_cv_header_string=no
15857fi
15858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
15859
15860fi
7083c021
AC
15861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15862$as_echo "$gcc_cv_header_string" >&6; }
212380e3 15863
7083c021
AC
15864if test "$gcc_cv_header_string" = "yes"; then
15865
15866$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15867
15868fi
212380e3 15869
7083c021
AC
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15871$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 15872if ${ac_cv_c_bigendian+:} false; then :
7083c021
AC
15873 $as_echo_n "(cached) " >&6
15874else
15875 ac_cv_c_bigendian=unknown
15876 # See if we're dealing with a universal compiler.
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878/* end confdefs.h. */
15879#ifndef __APPLE_CC__
15880 not a universal capable compiler
15881 #endif
15882 typedef int dummy;
15883
15884_ACEOF
15885if ac_fn_c_try_compile "$LINENO"; then :
15886
15887 # Check for potential -arch flags. It is not universal unless
15888 # there are at least two -arch flags with different values.
15889 ac_arch=
15890 ac_prev=
15891 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15892 if test -n "$ac_prev"; then
15893 case $ac_word in
15894 i?86 | x86_64 | ppc | ppc64)
15895 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15896 ac_arch=$ac_word
15897 else
15898 ac_cv_c_bigendian=universal
15899 break
15900 fi
15901 ;;
15902 esac
15903 ac_prev=
15904 elif test "x$ac_word" = "x-arch"; then
15905 ac_prev=arch
15906 fi
15907 done
212380e3 15908fi
7083c021
AC
15909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15910 if test $ac_cv_c_bigendian = unknown; then
15911 # See if sys/param.h defines the BYTE_ORDER macro.
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913/* end confdefs.h. */
15914#include <sys/types.h>
15915 #include <sys/param.h>
15916
15917int
15918main ()
15919{
15920#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15921 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15922 && LITTLE_ENDIAN)
15923 bogus endian macros
15924 #endif
15925
15926 ;
15927 return 0;
15928}
15929_ACEOF
15930if ac_fn_c_try_compile "$LINENO"; then :
15931 # It does; now see whether it defined to BIG_ENDIAN or not.
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933/* end confdefs.h. */
15934#include <sys/types.h>
15935 #include <sys/param.h>
15936
15937int
15938main ()
15939{
15940#if BYTE_ORDER != BIG_ENDIAN
15941 not big endian
15942 #endif
212380e3 15943
7083c021
AC
15944 ;
15945 return 0;
15946}
15947_ACEOF
15948if ac_fn_c_try_compile "$LINENO"; then :
15949 ac_cv_c_bigendian=yes
212380e3 15950else
7083c021
AC
15951 ac_cv_c_bigendian=no
15952fi
15953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954fi
15955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956 fi
15957 if test $ac_cv_c_bigendian = unknown; then
15958 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960/* end confdefs.h. */
15961#include <limits.h>
15962
15963int
15964main ()
15965{
15966#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15967 bogus endian macros
15968 #endif
15969
15970 ;
15971 return 0;
15972}
212380e3 15973_ACEOF
7083c021
AC
15974if ac_fn_c_try_compile "$LINENO"; then :
15975 # It does; now see whether it defined to _BIG_ENDIAN or not.
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15977/* end confdefs.h. */
7083c021
AC
15978#include <limits.h>
15979
212380e3
AC
15980int
15981main ()
15982{
7083c021
AC
15983#ifndef _BIG_ENDIAN
15984 not big endian
15985 #endif
15986
212380e3
AC
15987 ;
15988 return 0;
15989}
15990_ACEOF
7083c021
AC
15991if ac_fn_c_try_compile "$LINENO"; then :
15992 ac_cv_c_bigendian=yes
212380e3 15993else
7083c021 15994 ac_cv_c_bigendian=no
212380e3 15995fi
631ef239 15996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 15997fi
7083c021
AC
15998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15999 fi
16000 if test $ac_cv_c_bigendian = unknown; then
16001 # Compile a test program.
16002 if test "$cross_compiling" = yes; then :
16003 # Try to guess by grepping values from an object file.
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005/* end confdefs.h. */
16006short int ascii_mm[] =
16007 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16008 short int ascii_ii[] =
16009 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16010 int use_ascii (int i) {
16011 return ascii_mm[i] + ascii_ii[i];
16012 }
16013 short int ebcdic_ii[] =
16014 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16015 short int ebcdic_mm[] =
16016 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16017 int use_ebcdic (int i) {
16018 return ebcdic_mm[i] + ebcdic_ii[i];
16019 }
16020 extern int foo;
212380e3 16021
7083c021
AC
16022int
16023main ()
16024{
16025return use_ascii (foo) == use_ebcdic (foo);
16026 ;
16027 return 0;
16028}
212380e3 16029_ACEOF
7083c021
AC
16030if ac_fn_c_try_compile "$LINENO"; then :
16031 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16032 ac_cv_c_bigendian=yes
16033 fi
16034 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16035 if test "$ac_cv_c_bigendian" = unknown; then
16036 ac_cv_c_bigendian=no
16037 else
16038 # finding both strings is unlikely to happen, but who knows?
16039 ac_cv_c_bigendian=unknown
16040 fi
16041 fi
16042fi
16043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044else
16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16046/* end confdefs.h. */
16047$ac_includes_default
16048int
16049main ()
16050{
7083c021
AC
16051
16052 /* Are we little or big endian? From Harbison&Steele. */
16053 union
16054 {
16055 long int l;
16056 char c[sizeof (long int)];
16057 } u;
16058 u.l = 1;
16059 return u.c[sizeof (long int) - 1] == 1;
16060
212380e3
AC
16061 ;
16062 return 0;
16063}
16064_ACEOF
7083c021
AC
16065if ac_fn_c_try_run "$LINENO"; then :
16066 ac_cv_c_bigendian=no
212380e3 16067else
7083c021 16068 ac_cv_c_bigendian=yes
212380e3 16069fi
7083c021
AC
16070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16071 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 16072fi
212380e3 16073
7083c021
AC
16074 fi
16075fi
16076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16077$as_echo "$ac_cv_c_bigendian" >&6; }
16078 case $ac_cv_c_bigendian in #(
16079 yes)
16080 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16081;; #(
16082 no)
16083 ;; #(
16084 universal)
212380e3 16085
7083c021 16086$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
212380e3 16087
7083c021
AC
16088 ;; #(
16089 *)
b6d0720c 16090 as_fn_error $? "unknown endianness
7083c021
AC
16091 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16092 esac
212380e3 16093
212380e3 16094
7083c021 16095ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
b6d0720c 16096if test "x$ac_cv_header_stdarg_h" = xyes; then :
212380e3 16097
7083c021 16098else
b6d0720c 16099 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
7083c021 16100fi
212380e3
AC
16101
16102
212380e3
AC
16103
16104
7083c021 16105if test "$ac_cv_c_compiler_gnu" = yes; then
212380e3 16106
7083c021
AC
16107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
16108$as_echo_n "checking for strlcpy... " >&6; }
16109save_CFLAGS=$CFLAGS
16110CFLAGS="$CFLAGS -Wimplicit -Werror"
212380e3 16111
7083c021 16112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 16113/* end confdefs.h. */
7083c021
AC
16114#include <string.h>
16115 #include <stdlib.h>
212380e3
AC
16116int
16117main ()
16118{
7083c021
AC
16119char *a = malloc(6);
16120 strlcpy(a, "hello", 6);
16121
212380e3
AC
16122 ;
16123 return 0;
16124}
16125_ACEOF
7083c021
AC
16126if ac_fn_c_try_link "$LINENO"; then :
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16128$as_echo "yes" >&6; }
212380e3 16129
7083c021 16130$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
631ef239 16131
212380e3 16132else
7083c021
AC
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16134$as_echo "no" >&6; }
212380e3 16135
7083c021
AC
16136fi
16137rm -f core conftest.err conftest.$ac_objext \
16138 conftest$ac_exeext conftest.$ac_ext
16139
16140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
16141$as_echo_n "checking for strlcat... " >&6; }
16142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 16143/* end confdefs.h. */
7083c021
AC
16144#include <string.h>
16145 #include <stdlib.h>
212380e3
AC
16146int
16147main ()
16148{
7083c021
AC
16149char *a = malloc(6);
16150 a[0] = '\0';
16151 strlcat(a, "hello", 6);
16152
212380e3
AC
16153 ;
16154 return 0;
16155}
16156_ACEOF
7083c021
AC
16157if ac_fn_c_try_link "$LINENO"; then :
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16159$as_echo "yes" >&6; }
631ef239 16160
7083c021 16161$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
212380e3 16162
7083c021
AC
16163else
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16165$as_echo "no" >&6; }
212380e3 16166
7083c021
AC
16167fi
16168rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
212380e3 16170
7083c021 16171CFLAGS=$save_CFLAGS
212380e3
AC
16172
16173else
16174
212380e3 16175
7083c021
AC
16176for ac_func in strlcat strlcpy
16177do :
16178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16179ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 16180if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
16181 cat >>confdefs.h <<_ACEOF
16182#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
16183_ACEOF
16184
212380e3 16185fi
7083c021 16186done
212380e3
AC
16187
16188
16189fi
16190
7083c021 16191ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
b6d0720c 16192if test "x$ac_cv_type_u_int32_t" = xyes; then :
212380e3 16193
212380e3 16194else
212380e3 16195
7083c021 16196 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
b6d0720c 16197if test "x$ac_cv_type_uint32_t" = xyes; then :
212380e3 16198
631ef239 16199
7083c021 16200$as_echo "#define u_int32_t uint32_t" >>confdefs.h
212380e3 16201
212380e3 16202
7083c021 16203else
212380e3 16204
7083c021
AC
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
16206$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
212380e3 16207
7083c021 16208$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
212380e3 16209
212380e3 16210
212380e3 16211fi
631ef239 16212
7083c021 16213
212380e3 16214fi
7083c021
AC
16215
16216
16217ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
b6d0720c 16218if test "x$ac_cv_type_u_int16_t" = xyes; then :
7083c021 16219
212380e3
AC
16220else
16221
7083c021 16222 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
b6d0720c 16223if test "x$ac_cv_type_uint16_t" = xyes; then :
212380e3 16224
7083c021
AC
16225
16226$as_echo "#define u_int16_t uint16_t" >>confdefs.h
212380e3
AC
16227
16228
212380e3 16229else
212380e3 16230
7083c021
AC
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
16232$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
631ef239 16233
7083c021 16234$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
212380e3 16235
7083c021
AC
16236
16237fi
212380e3
AC
16238
16239
16240fi
16241
16242
7083c021
AC
16243ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
16244#include <netinet/in.h>
16245"
b6d0720c 16246if test "x$ac_cv_type_in_port_t" = xyes; then :
212380e3 16247
7083c021 16248else
212380e3 16249
7083c021 16250$as_echo "#define in_port_t u_int16_t" >>confdefs.h
212380e3 16251
7083c021 16252fi
212380e3
AC
16253
16254
7083c021
AC
16255ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
16256#include <sys/socket.h>
16257"
b6d0720c 16258if test "x$ac_cv_type_sa_family_t" = xyes; then :
212380e3 16259
212380e3 16260else
212380e3 16261
7083c021 16262$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
212380e3 16263
7083c021 16264fi
212380e3 16265
212380e3 16266
7083c021 16267ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
b6d0720c 16268if test "x$ac_cv_type_uintptr_t" = xyes; then :
212380e3 16269
7083c021
AC
16270cat >>confdefs.h <<_ACEOF
16271#define HAVE_UINTPTR_T 1
16272_ACEOF
212380e3 16273
631ef239 16274
212380e3 16275fi
7083c021
AC
16276
16277
16278for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
16279do :
16280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16281ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 16282if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3 16283 cat >>confdefs.h <<_ACEOF
7083c021 16284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
16285_ACEOF
16286
16287fi
16288done
16289
16290
16291# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16292# for constant arguments. Useless!
7083c021
AC
16293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16294$as_echo_n "checking for working alloca.h... " >&6; }
b6d0720c 16295if ${ac_cv_working_alloca_h+:} false; then :
7083c021 16296 $as_echo_n "(cached) " >&6
212380e3 16297else
7083c021 16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16299/* end confdefs.h. */
16300#include <alloca.h>
16301int
16302main ()
16303{
16304char *p = (char *) alloca (2 * sizeof (int));
631ef239 16305 if (p) return 0;
212380e3
AC
16306 ;
16307 return 0;
16308}
16309_ACEOF
7083c021 16310if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16311 ac_cv_working_alloca_h=yes
16312else
7083c021 16313 ac_cv_working_alloca_h=no
212380e3 16314fi
7083c021
AC
16315rm -f core conftest.err conftest.$ac_objext \
16316 conftest$ac_exeext conftest.$ac_ext
212380e3 16317fi
7083c021
AC
16318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16319$as_echo "$ac_cv_working_alloca_h" >&6; }
212380e3
AC
16320if test $ac_cv_working_alloca_h = yes; then
16321
7083c021 16322$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
212380e3
AC
16323
16324fi
16325
7083c021
AC
16326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16327$as_echo_n "checking for alloca... " >&6; }
b6d0720c 16328if ${ac_cv_func_alloca_works+:} false; then :
7083c021 16329 $as_echo_n "(cached) " >&6
212380e3 16330else
7083c021 16331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16332/* end confdefs.h. */
16333#ifdef __GNUC__
16334# define alloca __builtin_alloca
16335#else
16336# ifdef _MSC_VER
16337# include <malloc.h>
16338# define alloca _alloca
16339# else
631ef239 16340# ifdef HAVE_ALLOCA_H
212380e3
AC
16341# include <alloca.h>
16342# else
16343# ifdef _AIX
16344 #pragma alloca
16345# else
16346# ifndef alloca /* predefined by HP cc +Olibcalls */
b6d0720c 16347void *alloca (size_t);
212380e3
AC
16348# endif
16349# endif
16350# endif
16351# endif
16352#endif
16353
16354int
16355main ()
16356{
16357char *p = (char *) alloca (1);
631ef239 16358 if (p) return 0;
212380e3
AC
16359 ;
16360 return 0;
16361}
16362_ACEOF
7083c021 16363if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16364 ac_cv_func_alloca_works=yes
16365else
7083c021 16366 ac_cv_func_alloca_works=no
212380e3 16367fi
7083c021
AC
16368rm -f core conftest.err conftest.$ac_objext \
16369 conftest$ac_exeext conftest.$ac_ext
212380e3 16370fi
7083c021
AC
16371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16372$as_echo "$ac_cv_func_alloca_works" >&6; }
212380e3
AC
16373
16374if test $ac_cv_func_alloca_works = yes; then
16375
7083c021 16376$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
212380e3
AC
16377
16378else
16379 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16380# that cause trouble. Some versions do not even contain alloca or
16381# contain a buggy version. If you still want to use their alloca,
16382# use ar to extract alloca.o from them instead of compiling alloca.c.
16383
631ef239 16384ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 16385
7083c021 16386$as_echo "#define C_ALLOCA 1" >>confdefs.h
212380e3
AC
16387
16388
7083c021
AC
16389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16390$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b6d0720c 16391if ${ac_cv_os_cray+:} false; then :
7083c021 16392 $as_echo_n "(cached) " >&6
212380e3 16393else
7083c021 16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 16395/* end confdefs.h. */
631ef239 16396#if defined CRAY && ! defined CRAY2
212380e3
AC
16397webecray
16398#else
16399wenotbecray
16400#endif
16401
16402_ACEOF
16403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021 16404 $EGREP "webecray" >/dev/null 2>&1; then :
212380e3
AC
16405 ac_cv_os_cray=yes
16406else
16407 ac_cv_os_cray=no
16408fi
16409rm -f conftest*
16410
16411fi
7083c021
AC
16412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16413$as_echo "$ac_cv_os_cray" >&6; }
212380e3
AC
16414if test $ac_cv_os_cray = yes; then
16415 for ac_func in _getb67 GETB67 getb67; do
7083c021
AC
16416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16417ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 16418if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3
AC
16419
16420cat >>confdefs.h <<_ACEOF
16421#define CRAY_STACKSEG_END $ac_func
16422_ACEOF
16423
16424 break
16425fi
16426
16427 done
16428fi
16429
7083c021
AC
16430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16431$as_echo_n "checking stack direction for C alloca... " >&6; }
b6d0720c 16432if ${ac_cv_c_stack_direction+:} false; then :
7083c021 16433 $as_echo_n "(cached) " >&6
212380e3 16434else
7083c021 16435 if test "$cross_compiling" = yes; then :
212380e3
AC
16436 ac_cv_c_stack_direction=0
16437else
7083c021 16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 16439/* end confdefs.h. */
631ef239 16440$ac_includes_default
212380e3 16441int
2eff3833 16442find_stack_direction (int *addr, int depth)
212380e3 16443{
2eff3833
JT
16444 int dir, dummy = 0;
16445 if (! addr)
16446 addr = &dummy;
16447 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16448 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16449 return dir + dummy;
212380e3
AC
16450}
16451
16452int
2eff3833 16453main (int argc, char **argv)
212380e3 16454{
2eff3833 16455 return find_stack_direction (0, argc + !argv + 20) < 0;
212380e3
AC
16456}
16457_ACEOF
7083c021 16458if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
16459 ac_cv_c_stack_direction=1
16460else
7083c021 16461 ac_cv_c_stack_direction=-1
212380e3 16462fi
7083c021
AC
16463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16464 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 16465fi
631ef239 16466
212380e3 16467fi
7083c021
AC
16468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16469$as_echo "$ac_cv_c_stack_direction" >&6; }
212380e3
AC
16470cat >>confdefs.h <<_ACEOF
16471#define STACK_DIRECTION $ac_cv_c_stack_direction
16472_ACEOF
16473
16474
16475fi
16476
16477
16478
7083c021 16479ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
b6d0720c 16480if test "x$ac_cv_func_nanosleep" = xyes; then :
631ef239 16481
212380e3 16482else
7083c021
AC
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
16484$as_echo_n "checking for nanosleep in -lrt... " >&6; }
b6d0720c 16485if ${ac_cv_lib_rt_nanosleep+:} false; then :
7083c021 16486 $as_echo_n "(cached) " >&6
212380e3
AC
16487else
16488 ac_check_lib_save_LIBS=$LIBS
16489LIBS="-lrt $LIBS"
7083c021 16490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16491/* end confdefs.h. */
16492
631ef239
AC
16493/* Override any GCC internal prototype to avoid an error.
16494 Use char because int might match the return type of a GCC
16495 builtin and then its argument prototype would still apply. */
212380e3
AC
16496#ifdef __cplusplus
16497extern "C"
16498#endif
212380e3
AC
16499char nanosleep ();
16500int
16501main ()
16502{
631ef239 16503return nanosleep ();
212380e3
AC
16504 ;
16505 return 0;
16506}
16507_ACEOF
7083c021 16508if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16509 ac_cv_lib_rt_nanosleep=yes
16510else
7083c021 16511 ac_cv_lib_rt_nanosleep=no
212380e3 16512fi
7083c021
AC
16513rm -f core conftest.err conftest.$ac_objext \
16514 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
16515LIBS=$ac_check_lib_save_LIBS
16516fi
7083c021
AC
16517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
16518$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
b6d0720c 16519if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
212380e3
AC
16520 LIBS="${LIBS} -lrt"
16521else
7083c021
AC
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
16523$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
b6d0720c 16524if ${ac_cv_lib_posix4_nanosleep+:} false; then :
7083c021 16525 $as_echo_n "(cached) " >&6
212380e3
AC
16526else
16527 ac_check_lib_save_LIBS=$LIBS
16528LIBS="-lposix4 $LIBS"
7083c021 16529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16530/* end confdefs.h. */
16531
631ef239
AC
16532/* Override any GCC internal prototype to avoid an error.
16533 Use char because int might match the return type of a GCC
16534 builtin and then its argument prototype would still apply. */
212380e3
AC
16535#ifdef __cplusplus
16536extern "C"
16537#endif
212380e3
AC
16538char nanosleep ();
16539int
16540main ()
16541{
631ef239 16542return nanosleep ();
212380e3
AC
16543 ;
16544 return 0;
16545}
16546_ACEOF
7083c021 16547if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16548 ac_cv_lib_posix4_nanosleep=yes
16549else
7083c021 16550 ac_cv_lib_posix4_nanosleep=no
212380e3 16551fi
7083c021
AC
16552rm -f core conftest.err conftest.$ac_objext \
16553 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
16554LIBS=$ac_check_lib_save_LIBS
16555fi
7083c021
AC
16556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
16557$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
b6d0720c 16558if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
212380e3
AC
16559 LIBS="${LIBS} -lposix4"
16560
16561fi
16562
16563fi
16564
16565fi
16566
16567if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
16568then
7083c021
AC
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
16570$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
212380e3
AC
16571else
16572
7083c021 16573$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
212380e3
AC
16574
16575fi
16576
7083c021
AC
16577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
16578$as_echo_n "checking for OpenSSL... " >&6; }
631ef239 16579# Check whether --enable-openssl was given.
7083c021 16580if test "${enable_openssl+set}" = set; then :
631ef239 16581 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3
AC
16582else
16583 cf_enable_openssl="auto"
631ef239
AC
16584fi
16585
212380e3
AC
16586
16587if test "$cf_enable_openssl" != "no" ; then
16588 cf_openssl_basedir=""
16589 if test "$cf_enable_openssl" != "auto" &&
16590 test "$cf_enable_openssl" != "yes" ; then
16591 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
16592 else
16593 for dirs in /usr/local/ssl /usr/pkg /usr/local \
16594 /usr/local/openssl ; do
16595 if test -f "${dirs}/include/openssl/opensslv.h" ; then
16596 cf_openssl_basedir="${dirs}"
16597 break
16598 fi
16599 done
16600 unset dirs
16601 fi
16602 if test ! -z "$cf_openssl_basedir"; then
16603 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
16604 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
16605 SSL_LIBS="-L${cf_openssl_basedir}/lib"
16606 else
16607 cf_openssl_basedir=""
16608 fi
16609 else
16610 if test -f "/usr/include/openssl/opensslv.h" ; then
16611 cf_openssl_basedir="/usr"
16612 fi
16613 fi
16614
16615 if test ! -z "$cf_openssl_basedir"; then
7083c021
AC
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16617$as_echo "$cf_openssl_basedir" >&6; }
212380e3
AC
16618 cf_enable_openssl="yes"
16619 else
7083c021
AC
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
16621$as_echo "not found. Specify a correct path?" >&6; }
212380e3
AC
16622 cf_enable_openssl="no"
16623 fi
16624 unset cf_openssl_basedir
16625else
7083c021
AC
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16627$as_echo "disabled" >&6; }
212380e3
AC
16628fi
16629
16630save_CPPFLAGS="$CPPFLAGS"
16631CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
16632save_LIBS="$LIBS"
16633LIBS="$LIBS $SSL_LIBS"
16634if test "$cf_enable_openssl" != no; then
7083c021
AC
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
16636$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
16637 if test "$cross_compiling" = yes; then :
212380e3
AC
16638 cf_openssl_version_ok=no
16639else
7083c021 16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16641/* end confdefs.h. */
16642#include <openssl/opensslv.h>
16643 #include <stdlib.h>
16644int
16645main ()
16646{
16647if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
16648 exit(0); else exit(1);
16649 ;
16650 return 0;
16651}
16652_ACEOF
7083c021 16653if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
16654 cf_openssl_version_ok=yes
16655else
7083c021 16656 cf_openssl_version_ok=no
212380e3 16657fi
7083c021
AC
16658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16659 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3
AC
16660fi
16661
631ef239 16662
212380e3 16663 if test "$cf_openssl_version_ok" = yes; then
7083c021
AC
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16665$as_echo "found" >&6; }
212380e3
AC
16666
16667 ENCSPEED=encspeed
16668
16669
16670 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7083c021
AC
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16672$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
b6d0720c 16673if ${ac_cv_lib_crypto_RSA_free+:} false; then :
7083c021 16674 $as_echo_n "(cached) " >&6
212380e3
AC
16675else
16676 ac_check_lib_save_LIBS=$LIBS
16677LIBS="-lcrypto $LIBS"
7083c021 16678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16679/* end confdefs.h. */
16680
631ef239
AC
16681/* Override any GCC internal prototype to avoid an error.
16682 Use char because int might match the return type of a GCC
16683 builtin and then its argument prototype would still apply. */
212380e3
AC
16684#ifdef __cplusplus
16685extern "C"
16686#endif
212380e3
AC
16687char RSA_free ();
16688int
16689main ()
16690{
631ef239 16691return RSA_free ();
212380e3
AC
16692 ;
16693 return 0;
16694}
16695_ACEOF
7083c021 16696if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16697 ac_cv_lib_crypto_RSA_free=yes
16698else
7083c021 16699 ac_cv_lib_crypto_RSA_free=no
212380e3 16700fi
7083c021
AC
16701rm -f core conftest.err conftest.$ac_objext \
16702 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
16703LIBS=$ac_check_lib_save_LIBS
16704fi
7083c021
AC
16705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16706$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
b6d0720c 16707if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
212380e3
AC
16708 cat >>confdefs.h <<_ACEOF
16709#define HAVE_LIBCRYPTO 1
16710_ACEOF
16711
16712 LIBS="-lcrypto $LIBS"
16713
16714fi
16715
16716 SSL_LIBS="$SSL_LIBS -lcrypto"
16717 SSL_SRCS_ENABLE='$(SSL_SRCS)'
16718 else
7083c021
AC
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
16720$as_echo "no - OpenSSL support disabled" >&6; }
212380e3
AC
16721 fi
16722fi
16723
16724CPPFLAGS="$save_CPPFLAGS"
16725LIBS="$save_LIBS"
16726
16727
16728
16729
16730
631ef239 16731# Check whether --with-zlib-path was given.
7083c021 16732if test "${with_zlib_path+set}" = set; then :
631ef239
AC
16733 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
16734fi
212380e3 16735
7083c021
AC
16736
16737# Check whether --enable-zlib was given.
16738if test "${enable_zlib+set}" = set; then :
16739 enableval=$enable_zlib; zlib=$enableval
212380e3 16740else
7083c021 16741 zlib=yes
212380e3 16742fi
212380e3 16743
212380e3 16744
7083c021
AC
16745if test "$zlib" = yes; then
16746
16747ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
b6d0720c 16748if test "x$ac_cv_header_zlib_h" = xyes; then :
7083c021
AC
16749
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
16751$as_echo_n "checking for zlibVersion in -lz... " >&6; }
b6d0720c 16752if ${ac_cv_lib_z_zlibVersion+:} false; then :
7083c021 16753 $as_echo_n "(cached) " >&6
212380e3
AC
16754else
16755 ac_check_lib_save_LIBS=$LIBS
16756LIBS="-lz $LIBS"
7083c021 16757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16758/* end confdefs.h. */
16759
631ef239
AC
16760/* Override any GCC internal prototype to avoid an error.
16761 Use char because int might match the return type of a GCC
16762 builtin and then its argument prototype would still apply. */
212380e3
AC
16763#ifdef __cplusplus
16764extern "C"
16765#endif
212380e3
AC
16766char zlibVersion ();
16767int
16768main ()
16769{
631ef239 16770return zlibVersion ();
212380e3
AC
16771 ;
16772 return 0;
16773}
16774_ACEOF
7083c021 16775if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
16776 ac_cv_lib_z_zlibVersion=yes
16777else
7083c021 16778 ac_cv_lib_z_zlibVersion=no
212380e3 16779fi
7083c021
AC
16780rm -f core conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
16782LIBS=$ac_check_lib_save_LIBS
16783fi
7083c021
AC
16784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
16785$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
b6d0720c 16786if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
212380e3
AC
16787
16788 ZLIB_LD=-lz
16789
16790
7083c021 16791$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
212380e3
AC
16792
16793
16794else
16795 zlib=no
16796fi
16797
16798
16799else
16800 zlib=no
16801fi
16802
16803
16804
497e30a0
LS
16805fi
16806
a6ef3156
LS
16807
16808# Check whether --with-shared-sqlite was given.
16809if test "${with_shared_sqlite+set}" = set; then :
16810 withval=$with_shared_sqlite; shared_sqlite=$withval
497e30a0
LS
16811else
16812 shared_sqlite=no
16813fi
16814
16815
16816if test "$shared_sqlite" = yes; then
16817
cf1001a7 16818
a5471f24
LS
16819
16820
16821
16822
16823
16824if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16825 if test -n "$ac_tool_prefix"; then
16826 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16827set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16829$as_echo_n "checking for $ac_word... " >&6; }
16830if ${ac_cv_path_PKG_CONFIG+:} false; then :
16831 $as_echo_n "(cached) " >&6
16832else
16833 case $PKG_CONFIG in
16834 [\\/]* | ?:[\\/]*)
16835 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16836 ;;
16837 *)
16838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16839for as_dir in $PATH
16840do
16841 IFS=$as_save_IFS
16842 test -z "$as_dir" && as_dir=.
16843 for ac_exec_ext in '' $ac_executable_extensions; do
16844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16845 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16847 break 2
16848 fi
16849done
16850 done
16851IFS=$as_save_IFS
16852
16853 ;;
cf1001a7 16854esac
a5471f24
LS
16855fi
16856PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16857if test -n "$PKG_CONFIG"; then
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16859$as_echo "$PKG_CONFIG" >&6; }
16860else
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16862$as_echo "no" >&6; }
16863fi
cf1001a7 16864
497e30a0 16865
a5471f24
LS
16866fi
16867if test -z "$ac_cv_path_PKG_CONFIG"; then
16868 ac_pt_PKG_CONFIG=$PKG_CONFIG
16869 # Extract the first word of "pkg-config", so it can be a program name with args.
16870set dummy pkg-config; ac_word=$2
16871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16872$as_echo_n "checking for $ac_word... " >&6; }
16873if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
497e30a0
LS
16874 $as_echo_n "(cached) " >&6
16875else
a5471f24
LS
16876 case $ac_pt_PKG_CONFIG in
16877 [\\/]* | ?:[\\/]*)
16878 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16879 ;;
16880 *)
16881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16882for as_dir in $PATH
16883do
16884 IFS=$as_save_IFS
16885 test -z "$as_dir" && as_dir=.
16886 for ac_exec_ext in '' $ac_executable_extensions; do
16887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16888 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16890 break 2
16891 fi
16892done
16893 done
16894IFS=$as_save_IFS
497e30a0 16895
a5471f24
LS
16896 ;;
16897esac
16898fi
16899ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16900if test -n "$ac_pt_PKG_CONFIG"; then
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16902$as_echo "$ac_pt_PKG_CONFIG" >&6; }
497e30a0 16903else
a5471f24
LS
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905$as_echo "no" >&6; }
497e30a0 16906fi
a5471f24
LS
16907
16908 if test "x$ac_pt_PKG_CONFIG" = x; then
16909 PKG_CONFIG=""
16910 else
16911 case $cross_compiling:$ac_tool_warned in
16912yes:)
16913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16915ac_tool_warned=yes ;;
16916esac
16917 PKG_CONFIG=$ac_pt_PKG_CONFIG
16918 fi
16919else
16920 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
497e30a0 16921fi
497e30a0 16922
a5471f24
LS
16923fi
16924if test -n "$PKG_CONFIG"; then
16925 _pkg_min_version=0.9.0
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16927$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16928 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16930$as_echo "yes" >&6; }
16931 else
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16933$as_echo "no" >&6; }
16934 PKG_CONFIG=""
16935 fi
16936fi
16937
16938pkg_failed=no
16939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
16940$as_echo_n "checking for SQLITE... " >&6; }
497e30a0 16941
a5471f24
LS
16942if test -n "$SQLITE_CFLAGS"; then
16943 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
16944 elif test -n "$PKG_CONFIG"; then
16945 if test -n "$PKG_CONFIG" && \
16946 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16947 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16948 ac_status=$?
16949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16950 test $ac_status = 0; }; then
16951 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
16952 test "x$?" != "x0" && pkg_failed=yes
497e30a0 16953else
a5471f24
LS
16954 pkg_failed=yes
16955fi
16956 else
16957 pkg_failed=untried
16958fi
16959if test -n "$SQLITE_LIBS"; then
16960 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
16961 elif test -n "$PKG_CONFIG"; then
16962 if test -n "$PKG_CONFIG" && \
16963 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16964 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16965 ac_status=$?
16966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16967 test $ac_status = 0; }; then
16968 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
16969 test "x$?" != "x0" && pkg_failed=yes
16970else
16971 pkg_failed=yes
16972fi
16973 else
16974 pkg_failed=untried
497e30a0
LS
16975fi
16976
16977
a5471f24
LS
16978
16979if test $pkg_failed = yes; then
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981$as_echo "no" >&6; }
16982
16983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16984 _pkg_short_errors_supported=yes
497e30a0 16985else
a5471f24 16986 _pkg_short_errors_supported=no
497e30a0 16987fi
a5471f24
LS
16988 if test $_pkg_short_errors_supported = yes; then
16989 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
16990 else
16991 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
16992 fi
16993 # Put the nasty error message in config.log where it belongs
16994 echo "$SQLITE_PKG_ERRORS" >&5
497e30a0 16995
a5471f24
LS
16996 shared_sqlite=no
16997elif test $pkg_failed = untried; then
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16999$as_echo "no" >&6; }
17000 shared_sqlite=no
17001else
17002 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
17003 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17005$as_echo "yes" >&6; }
497e30a0 17006
a5471f24 17007 shared_sqlite=yes
497e30a0 17008
74ab6be0 17009fi
a5471f24 17010fi
74ab6be0
LS
17011
17012if test "$shared_sqlite" = no; then
c52df125 17013 SQLITE_OBJ='sqlite3.$(OBJEXT)'
212380e3
AC
17014fi
17015
a5471f24 17016SQLITE_LD="$SQLITE_LIBS"
212380e3 17017
a5471f24 17018SQLITE_INCLUDES="$SQLITE_CFLAGS"
cf1001a7
LS
17019
17020
cf1001a7
LS
17021
17022
c1c5fdc4 17023# Check whether --enable-ports was given.
7083c021 17024if test "${enable_ports+set}" = set; then :
c1c5fdc4
AC
17025 enableval=$enable_ports; if test $enableval = yes; then
17026 SELECT_TYPE_EXPLICIT="ports"
17027 else
17028 use_ports=no
17029 fi
17030
17031fi
17032
17033
631ef239 17034# Check whether --enable-poll was given.
7083c021 17035if test "${enable_poll+set}" = set; then :
631ef239 17036 enableval=$enable_poll; if test $enableval = yes; then
212380e3
AC
17037 SELECT_TYPE_EXPLICIT="poll"
17038 else
17039 use_poll=no
17040 fi
17041
631ef239
AC
17042fi
17043
212380e3 17044
631ef239 17045# Check whether --enable-select was given.
7083c021 17046if test "${enable_select+set}" = set; then :
631ef239 17047 enableval=$enable_select; if test $enableval = yes; then
212380e3
AC
17048 SELECT_TYPE_EXPLICIT="select"
17049 else
17050 use_select=no
17051 fi
17052
631ef239
AC
17053fi
17054
212380e3 17055
631ef239 17056# Check whether --enable-kqueue was given.
7083c021 17057if test "${enable_kqueue+set}" = set; then :
631ef239 17058 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3
AC
17059 SELECT_TYPE_EXPLICIT="kqueue"
17060 else
17061 use_kqueue=no
17062 fi
17063
631ef239
AC
17064fi
17065
212380e3 17066
631ef239 17067# Check whether --enable-epoll was given.
7083c021 17068if test "${enable_epoll+set}" = set; then :
631ef239 17069 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 17070 SELECT_TYPE_EXPLICIT="epoll"
7083c021
AC
17071 for ac_func in epoll_ctl
17072do :
17073 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 17074if test "x$ac_cv_func_epoll_ctl" = xyes; then :
3ad1a781 17075 cat >>confdefs.h <<_ACEOF
7083c021 17076#define HAVE_EPOLL_CTL 1
3ad1a781
JT
17077_ACEOF
17078 haveepoll=yes
17079else
17080 haveepoll=no
17081fi
17082done
17083
212380e3
AC
17084 else
17085 use_epoll=no
17086 fi
17087
631ef239
AC
17088fi
17089
212380e3
AC
17090
17091
212380e3 17092
631ef239 17093# Check whether --with-confdir was given.
7083c021 17094if test "${with_confdir+set}" = set; then :
634d4aad 17095 withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'`
212380e3 17096else
9f9b7042 17097 confdir='${sysconfdir}'
634d4aad
NPB
17098fi
17099
212380e3
AC
17100
17101 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17102 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
634d4aad 17103 last_ac_define_dir=`eval echo $sysconfdir`
9f9b7042 17104 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 17105 ac_define_dir_counter=0
9f9b7042
NPB
17106 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
17107 last_ac_define_dir="$ac_define_dir"
17108 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
17109 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
17110 if test "x$ac_define_dir_counter" = x128; then :
17111 as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5
17112 break
17113fi
9f9b7042 17114 done
212380e3
AC
17115 ETC_DIR="$ac_define_dir"
17116
17117
17118cat >>confdefs.h <<_ACEOF
17119#define ETC_DIR "$ac_define_dir"
17120_ACEOF
17121
17122
17123
17124
7083c021
AC
17125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
17126$as_echo_n "checking whether to modify logdir... " >&6; }
212380e3 17127
631ef239 17128# Check whether --with-logdir was given.
7083c021 17129if test "${with_logdir+set}" = set; then :
631ef239 17130 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17132$as_echo "yes" >&6; }
212380e3 17133else
9f9b7042
NPB
17134 if test "x$enable_fhs_paths" = "xyes"; then :
17135 logdir='${localstatedir}/log/${PACKAGE_TARNAME}'
17136else
17137 logdir='${prefix}/logs'
17138fi
7083c021
AC
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17140$as_echo "no" >&6; }
9f9b7042
NPB
17141fi
17142
212380e3
AC
17143
17144 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
17146 last_ac_define_dir=`eval echo $logdir`
17147 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 17148 ac_define_dir_counter=0
9f9b7042
NPB
17149 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
17150 last_ac_define_dir="$ac_define_dir"
17151 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
17152 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
17153 if test "x$ac_define_dir_counter" = x128; then :
17154 as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5
17155 break
17156fi
9f9b7042 17157 done
212380e3
AC
17158 LOG_DIR="$ac_define_dir"
17159
17160
17161cat >>confdefs.h <<_ACEOF
17162#define LOG_DIR "$ac_define_dir"
17163_ACEOF
17164
17165
17166
17167
17168 logdir=`(
17169 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17170 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
17171 eval echo \""$logdir"\"
17172 )`
17173
17174
17175
212380e3 17176
7083c021
AC
17177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
17178$as_echo_n "checking whether to modify helpdir... " >&6; }
212380e3 17179
631ef239 17180# Check whether --with-helpdir was given.
7083c021 17181if test "${with_helpdir+set}" = set; then :
631ef239 17182 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17184$as_echo "yes" >&6; }
212380e3 17185else
9f9b7042
NPB
17186 if test "x$enable_fhs_paths" = "xyes"; then :
17187 helpdir='${datadir}/${PACKAGE_TARNAME}/help'
17188else
17189 helpdir='${prefix}/help'
17190fi
7083c021
AC
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17192$as_echo "no" >&6; }
9f9b7042
NPB
17193fi
17194
212380e3
AC
17195
17196 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
17198 last_ac_define_dir=`eval echo $helpdir`
17199 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 17200 ac_define_dir_counter=0
9f9b7042
NPB
17201 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
17202 last_ac_define_dir="$ac_define_dir"
17203 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
17204 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
17205 if test "x$ac_define_dir_counter" = x128; then :
17206 as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5
17207 break
17208fi
9f9b7042 17209 done
212380e3
AC
17210 HELP_DIR="$ac_define_dir"
17211
17212
17213cat >>confdefs.h <<_ACEOF
17214#define HELP_DIR "$ac_define_dir"
17215_ACEOF
17216
17217
17218
17219
17220 helpdir=`(
17221 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17222 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
17223 eval echo \""$helpdir"\"
17224 )`
17225
17226
17227
212380e3 17228
7083c021
AC
17229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
17230$as_echo_n "checking whether to modify moduledir... " >&6; }
212380e3 17231
631ef239 17232# Check whether --with-moduledir was given.
7083c021 17233if test "${with_moduledir+set}" = set; then :
631ef239 17234 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7083c021
AC
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17236$as_echo "yes" >&6; }
9f9b7042
NPB
17237else
17238 if test "x$enable_fhs_paths" = "xyes"; then :
17239 moduledir='${pkglibdir}/modules'
17240else
17241 moduledir='${prefix}/modules'
17242fi
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244$as_echo "no" >&6; }
17245
17246fi
17247
212380e3
AC
17248
17249 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17250 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
17251 last_ac_define_dir=`eval echo $moduledir`
17252 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 17253 ac_define_dir_counter=0
9f9b7042
NPB
17254 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
17255 last_ac_define_dir="$ac_define_dir"
17256 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
17257 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
17258 if test "x$ac_define_dir_counter" = x128; then :
17259 as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5
17260 break
17261fi
9f9b7042 17262 done
212380e3
AC
17263 MODULE_DIR="$ac_define_dir"
17264
17265
17266cat >>confdefs.h <<_ACEOF
17267#define MODULE_DIR "$ac_define_dir"
17268_ACEOF
17269
17270
17271
17272
17273 moduledir=`(
17274 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17275 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
17276 eval echo \""$moduledir"\"
17277 )`
17278
17279
9f9b7042
NPB
17280
17281
17282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
17283$as_echo_n "checking whether or modify rundir... " >&6; }
17284
17285# Check whether --with-rundir was given.
17286if test "${with_rundir+set}" = set; then :
17287 withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17288$as_echo "yes" >&6; }
17289 rundir=`echo $withval | sed 's/\/$//'`
212380e3 17290else
9f9b7042 17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083c021 17292$as_echo "no" >&6; }
9f9b7042
NPB
17293 if test "x$enable_fhs_paths" = "xyes"; then :
17294 rundir='${prefix}/run'
17295else
17296 rundir='${sysconfdir}'
17297fi
17298fi
17299
17300
212380e3
AC
17301
17302 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
17304 last_ac_define_dir=`eval echo $pkgrundir`
17305 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 17306 ac_define_dir_counter=0
9f9b7042
NPB
17307 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
17308 last_ac_define_dir="$ac_define_dir"
17309 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
17310 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
17311 if test "x$ac_define_dir_counter" = x128; then :
17312 as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5
17313 break
17314fi
9f9b7042
NPB
17315 done
17316 PKGRUNDIR="$ac_define_dir"
212380e3
AC
17317
17318
17319cat >>confdefs.h <<_ACEOF
9f9b7042 17320#define PKGRUNDIR "$ac_define_dir"
212380e3
AC
17321_ACEOF
17322
17323
17324
9f9b7042
NPB
17325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
17326$as_echo_n "checking for program prefix... " >&6; }
212380e3 17327
9f9b7042
NPB
17328# Check whether --with-program-prefix was given.
17329if test "${with_program_prefix+set}" = set; then :
17330 withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix=
17331else
17332 with_program_prefix=
17333fi
212380e3 17334
9f9b7042
NPB
17335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
17336$as_echo "\"$with_program_prefix\"" >&6; }
17337PROGRAM_PREFIX="$with_program_prefix"
212380e3
AC
17338
17339
9f9b7042
NPB
17340cat >>confdefs.h <<_ACEOF
17341#define PROGRAM_PREFIX "$with_program_prefix"
17342_ACEOF
631ef239 17343
7083c021 17344
b6d0720c
AC
17345
17346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
17347$as_echo_n "checking whether custom branding is requested... " >&6; }
17348
17349# Check whether --with-custom-branding was given.
17350if test "${with_custom_branding+set}" = set; then :
17351 withval=$with_custom_branding; BRANDING_NAME=$withval
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17353$as_echo "yes" >&6; }
17354else
17355 BRANDING_NAME=$PACKAGE_NAME
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17357$as_echo "no" >&6; }
17358
17359fi
17360
17361
17362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
17363$as_echo_n "checking whether a custom version is requested... " >&6; }
17364
17365# Check whether --with-custom-version was given.
17366if test "${with_custom_version+set}" = set; then :
17367 withval=$with_custom_version; BRANDING_VERSION=$withval
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17369$as_echo "yes" >&6; }
17370else
17371 BRANDING_VERSION=$PACKAGE_VERSION
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17373$as_echo "no" >&6; }
17374
17375fi
17376
17377
17378
17379cat >>confdefs.h <<_ACEOF
17380#define BRANDING_NAME "$BRANDING_NAME"
17381_ACEOF
17382
17383
17384cat >>confdefs.h <<_ACEOF
17385#define BRANDING_VERSION "$BRANDING_VERSION"
17386_ACEOF
17387
17388
f5493691
AC
17389if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
17390
17391$as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
17392
17393fi
17394
7083c021
AC
17395if test ! -z "$SELECT_TYPE_EXPLICIT"; then
17396 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
17397 echo "Forcing $SELECT_TYPE to be enabled"
17398else
17399
17400if test ! "x$use_ports" = "xno"; then
17401 for ac_func in port_getn
17402do :
17403 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
b6d0720c 17404if test "x$ac_cv_func_port_getn" = xyes; then :
212380e3 17405 cat >>confdefs.h <<_ACEOF
7083c021 17406#define HAVE_PORT_GETN 1
212380e3 17407_ACEOF
7083c021 17408 haveports=yes
212380e3 17409else
7083c021 17410 haveports=no
212380e3
AC
17411fi
17412done
17413
7083c021
AC
17414 if test "x$haveports" = "xyes" ; then
17415 SELECT_TYPE="ports"
212380e3
AC
17416 fi
17417fi
17418
7083c021
AC
17419if test ! "x$use_select" = "xno"; then
17420 for ac_func in select
17421do :
17422 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
b6d0720c 17423if test "x$ac_cv_func_select" = xyes; then :
7083c021
AC
17424 cat >>confdefs.h <<_ACEOF
17425#define HAVE_SELECT 1
212380e3 17426_ACEOF
7083c021
AC
17427 haveselect=yes
17428else
17429 haveselect=no
17430fi
17431done
212380e3 17432
7083c021
AC
17433 if test "x$haveselect" = "xyes" ; then
17434 SELECT_TYPE="select"
17435 fi
17436fi
212380e3 17437
7083c021
AC
17438if test ! "x$use_poll" = "xno"; then
17439 for ac_func in poll
17440do :
17441 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
b6d0720c 17442if test "x$ac_cv_func_poll" = xyes; then :
7083c021
AC
17443 cat >>confdefs.h <<_ACEOF
17444#define HAVE_POLL 1
212380e3 17445_ACEOF
7083c021 17446 havepoll=yes
212380e3 17447else
7083c021 17448 havepoll=no
212380e3 17449fi
7083c021 17450done
631ef239 17451
7083c021
AC
17452 if test "x$havepoll" = "xyes" ; then
17453 SELECT_TYPE="poll"
17454 fi
212380e3 17455fi
7083c021
AC
17456
17457if test ! "x$use_kqueue" = "xno"; then
17458 for ac_func in kevent
17459do :
17460 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
b6d0720c 17461if test "x$ac_cv_func_kevent" = xyes; then :
212380e3 17462 cat >>confdefs.h <<_ACEOF
7083c021 17463#define HAVE_KEVENT 1
212380e3
AC
17464_ACEOF
17465 havekqueue=yes
17466else
17467 havekqueue=no
17468fi
17469done
17470
17471 if test "x$havekqueue" = "xyes" ; then
17472 SELECT_TYPE="kqueue"
17473 fi
17474fi
17475
17476if test ! "x$use_epoll" = "xno"; then
7083c021
AC
17477 for ac_func in epoll_ctl
17478do :
17479 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 17480if test "x$ac_cv_func_epoll_ctl" = xyes; then :
212380e3 17481 cat >>confdefs.h <<_ACEOF
7083c021 17482#define HAVE_EPOLL_CTL 1
212380e3
AC
17483_ACEOF
17484 haveepoll=yes
17485else
17486 haveepoll=no
17487fi
17488done
17489
17490 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
17491 if test "x$haveepoll" = "xyes" ; then
7083c021
AC
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
17493$as_echo_n "checking for epoll support in kernel... " >&6; }
17494 if test "$cross_compiling" = yes; then :
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496$as_echo "no" >&6; }
212380e3 17497else
7083c021 17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17499/* end confdefs.h. */
17500#include <stdint.h>
17501#include <sys/param.h>
17502#include <sys/types.h>
17503#include <sys/epoll.h>
17504#include <sys/syscall.h>
17505#include <unistd.h>
17506
17507int
17508main(int argc, char **argv)
17509{
17510 int epfd;
17511
17512 epfd = epoll_create(256);
b676ea3b 17513 return (epfd == -1 ? 1 : 0);
212380e3
AC
17514}
17515_ACEOF
7083c021
AC
17516if ac_fn_c_try_run "$LINENO"; then :
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17518$as_echo "yes" >&6; }
212380e3 17519
7083c021 17520$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
17521
17522 SELECT_TYPE="epoll"
17523else
7083c021
AC
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525$as_echo "no" >&6; }
212380e3 17526fi
7083c021
AC
17527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17528 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 17529fi
631ef239 17530
212380e3
AC
17531 fi
17532 fi
17533
17534haveepollsyscall=no
17535
17536if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
17537 if test "x$haveepoll" = "xno" ; then
7083c021
AC
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
17539$as_echo_n "checking for epoll system call... " >&6; }
17540 if test "$cross_compiling" = yes; then :
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17542$as_echo "no" >&6; }
212380e3 17543else
7083c021 17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17545/* end confdefs.h. */
17546#include <stdint.h>
17547#include <sys/param.h>
17548#include <sys/types.h>
17549#include <sys/epoll.h>
17550#include <sys/syscall.h>
17551#include <unistd.h>
17552
17553int
17554epoll_create(int size)
17555{
17556 return (syscall(__NR_epoll_create, size));
17557}
17558
17559int
17560main(int argc, char **argv)
17561{
17562 int epfd;
17563
17564 epfd = epoll_create(256);
17565 exit (epfd == -1 ? 1 : 0);
17566}
17567_ACEOF
7083c021
AC
17568if ac_fn_c_try_run "$LINENO"; then :
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17570$as_echo "yes" >&6; }
212380e3 17571
7083c021 17572$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
17573
17574 SELECT_TYPE="epoll"
17575else
7083c021
AC
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577$as_echo "no" >&6; }
212380e3 17578fi
7083c021
AC
17579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17580 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 17581fi
631ef239 17582
212380e3
AC
17583 fi
17584fi
17585
17586fi
17587
17588fi
17589
17590if test -z "$SELECT_TYPE"; then
b6d0720c 17591 as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
212380e3
AC
17592fi
17593
17594echo "Using $SELECT_TYPE for select loop."
17595
17596
17597cat >>confdefs.h <<_ACEOF
17598#define SELECT_TYPE "$SELECT_TYPE"
17599_ACEOF
17600
17601
17602
17603
17604
631ef239 17605# Check whether --enable-assert was given.
7083c021 17606if test "${enable_assert+set}" = set; then :
631ef239 17607 enableval=$enable_assert; assert=$enableval
212380e3
AC
17608else
17609 assert=no
631ef239
AC
17610fi
17611
212380e3
AC
17612
17613if test "$assert" = no; then
17614
7083c021 17615$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
17616
17617elif test "$assert" = soft; then
17618
7083c021 17619$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
212380e3
AC
17620
17621
7083c021 17622$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
17623
17624elif test "$assert" = yes; then
17625 assert = "hard";
17626fi
17627
7083c021
AC
17628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
17629$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
631ef239 17630# Check whether --enable-iodebug was given.
7083c021 17631if test "${enable_iodebug+set}" = set; then :
631ef239 17632 enableval=$enable_iodebug; iodebug=$enableval
212380e3
AC
17633else
17634 iodebug=no
631ef239
AC
17635fi
17636
212380e3
AC
17637
17638if test "$iodebug" = yes; then
17639
7083c021 17640$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
212380e3 17641
7083c021
AC
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17643$as_echo "yes" >&6; }
212380e3 17644else
7083c021
AC
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17646$as_echo "no" >&6; }
212380e3
AC
17647fi
17648
17649
7083c021
AC
17650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
17651$as_echo_n "checking if you want to do a profile build... " >&6; }
631ef239 17652# Check whether --enable-profile was given.
7083c021 17653if test "${enable_profile+set}" = set; then :
631ef239 17654 enableval=$enable_profile; profile=$enableval
212380e3
AC
17655else
17656 profile=no
631ef239
AC
17657fi
17658
212380e3
AC
17659
17660if test "$profile" = yes; then
17661 if test "$ac_cv_c_compiler_gnu" = yes; then
17662 IRC_CFLAGS="$IRC_CFLAGS -pg"
7083c021
AC
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
17664$as_echo "yes, adding -pg" >&6; }
212380e3 17665
7083c021 17666$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
212380e3
AC
17667
17668 else
7083c021
AC
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
17670$as_echo "no, profile builds only work with gcc" >&6; }
212380e3
AC
17671 fi
17672else
7083c021
AC
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17674$as_echo "no" >&6; }
212380e3
AC
17675fi
17676
631ef239 17677# Check whether --enable-balloc was given.
7083c021 17678if test "${enable_balloc+set}" = set; then :
631ef239 17679 enableval=$enable_balloc; balloc=$enableval
212380e3
AC
17680else
17681 balloc=yes
631ef239
AC
17682fi
17683
212380e3
AC
17684
17685if test "$balloc" = no; then
17686
7083c021 17687$as_echo "#define NOBALLOC 1" >>confdefs.h
212380e3
AC
17688
17689fi
17690
631ef239 17691# Check whether --enable-small-net was given.
7083c021 17692if test "${enable_small_net+set}" = set; then :
631ef239 17693 enableval=$enable_small_net; small_net=$enableval
212380e3
AC
17694else
17695 small_net=no
631ef239
AC
17696fi
17697
212380e3
AC
17698
17699if test "$small_net" = yes; then
17700
7083c021 17701$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
212380e3
AC
17702
17703
7083c021 17704$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17705
17706
7083c021 17707$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17708
17709
7083c021 17710$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17711
17712
7083c021 17713$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17714
17715
7083c021 17716$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
212380e3
AC
17717
17718
7083c021 17719$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17720
17721
7083c021 17722$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17723
17724
7083c021 17725$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17726
17727
7083c021 17728$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17729
17730
7083c021 17731$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17732
17733
7083c021 17734$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17735
17736
7083c021 17737$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
17738
17739
7083c021 17740$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
212380e3 17741
f589ec6f 17742
7083c021 17743$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
2b428185
AC
17744
17745
7083c021 17746$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
f589ec6f 17747
212380e3
AC
17748else
17749
7083c021 17750$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
212380e3
AC
17751
17752
7083c021 17753$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
17754
17755
7083c021 17756$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
17757
17758
7083c021 17759$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
17760
17761
7083c021 17762$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
212380e3
AC
17763
17764
7083c021 17765$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17766
17767
7083c021 17768$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
17769
17770
7083c021 17771$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
17772
17773
7083c021 17774$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
17775
17776
7083c021 17777$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
212380e3
AC
17778
17779
7083c021 17780$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
212380e3
AC
17781
17782
7083c021 17783$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
212380e3
AC
17784
17785
7083c021 17786$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
17787
17788
7083c021 17789$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
212380e3 17790
f589ec6f 17791
7083c021 17792$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
2b428185
AC
17793
17794
7083c021 17795$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
f589ec6f 17796
212380e3
AC
17797fi
17798
17799
631ef239 17800# Check whether --with-nicklen was given.
7083c021 17801if test "${with_nicklen+set}" = set; then :
631ef239 17802 withval=$with_nicklen;
aa769893 17803 if ! expr "$withval" + 0 >/dev/null 2>&1; then
b6d0720c 17804 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
aa769893 17805 fi
cf533739 17806 if test $withval -gt 50; then
212380e3 17807 NICKLEN=50
7083c021
AC
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
17809$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
cf533739
JT
17810 elif test $withval -lt 9; then
17811 NICKLEN=9
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
17813$as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
212380e3
AC
17814 else
17815 NICKLEN="$withval"
17816 fi
17817
17818else
cf533739 17819 NICKLEN=31
631ef239 17820fi
212380e3
AC
17821
17822
212380e3 17823
631ef239 17824# Check whether --with-topiclen was given.
7083c021 17825if test "${with_topiclen+set}" = set; then :
631ef239 17826 withval=$with_topiclen;
212380e3
AC
17827 if test $withval -ge 390; then
17828 TOPICLEN=390
7083c021
AC
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
17830$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3
AC
17831 else
17832 TOPICLEN=$withval
17833 fi
17834
17835else
17836 TOPICLEN=390
212380e3
AC
17837fi
17838
212380e3
AC
17839
17840
17841cat >>confdefs.h <<_ACEOF
17842#define TOPICLEN ${TOPICLEN}
17843_ACEOF
17844
17845
17846cat >>confdefs.h <<_ACEOF
17847#define NICKLEN (${NICKLEN}+1)
17848_ACEOF
17849
17850
1a82970f
JT
17851# rpath, for finding libratbox.so at run time
17852hold_ldflags=$LDFLAGS
7083c021
AC
17853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
17854$as_echo_n "checking for the ld -rpath flag... " >&6; }
1a82970f 17855LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
7083c021 17856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a82970f
JT
17857/* end confdefs.h. */
17858
17859int
17860main ()
17861{
17862int i;
17863 ;
17864 return 0;
17865}
17866_ACEOF
7083c021 17867if ac_fn_c_try_link "$LINENO"; then :
1a82970f
JT
17868 found=yes
17869else
7083c021 17870 found=no
1a82970f 17871fi
7083c021
AC
17872rm -f core conftest.err conftest.$ac_objext \
17873 conftest$ac_exeext conftest.$ac_ext
1a82970f 17874LDFLAGS=$hold_ldflags
7083c021
AC
17875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
17876$as_echo "$found" >&6; }
1a82970f
JT
17877if test "$found" = yes; then
17878 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
17879fi
17880
212380e3
AC
17881# This must be down here, or it will mess up checks like the ones
17882# for -Wl,-export-dynamic
17883# -- jilles
d2c5159a 17884CWARNS=""
631ef239 17885# Check whether --enable-warnings was given.
7083c021 17886if test "${enable_warnings+set}" = set; then :
631ef239 17887 enableval=$enable_warnings;
212380e3
AC
17888IRC_CFLAGS="$IRC_CFLAGS -O0"
17889CFLAGS="$IRC_CFLAGS"
17890
17891
7083c021
AC
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
17893$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3
AC
17894 if test "${GCC-no}" = yes
17895 then
b6d0720c 17896 if ${charybdis_cv_c_gcc_w_all+:} false; then :
7083c021 17897 $as_echo_n "(cached) " >&6
212380e3
AC
17898else
17899
17900 oldcflags="${CFLAGS-}"
17901 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
7083c021 17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17903/* end confdefs.h. */
17904
17905#include <string.h>
17906#include <stdio.h>
17907int main(void);
17908
17909int
17910main ()
17911{
17912
b1fc1658 17913 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17914
17915 ;
17916 return 0;
17917}
17918_ACEOF
7083c021 17919if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17920 charybdis_cv_c_gcc_w_all=yes
17921else
7083c021 17922 charybdis_cv_c_gcc_w_all=no
212380e3 17923fi
631ef239 17924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17925 CFLAGS="${oldcflags}"
17926fi
17927
17928 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
17929 CWARNS="${CWARNS}-Wall "
7083c021
AC
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17931$as_echo "ok" >&6; }
212380e3
AC
17932 else
17933 charybdis_cv_c_gcc_w_all=''
7083c021
AC
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17935$as_echo "no" >&6; }
212380e3
AC
17936 fi
17937 else
7083c021
AC
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17939$as_echo "no" >&6; }
212380e3
AC
17940 fi
17941
17942
7083c021
AC
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
17944$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3
AC
17945 if test "${GCC-no}" = yes
17946 then
b6d0720c 17947 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
7083c021 17948 $as_echo_n "(cached) " >&6
212380e3
AC
17949else
17950
17951 oldcflags="${CFLAGS-}"
17952 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
7083c021 17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17954/* end confdefs.h. */
17955
17956#include <string.h>
17957#include <stdio.h>
17958int main(void);
17959
17960int
17961main ()
17962{
17963
b1fc1658 17964 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17965
17966 ;
17967 return 0;
17968}
17969_ACEOF
7083c021 17970if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17971 charybdis_cv_c_gcc_w_pointer_arith=yes
17972else
7083c021 17973 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 17974fi
631ef239 17975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17976 CFLAGS="${oldcflags}"
17977fi
17978
17979 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
17980 CWARNS="${CWARNS}-Wpointer-arith "
7083c021
AC
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17982$as_echo "ok" >&6; }
212380e3
AC
17983 else
17984 charybdis_cv_c_gcc_w_pointer_arith=''
7083c021
AC
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17986$as_echo "no" >&6; }
212380e3
AC
17987 fi
17988 else
7083c021
AC
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17990$as_echo "no" >&6; }
212380e3
AC
17991 fi
17992
17993
7083c021
AC
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
17995$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3
AC
17996 if test "${GCC-no}" = yes
17997 then
b6d0720c 17998 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
7083c021 17999 $as_echo_n "(cached) " >&6
212380e3
AC
18000else
18001
18002 oldcflags="${CFLAGS-}"
18003 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
7083c021 18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18005/* end confdefs.h. */
18006
18007#include <string.h>
18008#include <stdio.h>
18009int main(void);
18010
18011int
18012main ()
18013{
18014
b1fc1658 18015 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18016
18017 ;
18018 return 0;
18019}
18020_ACEOF
7083c021 18021if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18022 charybdis_cv_c_gcc_w_implicit=yes
18023else
7083c021 18024 charybdis_cv_c_gcc_w_implicit=no
212380e3 18025fi
631ef239 18026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18027 CFLAGS="${oldcflags}"
18028fi
18029
18030 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
18031 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
7083c021
AC
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18033$as_echo "ok" >&6; }
212380e3
AC
18034 else
18035 charybdis_cv_c_gcc_w_implicit=''
7083c021
AC
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18037$as_echo "no" >&6; }
212380e3
AC
18038 fi
18039 else
7083c021
AC
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18041$as_echo "no" >&6; }
212380e3
AC
18042 fi
18043
18044
7083c021
AC
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
18046$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3
AC
18047 if test "${GCC-no}" = yes
18048 then
b6d0720c 18049 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
7083c021 18050 $as_echo_n "(cached) " >&6
212380e3
AC
18051else
18052
18053 oldcflags="${CFLAGS-}"
18054 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
7083c021 18055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18056/* end confdefs.h. */
18057
18058#include <string.h>
18059#include <stdio.h>
18060int main(void);
18061
18062int
18063main ()
18064{
18065
b1fc1658 18066 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
7083c021
AC
18067
18068 ;
18069 return 0;
18070}
18071_ACEOF
18072if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18073 charybdis_cv_c_gcc_w_cast_align=yes
18074else
7083c021 18075 charybdis_cv_c_gcc_w_cast_align=no
212380e3 18076fi
631ef239 18077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18078 CFLAGS="${oldcflags}"
18079fi
18080
18081 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
18082 CWARNS="${CWARNS}-Wcast-align "
7083c021
AC
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18084$as_echo "ok" >&6; }
212380e3
AC
18085 else
18086 charybdis_cv_c_gcc_w_cast_align=''
7083c021
AC
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18088$as_echo "no" >&6; }
212380e3
AC
18089 fi
18090 else
7083c021
AC
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18092$as_echo "no" >&6; }
212380e3
AC
18093 fi
18094
18095
7083c021
AC
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
18097$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3
AC
18098 if test "${GCC-no}" = yes
18099 then
b6d0720c 18100 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
7083c021 18101 $as_echo_n "(cached) " >&6
212380e3
AC
18102else
18103
18104 oldcflags="${CFLAGS-}"
18105 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
7083c021 18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18107/* end confdefs.h. */
18108
18109#include <string.h>
18110#include <stdio.h>
18111int main(void);
18112
18113int
18114main ()
18115{
18116
b1fc1658 18117 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18118
18119 ;
18120 return 0;
18121}
18122_ACEOF
7083c021 18123if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18124 charybdis_cv_c_gcc_w_cast_qual=yes
18125else
7083c021 18126 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 18127fi
631ef239 18128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18129 CFLAGS="${oldcflags}"
18130fi
18131
18132 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
18133 CWARNS="${CWARNS}-Wcast-qual "
7083c021
AC
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18135$as_echo "ok" >&6; }
212380e3
AC
18136 else
18137 charybdis_cv_c_gcc_w_cast_qual=''
7083c021
AC
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139$as_echo "no" >&6; }
212380e3
AC
18140 fi
18141 else
7083c021
AC
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18143$as_echo "no" >&6; }
212380e3
AC
18144 fi
18145
18146
7083c021
AC
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
18148$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
d2c5159a
JT
18149 if test "${GCC-no}" = yes
18150 then
b6d0720c 18151 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
7083c021 18152 $as_echo_n "(cached) " >&6
d2c5159a
JT
18153else
18154
18155 oldcflags="${CFLAGS-}"
18156 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
7083c021 18157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d2c5159a
JT
18158/* end confdefs.h. */
18159
18160#include <string.h>
18161#include <stdio.h>
18162int main(void);
18163
18164int
18165main ()
18166{
18167
18168 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
18169
18170 ;
18171 return 0;
18172}
18173_ACEOF
7083c021 18174if ac_fn_c_try_compile "$LINENO"; then :
bbe58888 18175 charybdis_cv_c_gcc_w_write_strings=yes
d2c5159a 18176else
7083c021 18177 charybdis_cv_c_gcc_w_write_strings=no
d2c5159a 18178fi
d2c5159a
JT
18179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180 CFLAGS="${oldcflags}"
18181fi
18182
bbe58888 18183 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
d2c5159a 18184 CWARNS="${CWARNS}-Wwrite-strings "
7083c021
AC
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18186$as_echo "ok" >&6; }
d2c5159a 18187 else
bbe58888 18188 charybdis_cv_c_gcc_w_write_strings=''
7083c021
AC
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18190$as_echo "no" >&6; }
bbe58888
VY
18191 fi
18192 else
7083c021
AC
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18194$as_echo "no" >&6; }
bbe58888
VY
18195 fi
18196
18197
7083c021
AC
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
18199$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
bbe58888
VY
18200 if test "${GCC-no}" = yes
18201 then
b6d0720c 18202 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
7083c021 18203 $as_echo_n "(cached) " >&6
bbe58888
VY
18204else
18205
18206 oldcflags="${CFLAGS-}"
18207 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
7083c021 18208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bbe58888
VY
18209/* end confdefs.h. */
18210
18211#include <string.h>
18212#include <stdio.h>
18213int main(void);
18214
18215int
18216main ()
18217{
18218
18219 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
18220
18221 ;
18222 return 0;
18223}
18224_ACEOF
7083c021 18225if ac_fn_c_try_compile "$LINENO"; then :
bbe58888
VY
18226 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
18227else
7083c021 18228 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
bbe58888 18229fi
bbe58888
VY
18230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231 CFLAGS="${oldcflags}"
18232fi
18233
18234 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
18235 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
7083c021
AC
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18237$as_echo "ok" >&6; }
bbe58888
VY
18238 else
18239 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
7083c021
AC
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18241$as_echo "no" >&6; }
d2c5159a
JT
18242 fi
18243 else
7083c021
AC
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18245$as_echo "no" >&6; }
d2c5159a
JT
18246 fi
18247
18248
7083c021
AC
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
18250$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3
AC
18251 if test "${GCC-no}" = yes
18252 then
b6d0720c 18253 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
7083c021 18254 $as_echo_n "(cached) " >&6
212380e3
AC
18255else
18256
18257 oldcflags="${CFLAGS-}"
18258 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
7083c021 18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18260/* end confdefs.h. */
18261
18262#include <string.h>
18263#include <stdio.h>
18264int main(void);
18265
18266int
18267main ()
18268{
18269
b1fc1658 18270 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18271
18272 ;
18273 return 0;
18274}
18275_ACEOF
7083c021 18276if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18277 charybdis_cv_c_gcc_prototypes=yes
18278else
7083c021 18279 charybdis_cv_c_gcc_prototypes=no
212380e3 18280fi
631ef239 18281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18282 CFLAGS="${oldcflags}"
18283fi
18284
18285 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
18286 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
7083c021
AC
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18288$as_echo "ok" >&6; }
212380e3
AC
18289 else
18290 charybdis_cv_c_gcc_prototypes=''
7083c021
AC
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18292$as_echo "no" >&6; }
212380e3
AC
18293 fi
18294 else
7083c021
AC
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18296$as_echo "no" >&6; }
212380e3
AC
18297 fi
18298
18299
7083c021
AC
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
18301$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3
AC
18302 if test "${GCC-no}" = yes
18303 then
b6d0720c 18304 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
7083c021 18305 $as_echo_n "(cached) " >&6
212380e3
AC
18306else
18307
18308 oldcflags="${CFLAGS-}"
18309 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
7083c021 18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18311/* end confdefs.h. */
18312
18313#include <string.h>
18314#include <stdio.h>
18315int main(void);
18316
18317int
18318main ()
18319{
18320
b1fc1658 18321 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18322
18323 ;
18324 return 0;
18325}
18326_ACEOF
7083c021 18327if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18328 charybdis_cv_c_gcc_parenthesis=yes
18329else
7083c021 18330 charybdis_cv_c_gcc_parenthesis=no
212380e3 18331fi
631ef239 18332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18333 CFLAGS="${oldcflags}"
18334fi
18335
18336 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
18337 CWARNS="${CWARNS}-Wparenthesis "
7083c021
AC
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18339$as_echo "ok" >&6; }
212380e3
AC
18340 else
18341 charybdis_cv_c_gcc_parenthesis=''
7083c021
AC
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343$as_echo "no" >&6; }
212380e3
AC
18344 fi
18345 else
7083c021
AC
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18347$as_echo "no" >&6; }
212380e3
AC
18348 fi
18349
18350
7083c021
AC
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
18352$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3
AC
18353 if test "${GCC-no}" = yes
18354 then
b6d0720c 18355 if ${charybdis_cv_c_gcc_w+:} false; then :
7083c021 18356 $as_echo_n "(cached) " >&6
212380e3
AC
18357else
18358
18359 oldcflags="${CFLAGS-}"
18360 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
7083c021 18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18362/* end confdefs.h. */
18363
18364#include <string.h>
18365#include <stdio.h>
18366int main(void);
18367
18368int
18369main ()
18370{
18371
b1fc1658 18372 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18373
18374 ;
18375 return 0;
18376}
18377_ACEOF
7083c021 18378if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18379 charybdis_cv_c_gcc_w=yes
18380else
7083c021 18381 charybdis_cv_c_gcc_w=no
212380e3 18382fi
631ef239 18383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18384 CFLAGS="${oldcflags}"
18385fi
18386
18387 if test "x$charybdis_cv_c_gcc_w" = xyes; then
18388 CWARNS="${CWARNS}-W -Wno-unused "
7083c021
AC
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18390$as_echo "ok" >&6; }
212380e3
AC
18391 else
18392 charybdis_cv_c_gcc_w=''
7083c021
AC
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394$as_echo "no" >&6; }
212380e3
AC
18395 fi
18396 else
7083c021
AC
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18398$as_echo "no" >&6; }
212380e3
AC
18399 fi
18400
18401
7083c021
AC
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
18403$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3
AC
18404 if test "${GCC-no}" = yes
18405 then
b6d0720c 18406 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
7083c021 18407 $as_echo_n "(cached) " >&6
212380e3
AC
18408else
18409
18410 oldcflags="${CFLAGS-}"
18411 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
7083c021 18412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18413/* end confdefs.h. */
18414
18415#include <string.h>
18416#include <stdio.h>
18417int main(void);
18418
18419int
18420main ()
18421{
18422
b1fc1658 18423 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18424
18425 ;
18426 return 0;
18427}
18428_ACEOF
7083c021 18429if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18430 charybdis_cv_c_gcc_w_extra=yes
18431else
7083c021 18432 charybdis_cv_c_gcc_w_extra=no
212380e3 18433fi
631ef239 18434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18435 CFLAGS="${oldcflags}"
18436fi
18437
18438 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
18439 CWARNS="${CWARNS}-Wextra "
7083c021
AC
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18441$as_echo "ok" >&6; }
212380e3
AC
18442 else
18443 charybdis_cv_c_gcc_w_extra=''
7083c021
AC
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18445$as_echo "no" >&6; }
212380e3
AC
18446 fi
18447 else
7083c021
AC
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18449$as_echo "no" >&6; }
212380e3
AC
18450 fi
18451
18452
7083c021
AC
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
18454$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3
AC
18455 if test "${GCC-no}" = yes
18456 then
b6d0720c 18457 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
7083c021 18458 $as_echo_n "(cached) " >&6
212380e3
AC
18459else
18460
18461 oldcflags="${CFLAGS-}"
18462 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
7083c021 18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18464/* end confdefs.h. */
18465
18466#include <string.h>
18467#include <stdio.h>
18468int main(void);
18469
18470int
18471main ()
18472{
18473
b1fc1658 18474 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18475
18476 ;
18477 return 0;
18478}
18479_ACEOF
7083c021 18480if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18481 charybdis_cv_c_gcc_w_shadow=yes
18482else
7083c021 18483 charybdis_cv_c_gcc_w_shadow=no
212380e3 18484fi
631ef239 18485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18486 CFLAGS="${oldcflags}"
18487fi
18488
18489 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
18490 CWARNS="${CWARNS}-Wshadow "
7083c021
AC
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18492$as_echo "ok" >&6; }
212380e3
AC
18493 else
18494 charybdis_cv_c_gcc_w_shadow=''
7083c021
AC
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18496$as_echo "no" >&6; }
212380e3
AC
18497 fi
18498 else
7083c021
AC
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500$as_echo "no" >&6; }
212380e3
AC
18501 fi
18502
18503
7083c021
AC
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
18505$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3
AC
18506 if test "${GCC-no}" = yes
18507 then
b6d0720c 18508 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
7083c021 18509 $as_echo_n "(cached) " >&6
212380e3
AC
18510else
18511
18512 oldcflags="${CFLAGS-}"
18513 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
7083c021 18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18515/* end confdefs.h. */
18516
18517#include <string.h>
18518#include <stdio.h>
18519int main(void);
18520
18521int
18522main ()
18523{
18524
b1fc1658 18525 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18526
18527 ;
18528 return 0;
18529}
18530_ACEOF
7083c021 18531if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18532 charybdis_cv_c_gcc_w_missing_noreturn=yes
18533else
7083c021 18534 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 18535fi
631ef239 18536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18537 CFLAGS="${oldcflags}"
18538fi
18539
18540 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
18541 CWARNS="${CWARNS}-Wmissing-noreturn "
7083c021
AC
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18543$as_echo "ok" >&6; }
212380e3
AC
18544 else
18545 charybdis_cv_c_gcc_w_missing_noreturn=''
7083c021
AC
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18547$as_echo "no" >&6; }
212380e3
AC
18548 fi
18549 else
7083c021
AC
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18551$as_echo "no" >&6; }
212380e3
AC
18552 fi
18553
18554
7083c021
AC
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
18556$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3
AC
18557 if test "${GCC-no}" = yes
18558 then
b6d0720c 18559 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
7083c021 18560 $as_echo_n "(cached) " >&6
212380e3
AC
18561else
18562
18563 oldcflags="${CFLAGS-}"
18564 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
7083c021 18565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18566/* end confdefs.h. */
18567
18568#include <string.h>
18569#include <stdio.h>
18570int main(void);
18571
18572int
18573main ()
18574{
18575
b1fc1658 18576 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18577
18578 ;
18579 return 0;
18580}
18581_ACEOF
7083c021 18582if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18583 charybdis_cv_c_gcc_w_undef=yes
18584else
7083c021 18585 charybdis_cv_c_gcc_w_undef=no
212380e3 18586fi
631ef239 18587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18588 CFLAGS="${oldcflags}"
18589fi
18590
18591 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
18592 CWARNS="${CWARNS}-Wundef "
7083c021
AC
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18594$as_echo "ok" >&6; }
212380e3
AC
18595 else
18596 charybdis_cv_c_gcc_w_undef=''
7083c021
AC
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18598$as_echo "no" >&6; }
212380e3
AC
18599 fi
18600 else
7083c021
AC
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602$as_echo "no" >&6; }
212380e3
AC
18603 fi
18604
18605
7083c021
AC
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
18607$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3
AC
18608 if test "${GCC-no}" = yes
18609 then
b6d0720c 18610 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
7083c021 18611 $as_echo_n "(cached) " >&6
212380e3
AC
18612else
18613
18614 oldcflags="${CFLAGS-}"
18615 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
7083c021 18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18617/* end confdefs.h. */
18618
18619#include <string.h>
18620#include <stdio.h>
18621int main(void);
18622
18623int
18624main ()
18625{
18626
b1fc1658 18627 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18628
18629 ;
18630 return 0;
18631}
18632_ACEOF
7083c021 18633if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18634 charybdis_cv_c_gcc_w_packed=yes
18635else
7083c021 18636 charybdis_cv_c_gcc_w_packed=no
212380e3 18637fi
631ef239 18638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18639 CFLAGS="${oldcflags}"
18640fi
18641
18642 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
18643 CWARNS="${CWARNS}-Wpacked "
7083c021
AC
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18645$as_echo "ok" >&6; }
212380e3
AC
18646 else
18647 charybdis_cv_c_gcc_w_packed=''
7083c021
AC
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649$as_echo "no" >&6; }
212380e3
AC
18650 fi
18651 else
7083c021
AC
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18653$as_echo "no" >&6; }
212380e3
AC
18654 fi
18655
18656
7083c021
AC
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
18658$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3
AC
18659 if test "${GCC-no}" = yes
18660 then
b6d0720c 18661 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
7083c021 18662 $as_echo_n "(cached) " >&6
212380e3
AC
18663else
18664
18665 oldcflags="${CFLAGS-}"
18666 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
7083c021 18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18668/* end confdefs.h. */
18669
18670#include <string.h>
18671#include <stdio.h>
18672int main(void);
18673
18674int
18675main ()
18676{
18677
b1fc1658 18678 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18679
18680 ;
18681 return 0;
18682}
18683_ACEOF
7083c021 18684if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18685 charybdis_cv_c_gcc_w_nested_externs=yes
18686else
7083c021 18687 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 18688fi
631ef239 18689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18690 CFLAGS="${oldcflags}"
18691fi
18692
18693 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
18694 CWARNS="${CWARNS}-Wnested-externs "
7083c021
AC
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18696$as_echo "ok" >&6; }
212380e3
AC
18697 else
18698 charybdis_cv_c_gcc_w_nested_externs=''
7083c021
AC
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18700$as_echo "no" >&6; }
212380e3
AC
18701 fi
18702 else
7083c021
AC
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704$as_echo "no" >&6; }
212380e3
AC
18705 fi
18706
18707
7083c021
AC
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
18709$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3
AC
18710 if test "${GCC-no}" = yes
18711 then
b6d0720c 18712 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
7083c021 18713 $as_echo_n "(cached) " >&6
212380e3
AC
18714else
18715
18716 oldcflags="${CFLAGS-}"
18717 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
7083c021 18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18719/* end confdefs.h. */
18720
18721#include <string.h>
18722#include <stdio.h>
18723int main(void);
18724
18725int
18726main ()
18727{
18728
b1fc1658 18729 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18730
18731 ;
18732 return 0;
18733}
18734_ACEOF
7083c021 18735if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18736 charybdis_cv_c_gcc_w_unused=yes
18737else
7083c021 18738 charybdis_cv_c_gcc_w_unused=no
212380e3 18739fi
631ef239 18740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18741 CFLAGS="${oldcflags}"
18742fi
18743
18744 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
18745 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
7083c021
AC
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18747$as_echo "ok" >&6; }
212380e3
AC
18748 else
18749 charybdis_cv_c_gcc_w_unused=''
7083c021
AC
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18751$as_echo "no" >&6; }
212380e3
AC
18752 fi
18753 else
7083c021
AC
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18755$as_echo "no" >&6; }
212380e3
AC
18756 fi
18757
18758
7083c021
AC
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
18760$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3
AC
18761 if test "${GCC-no}" = yes
18762 then
b6d0720c 18763 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
7083c021 18764 $as_echo_n "(cached) " >&6
212380e3
AC
18765else
18766
18767 oldcflags="${CFLAGS-}"
18768 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
7083c021 18769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18770/* end confdefs.h. */
18771
18772#include <string.h>
18773#include <stdio.h>
18774int main(void);
18775
18776int
18777main ()
18778{
18779
b1fc1658 18780 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18781
18782 ;
18783 return 0;
18784}
18785_ACEOF
7083c021 18786if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18787 charybdis_cv_c_gcc_w_redundant_decls=yes
18788else
7083c021 18789 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 18790fi
631ef239 18791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18792 CFLAGS="${oldcflags}"
18793fi
18794
18795 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
18796 CWARNS="${CWARNS}-Wredundant-decls "
7083c021
AC
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18798$as_echo "ok" >&6; }
212380e3
AC
18799 else
18800 charybdis_cv_c_gcc_w_redundant_decls=''
7083c021
AC
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18802$as_echo "no" >&6; }
212380e3
AC
18803 fi
18804 else
7083c021
AC
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18806$as_echo "no" >&6; }
212380e3
AC
18807 fi
18808
18809
7083c021
AC
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
18811$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3
AC
18812 if test "${GCC-no}" = yes
18813 then
b6d0720c 18814 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
7083c021 18815 $as_echo_n "(cached) " >&6
212380e3
AC
18816else
18817
18818 oldcflags="${CFLAGS-}"
18819 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
7083c021 18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18821/* end confdefs.h. */
18822
18823#include <string.h>
18824#include <stdio.h>
18825int main(void);
18826
18827int
18828main ()
18829{
18830
b1fc1658 18831 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
18832
18833 ;
18834 return 0;
18835}
18836_ACEOF
7083c021 18837if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
18838 charybdis_cv_c_gcc_w_float_equal=yes
18839else
7083c021 18840 charybdis_cv_c_gcc_w_float_equal=no
212380e3 18841fi
631ef239 18842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
18843 CFLAGS="${oldcflags}"
18844fi
18845
18846 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
18847 CWARNS="${CWARNS}-Wfloat-equal "
7083c021
AC
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18849$as_echo "ok" >&6; }
212380e3
AC
18850 else
18851 charybdis_cv_c_gcc_w_float_equal=''
7083c021
AC
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18853$as_echo "no" >&6; }
212380e3
AC
18854 fi
18855 else
7083c021
AC
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857$as_echo "no" >&6; }
212380e3
AC
18858 fi
18859
18860
7083c021
AC
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
18862$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3
AC
18863 if test "${GCC-no}" = yes
18864 then
b6d0720c 18865 if ${charybdis_cv_c_gcc_w_format+:} false; then :
7083c021 18866 $as_echo_n "(cached) " >&6
212380e3
AC
18867else
18868
18869 oldcflags="${CFLAGS-}"
4a584d41 18870 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
7083c021 18871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
18872/* end confdefs.h. */
18873
18874#include <string.h>
18875#include <stdio.h>
18876int main(void);
18877
18878int
18879main ()
18880{
7083c021
AC
18881
18882 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
18883
212380e3
AC
18884 ;
18885 return 0;
18886}
18887_ACEOF
7083c021
AC
18888if ac_fn_c_try_compile "$LINENO"; then :
18889 charybdis_cv_c_gcc_w_format=yes
212380e3 18890else
7083c021
AC
18891 charybdis_cv_c_gcc_w_format=no
18892fi
18893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18894 CFLAGS="${oldcflags}"
18895fi
18896
18897 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
18898 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18900$as_echo "ok" >&6; }
18901 else
18902 charybdis_cv_c_gcc_w_format=''
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18904$as_echo "no" >&6; }
18905 fi
18906 else
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18908$as_echo "no" >&6; }
18909 fi
18910
18911
18912IRC_CFLAGS="$CFLAGS"
212380e3 18913
212380e3 18914fi
631ef239 18915
7083c021 18916
d2c5159a
JT
18917IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
18918
212380e3
AC
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932if test "$prefix" = "NONE"; then
18933
18934cat >>confdefs.h <<_ACEOF
18935#define IRCD_PREFIX "$ac_default_prefix"
18936_ACEOF
18937
18938
18939else
18940
18941
18942 prefix=`echo $prefix | sed 's/\/$//'`
18943
18944cat >>confdefs.h <<_ACEOF
18945#define IRCD_PREFIX "$prefix"
18946_ACEOF
18947
18948
18949fi
18950
0d73e7db 18951ac_config_files="$ac_config_files Makefile authd/Makefile bandb/Makefile ssld/Makefile extensions/Makefile ircd/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile"
9f9b7042 18952
2eff3833 18953ac_config_commands="$ac_config_commands tools/genssl_chmod"
212380e3
AC
18954
18955
18956cat >confcache <<\_ACEOF
18957# This file is a shell script that caches the results of configure
18958# tests run on this system so they can be shared between configure
18959# scripts and configure runs, see configure's option --config-cache.
18960# It is not useful on other systems. If it contains results you don't
18961# want to keep, you may remove or edit it.
18962#
18963# config.status only pays attention to the cache file if you give it
18964# the --recheck option to rerun configure.
18965#
18966# `ac_cv_env_foo' variables (set or unset) will be overridden when
18967# loading this file, other *unset* `ac_cv_foo' will be assigned the
18968# following values.
18969
18970_ACEOF
18971
18972# The following way of writing the cache mishandles newlines in values,
18973# but we know of no workaround that is simple, portable, and efficient.
631ef239 18974# So, we kill variables containing newlines.
212380e3
AC
18975# Ultrix sh set writes to stderr and can't be redirected directly,
18976# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
18977(
18978 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18979 eval ac_val=\$$ac_var
18980 case $ac_val in #(
18981 *${as_nl}*)
18982 case $ac_var in #(
7083c021
AC
18983 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18984$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239
AC
18985 esac
18986 case $ac_var in #(
18987 _ | IFS | as_nl) ;; #(
7083c021
AC
18988 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18989 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239
AC
18990 esac ;;
18991 esac
18992 done
18993
212380e3 18994 (set) 2>&1 |
631ef239
AC
18995 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18996 *${as_nl}ac_space=\ *)
7083c021
AC
18997 # `set' does not quote correctly, so add quotes: double-quote
18998 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3
AC
18999 sed -n \
19000 "s/'/'\\\\''/g;
19001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 19002 ;; #(
212380e3
AC
19003 *)
19004 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 19005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 19006 ;;
631ef239
AC
19007 esac |
19008 sort
19009) |
212380e3 19010 sed '
631ef239 19011 /^ac_cv_env_/b end
212380e3 19012 t clear
631ef239 19013 :clear
212380e3
AC
19014 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19015 t end
631ef239
AC
19016 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19017 :end' >>confcache
19018if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19019 if test -w "$cache_file"; then
b6d0720c 19020 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19022$as_echo "$as_me: updating cache $cache_file" >&6;}
b6d0720c
AC
19023 if test ! -f "$cache_file" || test -h "$cache_file"; then
19024 cat confcache >"$cache_file"
19025 else
19026 case $cache_file in #(
19027 */* | ?:*)
19028 mv -f confcache "$cache_file"$$ &&
19029 mv -f "$cache_file"$$ "$cache_file" ;; #(
19030 *)
19031 mv -f confcache "$cache_file" ;;
19032 esac
19033 fi
19034 fi
212380e3 19035 else
7083c021
AC
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19037$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
19038 fi
19039fi
19040rm -f confcache
19041
19042test "x$prefix" = xNONE && prefix=$ac_default_prefix
19043# Let make expand exec_prefix.
19044test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19045
212380e3
AC
19046DEFS=-DHAVE_CONFIG_H
19047
19048ac_libobjs=
19049ac_ltlibobjs=
b6d0720c 19050U=
212380e3
AC
19051for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19052 # 1. Remove the extension, and $U if already installed.
631ef239 19053 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7083c021 19054 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239
AC
19055 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19056 # will be set to the directory where LIBOBJS objects are built.
7083c021
AC
19057 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19058 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
19059done
19060LIBOBJS=$ac_libobjs
19061
19062LTLIBOBJS=$ac_ltlibobjs
19063
19064
c52df125
AC
19065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19066$as_echo_n "checking that generated files are newer than configure... " >&6; }
19067 if test -n "$am_sleep_pid"; then
19068 # Hide warnings about reused PIDs.
19069 wait $am_sleep_pid 2>/dev/null
19070 fi
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19072$as_echo "done" >&6; }
19073 if test -n "$EXEEXT"; then
19074 am__EXEEXT_TRUE=
19075 am__EXEEXT_FALSE='#'
19076else
19077 am__EXEEXT_TRUE='#'
19078 am__EXEEXT_FALSE=
19079fi
19080
19081if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19082 as_fn_error $? "conditional \"AMDEP\" was never defined.
19083Usually this means the macro was only invoked conditionally." "$LINENO" 5
19084fi
19085if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19086 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19087Usually this means the macro was only invoked conditionally." "$LINENO" 5
19088fi
19089if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
19090 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
19091Usually this means the macro was only invoked conditionally." "$LINENO" 5
19092fi
19093if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
19094 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
19095Usually this means the macro was only invoked conditionally." "$LINENO" 5
19096fi
19097LT_CONFIG_H=include/setup.h
19098
19099 _ltdl_libobjs=
19100 _ltdl_ltlibobjs=
19101 if test -n "$_LT_LIBOBJS"; then
19102 # Remove the extension.
19103 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19104 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19105 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19106 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19107 done
19108 fi
19109 ltdl_LIBOBJS=$_ltdl_libobjs
19110
19111 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19112
19113
19114if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then
19115 as_fn_error $? "conditional \"BUILD_LTDL\" was never defined.
19116Usually this means the macro was only invoked conditionally." "$LINENO" 5
19117fi
19118if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19119 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19120Usually this means the macro was only invoked conditionally." "$LINENO" 5
19121fi
212380e3 19122
7083c021
AC
19123
19124
b6d0720c 19125: "${CONFIG_STATUS=./config.status}"
7083c021 19126ac_write_fail=0
212380e3
AC
19127ac_clean_files_save=$ac_clean_files
19128ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083c021
AC
19129{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19130$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19131as_write_fail=0
19132cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3
AC
19133#! $SHELL
19134# Generated by $as_me.
19135# Run this file to recreate the current configuration.
19136# Compiler output produced by configure, useful for debugging
19137# configure, is in config.log if it exists.
19138
19139debug=false
19140ac_cs_recheck=false
19141ac_cs_silent=false
212380e3 19142
7083c021
AC
19143SHELL=\${CONFIG_SHELL-$SHELL}
19144export SHELL
19145_ASEOF
19146cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19147## -------------------- ##
19148## M4sh Initialization. ##
19149## -------------------- ##
212380e3 19150
631ef239
AC
19151# Be more Bourne compatible
19152DUALCASE=1; export DUALCASE # for MKS sh
7083c021 19153if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
19154 emulate sh
19155 NULLCMD=:
7083c021 19156 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
19157 # is contrary to our usage. Disable this feature.
19158 alias -g '${1+"$@"}'='"$@"'
631ef239 19159 setopt NO_GLOB_SUBST
212380e3 19160else
7083c021
AC
19161 case `(set -o) 2>/dev/null` in #(
19162 *posix*) :
19163 set -o posix ;; #(
19164 *) :
19165 ;;
631ef239 19166esac
212380e3
AC
19167fi
19168
19169
7083c021
AC
19170as_nl='
19171'
19172export as_nl
19173# Printing a long string crashes Solaris 7 /usr/bin/printf.
19174as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19175as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19176as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19177# Prefer a ksh shell builtin over an external printf program on Solaris,
19178# but without wasting forks for bash or zsh.
19179if test -z "$BASH_VERSION$ZSH_VERSION" \
19180 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19181 as_echo='print -r --'
19182 as_echo_n='print -rn --'
19183elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19184 as_echo='printf %s\n'
19185 as_echo_n='printf %s'
19186else
19187 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19188 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19189 as_echo_n='/usr/ucb/echo -n'
631ef239 19190 else
7083c021
AC
19191 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19192 as_echo_n_body='eval
19193 arg=$1;
19194 case $arg in #(
19195 *"$as_nl"*)
19196 expr "X$arg" : "X\\(.*\\)$as_nl";
19197 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19198 esac;
19199 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19200 '
19201 export as_echo_n_body
19202 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 19203 fi
7083c021
AC
19204 export as_echo_body
19205 as_echo='sh -c $as_echo_body as_echo'
631ef239
AC
19206fi
19207
7083c021
AC
19208# The user is always right.
19209if test "${PATH_SEPARATOR+set}" != set; then
19210 PATH_SEPARATOR=:
19211 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19212 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19213 PATH_SEPARATOR=';'
19214 }
631ef239
AC
19215fi
19216
19217
19218# IFS
19219# We need space, tab and new line, in precisely that order. Quoting is
19220# there to prevent editors from complaining about space-tab.
19221# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19222# splitting by setting IFS to empty value.)
631ef239
AC
19223IFS=" "" $as_nl"
19224
19225# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 19226as_myself=
7083c021 19227case $0 in #((
631ef239
AC
19228 *[\\/]* ) as_myself=$0 ;;
19229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19230for as_dir in $PATH
19231do
19232 IFS=$as_save_IFS
19233 test -z "$as_dir" && as_dir=.
7083c021
AC
19234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19235 done
631ef239
AC
19236IFS=$as_save_IFS
19237
19238 ;;
19239esac
19240# We did not find ourselves, most probably we were run as `sh COMMAND'
19241# in which case we are not to be found in the path.
19242if test "x$as_myself" = x; then
19243 as_myself=$0
19244fi
19245if test ! -f "$as_myself"; then
7083c021
AC
19246 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19247 exit 1
631ef239
AC
19248fi
19249
7083c021
AC
19250# Unset variables that we do not need and which cause bugs (e.g. in
19251# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19252# suppresses any "Segmentation fault" message there. '((' could
19253# trigger a bug in pdksh 5.2.14.
19254for as_var in BASH_ENV ENV MAIL MAILPATH
19255do eval test x\${$as_var+set} = xset \
19256 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 19257done
212380e3
AC
19258PS1='$ '
19259PS2='> '
19260PS4='+ '
19261
7083c021
AC
19262# NLS nuisances.
19263LC_ALL=C
19264export LC_ALL
19265LANGUAGE=C
19266export LANGUAGE
19267
19268# CDPATH.
19269(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19270
19271
b6d0720c
AC
19272# as_fn_error STATUS ERROR [LINENO LOG_FD]
19273# ----------------------------------------
7083c021
AC
19274# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19275# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 19276# script with STATUS, using 1 if that was 0.
7083c021
AC
19277as_fn_error ()
19278{
b6d0720c
AC
19279 as_status=$1; test $as_status -eq 0 && as_status=1
19280 if test "$4"; then
19281 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19282 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
212380e3 19283 fi
b6d0720c 19284 $as_echo "$as_me: error: $2" >&2
7083c021
AC
19285 as_fn_exit $as_status
19286} # as_fn_error
19287
19288
19289# as_fn_set_status STATUS
19290# -----------------------
19291# Set $? to STATUS, without forking.
19292as_fn_set_status ()
19293{
19294 return $1
19295} # as_fn_set_status
19296
19297# as_fn_exit STATUS
19298# -----------------
19299# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19300as_fn_exit ()
19301{
19302 set +e
19303 as_fn_set_status $1
19304 exit $1
19305} # as_fn_exit
19306
19307# as_fn_unset VAR
19308# ---------------
19309# Portably unset VAR.
19310as_fn_unset ()
19311{
19312 { eval $1=; unset $1;}
19313}
19314as_unset=as_fn_unset
19315# as_fn_append VAR VALUE
19316# ----------------------
19317# Append the text in VALUE to the end of the definition contained in VAR. Take
19318# advantage of any shell optimizations that allow amortized linear growth over
19319# repeated appends, instead of the typical quadratic growth present in naive
19320# implementations.
19321if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19322 eval 'as_fn_append ()
19323 {
19324 eval $1+=\$2
19325 }'
19326else
19327 as_fn_append ()
19328 {
19329 eval $1=\$$1\$2
19330 }
19331fi # as_fn_append
19332
19333# as_fn_arith ARG...
19334# ------------------
19335# Perform arithmetic evaluation on the ARGs, and store the result in the
19336# global $as_val. Take advantage of shells that can avoid forks. The arguments
19337# must be portable across $(()) and expr.
19338if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19339 eval 'as_fn_arith ()
19340 {
19341 as_val=$(( $* ))
19342 }'
19343else
19344 as_fn_arith ()
19345 {
19346 as_val=`expr "$@" || test $? -eq 1`
19347 }
19348fi # as_fn_arith
19349
212380e3 19350
631ef239
AC
19351if expr a : '\(a\)' >/dev/null 2>&1 &&
19352 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
19353 as_expr=expr
19354else
19355 as_expr=false
19356fi
19357
631ef239 19358if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
19359 as_basename=basename
19360else
19361 as_basename=false
19362fi
19363
7083c021
AC
19364if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19365 as_dirname=dirname
19366else
19367 as_dirname=false
19368fi
212380e3 19369
631ef239 19370as_me=`$as_basename -- "$0" ||
212380e3
AC
19371$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19372 X"$0" : 'X\(//\)$' \| \
631ef239 19373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 19374$as_echo X/"$0" |
631ef239
AC
19375 sed '/^.*\/\([^/][^/]*\)\/*$/{
19376 s//\1/
19377 q
19378 }
19379 /^X\/\(\/\/\)$/{
19380 s//\1/
19381 q
19382 }
19383 /^X\/\(\/\).*/{
19384 s//\1/
19385 q
19386 }
19387 s/.*/./; q'`
212380e3 19388
7083c021
AC
19389# Avoid depending upon Character Ranges.
19390as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19391as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19392as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19393as_cr_digits='0123456789'
19394as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239
AC
19395
19396ECHO_C= ECHO_N= ECHO_T=
7083c021 19397case `echo -n x` in #(((((
631ef239 19398-n*)
7083c021 19399 case `echo 'xy\c'` in
631ef239 19400 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7083c021
AC
19401 xy) ECHO_C='\c';;
19402 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19403 ECHO_T=' ';;
631ef239
AC
19404 esac;;
19405*)
19406 ECHO_N='-n';;
212380e3
AC
19407esac
19408
212380e3 19409rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
19410if test -d conf$$.dir; then
19411 rm -f conf$$.dir/conf$$.file
19412else
19413 rm -f conf$$.dir
7083c021
AC
19414 mkdir conf$$.dir 2>/dev/null
19415fi
19416if (echo >conf$$.file) 2>/dev/null; then
19417 if ln -s conf$$.file conf$$ 2>/dev/null; then
19418 as_ln_s='ln -s'
19419 # ... but there are two gotchas:
19420 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19421 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2eff3833 19422 # In both cases, we have to default to `cp -pR'.
7083c021 19423 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2eff3833 19424 as_ln_s='cp -pR'
7083c021
AC
19425 elif ln conf$$.file conf$$ 2>/dev/null; then
19426 as_ln_s=ln
19427 else
2eff3833 19428 as_ln_s='cp -pR'
7083c021 19429 fi
212380e3 19430else
2eff3833 19431 as_ln_s='cp -pR'
212380e3 19432fi
631ef239
AC
19433rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19434rmdir conf$$.dir 2>/dev/null
212380e3 19435
7083c021
AC
19436
19437# as_fn_mkdir_p
19438# -------------
19439# Create "$as_dir" as a directory, including parents if necessary.
19440as_fn_mkdir_p ()
19441{
19442
19443 case $as_dir in #(
19444 -*) as_dir=./$as_dir;;
19445 esac
19446 test -d "$as_dir" || eval $as_mkdir_p || {
19447 as_dirs=
19448 while :; do
19449 case $as_dir in #(
19450 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19451 *) as_qdir=$as_dir;;
19452 esac
19453 as_dirs="'$as_qdir' $as_dirs"
19454 as_dir=`$as_dirname -- "$as_dir" ||
19455$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19456 X"$as_dir" : 'X\(//\)[^/]' \| \
19457 X"$as_dir" : 'X\(//\)$' \| \
19458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19459$as_echo X"$as_dir" |
19460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19461 s//\1/
19462 q
19463 }
19464 /^X\(\/\/\)[^/].*/{
19465 s//\1/
19466 q
19467 }
19468 /^X\(\/\/\)$/{
19469 s//\1/
19470 q
19471 }
19472 /^X\(\/\).*/{
19473 s//\1/
19474 q
19475 }
19476 s/.*/./; q'`
19477 test -d "$as_dir" && break
19478 done
19479 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 19480 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
19481
19482
19483} # as_fn_mkdir_p
212380e3 19484if mkdir -p . 2>/dev/null; then
7083c021 19485 as_mkdir_p='mkdir -p "$as_dir"'
212380e3
AC
19486else
19487 test -d ./-p && rmdir ./-p
19488 as_mkdir_p=false
19489fi
19490
2eff3833
JT
19491
19492# as_fn_executable_p FILE
19493# -----------------------
19494# Test if FILE is an executable regular file.
19495as_fn_executable_p ()
19496{
19497 test -f "$1" && test -x "$1"
19498} # as_fn_executable_p
19499as_test_x='test -x'
19500as_executable_p=as_fn_executable_p
212380e3
AC
19501
19502# Sed expression to map a string onto a valid CPP name.
19503as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19504
19505# Sed expression to map a string onto a valid variable name.
19506as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19507
19508
212380e3 19509exec 6>&1
7083c021
AC
19510## ----------------------------------- ##
19511## Main body of $CONFIG_STATUS script. ##
19512## ----------------------------------- ##
19513_ASEOF
19514test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 19515
7083c021
AC
19516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19517# Save the log message, to keep $0 and so on meaningful, and to
212380e3 19518# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
19519# values after options handling.
19520ac_log="
c52df125 19521This file was extended by charybdis $as_me 3.6.0-dev, which was
2eff3833 19522generated by GNU Autoconf 2.69. Invocation command line was
212380e3
AC
19523
19524 CONFIG_FILES = $CONFIG_FILES
19525 CONFIG_HEADERS = $CONFIG_HEADERS
19526 CONFIG_LINKS = $CONFIG_LINKS
19527 CONFIG_COMMANDS = $CONFIG_COMMANDS
19528 $ $0 $@
19529
631ef239
AC
19530on `(hostname || uname -n) 2>/dev/null | sed 1q`
19531"
19532
212380e3
AC
19533_ACEOF
19534
7083c021
AC
19535case $ac_config_files in *"
19536"*) set x $ac_config_files; shift; ac_config_files=$*;;
19537esac
19538
19539case $ac_config_headers in *"
19540"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19541esac
19542
19543
19544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 19545# Files that config.status was made for.
631ef239
AC
19546config_files="$ac_config_files"
19547config_headers="$ac_config_headers"
9f9b7042 19548config_commands="$ac_config_commands"
212380e3 19549
631ef239 19550_ACEOF
212380e3 19551
7083c021 19552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 19553ac_cs_usage="\
7083c021
AC
19554\`$as_me' instantiates files and other configuration actions
19555from templates according to the current configuration. Unless the files
19556and actions are specified as TAGs, all are instantiated by default.
212380e3 19557
7083c021 19558Usage: $0 [OPTION]... [TAG]...
212380e3
AC
19559
19560 -h, --help print this help, then exit
631ef239 19561 -V, --version print version number and configuration settings, then exit
6fb6bd15 19562 --config print configuration, then exit
7083c021
AC
19563 -q, --quiet, --silent
19564 do not print progress messages
212380e3
AC
19565 -d, --debug don't remove temporary files
19566 --recheck update $as_me by reconfiguring in the same conditions
7083c021
AC
19567 --file=FILE[:TEMPLATE]
19568 instantiate the configuration file FILE
19569 --header=FILE[:TEMPLATE]
19570 instantiate the configuration header FILE
212380e3
AC
19571
19572Configuration files:
19573$config_files
19574
19575Configuration headers:
19576$config_headers
19577
9f9b7042
NPB
19578Configuration commands:
19579$config_commands
19580
7083c021 19581Report bugs to the package provider."
212380e3 19582
631ef239 19583_ACEOF
7083c021 19584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6fb6bd15 19585ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
212380e3 19586ac_cs_version="\\
c52df125 19587charybdis config.status 3.6.0-dev
2eff3833 19588configured by $0, generated by GNU Autoconf 2.69,
6fb6bd15 19589 with options \\"\$ac_cs_config\\"
212380e3 19590
2eff3833 19591Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
19592This config.status script is free software; the Free Software Foundation
19593gives unlimited permission to copy, distribute and modify it."
631ef239
AC
19594
19595ac_pwd='$ac_pwd'
19596srcdir='$srcdir'
19597INSTALL='$INSTALL'
c52df125
AC
19598MKDIR_P='$MKDIR_P'
19599AWK='$AWK'
7083c021 19600test -n "\$AWK" || AWK=awk
212380e3
AC
19601_ACEOF
19602
7083c021
AC
19603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19604# The default lists apply if the user does not specify any file.
212380e3
AC
19605ac_need_defaults=:
19606while test $# != 0
19607do
19608 case $1 in
b6d0720c 19609 --*=?*)
631ef239
AC
19610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19611 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
19612 ac_shift=:
19613 ;;
b6d0720c
AC
19614 --*=)
19615 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19616 ac_optarg=
19617 ac_shift=:
19618 ;;
631ef239 19619 *)
212380e3
AC
19620 ac_option=$1
19621 ac_optarg=$2
19622 ac_shift=shift
19623 ;;
212380e3
AC
19624 esac
19625
19626 case $ac_option in
19627 # Handling of the options.
212380e3
AC
19628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19629 ac_cs_recheck=: ;;
631ef239 19630 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7083c021 19631 $as_echo "$ac_cs_version"; exit ;;
6fb6bd15
AC
19632 --config | --confi | --conf | --con | --co | --c )
19633 $as_echo "$ac_cs_config"; exit ;;
631ef239 19634 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
19635 debug=: ;;
19636 --file | --fil | --fi | --f )
19637 $ac_shift
7083c021
AC
19638 case $ac_optarg in
19639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b6d0720c 19640 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
19641 esac
19642 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3
AC
19643 ac_need_defaults=false;;
19644 --header | --heade | --head | --hea )
19645 $ac_shift
7083c021
AC
19646 case $ac_optarg in
19647 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19648 esac
19649 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 19650 ac_need_defaults=false;;
631ef239
AC
19651 --he | --h)
19652 # Conflict between --help and --header
b6d0720c 19653 as_fn_error $? "ambiguous option: \`$1'
7083c021 19654Try \`$0 --help' for more information.";;
631ef239 19655 --help | --hel | -h )
7083c021 19656 $as_echo "$ac_cs_usage"; exit ;;
212380e3
AC
19657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19659 ac_cs_silent=: ;;
19660
19661 # This is an error.
b6d0720c 19662 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021 19663Try \`$0 --help' for more information." ;;
212380e3 19664
7083c021 19665 *) as_fn_append ac_config_targets " $1"
631ef239 19666 ac_need_defaults=false ;;
212380e3
AC
19667
19668 esac
19669 shift
19670done
19671
19672ac_configure_extra_args=
19673
19674if $ac_cs_silent; then
19675 exec 6>/dev/null
19676 ac_configure_extra_args="$ac_configure_extra_args --silent"
19677fi
19678
19679_ACEOF
7083c021 19680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 19681if \$ac_cs_recheck; then
2eff3833 19682 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7083c021
AC
19683 shift
19684 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19685 CONFIG_SHELL='$SHELL'
631ef239 19686 export CONFIG_SHELL
7083c021 19687 exec "\$@"
212380e3
AC
19688fi
19689
19690_ACEOF
7083c021 19691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
19692exec 5>>config.log
19693{
19694 echo
19695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19696## Running $as_me. ##
19697_ASBOX
7083c021 19698 $as_echo "$ac_log"
631ef239 19699} >&5
212380e3 19700
631ef239 19701_ACEOF
7083c021 19702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c52df125
AC
19703#
19704# INIT-COMMANDS
19705#
19706AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19707
19708
19709# The HP-UX ksh and POSIX shell print the target directory to stdout
19710# if CDPATH is set.
19711(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19712
19713sed_quote_subst='$sed_quote_subst'
19714double_quote_subst='$double_quote_subst'
19715delay_variable_subst='$delay_variable_subst'
19716macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19717macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19718enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19719enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19720pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19721enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19722SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19723ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19724PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19725host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19726host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19727host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19728build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19729build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19730build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19731SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19732Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19733GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19734EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19735FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19736LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19737NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19738LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19739max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19740ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19741exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19742lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19743lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19744lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19745lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19746lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19747reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19748reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19749OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19750deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19751file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19752file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19753want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19754DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19755sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19756AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19757AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19758archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19759STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19760RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19761old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19762old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19763old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19764lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19765CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19766CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19767compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19768GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19769lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19770lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19771lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19772lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19773nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19774lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19775objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19776MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19777lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19778lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19779lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19780lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19781lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19782need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19783MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19784DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19785NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19786LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19787OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19788OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19789libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19790shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19791extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19792archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19793enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19794export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19795whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19796compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19797old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19798old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19799archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19800archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19801module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19802module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19803with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19804allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19805no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19806hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19807hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19808hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19809hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19810hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19811hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19812hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19813inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19814link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19815always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19816export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19817exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19818include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19819prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19820postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19821file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19822variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19823need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19824need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19825version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19826runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19827shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19828shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19829libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19830library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19831soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19832install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19833postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19834postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19835finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19836finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19837hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19838sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19839sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19840hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19841enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19842enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19843enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19844old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19845striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19846
19847LTCC='$LTCC'
19848LTCFLAGS='$LTCFLAGS'
19849compiler='$compiler_DEFAULT'
19850
19851# A function that is used when there is no print builtin or printf.
19852func_fallback_echo ()
19853{
19854 eval 'cat <<_LTECHO_EOF
19855\$1
19856_LTECHO_EOF'
19857}
19858
19859# Quote evaled strings.
19860for var in SHELL \
19861ECHO \
19862PATH_SEPARATOR \
19863SED \
19864GREP \
19865EGREP \
19866FGREP \
19867LD \
19868NM \
19869LN_S \
19870lt_SP2NL \
19871lt_NL2SP \
19872reload_flag \
19873OBJDUMP \
19874deplibs_check_method \
19875file_magic_cmd \
19876file_magic_glob \
19877want_nocaseglob \
19878DLLTOOL \
19879sharedlib_from_linklib_cmd \
19880AR \
19881AR_FLAGS \
19882archiver_list_spec \
19883STRIP \
19884RANLIB \
19885CC \
19886CFLAGS \
19887compiler \
19888lt_cv_sys_global_symbol_pipe \
19889lt_cv_sys_global_symbol_to_cdecl \
19890lt_cv_sys_global_symbol_to_c_name_address \
19891lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19892nm_file_list_spec \
19893lt_prog_compiler_no_builtin_flag \
19894lt_prog_compiler_pic \
19895lt_prog_compiler_wl \
19896lt_prog_compiler_static \
19897lt_cv_prog_compiler_c_o \
19898need_locks \
19899MANIFEST_TOOL \
19900DSYMUTIL \
19901NMEDIT \
19902LIPO \
19903OTOOL \
19904OTOOL64 \
19905shrext_cmds \
19906export_dynamic_flag_spec \
19907whole_archive_flag_spec \
19908compiler_needs_object \
19909with_gnu_ld \
19910allow_undefined_flag \
19911no_undefined_flag \
19912hardcode_libdir_flag_spec \
19913hardcode_libdir_separator \
19914exclude_expsyms \
19915include_expsyms \
19916file_list_spec \
19917variables_saved_for_relink \
19918libname_spec \
19919library_names_spec \
19920soname_spec \
19921install_override_mode \
19922finish_eval \
19923old_striplib \
19924striplib; do
19925 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19926 *[\\\\\\\`\\"\\\$]*)
19927 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19928 ;;
19929 *)
19930 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19931 ;;
19932 esac
19933done
19934
19935# Double-quote double-evaled strings.
19936for var in reload_cmds \
19937old_postinstall_cmds \
19938old_postuninstall_cmds \
19939old_archive_cmds \
19940extract_expsyms_cmds \
19941old_archive_from_new_cmds \
19942old_archive_from_expsyms_cmds \
19943archive_cmds \
19944archive_expsym_cmds \
19945module_cmds \
19946module_expsym_cmds \
19947export_symbols_cmds \
19948prelink_cmds \
19949postlink_cmds \
19950postinstall_cmds \
19951postuninstall_cmds \
19952finish_cmds \
19953sys_lib_search_path_spec \
19954sys_lib_dlsearch_path_spec; do
19955 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19956 *[\\\\\\\`\\"\\\$]*)
19957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19958 ;;
19959 *)
19960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19961 ;;
19962 esac
19963done
19964
19965ac_aux_dir='$ac_aux_dir'
19966xsi_shell='$xsi_shell'
19967lt_shell_append='$lt_shell_append'
19968
19969# See if we are running on zsh, and set the options which allow our
19970# commands through without removal of \ escapes INIT.
19971if test -n "\${ZSH_VERSION+set}" ; then
19972 setopt NO_GLOB_SUBST
19973fi
19974
19975
19976 PACKAGE='$PACKAGE'
19977 VERSION='$VERSION'
19978 TIMESTAMP='$TIMESTAMP'
19979 RM='$RM'
19980 ofile='$ofile'
19981
19982
19983
19984
631ef239 19985_ACEOF
212380e3 19986
7083c021 19987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
19988
19989# Handling of arguments.
212380e3
AC
19990for ac_config_target in $ac_config_targets
19991do
631ef239
AC
19992 case $ac_config_target in
19993 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
c52df125
AC
19994 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19995 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
631ef239 19996 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
0d73e7db 19997 "authd/Makefile") CONFIG_FILES="$CONFIG_FILES authd/Makefile" ;;
7083c021 19998 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
53970d07 19999 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 20000 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
46fded53 20001 "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
631ef239
AC
20002 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
20003 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
2eff3833 20004 "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;;
631ef239
AC
20005 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20006 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
2eff3833 20007 "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;;
631ef239 20008
b6d0720c 20009 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3
AC
20010 esac
20011done
20012
631ef239 20013
212380e3
AC
20014# If the user did not use the arguments to specify the items to instantiate,
20015# then the envvar interface is used. Set only those that are not.
20016# We use the long form for the default assignment because of an extremely
20017# bizarre bug on SunOS 4.1.3.
20018if $ac_need_defaults; then
20019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9f9b7042 20021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
212380e3
AC
20022fi
20023
20024# Have a temporary directory for convenience. Make it in the build tree
631ef239 20025# simply because there is no reason against having it here, and in addition,
212380e3 20026# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
20027# Hook for its removal unless debugging.
20028# Note that there is a small window in which the directory will not be cleaned:
20029# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
20030$debug ||
20031{
b6d0720c 20032 tmp= ac_tmp=
631ef239 20033 trap 'exit_status=$?
b6d0720c
AC
20034 : "${ac_tmp:=$tmp}"
20035 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
631ef239 20036' 0
7083c021 20037 trap 'as_fn_exit 1' 1 2 13 15
212380e3 20038}
212380e3
AC
20039# Create a (secure) tmp directory for tmp files.
20040
20041{
631ef239 20042 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b6d0720c 20043 test -d "$tmp"
212380e3
AC
20044} ||
20045{
631ef239
AC
20046 tmp=./conf$$-$RANDOM
20047 (umask 077 && mkdir "$tmp")
b6d0720c
AC
20048} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20049ac_tmp=$tmp
212380e3 20050
7083c021
AC
20051# Set up the scripts for CONFIG_FILES section.
20052# No need to generate them if there are no CONFIG_FILES.
20053# This happens for instance with `./config.status config.h'.
631ef239
AC
20054if test -n "$CONFIG_FILES"; then
20055
631ef239 20056
7083c021
AC
20057ac_cr=`echo X | tr X '\015'`
20058# On cygwin, bash can eat \r inside `` if the user requested igncr.
20059# But we know of no other shell where ac_cr would be empty at this
20060# point, so we can use a bashism as a fallback.
20061if test "x$ac_cr" = x; then
20062 eval ac_cr=\$\'\\r\'
20063fi
20064ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20065if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b6d0720c 20066 ac_cs_awk_cr='\\r'
7083c021
AC
20067else
20068 ac_cs_awk_cr=$ac_cr
20069fi
20070
b6d0720c 20071echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7083c021 20072_ACEOF
631ef239
AC
20073
20074
7083c021
AC
20075{
20076 echo "cat >conf$$subs.awk <<_ACEOF" &&
20077 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20078 echo "_ACEOF"
20079} >conf$$subs.sh ||
b6d0720c
AC
20080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20081ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
631ef239
AC
20082ac_delim='%!_!# '
20083for ac_last_try in false false false false false :; do
7083c021 20084 . ./conf$$subs.sh ||
b6d0720c 20085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
20086
20087 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20088 if test $ac_delim_n = $ac_delim_num; then
631ef239
AC
20089 break
20090 elif $ac_last_try; then
b6d0720c 20091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239
AC
20092 else
20093 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 20094 fi
631ef239 20095done
7083c021
AC
20096rm -f conf$$subs.sh
20097
20098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b6d0720c 20099cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7083c021
AC
20100_ACEOF
20101sed -n '
20102h
20103s/^/S["/; s/!.*/"]=/
20104p
20105g
20106s/^[^!]*!//
20107:repl
20108t repl
20109s/'"$ac_delim"'$//
20110t delim
20111:nl
20112h
6fb6bd15 20113s/\(.\{148\}\)..*/\1/
7083c021
AC
20114t more1
20115s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20116p
20117n
20118b repl
20119:more1
20120s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20121p
20122g
20123s/.\{148\}//
20124t nl
20125:delim
20126h
6fb6bd15 20127s/\(.\{148\}\)..*/\1/
7083c021
AC
20128t more2
20129s/["\\]/\\&/g; s/^/"/; s/$/"/
20130p
20131b
20132:more2
20133s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20134p
20135g
20136s/.\{148\}//
20137t delim
20138' <conf$$subs.awk | sed '
20139/^[^""]/{
20140 N
20141 s/\n//
20142}
20143' >>$CONFIG_STATUS || ac_write_fail=1
20144rm -f conf$$subs.awk
20145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20146_ACAWK
b6d0720c 20147cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
20148 for (key in S) S_is_set[key] = 1
20149 FS = "\a"
212380e3 20150
7083c021
AC
20151}
20152{
20153 line = $ 0
20154 nfields = split(line, field, "@")
20155 substed = 0
20156 len = length(field[1])
20157 for (i = 2; i < nfields; i++) {
20158 key = field[i]
20159 keylen = length(key)
20160 if (S_is_set[key]) {
20161 value = S[key]
20162 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20163 len += length(value) + length(field[++i])
20164 substed = 1
20165 } else
20166 len += 1 + keylen
20167 }
631ef239 20168
7083c021
AC
20169 print line
20170}
20171
20172_ACAWK
631ef239 20173_ACEOF
7083c021
AC
20174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20175if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20176 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20177else
20178 cat
b6d0720c
AC
20179fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20180 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
212380e3 20181_ACEOF
631ef239 20182
b6d0720c
AC
20183# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20184# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
631ef239
AC
20185# trailing colons and then remove the whole line if VPATH becomes empty
20186# (actually we leave an empty line to preserve line numbers).
20187if test "x$srcdir" = x.; then
b6d0720c
AC
20188 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20189h
20190s///
20191s/^/:/
20192s/[ ]*$/:/
20193s/:\$(srcdir):/:/g
20194s/:\${srcdir}:/:/g
20195s/:@srcdir@:/:/g
20196s/^:*//
631ef239 20197s/:*$//
b6d0720c
AC
20198x
20199s/\(=[ ]*\).*/\1/
20200G
20201s/\n//
631ef239
AC
20202s/^[^=]*=[ ]*$//
20203}'
20204fi
20205
7083c021 20206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
20207fi # test -n "$CONFIG_FILES"
20208
7083c021
AC
20209# Set up the scripts for CONFIG_HEADERS section.
20210# No need to generate them if there are no CONFIG_HEADERS.
20211# This happens for instance with `./config.status Makefile'.
20212if test -n "$CONFIG_HEADERS"; then
b6d0720c 20213cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021
AC
20214BEGIN {
20215_ACEOF
20216
20217# Transform confdefs.h into an awk script `defines.awk', embedded as
20218# here-document in config.status, that substitutes the proper values into
20219# config.h.in to produce config.h.
20220
20221# Create a delimiter string that does not exist in confdefs.h, to ease
20222# handling of long lines.
20223ac_delim='%!_!# '
20224for ac_last_try in false false :; do
b6d0720c
AC
20225 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20226 if test -z "$ac_tt"; then
7083c021
AC
20227 break
20228 elif $ac_last_try; then
b6d0720c 20229 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
20230 else
20231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20232 fi
20233done
20234
20235# For the awk script, D is an array of macro values keyed by name,
20236# likewise P contains macro parameters if any. Preserve backslash
20237# newline sequences.
20238
20239ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20240sed -n '
20241s/.\{148\}/&'"$ac_delim"'/g
20242t rset
20243:rset
20244s/^[ ]*#[ ]*define[ ][ ]*/ /
20245t def
20246d
20247:def
20248s/\\$//
20249t bsnl
20250s/["\\]/\\&/g
20251s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20252D["\1"]=" \3"/p
20253s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20254d
20255:bsnl
20256s/["\\]/\\&/g
20257s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20258D["\1"]=" \3\\\\\\n"\\/p
20259t cont
20260s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20261t cont
20262d
20263:cont
20264n
20265s/.\{148\}/&'"$ac_delim"'/g
20266t clear
20267:clear
20268s/\\$//
20269t bsnlc
20270s/["\\]/\\&/g; s/^/"/; s/$/"/p
20271d
20272:bsnlc
20273s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20274b cont
20275' <confdefs.h | sed '
20276s/'"$ac_delim"'/"\\\
20277"/g' >>$CONFIG_STATUS || ac_write_fail=1
20278
20279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20280 for (key in D) D_is_set[key] = 1
20281 FS = "\a"
20282}
20283/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20284 line = \$ 0
20285 split(line, arg, " ")
20286 if (arg[1] == "#") {
20287 defundef = arg[2]
20288 mac1 = arg[3]
20289 } else {
20290 defundef = substr(arg[1], 2)
20291 mac1 = arg[2]
20292 }
20293 split(mac1, mac2, "(") #)
20294 macro = mac2[1]
20295 prefix = substr(line, 1, index(line, defundef) - 1)
20296 if (D_is_set[macro]) {
20297 # Preserve the white space surrounding the "#".
20298 print prefix "define", macro P[macro] D[macro]
20299 next
20300 } else {
20301 # Replace #undef with comments. This is necessary, for example,
20302 # in the case of _POSIX_SOURCE, which is predefined and required
20303 # on some systems where configure will not decide to define it.
20304 if (defundef == "undef") {
20305 print "/*", prefix defundef, macro, "*/"
20306 next
20307 }
20308 }
20309}
20310{ print }
20311_ACAWK
20312_ACEOF
20313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b6d0720c 20314 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021
AC
20315fi # test -n "$CONFIG_HEADERS"
20316
631ef239 20317
9f9b7042 20318eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7083c021
AC
20319shift
20320for ac_tag
631ef239
AC
20321do
20322 case $ac_tag in
20323 :[FHLC]) ac_mode=$ac_tag; continue;;
20324 esac
20325 case $ac_mode$ac_tag in
20326 :[FHL]*:*);;
b6d0720c 20327 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239
AC
20328 :[FH]-) ac_tag=-:-;;
20329 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 20330 esac
631ef239
AC
20331 ac_save_IFS=$IFS
20332 IFS=:
20333 set x $ac_tag
20334 IFS=$ac_save_IFS
20335 shift
20336 ac_file=$1
20337 shift
212380e3 20338
631ef239
AC
20339 case $ac_mode in
20340 :L) ac_source=$1;;
20341 :[FH])
20342 ac_file_inputs=
20343 for ac_f
20344 do
20345 case $ac_f in
b6d0720c 20346 -) ac_f="$ac_tmp/stdin";;
631ef239
AC
20347 *) # Look for the file first in the build tree, then in the source tree
20348 # (if the path is not absolute). The absolute path cannot be DOS-style,
20349 # because $ac_f cannot contain `:'.
20350 test -f "$ac_f" ||
20351 case $ac_f in
20352 [\\/$]*) false;;
20353 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20354 esac ||
b6d0720c 20355 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 20356 esac
7083c021
AC
20357 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20358 as_fn_append ac_file_inputs " '$ac_f'"
631ef239
AC
20359 done
20360
20361 # Let's still pretend it is `configure' which instantiates (i.e., don't
20362 # use $as_me), people would be surprised to read:
20363 # /* config.h. Generated by config.status. */
7083c021
AC
20364 configure_input='Generated from '`
20365 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20366 `' by configure.'
631ef239
AC
20367 if test x"$ac_file" != x-; then
20368 configure_input="$ac_file. $configure_input"
7083c021
AC
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20370$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 20371 fi
7083c021
AC
20372 # Neutralize special characters interpreted by sed in replacement strings.
20373 case $configure_input in #(
20374 *\&* | *\|* | *\\* )
20375 ac_sed_conf_input=`$as_echo "$configure_input" |
20376 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20377 *) ac_sed_conf_input=$configure_input;;
20378 esac
631ef239
AC
20379
20380 case $ac_tag in
b6d0720c
AC
20381 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
631ef239
AC
20383 esac
20384 ;;
20385 esac
20386
20387 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
20388$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20389 X"$ac_file" : 'X\(//\)[^/]' \| \
20390 X"$ac_file" : 'X\(//\)$' \| \
631ef239 20391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 20392$as_echo X"$ac_file" |
631ef239
AC
20393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20394 s//\1/
20395 q
20396 }
20397 /^X\(\/\/\)[^/].*/{
20398 s//\1/
20399 q
20400 }
20401 /^X\(\/\/\)$/{
20402 s//\1/
20403 q
20404 }
20405 /^X\(\/\).*/{
20406 s//\1/
20407 q
20408 }
20409 s/.*/./; q'`
7083c021 20410 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3
AC
20411 ac_builddir=.
20412
631ef239
AC
20413case "$ac_dir" in
20414.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20415*)
7083c021 20416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 20417 # A ".." for each directory in $ac_dir_suffix.
7083c021 20418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
20419 case $ac_top_builddir_sub in
20420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20422 esac ;;
20423esac
20424ac_abs_top_builddir=$ac_pwd
20425ac_abs_builddir=$ac_pwd$ac_dir_suffix
20426# for backward compatibility:
20427ac_top_builddir=$ac_top_build_prefix
212380e3
AC
20428
20429case $srcdir in
631ef239 20430 .) # We are building in place.
212380e3 20431 ac_srcdir=.
631ef239
AC
20432 ac_top_srcdir=$ac_top_builddir_sub
20433 ac_abs_top_srcdir=$ac_pwd ;;
20434 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 20435 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
20436 ac_top_srcdir=$srcdir
20437 ac_abs_top_srcdir=$srcdir ;;
20438 *) # Relative name.
20439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20440 ac_top_srcdir=$ac_top_build_prefix$srcdir
20441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 20442esac
631ef239 20443ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 20444
212380e3 20445
631ef239
AC
20446 case $ac_mode in
20447 :F)
20448 #
20449 # CONFIG_FILE
20450 #
212380e3
AC
20451
20452 case $INSTALL in
20453 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 20454 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 20455 esac
c52df125
AC
20456 ac_MKDIR_P=$MKDIR_P
20457 case $MKDIR_P in
20458 [\\/$]* | ?:[\\/]* ) ;;
20459 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20460 esac
631ef239 20461_ACEOF
212380e3 20462
7083c021 20463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
20464# If the template does not know about datarootdir, expand it.
20465# FIXME: This hack should be removed a few years after 2.60.
20466ac_datarootdir_hack=; ac_datarootdir_seen=
7083c021
AC
20467ac_sed_dataroot='
20468/datarootdir/ {
631ef239
AC
20469 p
20470 q
20471}
20472/@datadir@/p
20473/@docdir@/p
20474/@infodir@/p
20475/@localedir@/p
7083c021
AC
20476/@mandir@/p'
20477case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239
AC
20478*datarootdir*) ac_datarootdir_seen=yes;;
20479*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7083c021
AC
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20481$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 20482_ACEOF
7083c021 20483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239
AC
20484 ac_datarootdir_hack='
20485 s&@datadir@&$datadir&g
20486 s&@docdir@&$docdir&g
20487 s&@infodir@&$infodir&g
20488 s&@localedir@&$localedir&g
20489 s&@mandir@&$mandir&g
7083c021 20490 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 20491esac
212380e3 20492_ACEOF
631ef239
AC
20493
20494# Neutralize VPATH when `$srcdir' = `.'.
20495# Shell code in configure.ac might set extrasub.
20496# FIXME: do we really want to maintain this feature?
7083c021
AC
20497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20498ac_sed_extra="$ac_vpsub
212380e3
AC
20499$extrasub
20500_ACEOF
7083c021 20501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3
AC
20502:t
20503/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7083c021 20504s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 20505s&@top_builddir@&$ac_top_builddir_sub&;t t
7083c021 20506s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239
AC
20507s&@srcdir@&$ac_srcdir&;t t
20508s&@abs_srcdir@&$ac_abs_srcdir&;t t
20509s&@top_srcdir@&$ac_top_srcdir&;t t
20510s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20511s&@builddir@&$ac_builddir&;t t
20512s&@abs_builddir@&$ac_abs_builddir&;t t
20513s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20514s&@INSTALL@&$ac_INSTALL&;t t
c52df125 20515s&@MKDIR_P@&$ac_MKDIR_P&;t t
631ef239 20516$ac_datarootdir_hack
7083c021 20517"
b6d0720c
AC
20518eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20519 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
20520
20521test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b6d0720c
AC
20522 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20523 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20524 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 20525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 20526which seems to be undefined. Please make sure it is defined" >&5
7083c021 20527$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 20528which seems to be undefined. Please make sure it is defined" >&2;}
631ef239 20529
b6d0720c 20530 rm -f "$ac_tmp/stdin"
212380e3 20531 case $ac_file in
b6d0720c
AC
20532 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20533 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 20534 esac \
b6d0720c 20535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
20536 ;;
20537 :H)
20538 #
20539 # CONFIG_HEADER
20540 #
212380e3 20541 if test x"$ac_file" != x-; then
7083c021
AC
20542 {
20543 $as_echo "/* $configure_input */" \
b6d0720c
AC
20544 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20545 } >"$ac_tmp/config.h" \
20546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20547 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20549$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 20550 else
7083c021 20551 rm -f "$ac_file"
b6d0720c
AC
20552 mv "$ac_tmp/config.h" "$ac_file" \
20553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
212380e3
AC
20554 fi
20555 else
7083c021 20556 $as_echo "/* $configure_input */" \
b6d0720c
AC
20557 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20558 || as_fn_error $? "could not create -" "$LINENO" 5
212380e3 20559 fi
c52df125
AC
20560# Compute "$ac_file"'s index in $config_headers.
20561_am_arg="$ac_file"
20562_am_stamp_count=1
20563for _am_header in $config_headers :; do
20564 case $_am_header in
20565 $_am_arg | $_am_arg:* )
20566 break ;;
20567 * )
20568 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20569 esac
20570done
20571echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20572$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20573 X"$_am_arg" : 'X\(//\)[^/]' \| \
20574 X"$_am_arg" : 'X\(//\)$' \| \
20575 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20576$as_echo X"$_am_arg" |
20577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20578 s//\1/
20579 q
20580 }
20581 /^X\(\/\/\)[^/].*/{
20582 s//\1/
20583 q
20584 }
20585 /^X\(\/\/\)$/{
20586 s//\1/
20587 q
20588 }
20589 /^X\(\/\).*/{
20590 s//\1/
20591 q
20592 }
20593 s/.*/./; q'`/stamp-h$_am_stamp_count
631ef239
AC
20594 ;;
20595
9f9b7042
NPB
20596 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20597$as_echo "$as_me: executing $ac_file commands" >&6;}
20598 ;;
631ef239
AC
20599 esac
20600
9f9b7042
NPB
20601
20602 case $ac_file$ac_mode in
c52df125
AC
20603 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20604 # Older Autoconf quotes --file arguments for eval, but not when files
20605 # are listed without --file. Let's play safe and only enable the eval
20606 # if we detect the quoting.
20607 case $CONFIG_FILES in
20608 *\'*) eval set x "$CONFIG_FILES" ;;
20609 *) set x $CONFIG_FILES ;;
20610 esac
20611 shift
20612 for mf
20613 do
20614 # Strip MF so we end up with the name of the file.
20615 mf=`echo "$mf" | sed -e 's/:.*$//'`
20616 # Check whether this is an Automake generated Makefile or not.
20617 # We used to match only the files named 'Makefile.in', but
20618 # some people rename them; so instead we look at the file content.
20619 # Grep'ing the first line is not enough: some people post-process
20620 # each Makefile.in and add a new line on top of each file to say so.
20621 # Grep'ing the whole file is not good either: AIX grep has a line
20622 # limit of 2048, but all sed's we know have understand at least 4000.
20623 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20624 dirpart=`$as_dirname -- "$mf" ||
20625$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20626 X"$mf" : 'X\(//\)[^/]' \| \
20627 X"$mf" : 'X\(//\)$' \| \
20628 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20629$as_echo X"$mf" |
20630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20631 s//\1/
20632 q
20633 }
20634 /^X\(\/\/\)[^/].*/{
20635 s//\1/
20636 q
20637 }
20638 /^X\(\/\/\)$/{
20639 s//\1/
20640 q
20641 }
20642 /^X\(\/\).*/{
20643 s//\1/
20644 q
20645 }
20646 s/.*/./; q'`
20647 else
20648 continue
20649 fi
20650 # Extract the definition of DEPDIR, am__include, and am__quote
20651 # from the Makefile without running 'make'.
20652 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20653 test -z "$DEPDIR" && continue
20654 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20655 test -z "$am__include" && continue
20656 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20657 # Find all dependency output files, they are included files with
20658 # $(DEPDIR) in their names. We invoke sed twice because it is the
20659 # simplest approach to changing $(DEPDIR) to its actual value in the
20660 # expansion.
20661 for file in `sed -n "
20662 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20663 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20664 # Make sure the directory exists.
20665 test -f "$dirpart/$file" && continue
20666 fdir=`$as_dirname -- "$file" ||
20667$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20668 X"$file" : 'X\(//\)[^/]' \| \
20669 X"$file" : 'X\(//\)$' \| \
20670 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20671$as_echo X"$file" |
20672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20673 s//\1/
20674 q
20675 }
20676 /^X\(\/\/\)[^/].*/{
20677 s//\1/
20678 q
20679 }
20680 /^X\(\/\/\)$/{
20681 s//\1/
20682 q
20683 }
20684 /^X\(\/\).*/{
20685 s//\1/
20686 q
20687 }
20688 s/.*/./; q'`
20689 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20690 # echo "creating $dirpart/$file"
20691 echo '# dummy' > "$dirpart/$file"
20692 done
20693 done
20694}
20695 ;;
20696 "libtool":C)
20697
20698 # See if we are running on zsh, and set the options which allow our
20699 # commands through without removal of \ escapes.
20700 if test -n "${ZSH_VERSION+set}" ; then
20701 setopt NO_GLOB_SUBST
20702 fi
20703
20704 cfgfile="${ofile}T"
20705 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20706 $RM "$cfgfile"
20707
20708 cat <<_LT_EOF >> "$cfgfile"
20709#! $SHELL
20710
20711# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20712# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20713# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20714# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20715#
20716# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20717# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20718# Foundation, Inc.
20719# Written by Gordon Matzigkeit, 1996
20720#
20721# This file is part of GNU Libtool.
20722#
20723# GNU Libtool is free software; you can redistribute it and/or
20724# modify it under the terms of the GNU General Public License as
20725# published by the Free Software Foundation; either version 2 of
20726# the License, or (at your option) any later version.
20727#
20728# As a special exception to the GNU General Public License,
20729# if you distribute this file as part of a program or library that
20730# is built using GNU Libtool, you may include this file under the
20731# same distribution terms that you use for the rest of that program.
20732#
20733# GNU Libtool is distributed in the hope that it will be useful,
20734# but WITHOUT ANY WARRANTY; without even the implied warranty of
20735# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20736# GNU General Public License for more details.
20737#
20738# You should have received a copy of the GNU General Public License
20739# along with GNU Libtool; see the file COPYING. If not, a copy
20740# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20741# obtained by writing to the Free Software Foundation, Inc.,
20742# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20743
20744
20745# The names of the tagged configurations supported by this script.
20746available_tags=""
20747
20748# ### BEGIN LIBTOOL CONFIG
20749
20750# Which release of libtool.m4 was used?
20751macro_version=$macro_version
20752macro_revision=$macro_revision
20753
20754# Whether or not to build static libraries.
20755build_old_libs=$enable_static
20756
20757# Whether or not to build shared libraries.
20758build_libtool_libs=$enable_shared
20759
20760# What type of objects to build.
20761pic_mode=$pic_mode
20762
20763# Whether or not to optimize for fast installation.
20764fast_install=$enable_fast_install
20765
20766# Shell to use when invoking shell scripts.
20767SHELL=$lt_SHELL
20768
20769# An echo program that protects backslashes.
20770ECHO=$lt_ECHO
20771
20772# The PATH separator for the build system.
20773PATH_SEPARATOR=$lt_PATH_SEPARATOR
20774
20775# The host system.
20776host_alias=$host_alias
20777host=$host
20778host_os=$host_os
20779
20780# The build system.
20781build_alias=$build_alias
20782build=$build
20783build_os=$build_os
20784
20785# A sed program that does not truncate output.
20786SED=$lt_SED
20787
20788# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20789Xsed="\$SED -e 1s/^X//"
20790
20791# A grep program that handles long lines.
20792GREP=$lt_GREP
20793
20794# An ERE matcher.
20795EGREP=$lt_EGREP
20796
20797# A literal string matcher.
20798FGREP=$lt_FGREP
20799
20800# A BSD- or MS-compatible name lister.
20801NM=$lt_NM
20802
20803# Whether we need soft or hard links.
20804LN_S=$lt_LN_S
20805
20806# What is the maximum length of a command?
20807max_cmd_len=$max_cmd_len
20808
20809# Object file suffix (normally "o").
20810objext=$ac_objext
20811
20812# Executable file suffix (normally "").
20813exeext=$exeext
20814
20815# whether the shell understands "unset".
20816lt_unset=$lt_unset
20817
20818# turn spaces into newlines.
20819SP2NL=$lt_lt_SP2NL
20820
20821# turn newlines into spaces.
20822NL2SP=$lt_lt_NL2SP
20823
20824# convert \$build file names to \$host format.
20825to_host_file_cmd=$lt_cv_to_host_file_cmd
20826
20827# convert \$build files to toolchain format.
20828to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20829
20830# An object symbol dumper.
20831OBJDUMP=$lt_OBJDUMP
20832
20833# Method to check whether dependent libraries are shared objects.
20834deplibs_check_method=$lt_deplibs_check_method
20835
20836# Command to use when deplibs_check_method = "file_magic".
20837file_magic_cmd=$lt_file_magic_cmd
20838
20839# How to find potential files when deplibs_check_method = "file_magic".
20840file_magic_glob=$lt_file_magic_glob
20841
20842# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20843want_nocaseglob=$lt_want_nocaseglob
20844
20845# DLL creation program.
20846DLLTOOL=$lt_DLLTOOL
20847
20848# Command to associate shared and link libraries.
20849sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20850
20851# The archiver.
20852AR=$lt_AR
20853
20854# Flags to create an archive.
20855AR_FLAGS=$lt_AR_FLAGS
20856
20857# How to feed a file listing to the archiver.
20858archiver_list_spec=$lt_archiver_list_spec
20859
20860# A symbol stripping program.
20861STRIP=$lt_STRIP
20862
20863# Commands used to install an old-style archive.
20864RANLIB=$lt_RANLIB
20865old_postinstall_cmds=$lt_old_postinstall_cmds
20866old_postuninstall_cmds=$lt_old_postuninstall_cmds
20867
20868# Whether to use a lock for old archive extraction.
20869lock_old_archive_extraction=$lock_old_archive_extraction
20870
20871# A C compiler.
20872LTCC=$lt_CC
20873
20874# LTCC compiler flags.
20875LTCFLAGS=$lt_CFLAGS
20876
20877# Take the output of nm and produce a listing of raw symbols and C names.
20878global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20879
20880# Transform the output of nm in a proper C declaration.
20881global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20882
20883# Transform the output of nm in a C name address pair.
20884global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20885
20886# Transform the output of nm in a C name address pair when lib prefix is needed.
20887global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20888
20889# Specify filename containing input files for \$NM.
20890nm_file_list_spec=$lt_nm_file_list_spec
20891
20892# The root where to search for dependent libraries,and in which our libraries should be installed.
20893lt_sysroot=$lt_sysroot
20894
20895# The name of the directory that contains temporary libtool files.
20896objdir=$objdir
20897
20898# Used to examine libraries when file_magic_cmd begins with "file".
20899MAGIC_CMD=$MAGIC_CMD
20900
20901# Must we lock files when doing compilation?
20902need_locks=$lt_need_locks
20903
20904# Manifest tool.
20905MANIFEST_TOOL=$lt_MANIFEST_TOOL
20906
20907# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20908DSYMUTIL=$lt_DSYMUTIL
20909
20910# Tool to change global to local symbols on Mac OS X.
20911NMEDIT=$lt_NMEDIT
20912
20913# Tool to manipulate fat objects and archives on Mac OS X.
20914LIPO=$lt_LIPO
20915
20916# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20917OTOOL=$lt_OTOOL
20918
20919# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20920OTOOL64=$lt_OTOOL64
20921
20922# Old archive suffix (normally "a").
20923libext=$libext
20924
20925# Shared library suffix (normally ".so").
20926shrext_cmds=$lt_shrext_cmds
20927
20928# The commands to extract the exported symbol list from a shared archive.
20929extract_expsyms_cmds=$lt_extract_expsyms_cmds
20930
20931# Variables whose values should be saved in libtool wrapper scripts and
20932# restored at link time.
20933variables_saved_for_relink=$lt_variables_saved_for_relink
20934
20935# Do we need the "lib" prefix for modules?
20936need_lib_prefix=$need_lib_prefix
20937
20938# Do we need a version for libraries?
20939need_version=$need_version
20940
20941# Library versioning type.
20942version_type=$version_type
20943
20944# Shared library runtime path variable.
20945runpath_var=$runpath_var
20946
20947# Shared library path variable.
20948shlibpath_var=$shlibpath_var
20949
20950# Is shlibpath searched before the hard-coded library search path?
20951shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20952
20953# Format of library name prefix.
20954libname_spec=$lt_libname_spec
20955
20956# List of archive names. First name is the real one, the rest are links.
20957# The last name is the one that the linker finds with -lNAME
20958library_names_spec=$lt_library_names_spec
20959
20960# The coded name of the library, if different from the real name.
20961soname_spec=$lt_soname_spec
20962
20963# Permission mode override for installation of shared libraries.
20964install_override_mode=$lt_install_override_mode
20965
20966# Command to use after installation of a shared archive.
20967postinstall_cmds=$lt_postinstall_cmds
20968
20969# Command to use after uninstallation of a shared archive.
20970postuninstall_cmds=$lt_postuninstall_cmds
20971
20972# Commands used to finish a libtool library installation in a directory.
20973finish_cmds=$lt_finish_cmds
20974
20975# As "finish_cmds", except a single script fragment to be evaled but
20976# not shown.
20977finish_eval=$lt_finish_eval
20978
20979# Whether we should hardcode library paths into libraries.
20980hardcode_into_libs=$hardcode_into_libs
20981
20982# Compile-time system search path for libraries.
20983sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20984
20985# Run-time system search path for libraries.
20986sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20987
20988# Whether dlopen is supported.
20989dlopen_support=$enable_dlopen
20990
20991# Whether dlopen of programs is supported.
20992dlopen_self=$enable_dlopen_self
20993
20994# Whether dlopen of statically linked programs is supported.
20995dlopen_self_static=$enable_dlopen_self_static
20996
20997# Commands to strip libraries.
20998old_striplib=$lt_old_striplib
20999striplib=$lt_striplib
21000
21001
21002# The linker used to build libraries.
21003LD=$lt_LD
21004
21005# How to create reloadable object files.
21006reload_flag=$lt_reload_flag
21007reload_cmds=$lt_reload_cmds
21008
21009# Commands used to build an old-style archive.
21010old_archive_cmds=$lt_old_archive_cmds
21011
21012# A language specific compiler.
21013CC=$lt_compiler
21014
21015# Is the compiler the GNU compiler?
21016with_gcc=$GCC
21017
21018# Compiler flag to turn off builtin functions.
21019no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21020
21021# Additional compiler flags for building library objects.
21022pic_flag=$lt_lt_prog_compiler_pic
21023
21024# How to pass a linker flag through the compiler.
21025wl=$lt_lt_prog_compiler_wl
21026
21027# Compiler flag to prevent dynamic linking.
21028link_static_flag=$lt_lt_prog_compiler_static
21029
21030# Does compiler simultaneously support -c and -o options?
21031compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21032
21033# Whether or not to add -lc for building shared libraries.
21034build_libtool_need_lc=$archive_cmds_need_lc
21035
21036# Whether or not to disallow shared libs when runtime libs are static.
21037allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21038
21039# Compiler flag to allow reflexive dlopens.
21040export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21041
21042# Compiler flag to generate shared objects directly from archives.
21043whole_archive_flag_spec=$lt_whole_archive_flag_spec
21044
21045# Whether the compiler copes with passing no objects directly.
21046compiler_needs_object=$lt_compiler_needs_object
21047
21048# Create an old-style archive from a shared archive.
21049old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21050
21051# Create a temporary old-style archive to link instead of a shared archive.
21052old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21053
21054# Commands used to build a shared archive.
21055archive_cmds=$lt_archive_cmds
21056archive_expsym_cmds=$lt_archive_expsym_cmds
21057
21058# Commands used to build a loadable module if different from building
21059# a shared archive.
21060module_cmds=$lt_module_cmds
21061module_expsym_cmds=$lt_module_expsym_cmds
21062
21063# Whether we are building with GNU ld or not.
21064with_gnu_ld=$lt_with_gnu_ld
21065
21066# Flag that allows shared libraries with undefined symbols to be built.
21067allow_undefined_flag=$lt_allow_undefined_flag
21068
21069# Flag that enforces no undefined symbols.
21070no_undefined_flag=$lt_no_undefined_flag
21071
21072# Flag to hardcode \$libdir into a binary during linking.
21073# This must work even if \$libdir does not exist
21074hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21075
21076# Whether we need a single "-rpath" flag with a separated argument.
21077hardcode_libdir_separator=$lt_hardcode_libdir_separator
21078
21079# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21080# DIR into the resulting binary.
21081hardcode_direct=$hardcode_direct
21082
21083# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21084# DIR into the resulting binary and the resulting library dependency is
21085# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21086# library is relocated.
21087hardcode_direct_absolute=$hardcode_direct_absolute
21088
21089# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21090# into the resulting binary.
21091hardcode_minus_L=$hardcode_minus_L
21092
21093# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21094# into the resulting binary.
21095hardcode_shlibpath_var=$hardcode_shlibpath_var
21096
21097# Set to "yes" if building a shared library automatically hardcodes DIR
21098# into the library and all subsequent libraries and executables linked
21099# against it.
21100hardcode_automatic=$hardcode_automatic
21101
21102# Set to yes if linker adds runtime paths of dependent libraries
21103# to runtime path list.
21104inherit_rpath=$inherit_rpath
21105
21106# Whether libtool must link a program against all its dependency libraries.
21107link_all_deplibs=$link_all_deplibs
21108
21109# Set to "yes" if exported symbols are required.
21110always_export_symbols=$always_export_symbols
21111
21112# The commands to list exported symbols.
21113export_symbols_cmds=$lt_export_symbols_cmds
21114
21115# Symbols that should not be listed in the preloaded symbols.
21116exclude_expsyms=$lt_exclude_expsyms
21117
21118# Symbols that must always be exported.
21119include_expsyms=$lt_include_expsyms
21120
21121# Commands necessary for linking programs (against libraries) with templates.
21122prelink_cmds=$lt_prelink_cmds
21123
21124# Commands necessary for finishing linking programs.
21125postlink_cmds=$lt_postlink_cmds
21126
21127# Specify filename containing input files.
21128file_list_spec=$lt_file_list_spec
21129
21130# How to hardcode a shared library path into an executable.
21131hardcode_action=$hardcode_action
21132
21133# ### END LIBTOOL CONFIG
21134
21135_LT_EOF
21136
21137 case $host_os in
21138 aix3*)
21139 cat <<\_LT_EOF >> "$cfgfile"
21140# AIX sometimes has problems with the GCC collect2 program. For some
21141# reason, if we set the COLLECT_NAMES environment variable, the problems
21142# vanish in a puff of smoke.
21143if test "X${COLLECT_NAMES+set}" != Xset; then
21144 COLLECT_NAMES=
21145 export COLLECT_NAMES
21146fi
21147_LT_EOF
21148 ;;
21149 esac
21150
21151
21152ltmain="$ac_aux_dir/ltmain.sh"
21153
21154
21155 # We use sed instead of cat because bash on DJGPP gets confused if
21156 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21157 # text mode, it properly converts lines to CR/LF. This bash problem
21158 # is reportedly fixed, but why not run on old versions too?
21159 sed '$q' "$ltmain" >> "$cfgfile" \
21160 || (rm -f "$cfgfile"; exit 1)
21161
21162 if test x"$xsi_shell" = xyes; then
21163 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21164func_dirname ()\
21165{\
21166\ case ${1} in\
21167\ */*) func_dirname_result="${1%/*}${2}" ;;\
21168\ * ) func_dirname_result="${3}" ;;\
21169\ esac\
21170} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21171 && mv -f "$cfgfile.tmp" "$cfgfile" \
21172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21173test 0 -eq $? || _lt_function_replace_fail=:
21174
21175
21176 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21177func_basename ()\
21178{\
21179\ func_basename_result="${1##*/}"\
21180} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21181 && mv -f "$cfgfile.tmp" "$cfgfile" \
21182 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21183test 0 -eq $? || _lt_function_replace_fail=:
21184
21185
21186 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21187func_dirname_and_basename ()\
21188{\
21189\ case ${1} in\
21190\ */*) func_dirname_result="${1%/*}${2}" ;;\
21191\ * ) func_dirname_result="${3}" ;;\
21192\ esac\
21193\ func_basename_result="${1##*/}"\
21194} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21195 && mv -f "$cfgfile.tmp" "$cfgfile" \
21196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21197test 0 -eq $? || _lt_function_replace_fail=:
21198
21199
21200 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21201func_stripname ()\
21202{\
21203\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21204\ # positional parameters, so assign one to ordinary parameter first.\
21205\ func_stripname_result=${3}\
21206\ func_stripname_result=${func_stripname_result#"${1}"}\
21207\ func_stripname_result=${func_stripname_result%"${2}"}\
21208} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21209 && mv -f "$cfgfile.tmp" "$cfgfile" \
21210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21211test 0 -eq $? || _lt_function_replace_fail=:
21212
21213
21214 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21215func_split_long_opt ()\
21216{\
21217\ func_split_long_opt_name=${1%%=*}\
21218\ func_split_long_opt_arg=${1#*=}\
21219} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21220 && mv -f "$cfgfile.tmp" "$cfgfile" \
21221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21222test 0 -eq $? || _lt_function_replace_fail=:
21223
21224
21225 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21226func_split_short_opt ()\
21227{\
21228\ func_split_short_opt_arg=${1#??}\
21229\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21230} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21231 && mv -f "$cfgfile.tmp" "$cfgfile" \
21232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21233test 0 -eq $? || _lt_function_replace_fail=:
21234
21235
21236 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21237func_lo2o ()\
21238{\
21239\ case ${1} in\
21240\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21241\ *) func_lo2o_result=${1} ;;\
21242\ esac\
21243} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21244 && mv -f "$cfgfile.tmp" "$cfgfile" \
21245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21246test 0 -eq $? || _lt_function_replace_fail=:
21247
21248
21249 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21250func_xform ()\
21251{\
21252 func_xform_result=${1%.*}.lo\
21253} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21254 && mv -f "$cfgfile.tmp" "$cfgfile" \
21255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21256test 0 -eq $? || _lt_function_replace_fail=:
21257
21258
21259 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21260func_arith ()\
21261{\
21262 func_arith_result=$(( $* ))\
21263} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21264 && mv -f "$cfgfile.tmp" "$cfgfile" \
21265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21266test 0 -eq $? || _lt_function_replace_fail=:
21267
21268
21269 sed -e '/^func_len ()$/,/^} # func_len /c\
21270func_len ()\
21271{\
21272 func_len_result=${#1}\
21273} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21274 && mv -f "$cfgfile.tmp" "$cfgfile" \
21275 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21276test 0 -eq $? || _lt_function_replace_fail=:
21277
21278fi
21279
21280if test x"$lt_shell_append" = xyes; then
21281 sed -e '/^func_append ()$/,/^} # func_append /c\
21282func_append ()\
21283{\
21284 eval "${1}+=\\${2}"\
21285} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21286 && mv -f "$cfgfile.tmp" "$cfgfile" \
21287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21288test 0 -eq $? || _lt_function_replace_fail=:
21289
21290
21291 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21292func_append_quoted ()\
21293{\
21294\ func_quote_for_eval "${2}"\
21295\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21296} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21297 && mv -f "$cfgfile.tmp" "$cfgfile" \
21298 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21299test 0 -eq $? || _lt_function_replace_fail=:
21300
21301
21302 # Save a `func_append' function call where possible by direct use of '+='
21303 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21304 && mv -f "$cfgfile.tmp" "$cfgfile" \
21305 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21306 test 0 -eq $? || _lt_function_replace_fail=:
21307else
21308 # Save a `func_append' function call even when '+=' is not available
21309 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21310 && mv -f "$cfgfile.tmp" "$cfgfile" \
21311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21312 test 0 -eq $? || _lt_function_replace_fail=:
21313fi
21314
21315if test x"$_lt_function_replace_fail" = x":"; then
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21317$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21318fi
21319
21320
21321 mv -f "$cfgfile" "$ofile" ||
21322 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21323 chmod +x "$ofile"
21324
21325 ;;
2eff3833 21326 "tools/genssl_chmod":C) chmod 755 tools/genssl ;;
9f9b7042
NPB
21327
21328 esac
631ef239 21329done # for ac_tag
212380e3 21330
212380e3 21331
7083c021 21332as_fn_exit 0
212380e3 21333_ACEOF
212380e3
AC
21334ac_clean_files=$ac_clean_files_save
21335
7083c021 21336test $ac_write_fail = 0 ||
b6d0720c 21337 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7083c021 21338
212380e3
AC
21339
21340# configure is writing to config.log, and then calls config.status.
21341# config.status does its own redirection, appending to config.log.
21342# Unfortunately, on DOS this fails, as config.log is still kept open
21343# by configure, so config.status won't be able to write to it; its
21344# output is simply discarded. So we exec the FD to /dev/null,
21345# effectively closing config.log, so it can be properly (re)opened and
21346# appended to by config.status. When coming back to configure, we
21347# need to make the FD available again.
21348if test "$no_create" != yes; then
21349 ac_cs_success=:
21350 ac_config_status_args=
21351 test "$silent" = yes &&
21352 ac_config_status_args="$ac_config_status_args --quiet"
21353 exec 5>/dev/null
21354 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21355 exec 5>>config.log
21356 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21357 # would make configure fail if this is the last instruction.
b6d0720c 21358 $ac_cs_success || as_fn_exit 1
212380e3 21359fi
1db8e007
JT
21360
21361#
21362# CONFIG_SUBDIRS section.
21363#
21364if test "$no_recursion" != yes; then
21365
21366 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21367 # so they do not pile up.
21368 ac_sub_configure_args=
21369 ac_prev=
21370 eval "set x $ac_configure_args"
21371 shift
21372 for ac_arg
21373 do
21374 if test -n "$ac_prev"; then
21375 ac_prev=
21376 continue
21377 fi
21378 case $ac_arg in
21379 -cache-file | --cache-file | --cache-fil | --cache-fi \
21380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21381 ac_prev=cache_file ;;
21382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21384 | --c=*)
21385 ;;
21386 --config-cache | -C)
21387 ;;
21388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21389 ac_prev=srcdir ;;
21390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21391 ;;
21392 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21393 ac_prev=prefix ;;
21394 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21395 ;;
21396 --disable-option-checking)
21397 ;;
21398 *)
21399 case $ac_arg in
21400 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21401 esac
21402 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21403 esac
21404 done
21405
21406 # Always prepend --prefix to ensure using the same prefix
21407 # in subdir configurations.
21408 ac_arg="--prefix=$prefix"
21409 case $ac_arg in
21410 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21411 esac
21412 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21413
21414 # Pass --silent
21415 if test "$silent" = yes; then
21416 ac_sub_configure_args="--silent $ac_sub_configure_args"
21417 fi
21418
21419 # Always prepend --disable-option-checking to silence warnings, since
21420 # different subdirs can have different --enable and --with options.
21421 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21422
21423 ac_popdir=`pwd`
21424 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21425
21426 # Do not complain, so a configure script can configure whichever
21427 # parts of a large source tree are present.
21428 test -d "$srcdir/$ac_dir" || continue
21429
21430 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21431 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21432 $as_echo "$ac_msg" >&6
21433 as_dir="$ac_dir"; as_fn_mkdir_p
21434 ac_builddir=.
21435
21436case "$ac_dir" in
21437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21438*)
21439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21440 # A ".." for each directory in $ac_dir_suffix.
21441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21442 case $ac_top_builddir_sub in
21443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21445 esac ;;
21446esac
21447ac_abs_top_builddir=$ac_pwd
21448ac_abs_builddir=$ac_pwd$ac_dir_suffix
21449# for backward compatibility:
21450ac_top_builddir=$ac_top_build_prefix
21451
21452case $srcdir in
21453 .) # We are building in place.
21454 ac_srcdir=.
21455 ac_top_srcdir=$ac_top_builddir_sub
21456 ac_abs_top_srcdir=$ac_pwd ;;
21457 [\\/]* | ?:[\\/]* ) # Absolute name.
21458 ac_srcdir=$srcdir$ac_dir_suffix;
21459 ac_top_srcdir=$srcdir
21460 ac_abs_top_srcdir=$srcdir ;;
21461 *) # Relative name.
21462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21463 ac_top_srcdir=$ac_top_build_prefix$srcdir
21464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21465esac
21466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21467
21468
21469 cd "$ac_dir"
21470
21471 # Check for guested configure; otherwise get Cygnus style configure.
21472 if test -f "$ac_srcdir/configure.gnu"; then
21473 ac_sub_configure=$ac_srcdir/configure.gnu
21474 elif test -f "$ac_srcdir/configure"; then
21475 ac_sub_configure=$ac_srcdir/configure
21476 elif test -f "$ac_srcdir/configure.in"; then
21477 # This should be Cygnus configure.
21478 ac_sub_configure=$ac_aux_dir/configure
21479 else
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21481$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21482 ac_sub_configure=
21483 fi
21484
21485 # The recursion is here.
21486 if test -n "$ac_sub_configure"; then
21487 # Make the cache file name correct relative to the subdirectory.
21488 case $cache_file in
21489 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21490 *) # Relative name.
21491 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21492 esac
21493
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21495$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21496 # The eval makes quoting arguments work.
21497 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21498 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21499 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21500 fi
21501
21502 cd "$ac_popdir"
21503 done
21504fi
7083c021
AC
21505if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21507$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21508fi
b676ea3b 21509
212380e3
AC
21510
21511if test "$cf_openssl_version_ok" = yes; then
21512 openssl="yes"
21513else
21514 openssl="no"
21515fi
21516
212380e3 21517echo "
b6d0720c 21518Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
212380e3
AC
21519 Install directory : $prefix
21520
21521 Ziplinks : $zlib
21522 OpenSSL : $openssl
212380e3
AC
21523 Socket Engine : $SELECT_TYPE
21524 Small network : $small_net
21525 Block allocator : $balloc
212380e3
AC
21526
21527 Nickname length : $NICKLEN
21528 Topic length : $TOPICLEN
21529
b6d0720c 21530Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
212380e3 21531"