* NTLM authentication support with the ntlm library, in Unix systems.
[alpine.git] / configure
blobc1c295808ad37845b05526033dff52049d778da9
1 #! /bin/sh
2 # From configure.ac Rev:23 by chappa@washington.edu.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.21.9.
6 # Report bugs to <chappa@washington.edu>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
37 as_nl='
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
177 esac
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 else
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: chappa@washington.edu about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
284 exit 1
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
302 { eval $1=; unset $1;}
304 as_unset=as_fn_unset
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
311 return $1
312 } # as_fn_set_status
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
355 /^X\(\/\/\)$/{
356 s//\1/
359 /^X\(\/\).*/{
360 s//\1/
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 } # as_fn_mkdir_p
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
388 eval $1+=\$2
390 else
391 as_fn_append ()
393 eval $1=\$$1\$2
395 fi # as_fn_append
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
405 as_val=$(( $* ))
407 else
408 as_fn_arith ()
410 as_val=`expr "$@" || test $? -eq 1`
412 fi # as_fn_arith
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
459 /^X\/\(\/\/\)$/{
460 s//\1/
463 /^X\/\(\/\).*/{
464 s//\1/
467 s/.*/./; q'`
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
490 :lineno
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
522 ECHO_N='-n';;
523 esac
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
546 else
547 as_ln_s='cp -pR'
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580 # Initializations.
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
591 # Identity of this package.
592 PACKAGE_NAME='alpine'
593 PACKAGE_TARNAME='alpine'
594 PACKAGE_VERSION='2.21.9'
595 PACKAGE_STRING='alpine 2.21.9'
596 PACKAGE_BUGREPORT='chappa@washington.edu'
597 PACKAGE_URL=''
599 ac_unique_file="include/system.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 AM_LDFLAGS
642 AM_CFLAGS
643 WEB_PUBCOOKIE_LINK
644 WEB_PUBCOOKIE_LIB
645 WEB_PUBCOOKIE_BUILD
646 WEB_BINDIR
647 WEB_BUILD
648 REGEX_BUILD
649 C_CLIENT_SPECIALS
650 C_CLIENT_AUTHS
651 C_CLIENT_GCCOPTLEVEL
652 C_CLIENT_LDFLAGS
653 C_CLIENT_CFLAGS
654 C_CLIENT_WITH_IPV6
655 C_CLIENT_TARGET
656 PTHREAD_CFLAGS
657 PTHREAD_LIBS
658 PTHREAD_CC
659 acx_pthread_config
660 alpine_interactive_spellcheck
661 ISPELLPROG
662 alpine_simple_spellcheck
663 SPELLPROG
664 PWPROG
665 NPA_PROG
666 SENDMAIL
667 POSUB
668 LTLIBINTL
669 LIBINTL
670 INTLLIBS
671 LTLIBICONV
672 LIBICONV
673 INTL_MACOSX_LIBS
674 MSGMERGE
675 XGETTEXT_015
676 XGETTEXT
677 GMSGFMT_015
678 MSGFMT_015
679 GMSGFMT
680 MSGFMT
681 USE_NLS
682 MAKE
687 LIBTOOL_DEPS
689 LT_SYS_LIBRARY_PATH
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 MANIFEST_TOOL
696 ac_ct_AR
698 DLLTOOL
699 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
704 FGREP
705 EGREP
706 GREP
708 LIBTOOL
709 RANLIB
710 LN_S
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 am__nodep
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__quote
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 MAINT
737 MAINTAINER_MODE_FALSE
738 MAINTAINER_MODE_TRUE
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 enable_silent_rules
808 enable_maintainer_mode
809 enable_dependency_tracking
810 enable_shared
811 enable_static
812 with_pic
813 enable_fast_install
814 with_aix_soname
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 enable_nls
819 enable_rpath
820 with_libiconv_prefix
821 with_libintl_prefix
822 enable_dmalloc
823 with_dmalloc_dir
824 with_ps_cmd
825 with_localedir
826 enable_osx_universal_binaries
827 with_include_path
828 with_lib_path
829 with_pubcookie
830 with_web_bin
831 enable_debug
832 enable_optimization
833 enable_mouse
834 enable_quotas
835 enable_from_changing
836 enable_background_post
837 enable_keyboard_lock
838 enable_from_encoding
839 with_smtp_msa
840 with_smtp_msa_flags
841 with_npa
842 with_npa_flags
843 with_password_prog
844 with_simple_spellcheck
845 with_interactive_spellcheck
846 with_system_pinerc
847 with_system_fixed_pinerc
848 with_local_support_info
849 with_mailcheck_interval
850 with_checkpoint_interval
851 with_checkpoint_frequency
852 with_display_rows
853 with_display_columns
854 with_max_display_rows
855 with_max_display_columns
856 with_fill_column
857 with_max_fill_column
858 with_debug_level
859 with_debug_files
860 with_debug_file
861 with_forwarded_keyword
862 with_display_overlap
863 with_display_margin
864 with_default_fcc
865 with_default_save_folder
866 with_default_legacy_postponed_folder
867 with_default_postponed_folder
868 with_default_trash_folder
869 with_default_interrupted_mail
870 with_default_dead_letter_folder
871 with_default_mail_directory
872 with_default_inbox_name
873 with_default_signature_file
874 with_default_elm_style_save
875 with_default_header_in_reply
876 with_default_old_style_reply
877 with_default_use_only_domain_name
878 with_default_save_by_sender
879 with_default_sort_key
880 with_default_addressbook_sort_rule
881 with_default_folder_sort_rule
882 with_default_saved_message_name_rule
883 with_default_fcc_rule
884 with_default_standard_printer
885 with_default_ansi_printer
886 with_default_addressbook
887 with_default_local_fullname
888 with_default_local_address
889 with_default_keyboard_lock_count
890 with_default_remote_addressbook_history
891 with_smime_public_cert_directory
892 with_smime_private_key_directory
893 with_smime_cacert_directory
894 with_default_printer
895 with_passfile
896 with_local_password_cache
897 with_local_password_cache_method
898 with_default_sshpath
899 with_default_sshcmd
900 with_ssl
901 with_ssl_dir
902 with_ssl_certs_dir
903 with_ssl_include_dir
904 with_ssl_lib_dir
905 with_krb5
906 with_krb5_dir
907 with_krb5_include_dir
908 with_krb5_lib_dir
909 with_ldap
910 with_ldap_dir
911 with_ldap_include_dir
912 with_ldap_lib_dir
913 with_smime
914 with_tcl
915 with_tcl_lib
916 with_tcl_include
917 with_supplied_regex
918 with_pthread
919 with_system_mail_directory
920 with_c_client_target
921 with_ipv6
922 with_ntlm
924 ac_precious_vars='build_alias
925 host_alias
926 target_alias
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 LT_SYS_LIBRARY_PATH
933 CPP'
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
984 ac_prev=
985 ac_dashdash=
986 for ac_option
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
995 case $ac_option in
996 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *=) ac_optarg= ;;
998 *) ac_optarg=yes ;;
999 esac
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1005 ac_dashdash=yes ;;
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1028 ac_prev=datadir ;;
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 ac_prev=sbindir ;;
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 | --sbi=* | --sb=*)
1228 sbindir=$ac_optarg ;;
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1233 | --sha | --sh)
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 | --sha=* | --sh=*)
1239 sharedstatedir=$ac_optarg ;;
1241 -site | --site | --sit)
1242 ac_prev=site ;;
1243 -site=* | --site=* | --sit=*)
1244 site=$ac_optarg ;;
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 ac_prev=srcdir ;;
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 verbose=yes ;;
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1269 -with-* | --with-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error $? "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=no ;;
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1319 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information"
1323 *=*)
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' | [0-9]* | *[!_$as_cr_alnum]* )
1328 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1329 esac
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1341 esac
1342 done
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error $? "missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1351 no) ;;
1352 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354 esac
1357 # Check all directory arguments for consistency.
1358 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val=\$$ac_var
1364 # Remove trailing slashes.
1365 case $ac_val in
1366 */ )
1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\$ac_val;;
1369 esac
1370 # Be sure to have absolute directory names.
1371 case $ac_val in
1372 [\\/$]* | ?:[\\/]* ) continue;;
1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374 esac
1375 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1376 done
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387 if test "x$build_alias" = x; then
1388 cross_compiling=maybe
1389 elif test "x$build_alias" != "x$host_alias"; then
1390 cross_compiling=yes
1394 ac_tool_prefix=
1395 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397 test "$silent" = yes && exec 6>/dev/null
1400 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401 ac_ls_di=`ls -di .` &&
1402 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1403 as_fn_error $? "working directory cannot be determined"
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 as_fn_error $? "pwd does not report name of working directory"
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$as_myself" ||
1413 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$as_myself" : 'X\(//\)[^/]' \| \
1415 X"$as_myself" : 'X\(//\)$' \| \
1416 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1417 $as_echo X"$as_myself" |
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 s//\1/
1422 /^X\(\/\/\)[^/].*/{
1423 s//\1/
1426 /^X\(\/\/\)$/{
1427 s//\1/
1430 /^X\(\/\).*/{
1431 s//\1/
1434 s/.*/./; q'`
1435 srcdir=$ac_confdir
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 srcdir=..
1439 else
1440 ac_srcdir_defaulted=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1446 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 ac_abs_confdir=`(
1448 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1449 pwd)`
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 srcdir=.
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1457 case $srcdir in
1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 esac
1460 for ac_var in $ac_precious_vars; do
1461 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_${ac_var}_value=\$${ac_var}
1463 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 done
1468 # Report the --help message.
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1473 cat <<_ACEOF
1474 \`configure' configures alpine 2.21.9 to adapt to many kinds of systems.
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1481 Defaults for the options are specified in brackets.
1483 Configuration:
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking ...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 [PREFIX]
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1505 For better control, use the options below.
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1527 _ACEOF
1529 cat <<\_ACEOF
1531 Program names:
1532 --program-prefix=PREFIX prepend PREFIX to installed program names
1533 --program-suffix=SUFFIX append SUFFIX to installed program names
1534 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 System types:
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 _ACEOF
1542 if test -n "$ac_init_help"; then
1543 case $ac_init_help in
1544 short | recursive ) echo "Configuration of alpine 2.21.9:";;
1545 esac
1546 cat <<\_ACEOF
1548 Optional Features:
1549 --disable-option-checking ignore unrecognized --enable/--with options
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1552 --enable-silent-rules less verbose build output (undo: "make V=1")
1553 --disable-silent-rules verbose build output (undo: "make V=0")
1554 --enable-maintainer-mode
1555 enable make rules and dependencies not useful (and
1556 sometimes confusing) to the casual installer
1557 --enable-dependency-tracking
1558 do not reject slow dependency extractors
1559 --disable-dependency-tracking
1560 speeds up one-time build
1561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-static[=PKGS] build static libraries [default=yes]
1563 --enable-fast-install[=PKGS]
1564 optimize for fast installation [default=yes]
1565 --disable-libtool-lock avoid locking (might break parallel builds)
1566 --disable-nls do not use Native Language Support
1567 --disable-rpath do not hardcode runtime library paths
1568 --enable-dmalloc Enable dmalloc debugging
1569 --enable-osx-universal-binaries
1570 Produce universal binaries under OS X [[default=no]]
1571 --disable-debug Exclude debug messages from source
1572 --disable-optimization Exclude optimizing compiler flags
1573 --disable-mouse Disable mouse support
1574 --enable-quotas Enable disk quota checking on startup
1575 --disable-from-changing Disallow users changing From addresss
1576 --disable-background-post
1577 Disable background posting
1578 --disable-keyboard-lock Disable keyboard locking
1579 --enable-from-encoding Enable From encoding in sent messages
1581 Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1585 both]
1586 --with-aix-soname=aix|svr4|both
1587 shared library versioning (aka "SONAME") variant to
1588 provide on AIX, [default=aix].
1589 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1590 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1591 compiler's sysroot if not specified).
1592 --with-gnu-ld assume the C compiler uses GNU ld default=no
1593 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1594 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1595 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1596 --without-libintl-prefix don't search for libintl in includedir and libdir
1597 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1598 --with-ps-cmd="CMD" Use this command to check running commands. Default:
1599 /bin/ps auxww
1600 --with-localedir=DIR Name of gettext locale directory
1601 --with-include-path=PATHS
1602 Colon-separated list of directories used for include
1603 file search
1604 --with-lib-path=PATHS Colon-separated list of directories used for library
1605 search
1606 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1607 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1608 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1609 --with-smtp-msa-flags=FLAGS
1610 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1611 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1612 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1613 --with-password-prog=PATH
1614 Password change program (/bin/passwd)
1615 --with-simple-spellcheck=PROG
1616 Spellcheck program reads stdin, emits misspellings
1617 on stdout
1618 --with-interactive-spellcheck=PROG
1619 Interactive, filewise spell checker
1620 --with-system-pinerc=VALUE
1621 System pinerc (/usr/local/lib/pine.conf)
1622 --with-system-fixed-pinerc=VALUE
1623 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1624 --with-local-support-info=VALUE
1625 Local Support Info File (/usr/local/lib/pine.info)
1626 --with-mailcheck-interval=VALUE
1627 Specify default mail-check-interval (150)
1628 --with-checkpoint-interval=VALUE
1629 Specify default checkpoint-interval (420)
1630 --with-checkpoint-frequency=VALUE
1631 State change count before checkpoint (12)
1632 --with-display-rows=VALUE
1633 Initial rows on display (24)
1634 --with-display-columns=VALUE
1635 Initial columns on display (80)
1636 --with-max-display-rows=VALUE
1637 Maximum display rows (200)
1638 --with-max-display-columns=VALUE
1639 Maximum display columns (500)
1640 --with-fill-column=VALUE
1641 Default fill column (74)
1642 --with-max_fill-column=VALUE
1643 Maximum fill column (80)
1644 --with-debug-level=VALUE
1645 Specify default debug verbosity level (2)
1646 --with-debug-files=VALUE
1647 Specify number of debug files (4)
1648 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1649 --with-forwarded-keyword=VALUE
1650 IMAP (c-client) keyword to store forwarded status
1651 ("\$Forwarded")
1652 --with-display-overlap=VALUE
1653 Lines preserved while paging (2)
1654 --with-display-margin=VALUE
1655 Lines visible while scrolling (0)
1656 --with-default-fcc=VALUE
1657 Default sent mail folder (sent-mail)
1658 --with-default-save-folder=VALUE
1659 Default save folder (saved-messages)
1660 --with-default-legacy-postponed-folder=VALUE
1661 Pre Pine 3.90 postponed folder (postponed-mail)
1662 --with-default-postponed-folder=VALUE
1663 Default postponed folder (postponed-msgs)
1664 --with-default-trash-folder=VALUE
1665 Default Trash folder for Web Alpine (Trash)
1666 --with-default-interrupted-mail=VALUE
1667 Default folder for interrupted mail
1668 (.pine-interrupted-mail)
1669 --with-default-dead-letter-folder=VALUE
1670 Default dead letter folder (dead.letter)
1671 --with-default-mail-directory=VALUE
1672 Default mail directory (mail)
1673 --with-default-inbox-name=VALUE
1674 Default inbox name (INBOX)
1675 --with-default-signature-file=VALUE
1676 Default signature file (.signature)
1677 --with-default-elm-style-save=VALUE
1678 Default to Elm style save (no)
1679 --with-default-header-in-reply=VALUE
1680 Include header in reply (no)
1681 --with-default-old-style-reply=VALUE
1682 Default to old style reply (no)
1683 --with-default-use-only-domain-name=VALUE
1684 Default to using only the domain name (no)
1685 --with-default-save-by-sender=VALUE
1686 Default to save by sender (no)
1687 --with-default-sort-key=VALUE
1688 Default sort key (arrival)
1689 --with-default-addressbook-sort-rule=VALUE
1690 Default addressbook sort rule
1691 (fullname-with-lists-last)
1692 --with-default-folder-sort-rule=VALUE
1693 Default folder sort rule (alphabetical)
1694 --with-default-saved-message-name-rule=VALUE
1695 Default saved message name rule (default-folder)
1696 --with-default-fcc-rule=VALUE
1697 Default fcc rule (default-fcc)
1698 --with-default-standard-printer=VALUE
1699 Default standard printern (lpr)
1700 --with-default-ansi-printer=VALUE
1701 ANSI printer definition (attached-to-ansi)
1702 --with-default-addressbook=VALUE
1703 Default addressbook name (.addressbook)
1704 --with-default-local-fullname=VALUE
1705 Default local support fullname ("Local Support")
1706 --with-default-local-address=VALUE
1707 Default local support address (postmaster)
1708 --with-default-keyboard-lock-count=VALUE
1709 Default keyboard lock count (1)
1710 --with-default-remote-addressbook-history=VALUE
1711 Default address book history count (3)
1712 --with-smime-public-cert-directory=VALUE
1713 Default Public Cert Directory (.alpine-smime/public)
1714 --with-smime-private-key-directory=VALUE
1715 Default Private Key Directory
1716 (.alpine-smime/private)
1717 --with-smime-cacert-directory=VALUE
1718 Default Cert Authority Directory (.alpine-smime/ca)
1719 --with-default-printer=VALUE
1720 Default printer (ANSI_PRINTER)
1721 --with-passfile=FILENAME
1722 Password cache file (recommended when S/MIME is
1723 enabled and configured)
1724 --without-local-password-cache
1725 Disable OS-specific password cache, if supported
1726 --with-local-password-cache-method
1727 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1728 Windows=WINCRED)
1729 --with-default-sshpath=FILENAME
1730 set default value of ssh command path (defining
1731 should cause ssh to be preferred to rsh)
1732 --with-default-sshcmd=PERCENT_S_STRING
1733 set default value of ssh command string (usually "%s
1734 %s -l %s exec /etc/r%sd")
1735 --without-ssl Disable SSL support (OpenSSL)
1736 --with-ssl-dir=DIR Root of SSL lib/include path
1737 --with-ssl-certs-dir=DIR
1738 Path to SSL certificate directory
1739 --with-ssl-include-dir=DIR
1740 SSL include file path
1741 --with-ssl-lib-dir=DIR SSL library path
1742 --without-krb5 Disable Kerberos support
1743 --with-krb5-dir=DIR Root of Kerberos lib/include path
1744 --with-krb5-include-dir=DIR
1745 Kerberos include file path
1746 --with-krb5-lib-dir=DIR Kerberos library path
1747 --without-ldap Disable LDAP query support
1748 --with-ldap-dir=DIR Root of LDAP lib/include path
1749 --with-ldap-include-dir=DIR
1750 Directory containing LDAP include files
1751 --with-ldap-lib-dir=DIR LDAP library path
1752 --without-smime Disable S/MIME
1753 --without-tcl Disable TCL, thus Web Alpine support
1754 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1755 --with-tcl-include=DIR Directory containing TCL include files
1756 --with-supplied-regex Use regex library supplied with alpine
1757 --without-pthread Do NOT test for nor build with POSIX thread support
1758 --with-system-mail-directory=DIR
1759 Directory where local mail is delivered
1760 --with-c-client-target=TARGET
1761 IMAP build target (see imap/Makefile)
1762 --without-ipv6 Disable IPv6, primarily to work around resolver
1763 problems
1764 --without-ntlm Disable NTLM client support
1766 Some influential environment variables:
1767 CC C compiler command
1768 CFLAGS C compiler flags
1769 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1770 nonstandard directory <lib dir>
1771 LIBS libraries to pass to the linker, e.g. -l<library>
1772 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1773 you have headers in a nonstandard directory <include dir>
1774 LT_SYS_LIBRARY_PATH
1775 User-defined run-time library search path.
1776 CPP C preprocessor
1778 Use these variables to override the choices made by `configure' or to help
1779 it to find libraries and programs with nonstandard names/locations.
1781 Report bugs to <chappa@washington.edu>.
1782 _ACEOF
1783 ac_status=$?
1786 if test "$ac_init_help" = "recursive"; then
1787 # If there are subdirs, report their specific --help.
1788 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1789 test -d "$ac_dir" ||
1790 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1791 continue
1792 ac_builddir=.
1794 case "$ac_dir" in
1795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1798 # A ".." for each directory in $ac_dir_suffix.
1799 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1800 case $ac_top_builddir_sub in
1801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1803 esac ;;
1804 esac
1805 ac_abs_top_builddir=$ac_pwd
1806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1807 # for backward compatibility:
1808 ac_top_builddir=$ac_top_build_prefix
1810 case $srcdir in
1811 .) # We are building in place.
1812 ac_srcdir=.
1813 ac_top_srcdir=$ac_top_builddir_sub
1814 ac_abs_top_srcdir=$ac_pwd ;;
1815 [\\/]* | ?:[\\/]* ) # Absolute name.
1816 ac_srcdir=$srcdir$ac_dir_suffix;
1817 ac_top_srcdir=$srcdir
1818 ac_abs_top_srcdir=$srcdir ;;
1819 *) # Relative name.
1820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1821 ac_top_srcdir=$ac_top_build_prefix$srcdir
1822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1823 esac
1824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1826 cd "$ac_dir" || { ac_status=$?; continue; }
1827 # Check for guested configure.
1828 if test -f "$ac_srcdir/configure.gnu"; then
1829 echo &&
1830 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1831 elif test -f "$ac_srcdir/configure"; then
1832 echo &&
1833 $SHELL "$ac_srcdir/configure" --help=recursive
1834 else
1835 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1836 fi || ac_status=$?
1837 cd "$ac_pwd" || { ac_status=$?; break; }
1838 done
1841 test -n "$ac_init_help" && exit $ac_status
1842 if $ac_init_version; then
1843 cat <<\_ACEOF
1844 alpine configure 2.21.9
1845 generated by GNU Autoconf 2.69
1847 Copyright (C) 2012 Free Software Foundation, Inc.
1848 This configure script is free software; the Free Software Foundation
1849 gives unlimited permission to copy, distribute and modify it.
1850 _ACEOF
1851 exit
1854 ## ------------------------ ##
1855 ## Autoconf initialization. ##
1856 ## ------------------------ ##
1858 # ac_fn_c_try_compile LINENO
1859 # --------------------------
1860 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_compile ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext
1865 if { { ac_try="$ac_compile"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_compile") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest.$ac_objext; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=1
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1894 } # ac_fn_c_try_compile
1896 # ac_fn_c_try_link LINENO
1897 # -----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_link ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext conftest$ac_exeext
1903 if { { ac_try="$ac_link"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest$ac_exeext && {
1922 test "$cross_compiling" = yes ||
1923 test -x conftest$ac_exeext
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1930 ac_retval=1
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1940 } # ac_fn_c_try_link
1942 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists and can be compiled using the include files in
1945 # INCLUDES, setting the cache variable VAR accordingly.
1946 ac_fn_c_check_header_compile ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953 else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 eval "$3=yes"
1961 else
1962 eval "$3=no"
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_header_compile
1973 # ac_fn_c_try_cpp LINENO
1974 # ----------------------
1975 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1976 ac_fn_c_try_cpp ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if { { ac_try="$ac_cpp conftest.$ac_ext"
1980 case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1987 ac_status=$?
1988 if test -s conftest.err; then
1989 grep -v '^ *+' conftest.err >conftest.er1
1990 cat conftest.er1 >&5
1991 mv -f conftest.er1 conftest.err
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; } > conftest.i && {
1995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1996 test ! -s conftest.err
1997 }; then :
1998 ac_retval=0
1999 else
2000 $as_echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2003 ac_retval=1
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 as_fn_set_status $ac_retval
2008 } # ac_fn_c_try_cpp
2010 # ac_fn_c_try_run LINENO
2011 # ----------------------
2012 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2013 # that executables *can* be run.
2014 ac_fn_c_try_run ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if { { ac_try="$ac_link"
2018 case "(($ac_try" in
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2021 esac
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_link") 2>&5
2025 ac_status=$?
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2028 { { case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031 esac
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_try") 2>&5
2035 ac_status=$?
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; }; }; then :
2038 ac_retval=0
2039 else
2040 $as_echo "$as_me: program exited with status $ac_status" >&5
2041 $as_echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2044 ac_retval=$ac_status
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 as_fn_set_status $ac_retval
2050 } # ac_fn_c_try_run
2052 # ac_fn_c_check_func LINENO FUNC VAR
2053 # ----------------------------------
2054 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2055 ac_fn_c_check_func ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2067 #define $2 innocuous_$2
2069 /* System header to define __stub macros and hopefully few prototypes,
2070 which can conflict with char $2 (); below.
2071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2072 <limits.h> exists even on freestanding compilers. */
2074 #ifdef __STDC__
2075 # include <limits.h>
2076 #else
2077 # include <assert.h>
2078 #endif
2080 #undef $2
2082 /* Override any GCC internal prototype to avoid an error.
2083 Use char because int might match the return type of a GCC
2084 builtin and then its argument prototype would still apply. */
2085 #ifdef __cplusplus
2086 extern "C"
2087 #endif
2088 char $2 ();
2089 /* The GNU C library defines this for functions which it implements
2090 to always fail with ENOSYS. Some functions are actually named
2091 something starting with __ and the normal name is an alias. */
2092 #if defined __stub_$2 || defined __stub___$2
2093 choke me
2094 #endif
2097 main ()
2099 return $2 ();
2101 return 0;
2103 _ACEOF
2104 if ac_fn_c_try_link "$LINENO"; then :
2105 eval "$3=yes"
2106 else
2107 eval "$3=no"
2109 rm -f core conftest.err conftest.$ac_objext \
2110 conftest$ac_exeext conftest.$ac_ext
2112 eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 } # ac_fn_c_check_func
2119 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2120 # -------------------------------------------------------
2121 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122 # the include files in INCLUDES and setting the cache variable VAR
2123 # accordingly.
2124 ac_fn_c_check_header_mongrel ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if eval \${$3+:} false; then :
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2133 eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 else
2137 # Is the header compilable?
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139 $as_echo_n "checking $2 usability... " >&6; }
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2143 #include <$2>
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_header_compiler=yes
2147 else
2148 ac_header_compiler=no
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152 $as_echo "$ac_header_compiler" >&6; }
2154 # Is the header present?
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156 $as_echo_n "checking $2 presence... " >&6; }
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159 #include <$2>
2160 _ACEOF
2161 if ac_fn_c_try_cpp "$LINENO"; then :
2162 ac_header_preproc=yes
2163 else
2164 ac_header_preproc=no
2166 rm -f conftest.err conftest.i conftest.$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168 $as_echo "$ac_header_preproc" >&6; }
2170 # So? What about this header?
2171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2172 yes:no: )
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178 no:yes:* )
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2182 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2186 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2189 ( $as_echo "## ------------------------------------ ##
2190 ## Report this to chappa@washington.edu ##
2191 ## ------------------------------------ ##"
2192 ) | sed "s/^/$as_me: WARNING: /" >&2
2194 esac
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if eval \${$3+:} false; then :
2198 $as_echo_n "(cached) " >&6
2199 else
2200 eval "$3=\$ac_header_compiler"
2202 eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 } # ac_fn_c_check_header_mongrel
2210 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2211 # -------------------------------------------
2212 # Tests whether TYPE exists after having included INCLUDES, setting cache
2213 # variable VAR accordingly.
2214 ac_fn_c_check_type ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 eval "$3=no"
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2227 main ()
2229 if (sizeof ($2))
2230 return 0;
2232 return 0;
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2240 main ()
2242 if (sizeof (($2)))
2243 return 0;
2245 return 0;
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2250 else
2251 eval "$3=yes"
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 } # ac_fn_c_check_type
2264 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2265 # --------------------------------------------
2266 # Tries to find the compile-time value of EXPR in a program that includes
2267 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2268 # computed
2269 ac_fn_c_compute_int ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 if test "$cross_compiling" = yes; then
2273 # Depending upon the size, compute the lo and hi bounds.
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2278 main ()
2280 static int test_array [1 - 2 * !(($2) >= 0)];
2281 test_array [0] = 0;
2282 return test_array [0];
2285 return 0;
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 ac_lo=0 ac_mid=0
2290 while :; do
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2295 main ()
2297 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2298 test_array [0] = 0;
2299 return test_array [0];
2302 return 0;
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 ac_hi=$ac_mid; break
2307 else
2308 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2309 if test $ac_lo -le $ac_mid; then
2310 ac_lo= ac_hi=
2311 break
2313 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 done
2317 else
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2322 main ()
2324 static int test_array [1 - 2 * !(($2) < 0)];
2325 test_array [0] = 0;
2326 return test_array [0];
2329 return 0;
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 ac_hi=-1 ac_mid=-1
2334 while :; do
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2339 main ()
2341 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2342 test_array [0] = 0;
2343 return test_array [0];
2346 return 0;
2348 _ACEOF
2349 if ac_fn_c_try_compile "$LINENO"; then :
2350 ac_lo=$ac_mid; break
2351 else
2352 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2353 if test $ac_mid -le $ac_hi; then
2354 ac_lo= ac_hi=
2355 break
2357 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 done
2361 else
2362 ac_lo= ac_hi=
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 # Binary search between lo and hi bounds.
2368 while test "x$ac_lo" != "x$ac_hi"; do
2369 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2374 main ()
2376 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2377 test_array [0] = 0;
2378 return test_array [0];
2381 return 0;
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_hi=$ac_mid
2386 else
2387 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 done
2391 case $ac_lo in #((
2392 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2393 '') ac_retval=1 ;;
2394 esac
2395 else
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2399 static long int longval () { return $2; }
2400 static unsigned long int ulongval () { return $2; }
2401 #include <stdio.h>
2402 #include <stdlib.h>
2404 main ()
2407 FILE *f = fopen ("conftest.val", "w");
2408 if (! f)
2409 return 1;
2410 if (($2) < 0)
2412 long int i = longval ();
2413 if (i != ($2))
2414 return 1;
2415 fprintf (f, "%ld", i);
2417 else
2419 unsigned long int i = ulongval ();
2420 if (i != ($2))
2421 return 1;
2422 fprintf (f, "%lu", i);
2424 /* Do not output a trailing newline, as this causes \r\n confusion
2425 on some platforms. */
2426 return ferror (f) || fclose (f) != 0;
2429 return 0;
2431 _ACEOF
2432 if ac_fn_c_try_run "$LINENO"; then :
2433 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2434 else
2435 ac_retval=1
2437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2438 conftest.$ac_objext conftest.beam conftest.$ac_ext
2439 rm -f conftest.val
2442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2443 as_fn_set_status $ac_retval
2445 } # ac_fn_c_compute_int
2446 cat >config.log <<_ACEOF
2447 This file contains any messages produced by compilers while
2448 running configure, to aid debugging if configure makes a mistake.
2450 It was created by alpine $as_me 2.21.9, which was
2451 generated by GNU Autoconf 2.69. Invocation command line was
2453 $ $0 $@
2455 _ACEOF
2456 exec 5>>config.log
2458 cat <<_ASUNAME
2459 ## --------- ##
2460 ## Platform. ##
2461 ## --------- ##
2463 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2464 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2465 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2466 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2467 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2469 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2470 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2472 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2473 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2474 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2475 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2476 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2477 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2478 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2480 _ASUNAME
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 $as_echo "PATH: $as_dir"
2488 done
2489 IFS=$as_save_IFS
2491 } >&5
2493 cat >&5 <<_ACEOF
2496 ## ----------- ##
2497 ## Core tests. ##
2498 ## ----------- ##
2500 _ACEOF
2503 # Keep a trace of the command line.
2504 # Strip out --no-create and --no-recursion so they do not pile up.
2505 # Strip out --silent because we don't want to record it for future runs.
2506 # Also quote any args containing shell meta-characters.
2507 # Make two passes to allow for proper duplicate-argument suppression.
2508 ac_configure_args=
2509 ac_configure_args0=
2510 ac_configure_args1=
2511 ac_must_keep_next=false
2512 for ac_pass in 1 2
2514 for ac_arg
2516 case $ac_arg in
2517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2519 | -silent | --silent | --silen | --sile | --sil)
2520 continue ;;
2521 *\'*)
2522 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2523 esac
2524 case $ac_pass in
2525 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2527 as_fn_append ac_configure_args1 " '$ac_arg'"
2528 if test $ac_must_keep_next = true; then
2529 ac_must_keep_next=false # Got value, back to normal.
2530 else
2531 case $ac_arg in
2532 *=* | --config-cache | -C | -disable-* | --disable-* \
2533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2535 | -with-* | --with-* | -without-* | --without-* | --x)
2536 case "$ac_configure_args0 " in
2537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2538 esac
2540 -* ) ac_must_keep_next=true ;;
2541 esac
2543 as_fn_append ac_configure_args " '$ac_arg'"
2545 esac
2546 done
2547 done
2548 { ac_configure_args0=; unset ac_configure_args0;}
2549 { ac_configure_args1=; unset ac_configure_args1;}
2551 # When interrupted or exit'd, cleanup temporary files, and complete
2552 # config.log. We remove comments because anyway the quotes in there
2553 # would cause problems or look ugly.
2554 # WARNING: Use '\'' to represent an apostrophe within the trap.
2555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2556 trap 'exit_status=$?
2557 # Save into config.log some information that might help in debugging.
2559 echo
2561 $as_echo "## ---------------- ##
2562 ## Cache variables. ##
2563 ## ---------------- ##"
2564 echo
2565 # The following way of writing the cache mishandles newlines in values,
2567 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2568 eval ac_val=\$$ac_var
2569 case $ac_val in #(
2570 *${as_nl}*)
2571 case $ac_var in #(
2572 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2573 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2574 esac
2575 case $ac_var in #(
2576 _ | IFS | as_nl) ;; #(
2577 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2578 *) { eval $ac_var=; unset $ac_var;} ;;
2579 esac ;;
2580 esac
2581 done
2582 (set) 2>&1 |
2583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2584 *${as_nl}ac_space=\ *)
2585 sed -n \
2586 "s/'\''/'\''\\\\'\'''\''/g;
2587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2588 ;; #(
2590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2592 esac |
2593 sort
2595 echo
2597 $as_echo "## ----------------- ##
2598 ## Output variables. ##
2599 ## ----------------- ##"
2600 echo
2601 for ac_var in $ac_subst_vars
2603 eval ac_val=\$$ac_var
2604 case $ac_val in
2605 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2606 esac
2607 $as_echo "$ac_var='\''$ac_val'\''"
2608 done | sort
2609 echo
2611 if test -n "$ac_subst_files"; then
2612 $as_echo "## ------------------- ##
2613 ## File substitutions. ##
2614 ## ------------------- ##"
2615 echo
2616 for ac_var in $ac_subst_files
2618 eval ac_val=\$$ac_var
2619 case $ac_val in
2620 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2621 esac
2622 $as_echo "$ac_var='\''$ac_val'\''"
2623 done | sort
2624 echo
2627 if test -s confdefs.h; then
2628 $as_echo "## ----------- ##
2629 ## confdefs.h. ##
2630 ## ----------- ##"
2631 echo
2632 cat confdefs.h
2633 echo
2635 test "$ac_signal" != 0 &&
2636 $as_echo "$as_me: caught signal $ac_signal"
2637 $as_echo "$as_me: exit $exit_status"
2638 } >&5
2639 rm -f core *.core core.conftest.* &&
2640 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2641 exit $exit_status
2643 for ac_signal in 1 2 13 15; do
2644 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2645 done
2646 ac_signal=0
2648 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2649 rm -f -r conftest* confdefs.h
2651 $as_echo "/* confdefs.h */" > confdefs.h
2653 # Predefined preprocessor variables.
2655 cat >>confdefs.h <<_ACEOF
2656 #define PACKAGE_NAME "$PACKAGE_NAME"
2657 _ACEOF
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2661 _ACEOF
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2665 _ACEOF
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_STRING "$PACKAGE_STRING"
2669 _ACEOF
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2673 _ACEOF
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_URL "$PACKAGE_URL"
2677 _ACEOF
2680 # Let the site file select an alternate cache file if it wants to.
2681 # Prefer an explicitly selected file to automatically selected ones.
2682 ac_site_file1=NONE
2683 ac_site_file2=NONE
2684 if test -n "$CONFIG_SITE"; then
2685 # We do not want a PATH search for config.site.
2686 case $CONFIG_SITE in #((
2687 -*) ac_site_file1=./$CONFIG_SITE;;
2688 */*) ac_site_file1=$CONFIG_SITE;;
2689 *) ac_site_file1=./$CONFIG_SITE;;
2690 esac
2691 elif test "x$prefix" != xNONE; then
2692 ac_site_file1=$prefix/share/config.site
2693 ac_site_file2=$prefix/etc/config.site
2694 else
2695 ac_site_file1=$ac_default_prefix/share/config.site
2696 ac_site_file2=$ac_default_prefix/etc/config.site
2698 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2700 test "x$ac_site_file" = xNONE && continue
2701 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2703 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2704 sed 's/^/| /' "$ac_site_file" >&5
2705 . "$ac_site_file" \
2706 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error $? "failed to load site script $ac_site_file
2709 See \`config.log' for more details" "$LINENO" 5; }
2711 done
2713 if test -r "$cache_file"; then
2714 # Some versions of bash will fail to source /dev/null (special files
2715 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2716 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2718 $as_echo "$as_me: loading cache $cache_file" >&6;}
2719 case $cache_file in
2720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2721 *) . "./$cache_file";;
2722 esac
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2726 $as_echo "$as_me: creating cache $cache_file" >&6;}
2727 >$cache_file
2730 gt_needs="$gt_needs "
2731 # Check that the precious variables saved in the cache have kept the same
2732 # value.
2733 ac_cache_corrupted=false
2734 for ac_var in $ac_precious_vars; do
2735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2736 eval ac_new_set=\$ac_env_${ac_var}_set
2737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2738 eval ac_new_val=\$ac_env_${ac_var}_value
2739 case $ac_old_set,$ac_new_set in
2740 set,)
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2742 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2743 ac_cache_corrupted=: ;;
2744 ,set)
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2746 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2747 ac_cache_corrupted=: ;;
2748 ,);;
2750 if test "x$ac_old_val" != "x$ac_new_val"; then
2751 # differences in whitespace do not lead to failure.
2752 ac_old_val_w=`echo x $ac_old_val`
2753 ac_new_val_w=`echo x $ac_new_val`
2754 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2756 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2757 ac_cache_corrupted=:
2758 else
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2760 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2761 eval $ac_var=\$ac_old_val
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2764 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2766 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2767 fi;;
2768 esac
2769 # Pass precious variables to config.status.
2770 if test "$ac_new_set" = set; then
2771 case $ac_new_val in
2772 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2773 *) ac_arg=$ac_var=$ac_new_val ;;
2774 esac
2775 case " $ac_configure_args " in
2776 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2777 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2778 esac
2780 done
2781 if $ac_cache_corrupted; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2785 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2786 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2788 ## -------------------- ##
2789 ## Main body of script. ##
2790 ## -------------------- ##
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 ac_config_headers="$ac_config_headers include/config.h"
2804 am__api_version='1.15'
2806 ac_aux_dir=
2807 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2808 if test -f "$ac_dir/install-sh"; then
2809 ac_aux_dir=$ac_dir
2810 ac_install_sh="$ac_aux_dir/install-sh -c"
2811 break
2812 elif test -f "$ac_dir/install.sh"; then
2813 ac_aux_dir=$ac_dir
2814 ac_install_sh="$ac_aux_dir/install.sh -c"
2815 break
2816 elif test -f "$ac_dir/shtool"; then
2817 ac_aux_dir=$ac_dir
2818 ac_install_sh="$ac_aux_dir/shtool install -c"
2819 break
2821 done
2822 if test -z "$ac_aux_dir"; then
2823 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2826 # These three variables are undocumented and unsupported,
2827 # and are intended to be withdrawn in a future Autoconf release.
2828 # They can cause serious problems if a builder's source tree is in a directory
2829 # whose full name contains unusual characters.
2830 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2831 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2832 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2835 # Find a good install program. We prefer a C program (faster),
2836 # so one script is as good as another. But avoid the broken or
2837 # incompatible versions:
2838 # SysV /etc/install, /usr/sbin/install
2839 # SunOS /usr/etc/install
2840 # IRIX /sbin/install
2841 # AIX /bin/install
2842 # AmigaOS /C/install, which installs bootblocks on floppy discs
2843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2846 # OS/2's system install, which has a completely different semantic
2847 # ./install, which can be erroneously created by make from ./install.sh.
2848 # Reject install programs that cannot install multiple files.
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2850 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2851 if test -z "$INSTALL"; then
2852 if ${ac_cv_path_install+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 # Account for people who put trailing slashes in PATH elements.
2861 case $as_dir/ in #((
2862 ./ | .// | /[cC]/* | \
2863 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2864 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2865 /usr/ucb/* ) ;;
2867 # OSF1 and SCO ODT 3.0 have their own names for install.
2868 # Don't use installbsd from OSF since it installs stuff as root
2869 # by default.
2870 for ac_prog in ginstall scoinst install; do
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2873 if test $ac_prog = install &&
2874 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2875 # AIX install. It has an incompatible calling convention.
2877 elif test $ac_prog = install &&
2878 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2879 # program-specific install script used by HP pwplus--don't use.
2881 else
2882 rm -rf conftest.one conftest.two conftest.dir
2883 echo one > conftest.one
2884 echo two > conftest.two
2885 mkdir conftest.dir
2886 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2887 test -s conftest.one && test -s conftest.two &&
2888 test -s conftest.dir/conftest.one &&
2889 test -s conftest.dir/conftest.two
2890 then
2891 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2892 break 3
2896 done
2897 done
2899 esac
2901 done
2902 IFS=$as_save_IFS
2904 rm -rf conftest.one conftest.two conftest.dir
2907 if test "${ac_cv_path_install+set}" = set; then
2908 INSTALL=$ac_cv_path_install
2909 else
2910 # As a last resort, use the slow shell script. Don't cache a
2911 # value for INSTALL within a source directory, because that will
2912 # break other packages using the cache if that directory is
2913 # removed, or if the value is a relative name.
2914 INSTALL=$ac_install_sh
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2918 $as_echo "$INSTALL" >&6; }
2920 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2921 # It thinks the first close brace ends the variable substitution.
2922 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2924 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2926 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2929 $as_echo_n "checking whether build environment is sane... " >&6; }
2930 # Reject unsafe characters in $srcdir or the absolute working directory
2931 # name. Accept space and tab only in the latter.
2932 am_lf='
2934 case `pwd` in
2935 *[\\\"\#\$\&\'\`$am_lf]*)
2936 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2937 esac
2938 case $srcdir in
2939 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2940 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2941 esac
2943 # Do 'set' in a subshell so we don't clobber the current shell's
2944 # arguments. Must try -L first in case configure is actually a
2945 # symlink; some systems play weird games with the mod time of symlinks
2946 # (eg FreeBSD returns the mod time of the symlink's containing
2947 # directory).
2948 if (
2949 am_has_slept=no
2950 for am_try in 1 2; do
2951 echo "timestamp, slept: $am_has_slept" > conftest.file
2952 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2953 if test "$*" = "X"; then
2954 # -L didn't work.
2955 set X `ls -t "$srcdir/configure" conftest.file`
2957 if test "$*" != "X $srcdir/configure conftest.file" \
2958 && test "$*" != "X conftest.file $srcdir/configure"; then
2960 # If neither matched, then we have a broken ls. This can happen
2961 # if, for instance, CONFIG_SHELL is bash and it inherits a
2962 # broken ls alias from the environment. This has actually
2963 # happened. Such a system could not be considered "sane".
2964 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2965 alias in your environment" "$LINENO" 5
2967 if test "$2" = conftest.file || test $am_try -eq 2; then
2968 break
2970 # Just in case.
2971 sleep 1
2972 am_has_slept=yes
2973 done
2974 test "$2" = conftest.file
2976 then
2977 # Ok.
2979 else
2980 as_fn_error $? "newly created file is older than distributed files!
2981 Check your system clock" "$LINENO" 5
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2984 $as_echo "yes" >&6; }
2985 # If we didn't sleep, we still need to ensure time stamps of config.status and
2986 # generated files are strictly newer.
2987 am_sleep_pid=
2988 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2989 ( sleep 1 ) &
2990 am_sleep_pid=$!
2993 rm -f conftest.file
2995 test "$program_prefix" != NONE &&
2996 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2997 # Use a double $ so make ignores it.
2998 test "$program_suffix" != NONE &&
2999 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3000 # Double any \ or $.
3001 # By default was `s,x,x', remove it if useless.
3002 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3003 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3005 # Expand $ac_aux_dir to an absolute path.
3006 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3008 if test x"${MISSING+set}" != xset; then
3009 case $am_aux_dir in
3010 *\ * | *\ *)
3011 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3013 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3014 esac
3016 # Use eval to expand $SHELL
3017 if eval "$MISSING --is-lightweight"; then
3018 am_missing_run="$MISSING "
3019 else
3020 am_missing_run=
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3022 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3025 if test x"${install_sh+set}" != xset; then
3026 case $am_aux_dir in
3027 *\ * | *\ *)
3028 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3030 install_sh="\${SHELL} $am_aux_dir/install-sh"
3031 esac
3034 # Installed binaries are usually stripped using 'strip' when the user
3035 # run "make install-strip". However 'strip' might not be the right
3036 # tool to use in cross-compilation environments, therefore Automake
3037 # will honor the 'STRIP' environment variable to overrule this program.
3038 if test "$cross_compiling" != no; then
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}strip; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_STRIP+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$STRIP"; then
3048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3061 done
3062 done
3063 IFS=$as_save_IFS
3067 STRIP=$ac_cv_prog_STRIP
3068 if test -n "$STRIP"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3070 $as_echo "$STRIP" >&6; }
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3078 if test -z "$ac_cv_prog_STRIP"; then
3079 ac_ct_STRIP=$STRIP
3080 # Extract the first word of "strip", so it can be a program name with args.
3081 set dummy strip; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test -n "$ac_ct_STRIP"; then
3088 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_STRIP="strip"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3101 done
3102 done
3103 IFS=$as_save_IFS
3107 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3108 if test -n "$ac_ct_STRIP"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3110 $as_echo "$ac_ct_STRIP" >&6; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3116 if test "x$ac_ct_STRIP" = x; then
3117 STRIP=":"
3118 else
3119 case $cross_compiling:$ac_tool_warned in
3120 yes:)
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123 ac_tool_warned=yes ;;
3124 esac
3125 STRIP=$ac_ct_STRIP
3127 else
3128 STRIP="$ac_cv_prog_STRIP"
3132 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3135 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3136 if test -z "$MKDIR_P"; then
3137 if ${ac_cv_path_mkdir+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_prog in mkdir gmkdir; do
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3148 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3149 'mkdir (GNU coreutils) '* | \
3150 'mkdir (coreutils) '* | \
3151 'mkdir (fileutils) '4.1*)
3152 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3153 break 3;;
3154 esac
3155 done
3156 done
3157 done
3158 IFS=$as_save_IFS
3162 test -d ./--version && rmdir ./--version
3163 if test "${ac_cv_path_mkdir+set}" = set; then
3164 MKDIR_P="$ac_cv_path_mkdir -p"
3165 else
3166 # As a last resort, use the slow shell script. Don't cache a
3167 # value for MKDIR_P within a source directory, because that will
3168 # break other packages using the cache if that directory is
3169 # removed, or if the value is a relative name.
3170 MKDIR_P="$ac_install_sh -d"
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3174 $as_echo "$MKDIR_P" >&6; }
3176 for ac_prog in gawk mawk nawk awk
3178 # Extract the first word of "$ac_prog", so it can be a program name with args.
3179 set dummy $ac_prog; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_AWK+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$AWK"; then
3186 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_AWK="$ac_prog"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3199 done
3200 done
3201 IFS=$as_save_IFS
3205 AWK=$ac_cv_prog_AWK
3206 if test -n "$AWK"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3208 $as_echo "$AWK" >&6; }
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3215 test -n "$AWK" && break
3216 done
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3219 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3220 set x ${MAKE-make}
3221 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3222 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 cat >conftest.make <<\_ACEOF
3226 SHELL = /bin/sh
3227 all:
3228 @echo '@@@%%%=$(MAKE)=@@@%%%'
3229 _ACEOF
3230 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3231 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3232 *@@@%%%=?*=@@@%%%*)
3233 eval ac_cv_prog_make_${ac_make}_set=yes;;
3235 eval ac_cv_prog_make_${ac_make}_set=no;;
3236 esac
3237 rm -f conftest.make
3239 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3242 SET_MAKE=
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 SET_MAKE="MAKE=${MAKE-make}"
3249 rm -rf .tst 2>/dev/null
3250 mkdir .tst 2>/dev/null
3251 if test -d .tst; then
3252 am__leading_dot=.
3253 else
3254 am__leading_dot=_
3256 rmdir .tst 2>/dev/null
3258 # Check whether --enable-silent-rules was given.
3259 if test "${enable_silent_rules+set}" = set; then :
3260 enableval=$enable_silent_rules;
3263 case $enable_silent_rules in # (((
3264 yes) AM_DEFAULT_VERBOSITY=0;;
3265 no) AM_DEFAULT_VERBOSITY=1;;
3266 *) AM_DEFAULT_VERBOSITY=1;;
3267 esac
3268 am_make=${MAKE-make}
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3270 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3271 if ${am_cv_make_support_nested_variables+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if $as_echo 'TRUE=$(BAR$(V))
3275 BAR0=false
3276 BAR1=true
3278 am__doit:
3279 @$(TRUE)
3280 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3281 am_cv_make_support_nested_variables=yes
3282 else
3283 am_cv_make_support_nested_variables=no
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3287 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3288 if test $am_cv_make_support_nested_variables = yes; then
3289 AM_V='$(V)'
3290 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3291 else
3292 AM_V=$AM_DEFAULT_VERBOSITY
3293 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3295 AM_BACKSLASH='\'
3297 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3298 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3299 # is not polluted with repeated "-I."
3300 am__isrc=' -I$(srcdir)'
3301 # test to see if srcdir already configured
3302 if test -f $srcdir/config.status; then
3303 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3307 # test whether we have cygpath
3308 if test -z "$CYGPATH_W"; then
3309 if (cygpath --version) >/dev/null 2>/dev/null; then
3310 CYGPATH_W='cygpath -w'
3311 else
3312 CYGPATH_W=echo
3317 # Define the identity of the package.
3318 PACKAGE='alpine'
3319 VERSION='2.21.9'
3322 cat >>confdefs.h <<_ACEOF
3323 #define PACKAGE "$PACKAGE"
3324 _ACEOF
3327 cat >>confdefs.h <<_ACEOF
3328 #define VERSION "$VERSION"
3329 _ACEOF
3331 # Some tools Automake needs.
3333 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3336 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3339 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3342 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3345 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3347 # For better backward compatibility. To be removed once Automake 1.9.x
3348 # dies out for good. For more background, see:
3349 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3350 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3351 mkdir_p='$(MKDIR_P)'
3353 # We need awk for the "check" target (and possibly the TAP driver). The
3354 # system "awk" is bad on some platforms.
3355 # Always define AMTAR for backward compatibility. Yes, it's still used
3356 # in the wild :-( We should find a proper way to deprecate it ...
3357 AMTAR='$${TAR-tar}'
3360 # We'll loop over all known methods to create a tar archive until one works.
3361 _am_tools='gnutar pax cpio none'
3363 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3370 # POSIX will say in a future version that running "rm -f" with no argument
3371 # is OK; and we want to be able to make that assumption in our Makefile
3372 # recipes. So use an aggressive probe to check that the usage we want is
3373 # actually supported "in the wild" to an acceptable degree.
3374 # See automake bug#10828.
3375 # To make any issue more visible, cause the running configure to be aborted
3376 # by default if the 'rm' program in use doesn't match our expectations; the
3377 # user can still override this though.
3378 if rm -f && rm -fr && rm -rf; then : OK; else
3379 cat >&2 <<'END'
3380 Oops!
3382 Your 'rm' program seems unable to run without file operands specified
3383 on the command line, even when the '-f' option is present. This is contrary
3384 to the behaviour of most rm programs out there, and not conforming with
3385 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3387 Please tell bug-automake@gnu.org about your system, including the value
3388 of your $PATH and any error possibly output before this message. This
3389 can help us improve future automake versions.
3392 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3393 echo 'Configuration will proceed anyway, since you have set the' >&2
3394 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3395 echo >&2
3396 else
3397 cat >&2 <<'END'
3398 Aborting the configuration process, to ensure you take notice of the issue.
3400 You can download and install GNU coreutils to get an 'rm' implementation
3401 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3403 If you want to complete the configuration process using your problematic
3404 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3405 to "yes", and re-run configure.
3408 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3415 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3416 # Check whether --enable-maintainer-mode was given.
3417 if test "${enable_maintainer_mode+set}" = set; then :
3418 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3419 else
3420 USE_MAINTAINER_MODE=no
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3424 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3425 if test $USE_MAINTAINER_MODE = yes; then
3426 MAINTAINER_MODE_TRUE=
3427 MAINTAINER_MODE_FALSE='#'
3428 else
3429 MAINTAINER_MODE_TRUE='#'
3430 MAINTAINER_MODE_FALSE=
3433 MAINT=$MAINTAINER_MODE_TRUE
3437 # Make sure we can run config.sub.
3438 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3439 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3442 $as_echo_n "checking build system type... " >&6; }
3443 if ${ac_cv_build+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 ac_build_alias=$build_alias
3447 test "x$ac_build_alias" = x &&
3448 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3449 test "x$ac_build_alias" = x &&
3450 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3451 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3456 $as_echo "$ac_cv_build" >&6; }
3457 case $ac_cv_build in
3458 *-*-*) ;;
3459 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3460 esac
3461 build=$ac_cv_build
3462 ac_save_IFS=$IFS; IFS='-'
3463 set x $ac_cv_build
3464 shift
3465 build_cpu=$1
3466 build_vendor=$2
3467 shift; shift
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3470 build_os=$*
3471 IFS=$ac_save_IFS
3472 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3476 $as_echo_n "checking host system type... " >&6; }
3477 if ${ac_cv_host+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test "x$host_alias" = x; then
3481 ac_cv_host=$ac_cv_build
3482 else
3483 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3489 $as_echo "$ac_cv_host" >&6; }
3490 case $ac_cv_host in
3491 *-*-*) ;;
3492 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3493 esac
3494 host=$ac_cv_host
3495 ac_save_IFS=$IFS; IFS='-'
3496 set x $ac_cv_host
3497 shift
3498 host_cpu=$1
3499 host_vendor=$2
3500 shift; shift
3501 # Remember, the first character of IFS is used to create $*,
3502 # except with old shells:
3503 host_os=$*
3504 IFS=$ac_save_IFS
3505 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3517 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3519 # start out with intent to build Web Alpine
3520 WEB_BUILD=web/src/alpined.d
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 if test -n "$ac_tool_prefix"; then
3529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if ${ac_cv_prog_CC+:} false; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3550 done
3551 done
3552 IFS=$as_save_IFS
3556 CC=$ac_cv_prog_CC
3557 if test -n "$CC"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3559 $as_echo "$CC" >&6; }
3560 else
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3567 if test -z "$ac_cv_prog_CC"; then
3568 ac_ct_CC=$CC
3569 # Extract the first word of "gcc", so it can be a program name with args.
3570 set dummy gcc; ac_word=$2
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 $as_echo_n "checking for $ac_word... " >&6; }
3573 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 if test -n "$ac_ct_CC"; then
3577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3586 ac_cv_prog_ac_ct_CC="gcc"
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 break 2
3590 done
3591 done
3592 IFS=$as_save_IFS
3596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3597 if test -n "$ac_ct_CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3599 $as_echo "$ac_ct_CC" >&6; }
3600 else
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3605 if test "x$ac_ct_CC" = x; then
3606 CC=""
3607 else
3608 case $cross_compiling:$ac_tool_warned in
3609 yes:)
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3612 ac_tool_warned=yes ;;
3613 esac
3614 CC=$ac_ct_CC
3616 else
3617 CC="$ac_cv_prog_CC"
3620 if test -z "$CC"; then
3621 if test -n "$ac_tool_prefix"; then
3622 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3623 set dummy ${ac_tool_prefix}cc; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if ${ac_cv_prog_CC+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 if test -n "$CC"; then
3630 ac_cv_prog_CC="$CC" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_CC="${ac_tool_prefix}cc"
3640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3643 done
3644 done
3645 IFS=$as_save_IFS
3649 CC=$ac_cv_prog_CC
3650 if test -n "$CC"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652 $as_echo "$CC" >&6; }
3653 else
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3661 if test -z "$CC"; then
3662 # Extract the first word of "cc", so it can be a program name with args.
3663 set dummy cc; ac_word=$2
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 $as_echo_n "checking for $ac_word... " >&6; }
3666 if ${ac_cv_prog_CC+:} false; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 if test -n "$CC"; then
3670 ac_cv_prog_CC="$CC" # Let the user override the test.
3671 else
3672 ac_prog_rejected=no
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3681 ac_prog_rejected=yes
3682 continue
3684 ac_cv_prog_CC="cc"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3688 done
3689 done
3690 IFS=$as_save_IFS
3692 if test $ac_prog_rejected = yes; then
3693 # We found a bogon in the path, so make sure we never use it.
3694 set dummy $ac_cv_prog_CC
3695 shift
3696 if test $# != 0; then
3697 # We chose a different compiler from the bogus one.
3698 # However, it has the same basename, so the bogon will be chosen
3699 # first if we set CC to just the basename; use the full file name.
3700 shift
3701 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3706 CC=$ac_cv_prog_CC
3707 if test -n "$CC"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3709 $as_echo "$CC" >&6; }
3710 else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3717 if test -z "$CC"; then
3718 if test -n "$ac_tool_prefix"; then
3719 for ac_prog in cl.exe
3721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if ${ac_cv_prog_CC+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3742 done
3743 done
3744 IFS=$as_save_IFS
3748 CC=$ac_cv_prog_CC
3749 if test -n "$CC"; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3751 $as_echo "$CC" >&6; }
3752 else
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3754 $as_echo "no" >&6; }
3758 test -n "$CC" && break
3759 done
3761 if test -z "$CC"; then
3762 ac_ct_CC=$CC
3763 for ac_prog in cl.exe
3765 # Extract the first word of "$ac_prog", so it can be a program name with args.
3766 set dummy $ac_prog; ac_word=$2
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3768 $as_echo_n "checking for $ac_word... " >&6; }
3769 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 if test -n "$ac_ct_CC"; then
3773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3774 else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782 ac_cv_prog_ac_ct_CC="$ac_prog"
3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 break 2
3786 done
3787 done
3788 IFS=$as_save_IFS
3792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3793 if test -n "$ac_ct_CC"; then
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3795 $as_echo "$ac_ct_CC" >&6; }
3796 else
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 $as_echo "no" >&6; }
3802 test -n "$ac_ct_CC" && break
3803 done
3805 if test "x$ac_ct_CC" = x; then
3806 CC=""
3807 else
3808 case $cross_compiling:$ac_tool_warned in
3809 yes:)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3812 ac_tool_warned=yes ;;
3813 esac
3814 CC=$ac_ct_CC
3821 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823 as_fn_error $? "no acceptable C compiler found in \$PATH
3824 See \`config.log' for more details" "$LINENO" 5; }
3826 # Provide some information about the compiler.
3827 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3828 set X $ac_compile
3829 ac_compiler=$2
3830 for ac_option in --version -v -V -qversion; do
3831 { { ac_try="$ac_compiler $ac_option >&5"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3839 ac_status=$?
3840 if test -s conftest.err; then
3841 sed '10a\
3842 ... rest of stderr output deleted ...
3843 10q' conftest.err >conftest.er1
3844 cat conftest.er1 >&5
3846 rm -f conftest.er1 conftest.err
3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848 test $ac_status = 0; }
3849 done
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3855 main ()
3859 return 0;
3861 _ACEOF
3862 ac_clean_files_save=$ac_clean_files
3863 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3864 # Try to create an executable without -o first, disregard a.out.
3865 # It will help us diagnose broken compilers, and finding out an intuition
3866 # of exeext.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3868 $as_echo_n "checking whether the C compiler works... " >&6; }
3869 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3871 # The possible output files:
3872 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3874 ac_rmfiles=
3875 for ac_file in $ac_files
3877 case $ac_file in
3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3879 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3880 esac
3881 done
3882 rm -f $ac_rmfiles
3884 if { { ac_try="$ac_link_default"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link_default") 2>&5
3892 ac_status=$?
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3896 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3897 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3898 # so that the user can short-circuit this test for compilers unknown to
3899 # Autoconf.
3900 for ac_file in $ac_files ''
3902 test -f "$ac_file" || continue
3903 case $ac_file in
3904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3906 [ab].out )
3907 # We found the default executable, but exeext='' is most
3908 # certainly right.
3909 break;;
3910 *.* )
3911 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3912 then :; else
3913 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3915 # We set ac_cv_exeext here because the later test for it is not
3916 # safe: cross compilers may not add the suffix if given an `-o'
3917 # argument, so we may need to know it at that point already.
3918 # Even if this section looks crufty: it has the advantage of
3919 # actually working.
3920 break;;
3922 break;;
3923 esac
3924 done
3925 test "$ac_cv_exeext" = no && ac_cv_exeext=
3927 else
3928 ac_file=''
3930 if test -z "$ac_file"; then :
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 $as_echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error 77 "C compiler cannot create executables
3939 See \`config.log' for more details" "$LINENO" 5; }
3940 else
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942 $as_echo "yes" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3945 $as_echo_n "checking for C compiler default output file name... " >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3947 $as_echo "$ac_file" >&6; }
3948 ac_exeext=$ac_cv_exeext
3950 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3951 ac_clean_files=$ac_clean_files_save
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 # `rm'.
3969 for ac_file in conftest.exe conftest conftest.*; do
3970 test -f "$ac_file" || continue
3971 case $ac_file in
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974 break;;
3975 * ) break;;
3976 esac
3977 done
3978 else
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details" "$LINENO" 5; }
3984 rm -f conftest conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3990 ac_exeext=$EXEEXT
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #include <stdio.h>
3995 main ()
3997 FILE *f = fopen ("conftest.out", "w");
3998 return ferror (f) || fclose (f) != 0;
4001 return 0;
4003 _ACEOF
4004 ac_clean_files="$ac_clean_files conftest.out"
4005 # Check that the compiler produces executables we can run. If not, either
4006 # the compiler is broken, or we cross compile.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4008 $as_echo_n "checking whether we are cross compiling... " >&6; }
4009 if test "$cross_compiling" != yes; then
4010 { { ac_try="$ac_link"
4011 case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_link") 2>&5
4018 ac_status=$?
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }
4021 if { ac_try='./conftest$ac_cv_exeext'
4022 { { case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_try") 2>&5
4029 ac_status=$?
4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }; }; then
4032 cross_compiling=no
4033 else
4034 if test "$cross_compiling" = maybe; then
4035 cross_compiling=yes
4036 else
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "cannot run C compiled programs.
4040 If you meant to cross compile, use \`--host'.
4041 See \`config.log' for more details" "$LINENO" 5; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4046 $as_echo "$cross_compiling" >&6; }
4048 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4049 ac_clean_files=$ac_clean_files_save
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4051 $as_echo_n "checking for suffix of object files... " >&6; }
4052 if ${ac_cv_objext+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4059 main ()
4063 return 0;
4065 _ACEOF
4066 rm -f conftest.o conftest.obj
4067 if { { ac_try="$ac_compile"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_compile") 2>&5
4075 ac_status=$?
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; then :
4078 for ac_file in conftest.o conftest.obj conftest.*; do
4079 test -f "$ac_file" || continue;
4080 case $ac_file in
4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4082 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4083 break;;
4084 esac
4085 done
4086 else
4087 $as_echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092 as_fn_error $? "cannot compute suffix of object files: cannot compile
4093 See \`config.log' for more details" "$LINENO" 5; }
4095 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4098 $as_echo "$ac_cv_objext" >&6; }
4099 OBJEXT=$ac_cv_objext
4100 ac_objext=$OBJEXT
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4102 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4103 if ${ac_cv_c_compiler_gnu+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4110 main ()
4112 #ifndef __GNUC__
4113 choke me
4114 #endif
4117 return 0;
4119 _ACEOF
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_compiler_gnu=yes
4122 else
4123 ac_compiler_gnu=no
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4130 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4131 if test $ac_compiler_gnu = yes; then
4132 GCC=yes
4133 else
4134 GCC=
4136 ac_test_CFLAGS=${CFLAGS+set}
4137 ac_save_CFLAGS=$CFLAGS
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4139 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4140 if ${ac_cv_prog_cc_g+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 ac_save_c_werror_flag=$ac_c_werror_flag
4144 ac_c_werror_flag=yes
4145 ac_cv_prog_cc_g=no
4146 CFLAGS="-g"
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4151 main ()
4155 return 0;
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_prog_cc_g=yes
4160 else
4161 CFLAGS=""
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4166 main ()
4170 return 0;
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4175 else
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4177 CFLAGS="-g"
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4182 main ()
4186 return 0;
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190 ac_cv_prog_cc_g=yes
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 ac_c_werror_flag=$ac_save_c_werror_flag
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4200 $as_echo "$ac_cv_prog_cc_g" >&6; }
4201 if test "$ac_test_CFLAGS" = set; then
4202 CFLAGS=$ac_save_CFLAGS
4203 elif test $ac_cv_prog_cc_g = yes; then
4204 if test "$GCC" = yes; then
4205 CFLAGS="-g -O2"
4206 else
4207 CFLAGS="-g"
4209 else
4210 if test "$GCC" = yes; then
4211 CFLAGS="-O2"
4212 else
4213 CFLAGS=
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4217 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4218 if ${ac_cv_prog_cc_c89+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 ac_cv_prog_cc_c89=no
4222 ac_save_CC=$CC
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225 #include <stdarg.h>
4226 #include <stdio.h>
4227 struct stat;
4228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4229 struct buf { int x; };
4230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4231 static char *e (p, i)
4232 char **p;
4233 int i;
4235 return p[i];
4237 static char *f (char * (*g) (char **, int), char **p, ...)
4239 char *s;
4240 va_list v;
4241 va_start (v,p);
4242 s = g (p, va_arg (v,int));
4243 va_end (v);
4244 return s;
4247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4248 function prototypes and stuff, but not '\xHH' hex character constants.
4249 These don't provoke an error unfortunately, instead are silently treated
4250 as 'x'. The following induces an error, until -std is added to get
4251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4252 array size at least. It's necessary to write '\x00'==0 to get something
4253 that's true only with -std. */
4254 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4257 inside strings and character constants. */
4258 #define FOO(x) 'x'
4259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4261 int test (int i, double x);
4262 struct s1 {int (*f) (int a);};
4263 struct s2 {int (*f) (double a);};
4264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4265 int argc;
4266 char **argv;
4268 main ()
4270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4272 return 0;
4274 _ACEOF
4275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4278 CC="$ac_save_CC $ac_arg"
4279 if ac_fn_c_try_compile "$LINENO"; then :
4280 ac_cv_prog_cc_c89=$ac_arg
4282 rm -f core conftest.err conftest.$ac_objext
4283 test "x$ac_cv_prog_cc_c89" != "xno" && break
4284 done
4285 rm -f conftest.$ac_ext
4286 CC=$ac_save_CC
4289 # AC_CACHE_VAL
4290 case "x$ac_cv_prog_cc_c89" in
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4293 $as_echo "none needed" >&6; } ;;
4294 xno)
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4296 $as_echo "unsupported" >&6; } ;;
4298 CC="$CC $ac_cv_prog_cc_c89"
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4300 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4301 esac
4302 if test "x$ac_cv_prog_cc_c89" != xno; then :
4306 ac_ext=c
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4318 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4319 if ${am_cv_prog_cc_c_o+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4326 main ()
4330 return 0;
4332 _ACEOF
4333 # Make sure it works both with $CC and with simple cc.
4334 # Following AC_PROG_CC_C_O, we do the test twice because some
4335 # compilers refuse to overwrite an existing .o file with -o,
4336 # though they will create one.
4337 am_cv_prog_cc_c_o=yes
4338 for am_i in 1 2; do
4339 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4340 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } \
4344 && test -f conftest2.$ac_objext; then
4345 : OK
4346 else
4347 am_cv_prog_cc_c_o=no
4348 break
4350 done
4351 rm -f core conftest*
4352 unset am_i
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4355 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4356 if test "$am_cv_prog_cc_c_o" != yes; then
4357 # Losing compiler, so override with the script.
4358 # FIXME: It is wrong to rewrite CC.
4359 # But if we don't then we get into trouble of one sort or another.
4360 # A longer-term fix would be to have automake use am__CC in this case,
4361 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4362 CC="$am_aux_dir/compile $CC"
4364 ac_ext=c
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370 DEPDIR="${am__leading_dot}deps"
4372 ac_config_commands="$ac_config_commands depfiles"
4375 am_make=${MAKE-make}
4376 cat > confinc << 'END'
4377 am__doit:
4378 @echo this is the am__doit target
4379 .PHONY: am__doit
4381 # If we don't find an include directive, just comment out the code.
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4383 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4384 am__include="#"
4385 am__quote=
4386 _am_result=none
4387 # First try GNU make style include.
4388 echo "include confinc" > confmf
4389 # Ignore all kinds of additional output from 'make'.
4390 case `$am_make -s -f confmf 2> /dev/null` in #(
4391 *the\ am__doit\ target*)
4392 am__include=include
4393 am__quote=
4394 _am_result=GNU
4396 esac
4397 # Now try BSD make style include.
4398 if test "$am__include" = "#"; then
4399 echo '.include "confinc"' > confmf
4400 case `$am_make -s -f confmf 2> /dev/null` in #(
4401 *the\ am__doit\ target*)
4402 am__include=.include
4403 am__quote="\""
4404 _am_result=BSD
4406 esac
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4411 $as_echo "$_am_result" >&6; }
4412 rm -f confinc confmf
4414 # Check whether --enable-dependency-tracking was given.
4415 if test "${enable_dependency_tracking+set}" = set; then :
4416 enableval=$enable_dependency_tracking;
4419 if test "x$enable_dependency_tracking" != xno; then
4420 am_depcomp="$ac_aux_dir/depcomp"
4421 AMDEPBACKSLASH='\'
4422 am__nodep='_no'
4424 if test "x$enable_dependency_tracking" != xno; then
4425 AMDEP_TRUE=
4426 AMDEP_FALSE='#'
4427 else
4428 AMDEP_TRUE='#'
4429 AMDEP_FALSE=
4434 depcc="$CC" am_compiler_list=
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4437 $as_echo_n "checking dependency style of $depcc... " >&6; }
4438 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4442 # We make a subdir and do the tests there. Otherwise we can end up
4443 # making bogus files that we don't know about and never remove. For
4444 # instance it was reported that on HP-UX the gcc test will end up
4445 # making a dummy file named 'D' -- because '-MD' means "put the output
4446 # in D".
4447 rm -rf conftest.dir
4448 mkdir conftest.dir
4449 # Copy depcomp to subdir because otherwise we won't find it if we're
4450 # using a relative directory.
4451 cp "$am_depcomp" conftest.dir
4452 cd conftest.dir
4453 # We will build objects and dependencies in a subdirectory because
4454 # it helps to detect inapplicable dependency modes. For instance
4455 # both Tru64's cc and ICC support -MD to output dependencies as a
4456 # side effect of compilation, but ICC will put the dependencies in
4457 # the current directory while Tru64 will put them in the object
4458 # directory.
4459 mkdir sub
4461 am_cv_CC_dependencies_compiler_type=none
4462 if test "$am_compiler_list" = ""; then
4463 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4465 am__universal=false
4466 case " $depcc " in #(
4467 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4468 esac
4470 for depmode in $am_compiler_list; do
4471 # Setup a source with many dependencies, because some compilers
4472 # like to wrap large dependency lists on column 80 (with \), and
4473 # we should not choose a depcomp mode which is confused by this.
4475 # We need to recreate these files for each test, as the compiler may
4476 # overwrite some of them when testing with obscure command lines.
4477 # This happens at least with the AIX C compiler.
4478 : > sub/conftest.c
4479 for i in 1 2 3 4 5 6; do
4480 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4481 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4482 # Solaris 10 /bin/sh.
4483 echo '/* dummy */' > sub/conftst$i.h
4484 done
4485 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4487 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4488 # mode. It turns out that the SunPro C++ compiler does not properly
4489 # handle '-M -o', and we need to detect this. Also, some Intel
4490 # versions had trouble with output in subdirs.
4491 am__obj=sub/conftest.${OBJEXT-o}
4492 am__minus_obj="-o $am__obj"
4493 case $depmode in
4494 gcc)
4495 # This depmode causes a compiler race in universal mode.
4496 test "$am__universal" = false || continue
4498 nosideeffect)
4499 # After this tag, mechanisms are not by side-effect, so they'll
4500 # only be used when explicitly requested.
4501 if test "x$enable_dependency_tracking" = xyes; then
4502 continue
4503 else
4504 break
4507 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4508 # This compiler won't grok '-c -o', but also, the minuso test has
4509 # not run yet. These depmodes are late enough in the game, and
4510 # so weak that their functioning should not be impacted.
4511 am__obj=conftest.${OBJEXT-o}
4512 am__minus_obj=
4514 none) break ;;
4515 esac
4516 if depmode=$depmode \
4517 source=sub/conftest.c object=$am__obj \
4518 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4519 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4520 >/dev/null 2>conftest.err &&
4521 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4522 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4523 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4524 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4525 # icc doesn't choke on unknown options, it will just issue warnings
4526 # or remarks (even with -Werror). So we grep stderr for any message
4527 # that says an option was ignored or not supported.
4528 # When given -MP, icc 7.0 and 7.1 complain thusly:
4529 # icc: Command line warning: ignoring option '-M'; no argument required
4530 # The diagnosis changed in icc 8.0:
4531 # icc: Command line remark: option '-MP' not supported
4532 if (grep 'ignoring option' conftest.err ||
4533 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4534 am_cv_CC_dependencies_compiler_type=$depmode
4535 break
4538 done
4540 cd ..
4541 rm -rf conftest.dir
4542 else
4543 am_cv_CC_dependencies_compiler_type=none
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4548 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4549 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4552 test "x$enable_dependency_tracking" != xno \
4553 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4554 am__fastdepCC_TRUE=
4555 am__fastdepCC_FALSE='#'
4556 else
4557 am__fastdepCC_TRUE='#'
4558 am__fastdepCC_FALSE=
4562 case $ac_cv_prog_cc_stdc in #(
4563 no) :
4564 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4565 *) :
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4567 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4568 if ${ac_cv_prog_cc_c99+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 ac_cv_prog_cc_c99=no
4572 ac_save_CC=$CC
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <stdarg.h>
4576 #include <stdbool.h>
4577 #include <stdlib.h>
4578 #include <wchar.h>
4579 #include <stdio.h>
4581 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4582 #define debug(...) fprintf (stderr, __VA_ARGS__)
4583 #define showlist(...) puts (#__VA_ARGS__)
4584 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4585 static void
4586 test_varargs_macros (void)
4588 int x = 1234;
4589 int y = 5678;
4590 debug ("Flag");
4591 debug ("X = %d\n", x);
4592 showlist (The first, second, and third items.);
4593 report (x>y, "x is %d but y is %d", x, y);
4596 // Check long long types.
4597 #define BIG64 18446744073709551615ull
4598 #define BIG32 4294967295ul
4599 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4600 #if !BIG_OK
4601 your preprocessor is broken;
4602 #endif
4603 #if BIG_OK
4604 #else
4605 your preprocessor is broken;
4606 #endif
4607 static long long int bignum = -9223372036854775807LL;
4608 static unsigned long long int ubignum = BIG64;
4610 struct incomplete_array
4612 int datasize;
4613 double data[];
4616 struct named_init {
4617 int number;
4618 const wchar_t *name;
4619 double average;
4622 typedef const char *ccp;
4624 static inline int
4625 test_restrict (ccp restrict text)
4627 // See if C++-style comments work.
4628 // Iterate through items via the restricted pointer.
4629 // Also check for declarations in for loops.
4630 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4631 continue;
4632 return 0;
4635 // Check varargs and va_copy.
4636 static void
4637 test_varargs (const char *format, ...)
4639 va_list args;
4640 va_start (args, format);
4641 va_list args_copy;
4642 va_copy (args_copy, args);
4644 const char *str;
4645 int number;
4646 float fnumber;
4648 while (*format)
4650 switch (*format++)
4652 case 's': // string
4653 str = va_arg (args_copy, const char *);
4654 break;
4655 case 'd': // int
4656 number = va_arg (args_copy, int);
4657 break;
4658 case 'f': // float
4659 fnumber = va_arg (args_copy, double);
4660 break;
4661 default:
4662 break;
4665 va_end (args_copy);
4666 va_end (args);
4670 main ()
4673 // Check bool.
4674 _Bool success = false;
4676 // Check restrict.
4677 if (test_restrict ("String literal") == 0)
4678 success = true;
4679 char *restrict newvar = "Another string";
4681 // Check varargs.
4682 test_varargs ("s, d' f .", "string", 65, 34.234);
4683 test_varargs_macros ();
4685 // Check flexible array members.
4686 struct incomplete_array *ia =
4687 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4688 ia->datasize = 10;
4689 for (int i = 0; i < ia->datasize; ++i)
4690 ia->data[i] = i * 1.234;
4692 // Check named initializers.
4693 struct named_init ni = {
4694 .number = 34,
4695 .name = L"Test wide string",
4696 .average = 543.34343,
4699 ni.number = 58;
4701 int dynamic_array[ni.number];
4702 dynamic_array[ni.number - 1] = 543;
4704 // work around unused variable warnings
4705 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4706 || dynamic_array[ni.number - 1] != 543);
4709 return 0;
4711 _ACEOF
4712 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4714 CC="$ac_save_CC $ac_arg"
4715 if ac_fn_c_try_compile "$LINENO"; then :
4716 ac_cv_prog_cc_c99=$ac_arg
4718 rm -f core conftest.err conftest.$ac_objext
4719 test "x$ac_cv_prog_cc_c99" != "xno" && break
4720 done
4721 rm -f conftest.$ac_ext
4722 CC=$ac_save_CC
4725 # AC_CACHE_VAL
4726 case "x$ac_cv_prog_cc_c99" in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4729 $as_echo "none needed" >&6; } ;;
4730 xno)
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4732 $as_echo "unsupported" >&6; } ;;
4734 CC="$CC $ac_cv_prog_cc_c99"
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4736 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4737 esac
4738 if test "x$ac_cv_prog_cc_c99" != xno; then :
4739 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4740 else
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4742 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4743 if ${ac_cv_prog_cc_c89+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 ac_cv_prog_cc_c89=no
4747 ac_save_CC=$CC
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750 #include <stdarg.h>
4751 #include <stdio.h>
4752 struct stat;
4753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4754 struct buf { int x; };
4755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4756 static char *e (p, i)
4757 char **p;
4758 int i;
4760 return p[i];
4762 static char *f (char * (*g) (char **, int), char **p, ...)
4764 char *s;
4765 va_list v;
4766 va_start (v,p);
4767 s = g (p, va_arg (v,int));
4768 va_end (v);
4769 return s;
4772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4773 function prototypes and stuff, but not '\xHH' hex character constants.
4774 These don't provoke an error unfortunately, instead are silently treated
4775 as 'x'. The following induces an error, until -std is added to get
4776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4777 array size at least. It's necessary to write '\x00'==0 to get something
4778 that's true only with -std. */
4779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4781 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4782 inside strings and character constants. */
4783 #define FOO(x) 'x'
4784 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4786 int test (int i, double x);
4787 struct s1 {int (*f) (int a);};
4788 struct s2 {int (*f) (double a);};
4789 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4790 int argc;
4791 char **argv;
4793 main ()
4795 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4797 return 0;
4799 _ACEOF
4800 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4801 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4803 CC="$ac_save_CC $ac_arg"
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805 ac_cv_prog_cc_c89=$ac_arg
4807 rm -f core conftest.err conftest.$ac_objext
4808 test "x$ac_cv_prog_cc_c89" != "xno" && break
4809 done
4810 rm -f conftest.$ac_ext
4811 CC=$ac_save_CC
4814 # AC_CACHE_VAL
4815 case "x$ac_cv_prog_cc_c89" in
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4818 $as_echo "none needed" >&6; } ;;
4819 xno)
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4821 $as_echo "unsupported" >&6; } ;;
4823 CC="$CC $ac_cv_prog_cc_c89"
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4825 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4826 esac
4827 if test "x$ac_cv_prog_cc_c89" != xno; then :
4828 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4829 else
4830 ac_cv_prog_cc_stdc=no
4835 esac
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4837 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4838 if ${ac_cv_prog_cc_stdc+:} false; then :
4839 $as_echo_n "(cached) " >&6
4842 case $ac_cv_prog_cc_stdc in #(
4843 no) :
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4845 $as_echo "unsupported" >&6; } ;; #(
4846 '') :
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4848 $as_echo "none needed" >&6; } ;; #(
4849 *) :
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4851 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4852 esac
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4856 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4857 set x ${MAKE-make}
4858 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4859 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 cat >conftest.make <<\_ACEOF
4863 SHELL = /bin/sh
4864 all:
4865 @echo '@@@%%%=$(MAKE)=@@@%%%'
4866 _ACEOF
4867 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4868 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4869 *@@@%%%=?*=@@@%%%*)
4870 eval ac_cv_prog_make_${ac_make}_set=yes;;
4872 eval ac_cv_prog_make_${ac_make}_set=no;;
4873 esac
4874 rm -f conftest.make
4876 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4878 $as_echo "yes" >&6; }
4879 SET_MAKE=
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 SET_MAKE="MAKE=${MAKE-make}"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4887 $as_echo_n "checking whether ln -s works... " >&6; }
4888 LN_S=$as_ln_s
4889 if test "$LN_S" = "ln -s"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4891 $as_echo "yes" >&6; }
4892 else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4894 $as_echo "no, using $LN_S" >&6; }
4897 for ac_prog in gawk mawk nawk awk
4899 # Extract the first word of "$ac_prog", so it can be a program name with args.
4900 set dummy $ac_prog; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_prog_AWK+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$AWK"; then
4907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_AWK="$ac_prog"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 AWK=$ac_cv_prog_AWK
4927 if test -n "$AWK"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4929 $as_echo "$AWK" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4936 test -n "$AWK" && break
4937 done
4939 if test -n "$ac_tool_prefix"; then
4940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4941 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if ${ac_cv_prog_RANLIB+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -n "$RANLIB"; then
4948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4961 done
4962 done
4963 IFS=$as_save_IFS
4967 RANLIB=$ac_cv_prog_RANLIB
4968 if test -n "$RANLIB"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4970 $as_echo "$RANLIB" >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4978 if test -z "$ac_cv_prog_RANLIB"; then
4979 ac_ct_RANLIB=$RANLIB
4980 # Extract the first word of "ranlib", so it can be a program name with args.
4981 set dummy ranlib; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -n "$ac_ct_RANLIB"; then
4988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_ac_ct_RANLIB="ranlib"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5003 IFS=$as_save_IFS
5007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5008 if test -n "$ac_ct_RANLIB"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5010 $as_echo "$ac_ct_RANLIB" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5016 if test "x$ac_ct_RANLIB" = x; then
5017 RANLIB=":"
5018 else
5019 case $cross_compiling:$ac_tool_warned in
5020 yes:)
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5023 ac_tool_warned=yes ;;
5024 esac
5025 RANLIB=$ac_ct_RANLIB
5027 else
5028 RANLIB="$ac_cv_prog_RANLIB"
5031 case `pwd` in
5032 *\ * | *\ *)
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5034 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5035 esac
5039 macro_version='2.4.6'
5040 macro_revision='2.4.6'
5054 ltmain=$ac_aux_dir/ltmain.sh
5056 # Backslashify metacharacters that are still active within
5057 # double-quoted strings.
5058 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5060 # Same as above, but do not quote variable references.
5061 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5063 # Sed substitution to delay expansion of an escaped shell variable in a
5064 # double_quote_subst'ed string.
5065 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5067 # Sed substitution to delay expansion of an escaped single quote.
5068 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5070 # Sed substitution to avoid accidental globbing in evaled expressions
5071 no_glob_subst='s/\*/\\\*/g'
5073 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5075 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5078 $as_echo_n "checking how to print strings... " >&6; }
5079 # Test print first, because it will be a builtin if present.
5080 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5081 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5082 ECHO='print -r --'
5083 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5084 ECHO='printf %s\n'
5085 else
5086 # Use this function as a fallback that always works.
5087 func_fallback_echo ()
5089 eval 'cat <<_LTECHO_EOF
5091 _LTECHO_EOF'
5093 ECHO='func_fallback_echo'
5096 # func_echo_all arg...
5097 # Invoke $ECHO with all args, space-separated.
5098 func_echo_all ()
5100 $ECHO ""
5103 case $ECHO in
5104 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5105 $as_echo "printf" >&6; } ;;
5106 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5107 $as_echo "print -r" >&6; } ;;
5108 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5109 $as_echo "cat" >&6; } ;;
5110 esac
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5126 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5127 if ${ac_cv_path_SED+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5131 for ac_i in 1 2 3 4 5 6 7; do
5132 ac_script="$ac_script$as_nl$ac_script"
5133 done
5134 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5135 { ac_script=; unset ac_script;}
5136 if test -z "$SED"; then
5137 ac_path_SED_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in sed gsed; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5147 as_fn_executable_p "$ac_path_SED" || continue
5148 # Check for GNU ac_path_SED and select it if it is found.
5149 # Check for GNU $ac_path_SED
5150 case `"$ac_path_SED" --version 2>&1` in
5151 *GNU*)
5152 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5154 ac_count=0
5155 $as_echo_n 0123456789 >"conftest.in"
5156 while :
5158 cat "conftest.in" "conftest.in" >"conftest.tmp"
5159 mv "conftest.tmp" "conftest.in"
5160 cp "conftest.in" "conftest.nl"
5161 $as_echo '' >> "conftest.nl"
5162 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5164 as_fn_arith $ac_count + 1 && ac_count=$as_val
5165 if test $ac_count -gt ${ac_path_SED_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_SED="$ac_path_SED"
5168 ac_path_SED_max=$ac_count
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5172 done
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5174 esac
5176 $ac_path_SED_found && break 3
5177 done
5178 done
5179 done
5180 IFS=$as_save_IFS
5181 if test -z "$ac_cv_path_SED"; then
5182 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5184 else
5185 ac_cv_path_SED=$SED
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5190 $as_echo "$ac_cv_path_SED" >&6; }
5191 SED="$ac_cv_path_SED"
5192 rm -f conftest.sed
5194 test -z "$SED" && SED=sed
5195 Xsed="$SED -e 1s/^X//"
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5208 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5209 if ${ac_cv_path_GREP+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -z "$GREP"; then
5213 ac_path_GREP_found=false
5214 # Loop through the user's path and test for each of PROGNAME-LIST
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_prog in grep ggrep; do
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5223 as_fn_executable_p "$ac_path_GREP" || continue
5224 # Check for GNU ac_path_GREP and select it if it is found.
5225 # Check for GNU $ac_path_GREP
5226 case `"$ac_path_GREP" --version 2>&1` in
5227 *GNU*)
5228 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5230 ac_count=0
5231 $as_echo_n 0123456789 >"conftest.in"
5232 while :
5234 cat "conftest.in" "conftest.in" >"conftest.tmp"
5235 mv "conftest.tmp" "conftest.in"
5236 cp "conftest.in" "conftest.nl"
5237 $as_echo 'GREP' >> "conftest.nl"
5238 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5240 as_fn_arith $ac_count + 1 && ac_count=$as_val
5241 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5242 # Best one so far, save it but keep looking for a better one
5243 ac_cv_path_GREP="$ac_path_GREP"
5244 ac_path_GREP_max=$ac_count
5246 # 10*(2^10) chars as input seems more than enough
5247 test $ac_count -gt 10 && break
5248 done
5249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5250 esac
5252 $ac_path_GREP_found && break 3
5253 done
5254 done
5255 done
5256 IFS=$as_save_IFS
5257 if test -z "$ac_cv_path_GREP"; then
5258 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5260 else
5261 ac_cv_path_GREP=$GREP
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5266 $as_echo "$ac_cv_path_GREP" >&6; }
5267 GREP="$ac_cv_path_GREP"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5271 $as_echo_n "checking for egrep... " >&6; }
5272 if ${ac_cv_path_EGREP+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5276 then ac_cv_path_EGREP="$GREP -E"
5277 else
5278 if test -z "$EGREP"; then
5279 ac_path_EGREP_found=false
5280 # Loop through the user's path and test for each of PROGNAME-LIST
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_prog in egrep; do
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5289 as_fn_executable_p "$ac_path_EGREP" || continue
5290 # Check for GNU ac_path_EGREP and select it if it is found.
5291 # Check for GNU $ac_path_EGREP
5292 case `"$ac_path_EGREP" --version 2>&1` in
5293 *GNU*)
5294 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5296 ac_count=0
5297 $as_echo_n 0123456789 >"conftest.in"
5298 while :
5300 cat "conftest.in" "conftest.in" >"conftest.tmp"
5301 mv "conftest.tmp" "conftest.in"
5302 cp "conftest.in" "conftest.nl"
5303 $as_echo 'EGREP' >> "conftest.nl"
5304 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5306 as_fn_arith $ac_count + 1 && ac_count=$as_val
5307 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5308 # Best one so far, save it but keep looking for a better one
5309 ac_cv_path_EGREP="$ac_path_EGREP"
5310 ac_path_EGREP_max=$ac_count
5312 # 10*(2^10) chars as input seems more than enough
5313 test $ac_count -gt 10 && break
5314 done
5315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5316 esac
5318 $ac_path_EGREP_found && break 3
5319 done
5320 done
5321 done
5322 IFS=$as_save_IFS
5323 if test -z "$ac_cv_path_EGREP"; then
5324 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326 else
5327 ac_cv_path_EGREP=$EGREP
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5333 $as_echo "$ac_cv_path_EGREP" >&6; }
5334 EGREP="$ac_cv_path_EGREP"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5338 $as_echo_n "checking for fgrep... " >&6; }
5339 if ${ac_cv_path_FGREP+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5343 then ac_cv_path_FGREP="$GREP -F"
5344 else
5345 if test -z "$FGREP"; then
5346 ac_path_FGREP_found=false
5347 # Loop through the user's path and test for each of PROGNAME-LIST
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_prog in fgrep; do
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5356 as_fn_executable_p "$ac_path_FGREP" || continue
5357 # Check for GNU ac_path_FGREP and select it if it is found.
5358 # Check for GNU $ac_path_FGREP
5359 case `"$ac_path_FGREP" --version 2>&1` in
5360 *GNU*)
5361 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5363 ac_count=0
5364 $as_echo_n 0123456789 >"conftest.in"
5365 while :
5367 cat "conftest.in" "conftest.in" >"conftest.tmp"
5368 mv "conftest.tmp" "conftest.in"
5369 cp "conftest.in" "conftest.nl"
5370 $as_echo 'FGREP' >> "conftest.nl"
5371 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5373 as_fn_arith $ac_count + 1 && ac_count=$as_val
5374 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5375 # Best one so far, save it but keep looking for a better one
5376 ac_cv_path_FGREP="$ac_path_FGREP"
5377 ac_path_FGREP_max=$ac_count
5379 # 10*(2^10) chars as input seems more than enough
5380 test $ac_count -gt 10 && break
5381 done
5382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5383 esac
5385 $ac_path_FGREP_found && break 3
5386 done
5387 done
5388 done
5389 IFS=$as_save_IFS
5390 if test -z "$ac_cv_path_FGREP"; then
5391 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5393 else
5394 ac_cv_path_FGREP=$FGREP
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5400 $as_echo "$ac_cv_path_FGREP" >&6; }
5401 FGREP="$ac_cv_path_FGREP"
5404 test -z "$GREP" && GREP=grep
5424 # Check whether --with-gnu-ld was given.
5425 if test "${with_gnu_ld+set}" = set; then :
5426 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5427 else
5428 with_gnu_ld=no
5431 ac_prog=ld
5432 if test yes = "$GCC"; then
5433 # Check if gcc -print-prog-name=ld gives a path.
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5435 $as_echo_n "checking for ld used by $CC... " >&6; }
5436 case $host in
5437 *-*-mingw*)
5438 # gcc leaves a trailing carriage return, which upsets mingw
5439 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5441 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5442 esac
5443 case $ac_prog in
5444 # Accept absolute paths.
5445 [\\/]* | ?:[\\/]*)
5446 re_direlt='/[^/][^/]*/\.\./'
5447 # Canonicalize the pathname of ld
5448 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5449 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5450 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5451 done
5452 test -z "$LD" && LD=$ac_prog
5455 # If it fails, then pretend we aren't using GCC.
5456 ac_prog=ld
5459 # If it is relative, then search for the first ld in PATH.
5460 with_gnu_ld=unknown
5462 esac
5463 elif test yes = "$with_gnu_ld"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5465 $as_echo_n "checking for GNU ld... " >&6; }
5466 else
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5468 $as_echo_n "checking for non-GNU ld... " >&6; }
5470 if ${lt_cv_path_LD+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -z "$LD"; then
5474 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5475 for ac_dir in $PATH; do
5476 IFS=$lt_save_ifs
5477 test -z "$ac_dir" && ac_dir=.
5478 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5479 lt_cv_path_LD=$ac_dir/$ac_prog
5480 # Check to see if the program is GNU ld. I'd rather use --version,
5481 # but apparently some variants of GNU ld only accept -v.
5482 # Break only if it was the GNU/non-GNU ld that we prefer.
5483 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5484 *GNU* | *'with BFD'*)
5485 test no != "$with_gnu_ld" && break
5488 test yes != "$with_gnu_ld" && break
5490 esac
5492 done
5493 IFS=$lt_save_ifs
5494 else
5495 lt_cv_path_LD=$LD # Let the user override the test with a path.
5499 LD=$lt_cv_path_LD
5500 if test -n "$LD"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5502 $as_echo "$LD" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5507 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5509 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5510 if ${lt_cv_prog_gnu_ld+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5514 case `$LD -v 2>&1 </dev/null` in
5515 *GNU* | *'with BFD'*)
5516 lt_cv_prog_gnu_ld=yes
5519 lt_cv_prog_gnu_ld=no
5521 esac
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5524 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5525 with_gnu_ld=$lt_cv_prog_gnu_ld
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5536 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5537 if ${lt_cv_path_NM+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$NM"; then
5541 # Let the user override the test.
5542 lt_cv_path_NM=$NM
5543 else
5544 lt_nm_to_check=${ac_tool_prefix}nm
5545 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5546 lt_nm_to_check="$lt_nm_to_check nm"
5548 for lt_tmp_nm in $lt_nm_to_check; do
5549 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5550 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5551 IFS=$lt_save_ifs
5552 test -z "$ac_dir" && ac_dir=.
5553 tmp_nm=$ac_dir/$lt_tmp_nm
5554 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5555 # Check to see if the nm accepts a BSD-compat flag.
5556 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5557 # nm: unknown option "B" ignored
5558 # Tru64's nm complains that /dev/null is an invalid object file
5559 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5560 case $build_os in
5561 mingw*) lt_bad_file=conftest.nm/nofile ;;
5562 *) lt_bad_file=/dev/null ;;
5563 esac
5564 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5565 *$lt_bad_file* | *'Invalid file or object type'*)
5566 lt_cv_path_NM="$tmp_nm -B"
5567 break 2
5570 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5571 */dev/null*)
5572 lt_cv_path_NM="$tmp_nm -p"
5573 break 2
5576 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5577 continue # so that we can try to find one that supports BSD flags
5579 esac
5581 esac
5583 done
5584 IFS=$lt_save_ifs
5585 done
5586 : ${lt_cv_path_NM=no}
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5590 $as_echo "$lt_cv_path_NM" >&6; }
5591 if test no != "$lt_cv_path_NM"; then
5592 NM=$lt_cv_path_NM
5593 else
5594 # Didn't find any BSD compatible name lister, look for dumpbin.
5595 if test -n "$DUMPBIN"; then :
5596 # Let the user override the test.
5597 else
5598 if test -n "$ac_tool_prefix"; then
5599 for ac_prog in dumpbin "link -dump"
5601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_DUMPBIN+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$DUMPBIN"; then
5609 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5624 IFS=$as_save_IFS
5628 DUMPBIN=$ac_cv_prog_DUMPBIN
5629 if test -n "$DUMPBIN"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5631 $as_echo "$DUMPBIN" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5638 test -n "$DUMPBIN" && break
5639 done
5641 if test -z "$DUMPBIN"; then
5642 ac_ct_DUMPBIN=$DUMPBIN
5643 for ac_prog in dumpbin "link -dump"
5645 # Extract the first word of "$ac_prog", so it can be a program name with args.
5646 set dummy $ac_prog; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 if test -n "$ac_ct_DUMPBIN"; then
5653 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5666 done
5667 done
5668 IFS=$as_save_IFS
5672 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5673 if test -n "$ac_ct_DUMPBIN"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5675 $as_echo "$ac_ct_DUMPBIN" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5682 test -n "$ac_ct_DUMPBIN" && break
5683 done
5685 if test "x$ac_ct_DUMPBIN" = x; then
5686 DUMPBIN=":"
5687 else
5688 case $cross_compiling:$ac_tool_warned in
5689 yes:)
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692 ac_tool_warned=yes ;;
5693 esac
5694 DUMPBIN=$ac_ct_DUMPBIN
5698 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5699 *COFF*)
5700 DUMPBIN="$DUMPBIN -symbols -headers"
5703 DUMPBIN=:
5705 esac
5708 if test : != "$DUMPBIN"; then
5709 NM=$DUMPBIN
5712 test -z "$NM" && NM=nm
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5720 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5721 if ${lt_cv_nm_interface+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 lt_cv_nm_interface="BSD nm"
5725 echo "int some_variable = 0;" > conftest.$ac_ext
5726 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5727 (eval "$ac_compile" 2>conftest.err)
5728 cat conftest.err >&5
5729 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5730 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5731 cat conftest.err >&5
5732 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5733 cat conftest.out >&5
5734 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5735 lt_cv_nm_interface="MS dumpbin"
5737 rm -f conftest*
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5740 $as_echo "$lt_cv_nm_interface" >&6; }
5742 # find the maximum length of command line arguments
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5744 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5745 if ${lt_cv_sys_max_cmd_len+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5749 teststring=ABCD
5751 case $build_os in
5752 msdosdjgpp*)
5753 # On DJGPP, this test can blow up pretty badly due to problems in libc
5754 # (any single argument exceeding 2000 bytes causes a buffer overrun
5755 # during glob expansion). Even if it were fixed, the result of this
5756 # check would be larger than it should be.
5757 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5760 gnu*)
5761 # Under GNU Hurd, this test is not required because there is
5762 # no limit to the length of command line arguments.
5763 # Libtool will interpret -1 as no limit whatsoever
5764 lt_cv_sys_max_cmd_len=-1;
5767 cygwin* | mingw* | cegcc*)
5768 # On Win9x/ME, this test blows up -- it succeeds, but takes
5769 # about 5 minutes as the teststring grows exponentially.
5770 # Worse, since 9x/ME are not pre-emptively multitasking,
5771 # you end up with a "frozen" computer, even though with patience
5772 # the test eventually succeeds (with a max line length of 256k).
5773 # Instead, let's just punt: use the minimum linelength reported by
5774 # all of the supported platforms: 8192 (on NT/2K/XP).
5775 lt_cv_sys_max_cmd_len=8192;
5778 mint*)
5779 # On MiNT this can take a long time and run out of memory.
5780 lt_cv_sys_max_cmd_len=8192;
5783 amigaos*)
5784 # On AmigaOS with pdksh, this test takes hours, literally.
5785 # So we just punt and use a minimum line length of 8192.
5786 lt_cv_sys_max_cmd_len=8192;
5789 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5790 # This has been around since 386BSD, at least. Likely further.
5791 if test -x /sbin/sysctl; then
5792 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5793 elif test -x /usr/sbin/sysctl; then
5794 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5795 else
5796 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5798 # And add a safety zone
5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5803 interix*)
5804 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5805 lt_cv_sys_max_cmd_len=196608
5808 os2*)
5809 # The test takes a long time on OS/2.
5810 lt_cv_sys_max_cmd_len=8192
5813 osf*)
5814 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5815 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5816 # nice to cause kernel panics so lets avoid the loop below.
5817 # First set a reasonable default.
5818 lt_cv_sys_max_cmd_len=16384
5820 if test -x /sbin/sysconfig; then
5821 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5822 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5823 esac
5826 sco3.2v5*)
5827 lt_cv_sys_max_cmd_len=102400
5829 sysv5* | sco5v6* | sysv4.2uw2*)
5830 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5831 if test -n "$kargmax"; then
5832 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5833 else
5834 lt_cv_sys_max_cmd_len=32768
5838 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5839 if test -n "$lt_cv_sys_max_cmd_len" && \
5840 test undefined != "$lt_cv_sys_max_cmd_len"; then
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5843 else
5844 # Make teststring a little bigger before we do anything with it.
5845 # a 1K string should be a reasonable start.
5846 for i in 1 2 3 4 5 6 7 8; do
5847 teststring=$teststring$teststring
5848 done
5849 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5850 # If test is not a shell built-in, we'll probably end up computing a
5851 # maximum length that is only half of the actual maximum length, but
5852 # we can't tell.
5853 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5854 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5855 test 17 != "$i" # 1/2 MB should be enough
5857 i=`expr $i + 1`
5858 teststring=$teststring$teststring
5859 done
5860 # Only check the string length outside the loop.
5861 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5862 teststring=
5863 # Add a significant safety factor because C++ compilers can tack on
5864 # massive amounts of additional arguments before passing them to the
5865 # linker. It appears as though 1/2 is a usable value.
5866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5869 esac
5873 if test -n "$lt_cv_sys_max_cmd_len"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5875 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5878 $as_echo "none" >&6; }
5880 max_cmd_len=$lt_cv_sys_max_cmd_len
5887 : ${CP="cp -f"}
5888 : ${MV="mv -f"}
5889 : ${RM="rm -f"}
5891 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5892 lt_unset=unset
5893 else
5894 lt_unset=false
5901 # test EBCDIC or ASCII
5902 case `echo X|tr X '\101'` in
5903 A) # ASCII based system
5904 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5905 lt_SP2NL='tr \040 \012'
5906 lt_NL2SP='tr \015\012 \040\040'
5908 *) # EBCDIC based system
5909 lt_SP2NL='tr \100 \n'
5910 lt_NL2SP='tr \r\n \100\100'
5912 esac
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5923 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5924 if ${lt_cv_to_host_file_cmd+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 case $host in
5928 *-*-mingw* )
5929 case $build in
5930 *-*-mingw* ) # actually msys
5931 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5933 *-*-cygwin* )
5934 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5936 * ) # otherwise, assume *nix
5937 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5939 esac
5941 *-*-cygwin* )
5942 case $build in
5943 *-*-mingw* ) # actually msys
5944 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5946 *-*-cygwin* )
5947 lt_cv_to_host_file_cmd=func_convert_file_noop
5949 * ) # otherwise, assume *nix
5950 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5952 esac
5954 * ) # unhandled hosts (and "normal" native builds)
5955 lt_cv_to_host_file_cmd=func_convert_file_noop
5957 esac
5961 to_host_file_cmd=$lt_cv_to_host_file_cmd
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5963 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5970 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5971 if ${lt_cv_to_tool_file_cmd+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 #assume ordinary cross tools, or native build.
5975 lt_cv_to_tool_file_cmd=func_convert_file_noop
5976 case $host in
5977 *-*-mingw* )
5978 case $build in
5979 *-*-mingw* ) # actually msys
5980 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5982 esac
5984 esac
5988 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5990 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5997 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5998 if ${lt_cv_ld_reload_flag+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 lt_cv_ld_reload_flag='-r'
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6004 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6005 reload_flag=$lt_cv_ld_reload_flag
6006 case $reload_flag in
6007 "" | " "*) ;;
6008 *) reload_flag=" $reload_flag" ;;
6009 esac
6010 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6011 case $host_os in
6012 cygwin* | mingw* | pw32* | cegcc*)
6013 if test yes != "$GCC"; then
6014 reload_cmds=false
6017 darwin*)
6018 if test yes = "$GCC"; then
6019 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6020 else
6021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6024 esac
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_OBJDUMP+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$OBJDUMP"; then
6043 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6056 done
6057 done
6058 IFS=$as_save_IFS
6062 OBJDUMP=$ac_cv_prog_OBJDUMP
6063 if test -n "$OBJDUMP"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6065 $as_echo "$OBJDUMP" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6073 if test -z "$ac_cv_prog_OBJDUMP"; then
6074 ac_ct_OBJDUMP=$OBJDUMP
6075 # Extract the first word of "objdump", so it can be a program name with args.
6076 set dummy objdump; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$ac_ct_OBJDUMP"; then
6083 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6098 IFS=$as_save_IFS
6102 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6103 if test -n "$ac_ct_OBJDUMP"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6105 $as_echo "$ac_ct_OBJDUMP" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6111 if test "x$ac_ct_OBJDUMP" = x; then
6112 OBJDUMP="false"
6113 else
6114 case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120 OBJDUMP=$ac_ct_OBJDUMP
6122 else
6123 OBJDUMP="$ac_cv_prog_OBJDUMP"
6126 test -z "$OBJDUMP" && OBJDUMP=objdump
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6137 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6138 if ${lt_cv_deplibs_check_method+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 lt_cv_file_magic_cmd='$MAGIC_CMD'
6142 lt_cv_file_magic_test_file=
6143 lt_cv_deplibs_check_method='unknown'
6144 # Need to set the preceding variable on all platforms that support
6145 # interlibrary dependencies.
6146 # 'none' -- dependencies not supported.
6147 # 'unknown' -- same as none, but documents that we really don't know.
6148 # 'pass_all' -- all dependencies passed with no checks.
6149 # 'test_compile' -- check by making test program.
6150 # 'file_magic [[regex]]' -- check by looking for files in library path
6151 # that responds to the $file_magic_cmd with a given extended regex.
6152 # If you have 'file' or equivalent on your system and you're not sure
6153 # whether 'pass_all' will *always* work, you probably want this one.
6155 case $host_os in
6156 aix[4-9]*)
6157 lt_cv_deplibs_check_method=pass_all
6160 beos*)
6161 lt_cv_deplibs_check_method=pass_all
6164 bsdi[45]*)
6165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6166 lt_cv_file_magic_cmd='/usr/bin/file -L'
6167 lt_cv_file_magic_test_file=/shlib/libc.so
6170 cygwin*)
6171 # func_win32_libid is a shell function defined in ltmain.sh
6172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6173 lt_cv_file_magic_cmd='func_win32_libid'
6176 mingw* | pw32*)
6177 # Base MSYS/MinGW do not provide the 'file' command needed by
6178 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6179 # unless we find 'file', for example because we are cross-compiling.
6180 if ( file / ) >/dev/null 2>&1; then
6181 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6182 lt_cv_file_magic_cmd='func_win32_libid'
6183 else
6184 # Keep this pattern in sync with the one in func_win32_libid.
6185 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6186 lt_cv_file_magic_cmd='$OBJDUMP -f'
6190 cegcc*)
6191 # use the weaker test based on 'objdump'. See mingw*.
6192 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6193 lt_cv_file_magic_cmd='$OBJDUMP -f'
6196 darwin* | rhapsody*)
6197 lt_cv_deplibs_check_method=pass_all
6200 freebsd* | dragonfly*)
6201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202 case $host_cpu in
6203 i*86 )
6204 # Not sure whether the presence of OpenBSD here was a mistake.
6205 # Let's accept both of them until this is cleared up.
6206 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6207 lt_cv_file_magic_cmd=/usr/bin/file
6208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6210 esac
6211 else
6212 lt_cv_deplibs_check_method=pass_all
6216 haiku*)
6217 lt_cv_deplibs_check_method=pass_all
6220 hpux10.20* | hpux11*)
6221 lt_cv_file_magic_cmd=/usr/bin/file
6222 case $host_cpu in
6223 ia64*)
6224 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6225 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6227 hppa*64*)
6228 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]'
6229 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6232 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6233 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6235 esac
6238 interix[3-9]*)
6239 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6243 irix5* | irix6* | nonstopux*)
6244 case $LD in
6245 *-32|*"-32 ") libmagic=32-bit;;
6246 *-n32|*"-n32 ") libmagic=N32;;
6247 *-64|*"-64 ") libmagic=64-bit;;
6248 *) libmagic=never-match;;
6249 esac
6250 lt_cv_deplibs_check_method=pass_all
6253 # This must be glibc/ELF.
6254 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6255 lt_cv_deplibs_check_method=pass_all
6258 netbsd*)
6259 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6261 else
6262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6266 newos6*)
6267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6268 lt_cv_file_magic_cmd=/usr/bin/file
6269 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6272 *nto* | *qnx*)
6273 lt_cv_deplibs_check_method=pass_all
6276 openbsd* | bitrig*)
6277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6279 else
6280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6284 osf3* | osf4* | osf5*)
6285 lt_cv_deplibs_check_method=pass_all
6288 rdos*)
6289 lt_cv_deplibs_check_method=pass_all
6292 solaris*)
6293 lt_cv_deplibs_check_method=pass_all
6296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6297 lt_cv_deplibs_check_method=pass_all
6300 sysv4 | sysv4.3*)
6301 case $host_vendor in
6302 motorola)
6303 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]'
6304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6306 ncr)
6307 lt_cv_deplibs_check_method=pass_all
6309 sequent)
6310 lt_cv_file_magic_cmd='/bin/file'
6311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6313 sni)
6314 lt_cv_file_magic_cmd='/bin/file'
6315 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6316 lt_cv_file_magic_test_file=/lib/libc.so
6318 siemens)
6319 lt_cv_deplibs_check_method=pass_all
6322 lt_cv_deplibs_check_method=pass_all
6324 esac
6327 tpf*)
6328 lt_cv_deplibs_check_method=pass_all
6330 os2*)
6331 lt_cv_deplibs_check_method=pass_all
6333 esac
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6337 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6339 file_magic_glob=
6340 want_nocaseglob=no
6341 if test "$build" = "$host"; then
6342 case $host_os in
6343 mingw* | pw32*)
6344 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6345 want_nocaseglob=yes
6346 else
6347 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6350 esac
6353 file_magic_cmd=$lt_cv_file_magic_cmd
6354 deplibs_check_method=$lt_cv_deplibs_check_method
6355 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_DLLTOOL+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$DLLTOOL"; then
6387 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 DLLTOOL=$ac_cv_prog_DLLTOOL
6407 if test -n "$DLLTOOL"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6409 $as_echo "$DLLTOOL" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6417 if test -z "$ac_cv_prog_DLLTOOL"; then
6418 ac_ct_DLLTOOL=$DLLTOOL
6419 # Extract the first word of "dlltool", so it can be a program name with args.
6420 set dummy dlltool; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$ac_ct_DLLTOOL"; then
6427 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6440 done
6441 done
6442 IFS=$as_save_IFS
6446 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6447 if test -n "$ac_ct_DLLTOOL"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6449 $as_echo "$ac_ct_DLLTOOL" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6455 if test "x$ac_ct_DLLTOOL" = x; then
6456 DLLTOOL="false"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 DLLTOOL=$ac_ct_DLLTOOL
6466 else
6467 DLLTOOL="$ac_cv_prog_DLLTOOL"
6470 test -z "$DLLTOOL" && DLLTOOL=dlltool
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6482 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6483 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 lt_cv_sharedlib_from_linklib_cmd='unknown'
6488 case $host_os in
6489 cygwin* | mingw* | pw32* | cegcc*)
6490 # two different shell functions defined in ltmain.sh;
6491 # decide which one to use based on capabilities of $DLLTOOL
6492 case `$DLLTOOL --help 2>&1` in
6493 *--identify-strict*)
6494 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6497 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6499 esac
6502 # fallback: assume linklib IS sharedlib
6503 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6505 esac
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6509 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6510 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6511 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6520 if test -n "$ac_tool_prefix"; then
6521 for ac_prog in ar
6523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if ${ac_cv_prog_AR+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if test -n "$AR"; then
6531 ac_cv_prog_AR="$AR" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6544 done
6545 done
6546 IFS=$as_save_IFS
6550 AR=$ac_cv_prog_AR
6551 if test -n "$AR"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6553 $as_echo "$AR" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6560 test -n "$AR" && break
6561 done
6563 if test -z "$AR"; then
6564 ac_ct_AR=$AR
6565 for ac_prog in ar
6567 # Extract the first word of "$ac_prog", so it can be a program name with args.
6568 set dummy $ac_prog; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 if test -n "$ac_ct_AR"; then
6575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584 ac_cv_prog_ac_ct_AR="$ac_prog"
6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 break 2
6588 done
6589 done
6590 IFS=$as_save_IFS
6594 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6595 if test -n "$ac_ct_AR"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6597 $as_echo "$ac_ct_AR" >&6; }
6598 else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6604 test -n "$ac_ct_AR" && break
6605 done
6607 if test "x$ac_ct_AR" = x; then
6608 AR="false"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616 AR=$ac_ct_AR
6620 : ${AR=ar}
6621 : ${AR_FLAGS=cru}
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6634 $as_echo_n "checking for archiver @FILE support... " >&6; }
6635 if ${lt_cv_ar_at_file+:} false; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 lt_cv_ar_at_file=no
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6643 main ()
6647 return 0;
6649 _ACEOF
6650 if ac_fn_c_try_compile "$LINENO"; then :
6651 echo conftest.$ac_objext > conftest.lst
6652 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6654 (eval $lt_ar_try) 2>&5
6655 ac_status=$?
6656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657 test $ac_status = 0; }
6658 if test 0 -eq "$ac_status"; then
6659 # Ensure the archiver fails upon bogus file names.
6660 rm -f conftest.$ac_objext libconftest.a
6661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6662 (eval $lt_ar_try) 2>&5
6663 ac_status=$?
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }
6666 if test 0 -ne "$ac_status"; then
6667 lt_cv_ar_at_file=@
6670 rm -f conftest.* libconftest.a
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6677 $as_echo "$lt_cv_ar_at_file" >&6; }
6679 if test no = "$lt_cv_ar_at_file"; then
6680 archiver_list_spec=
6681 else
6682 archiver_list_spec=$lt_cv_ar_at_file
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}strip; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_STRIP+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$STRIP"; then
6700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6713 done
6714 done
6715 IFS=$as_save_IFS
6719 STRIP=$ac_cv_prog_STRIP
6720 if test -n "$STRIP"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6722 $as_echo "$STRIP" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6730 if test -z "$ac_cv_prog_STRIP"; then
6731 ac_ct_STRIP=$STRIP
6732 # Extract the first word of "strip", so it can be a program name with args.
6733 set dummy strip; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$ac_ct_STRIP"; then
6740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_STRIP="strip"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6760 if test -n "$ac_ct_STRIP"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6762 $as_echo "$ac_ct_STRIP" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6768 if test "x$ac_ct_STRIP" = x; then
6769 STRIP=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777 STRIP=$ac_ct_STRIP
6779 else
6780 STRIP="$ac_cv_prog_STRIP"
6783 test -z "$STRIP" && STRIP=:
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_RANLIB+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$RANLIB"; then
6799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6812 done
6813 done
6814 IFS=$as_save_IFS
6818 RANLIB=$ac_cv_prog_RANLIB
6819 if test -n "$RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821 $as_echo "$RANLIB" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6829 if test -z "$ac_cv_prog_RANLIB"; then
6830 ac_ct_RANLIB=$RANLIB
6831 # Extract the first word of "ranlib", so it can be a program name with args.
6832 set dummy ranlib; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_RANLIB"; then
6839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_RANLIB="ranlib"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6852 done
6853 done
6854 IFS=$as_save_IFS
6858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859 if test -n "$ac_ct_RANLIB"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6861 $as_echo "$ac_ct_RANLIB" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6867 if test "x$ac_ct_RANLIB" = x; then
6868 RANLIB=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 RANLIB=$ac_ct_RANLIB
6878 else
6879 RANLIB="$ac_cv_prog_RANLIB"
6882 test -z "$RANLIB" && RANLIB=:
6889 # Determine commands to create old-style static archives.
6890 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6891 old_postinstall_cmds='chmod 644 $oldlib'
6892 old_postuninstall_cmds=
6894 if test -n "$RANLIB"; then
6895 case $host_os in
6896 bitrig* | openbsd*)
6897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6902 esac
6903 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6906 case $host_os in
6907 darwin*)
6908 lock_old_archive_extraction=yes ;;
6910 lock_old_archive_extraction=no ;;
6911 esac
6951 # If no C compiler was specified, use CC.
6952 LTCC=${LTCC-"$CC"}
6954 # If no C compiler flags were specified, use CFLAGS.
6955 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6957 # Allow CC to be a program name with arguments.
6958 compiler=$CC
6961 # Check for command to grab the raw symbol name followed by C symbol from nm.
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6963 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6964 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6968 # These are sane defaults that work on at least a few old systems.
6969 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6971 # Character class describing NM global symbol codes.
6972 symcode='[BCDEGRST]'
6974 # Regexp to match symbols that can be accessed directly from C.
6975 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6977 # Define system-specific variables.
6978 case $host_os in
6979 aix*)
6980 symcode='[BCDT]'
6982 cygwin* | mingw* | pw32* | cegcc*)
6983 symcode='[ABCDGISTW]'
6985 hpux*)
6986 if test ia64 = "$host_cpu"; then
6987 symcode='[ABCDEGRST]'
6990 irix* | nonstopux*)
6991 symcode='[BCDEGRST]'
6993 osf*)
6994 symcode='[BCDEGQRST]'
6996 solaris*)
6997 symcode='[BDRT]'
6999 sco3.2v5*)
7000 symcode='[DT]'
7002 sysv4.2uw2*)
7003 symcode='[DT]'
7005 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7006 symcode='[ABDT]'
7008 sysv4)
7009 symcode='[DFNSTU]'
7011 esac
7013 # If we're using GNU nm, then use its standard symbol codes.
7014 case `$NM -V 2>&1` in
7015 *GNU* | *'with BFD'*)
7016 symcode='[ABCDGIRSTW]' ;;
7017 esac
7019 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7020 # Gets list of data symbols to import.
7021 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7022 # Adjust the below global symbol transforms to fixup imported variables.
7023 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7024 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7025 lt_c_name_lib_hook="\
7026 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7027 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7028 else
7029 # Disable hooks by default.
7030 lt_cv_sys_global_symbol_to_import=
7031 lt_cdecl_hook=
7032 lt_c_name_hook=
7033 lt_c_name_lib_hook=
7036 # Transform an extracted symbol line into a proper C declaration.
7037 # Some systems (esp. on ia64) link data and code symbols differently,
7038 # so use this general approach.
7039 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7040 $lt_cdecl_hook\
7041 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7042 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7044 # Transform an extracted symbol line into symbol name and symbol address
7045 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7046 $lt_c_name_hook\
7047 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7048 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7050 # Transform an extracted symbol line into symbol name with lib prefix and
7051 # symbol address.
7052 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7053 $lt_c_name_lib_hook\
7054 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7055 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7056 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7058 # Handle CRLF in mingw tool chain
7059 opt_cr=
7060 case $build_os in
7061 mingw*)
7062 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7064 esac
7066 # Try without a prefix underscore, then with it.
7067 for ac_symprfx in "" "_"; do
7069 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7070 symxfrm="\\1 $ac_symprfx\\2 \\2"
7072 # Write the raw and C identifiers.
7073 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7074 # Fake it for dumpbin and say T for any non-static function,
7075 # D for any global variable and I for any imported variable.
7076 # Also find C++ and __fastcall symbols from MSVC++,
7077 # which start with @ or ?.
7078 lt_cv_sys_global_symbol_pipe="$AWK '"\
7079 " {last_section=section; section=\$ 3};"\
7080 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7081 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7082 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7083 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7084 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7085 " \$ 0!~/External *\|/{next};"\
7086 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7087 " {if(hide[section]) next};"\
7088 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7089 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7090 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7091 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7092 " ' prfx=^$ac_symprfx"
7093 else
7094 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7096 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7098 # Check to see that the pipe works correctly.
7099 pipe_works=no
7101 rm -f conftest*
7102 cat > conftest.$ac_ext <<_LT_EOF
7103 #ifdef __cplusplus
7104 extern "C" {
7105 #endif
7106 char nm_test_var;
7107 void nm_test_func(void);
7108 void nm_test_func(void){}
7109 #ifdef __cplusplus
7111 #endif
7112 int main(){nm_test_var='a';nm_test_func();return(0);}
7113 _LT_EOF
7115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7116 (eval $ac_compile) 2>&5
7117 ac_status=$?
7118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7119 test $ac_status = 0; }; then
7120 # Now try to grab the symbols.
7121 nlist=conftest.nm
7122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7123 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7124 ac_status=$?
7125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7126 test $ac_status = 0; } && test -s "$nlist"; then
7127 # Try sorting and uniquifying the output.
7128 if sort "$nlist" | uniq > "$nlist"T; then
7129 mv -f "$nlist"T "$nlist"
7130 else
7131 rm -f "$nlist"T
7134 # Make sure that we snagged all the symbols we need.
7135 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7136 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7137 cat <<_LT_EOF > conftest.$ac_ext
7138 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7139 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7140 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7141 relocations are performed -- see ld's documentation on pseudo-relocs. */
7142 # define LT_DLSYM_CONST
7143 #elif defined __osf__
7144 /* This system does not cope well with relocations in const data. */
7145 # define LT_DLSYM_CONST
7146 #else
7147 # define LT_DLSYM_CONST const
7148 #endif
7150 #ifdef __cplusplus
7151 extern "C" {
7152 #endif
7154 _LT_EOF
7155 # Now generate the symbol file.
7156 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7158 cat <<_LT_EOF >> conftest.$ac_ext
7160 /* The mapping between symbol names and symbols. */
7161 LT_DLSYM_CONST struct {
7162 const char *name;
7163 void *address;
7165 lt__PROGRAM__LTX_preloaded_symbols[] =
7167 { "@PROGRAM@", (void *) 0 },
7168 _LT_EOF
7169 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7170 cat <<\_LT_EOF >> conftest.$ac_ext
7171 {0, (void *) 0}
7174 /* This works around a problem in FreeBSD linker */
7175 #ifdef FREEBSD_WORKAROUND
7176 static const void *lt_preloaded_setup() {
7177 return lt__PROGRAM__LTX_preloaded_symbols;
7179 #endif
7181 #ifdef __cplusplus
7183 #endif
7184 _LT_EOF
7185 # Now try linking the two files.
7186 mv conftest.$ac_objext conftstm.$ac_objext
7187 lt_globsym_save_LIBS=$LIBS
7188 lt_globsym_save_CFLAGS=$CFLAGS
7189 LIBS=conftstm.$ac_objext
7190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7192 (eval $ac_link) 2>&5
7193 ac_status=$?
7194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7195 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7196 pipe_works=yes
7198 LIBS=$lt_globsym_save_LIBS
7199 CFLAGS=$lt_globsym_save_CFLAGS
7200 else
7201 echo "cannot find nm_test_func in $nlist" >&5
7203 else
7204 echo "cannot find nm_test_var in $nlist" >&5
7206 else
7207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7209 else
7210 echo "$progname: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7213 rm -rf conftest* conftst*
7215 # Do not use the global_symbol_pipe unless it works.
7216 if test yes = "$pipe_works"; then
7217 break
7218 else
7219 lt_cv_sys_global_symbol_pipe=
7221 done
7225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7226 lt_cv_sys_global_symbol_to_cdecl=
7228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7230 $as_echo "failed" >&6; }
7231 else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7233 $as_echo "ok" >&6; }
7236 # Response file support.
7237 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7238 nm_file_list_spec='@'
7239 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7240 nm_file_list_spec='@'
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7280 $as_echo_n "checking for sysroot... " >&6; }
7282 # Check whether --with-sysroot was given.
7283 if test "${with_sysroot+set}" = set; then :
7284 withval=$with_sysroot;
7285 else
7286 with_sysroot=no
7290 lt_sysroot=
7291 case $with_sysroot in #(
7292 yes)
7293 if test yes = "$GCC"; then
7294 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7296 ;; #(
7298 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7299 ;; #(
7300 no|'')
7301 ;; #(
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7304 $as_echo "$with_sysroot" >&6; }
7305 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7307 esac
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7310 $as_echo "${lt_sysroot:-no}" >&6; }
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7317 $as_echo_n "checking for a working dd... " >&6; }
7318 if ${ac_cv_path_lt_DD+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 printf 0123456789abcdef0123456789abcdef >conftest.i
7322 cat conftest.i conftest.i >conftest2.i
7323 : ${lt_DD:=$DD}
7324 if test -z "$lt_DD"; then
7325 ac_path_lt_DD_found=false
7326 # Loop through the user's path and test for each of PROGNAME-LIST
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_prog in dd; do
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7335 as_fn_executable_p "$ac_path_lt_DD" || continue
7336 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7337 cmp -s conftest.i conftest.out \
7338 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7340 $ac_path_lt_DD_found && break 3
7341 done
7342 done
7343 done
7344 IFS=$as_save_IFS
7345 if test -z "$ac_cv_path_lt_DD"; then
7348 else
7349 ac_cv_path_lt_DD=$lt_DD
7352 rm -f conftest.i conftest2.i conftest.out
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7355 $as_echo "$ac_cv_path_lt_DD" >&6; }
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7359 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7360 if ${lt_cv_truncate_bin+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 printf 0123456789abcdef0123456789abcdef >conftest.i
7364 cat conftest.i conftest.i >conftest2.i
7365 lt_cv_truncate_bin=
7366 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7367 cmp -s conftest.i conftest.out \
7368 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7370 rm -f conftest.i conftest2.i conftest.out
7371 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7374 $as_echo "$lt_cv_truncate_bin" >&6; }
7382 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7383 func_cc_basename ()
7385 for cc_temp in $*""; do
7386 case $cc_temp in
7387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7389 \-*) ;;
7390 *) break;;
7391 esac
7392 done
7393 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7396 # Check whether --enable-libtool-lock was given.
7397 if test "${enable_libtool_lock+set}" = set; then :
7398 enableval=$enable_libtool_lock;
7401 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7403 # Some flags need to be propagated to the compiler or linker for good
7404 # libtool support.
7405 case $host in
7406 ia64-*-hpux*)
7407 # Find out what ABI is being produced by ac_compile, and set mode
7408 # options accordingly.
7409 echo 'int i;' > conftest.$ac_ext
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7411 (eval $ac_compile) 2>&5
7412 ac_status=$?
7413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; }; then
7415 case `/usr/bin/file conftest.$ac_objext` in
7416 *ELF-32*)
7417 HPUX_IA64_MODE=32
7419 *ELF-64*)
7420 HPUX_IA64_MODE=64
7422 esac
7424 rm -rf conftest*
7426 *-*-irix6*)
7427 # Find out what ABI is being produced by ac_compile, and set linker
7428 # options accordingly.
7429 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7431 (eval $ac_compile) 2>&5
7432 ac_status=$?
7433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7434 test $ac_status = 0; }; then
7435 if test yes = "$lt_cv_prog_gnu_ld"; then
7436 case `/usr/bin/file conftest.$ac_objext` in
7437 *32-bit*)
7438 LD="${LD-ld} -melf32bsmip"
7440 *N32*)
7441 LD="${LD-ld} -melf32bmipn32"
7443 *64-bit*)
7444 LD="${LD-ld} -melf64bmip"
7446 esac
7447 else
7448 case `/usr/bin/file conftest.$ac_objext` in
7449 *32-bit*)
7450 LD="${LD-ld} -32"
7452 *N32*)
7453 LD="${LD-ld} -n32"
7455 *64-bit*)
7456 LD="${LD-ld} -64"
7458 esac
7461 rm -rf conftest*
7464 mips64*-*linux*)
7465 # Find out what ABI is being produced by ac_compile, and set linker
7466 # options accordingly.
7467 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7469 (eval $ac_compile) 2>&5
7470 ac_status=$?
7471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; }; then
7473 emul=elf
7474 case `/usr/bin/file conftest.$ac_objext` in
7475 *32-bit*)
7476 emul="${emul}32"
7478 *64-bit*)
7479 emul="${emul}64"
7481 esac
7482 case `/usr/bin/file conftest.$ac_objext` in
7483 *MSB*)
7484 emul="${emul}btsmip"
7486 *LSB*)
7487 emul="${emul}ltsmip"
7489 esac
7490 case `/usr/bin/file conftest.$ac_objext` in
7491 *N32*)
7492 emul="${emul}n32"
7494 esac
7495 LD="${LD-ld} -m $emul"
7497 rm -rf conftest*
7500 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7501 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7502 # Find out what ABI is being produced by ac_compile, and set linker
7503 # options accordingly. Note that the listed cases only cover the
7504 # situations where additional linker options are needed (such as when
7505 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7506 # vice versa); the common cases where no linker options are needed do
7507 # not appear in the list.
7508 echo 'int i;' > conftest.$ac_ext
7509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510 (eval $ac_compile) 2>&5
7511 ac_status=$?
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513 test $ac_status = 0; }; then
7514 case `/usr/bin/file conftest.o` in
7515 *32-bit*)
7516 case $host in
7517 x86_64-*kfreebsd*-gnu)
7518 LD="${LD-ld} -m elf_i386_fbsd"
7520 x86_64-*linux*)
7521 case `/usr/bin/file conftest.o` in
7522 *x86-64*)
7523 LD="${LD-ld} -m elf32_x86_64"
7526 LD="${LD-ld} -m elf_i386"
7528 esac
7530 powerpc64le-*linux*)
7531 LD="${LD-ld} -m elf32lppclinux"
7533 powerpc64-*linux*)
7534 LD="${LD-ld} -m elf32ppclinux"
7536 s390x-*linux*)
7537 LD="${LD-ld} -m elf_s390"
7539 sparc64-*linux*)
7540 LD="${LD-ld} -m elf32_sparc"
7542 esac
7544 *64-bit*)
7545 case $host in
7546 x86_64-*kfreebsd*-gnu)
7547 LD="${LD-ld} -m elf_x86_64_fbsd"
7549 x86_64-*linux*)
7550 LD="${LD-ld} -m elf_x86_64"
7552 powerpcle-*linux*)
7553 LD="${LD-ld} -m elf64lppc"
7555 powerpc-*linux*)
7556 LD="${LD-ld} -m elf64ppc"
7558 s390*-*linux*|s390*-*tpf*)
7559 LD="${LD-ld} -m elf64_s390"
7561 sparc*-*linux*)
7562 LD="${LD-ld} -m elf64_sparc"
7564 esac
7566 esac
7568 rm -rf conftest*
7571 *-*-sco3.2v5*)
7572 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7573 SAVE_CFLAGS=$CFLAGS
7574 CFLAGS="$CFLAGS -belf"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7576 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7577 if ${lt_cv_cc_needs_belf+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 ac_ext=c
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7590 main ()
7594 return 0;
7596 _ACEOF
7597 if ac_fn_c_try_link "$LINENO"; then :
7598 lt_cv_cc_needs_belf=yes
7599 else
7600 lt_cv_cc_needs_belf=no
7602 rm -f core conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
7604 ac_ext=c
7605 ac_cpp='$CPP $CPPFLAGS'
7606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7612 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7613 if test yes != "$lt_cv_cc_needs_belf"; then
7614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7615 CFLAGS=$SAVE_CFLAGS
7618 *-*solaris*)
7619 # Find out what ABI is being produced by ac_compile, and set linker
7620 # options accordingly.
7621 echo 'int i;' > conftest.$ac_ext
7622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7623 (eval $ac_compile) 2>&5
7624 ac_status=$?
7625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626 test $ac_status = 0; }; then
7627 case `/usr/bin/file conftest.o` in
7628 *64-bit*)
7629 case $lt_cv_prog_gnu_ld in
7630 yes*)
7631 case $host in
7632 i?86-*-solaris*|x86_64-*-solaris*)
7633 LD="${LD-ld} -m elf_x86_64"
7635 sparc*-*-solaris*)
7636 LD="${LD-ld} -m elf64_sparc"
7638 esac
7639 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7640 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7641 LD=${LD-ld}_sol2
7645 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7646 LD="${LD-ld} -64"
7649 esac
7651 esac
7653 rm -rf conftest*
7655 esac
7657 need_locks=$enable_libtool_lock
7659 if test -n "$ac_tool_prefix"; then
7660 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}mt; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 if test -n "$MANIFEST_TOOL"; then
7668 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7681 done
7682 done
7683 IFS=$as_save_IFS
7687 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7688 if test -n "$MANIFEST_TOOL"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7690 $as_echo "$MANIFEST_TOOL" >&6; }
7691 else
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7698 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7699 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7700 # Extract the first word of "mt", so it can be a program name with args.
7701 set dummy mt; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 if test -n "$ac_ct_MANIFEST_TOOL"; then
7708 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7721 done
7722 done
7723 IFS=$as_save_IFS
7727 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7728 if test -n "$ac_ct_MANIFEST_TOOL"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7730 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7731 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7736 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7737 MANIFEST_TOOL=":"
7738 else
7739 case $cross_compiling:$ac_tool_warned in
7740 yes:)
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7744 esac
7745 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7747 else
7748 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7751 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7753 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7754 if ${lt_cv_path_mainfest_tool+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 lt_cv_path_mainfest_tool=no
7758 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7759 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7760 cat conftest.err >&5
7761 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7762 lt_cv_path_mainfest_tool=yes
7764 rm -f conftest*
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7767 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7768 if test yes != "$lt_cv_path_mainfest_tool"; then
7769 MANIFEST_TOOL=:
7777 case $host_os in
7778 rhapsody* | darwin*)
7779 if test -n "$ac_tool_prefix"; then
7780 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7781 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 if test -n "$DSYMUTIL"; then
7788 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7801 done
7802 done
7803 IFS=$as_save_IFS
7807 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7808 if test -n "$DSYMUTIL"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7810 $as_echo "$DSYMUTIL" >&6; }
7811 else
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7818 if test -z "$ac_cv_prog_DSYMUTIL"; then
7819 ac_ct_DSYMUTIL=$DSYMUTIL
7820 # Extract the first word of "dsymutil", so it can be a program name with args.
7821 set dummy dsymutil; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 if test -n "$ac_ct_DSYMUTIL"; then
7828 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7841 done
7842 done
7843 IFS=$as_save_IFS
7847 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7848 if test -n "$ac_ct_DSYMUTIL"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7850 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7856 if test "x$ac_ct_DSYMUTIL" = x; then
7857 DSYMUTIL=":"
7858 else
7859 case $cross_compiling:$ac_tool_warned in
7860 yes:)
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863 ac_tool_warned=yes ;;
7864 esac
7865 DSYMUTIL=$ac_ct_DSYMUTIL
7867 else
7868 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7871 if test -n "$ac_tool_prefix"; then
7872 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7873 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_NMEDIT+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test -n "$NMEDIT"; then
7880 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7893 done
7894 done
7895 IFS=$as_save_IFS
7899 NMEDIT=$ac_cv_prog_NMEDIT
7900 if test -n "$NMEDIT"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7902 $as_echo "$NMEDIT" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7910 if test -z "$ac_cv_prog_NMEDIT"; then
7911 ac_ct_NMEDIT=$NMEDIT
7912 # Extract the first word of "nmedit", so it can be a program name with args.
7913 set dummy nmedit; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$ac_ct_NMEDIT"; then
7920 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7933 done
7934 done
7935 IFS=$as_save_IFS
7939 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7940 if test -n "$ac_ct_NMEDIT"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7942 $as_echo "$ac_ct_NMEDIT" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7948 if test "x$ac_ct_NMEDIT" = x; then
7949 NMEDIT=":"
7950 else
7951 case $cross_compiling:$ac_tool_warned in
7952 yes:)
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7955 ac_tool_warned=yes ;;
7956 esac
7957 NMEDIT=$ac_ct_NMEDIT
7959 else
7960 NMEDIT="$ac_cv_prog_NMEDIT"
7963 if test -n "$ac_tool_prefix"; then
7964 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7965 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if ${ac_cv_prog_LIPO+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 if test -n "$LIPO"; then
7972 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7981 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7985 done
7986 done
7987 IFS=$as_save_IFS
7991 LIPO=$ac_cv_prog_LIPO
7992 if test -n "$LIPO"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7994 $as_echo "$LIPO" >&6; }
7995 else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
8002 if test -z "$ac_cv_prog_LIPO"; then
8003 ac_ct_LIPO=$LIPO
8004 # Extract the first word of "lipo", so it can be a program name with args.
8005 set dummy lipo; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 if test -n "$ac_ct_LIPO"; then
8012 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_ac_ct_LIPO="lipo"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8025 done
8026 done
8027 IFS=$as_save_IFS
8031 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8032 if test -n "$ac_ct_LIPO"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8034 $as_echo "$ac_ct_LIPO" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8040 if test "x$ac_ct_LIPO" = x; then
8041 LIPO=":"
8042 else
8043 case $cross_compiling:$ac_tool_warned in
8044 yes:)
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8047 ac_tool_warned=yes ;;
8048 esac
8049 LIPO=$ac_ct_LIPO
8051 else
8052 LIPO="$ac_cv_prog_LIPO"
8055 if test -n "$ac_tool_prefix"; then
8056 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8057 set dummy ${ac_tool_prefix}otool; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if ${ac_cv_prog_OTOOL+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 if test -n "$OTOOL"; then
8064 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8077 done
8078 done
8079 IFS=$as_save_IFS
8083 OTOOL=$ac_cv_prog_OTOOL
8084 if test -n "$OTOOL"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8086 $as_echo "$OTOOL" >&6; }
8087 else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8094 if test -z "$ac_cv_prog_OTOOL"; then
8095 ac_ct_OTOOL=$OTOOL
8096 # Extract the first word of "otool", so it can be a program name with args.
8097 set dummy otool; ac_word=$2
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099 $as_echo_n "checking for $ac_word... " >&6; }
8100 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 if test -n "$ac_ct_OTOOL"; then
8104 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8105 else
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_ac_ct_OTOOL="otool"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8117 done
8118 done
8119 IFS=$as_save_IFS
8123 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8124 if test -n "$ac_ct_OTOOL"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8126 $as_echo "$ac_ct_OTOOL" >&6; }
8127 else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8132 if test "x$ac_ct_OTOOL" = x; then
8133 OTOOL=":"
8134 else
8135 case $cross_compiling:$ac_tool_warned in
8136 yes:)
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8139 ac_tool_warned=yes ;;
8140 esac
8141 OTOOL=$ac_ct_OTOOL
8143 else
8144 OTOOL="$ac_cv_prog_OTOOL"
8147 if test -n "$ac_tool_prefix"; then
8148 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8149 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if ${ac_cv_prog_OTOOL64+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 if test -n "$OTOOL64"; then
8156 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8157 else
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 break 2
8169 done
8170 done
8171 IFS=$as_save_IFS
8175 OTOOL64=$ac_cv_prog_OTOOL64
8176 if test -n "$OTOOL64"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8178 $as_echo "$OTOOL64" >&6; }
8179 else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8186 if test -z "$ac_cv_prog_OTOOL64"; then
8187 ac_ct_OTOOL64=$OTOOL64
8188 # Extract the first word of "otool64", so it can be a program name with args.
8189 set dummy otool64; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 if test -n "$ac_ct_OTOOL64"; then
8196 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205 ac_cv_prog_ac_ct_OTOOL64="otool64"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 break 2
8209 done
8210 done
8211 IFS=$as_save_IFS
8215 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8216 if test -n "$ac_ct_OTOOL64"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8218 $as_echo "$ac_ct_OTOOL64" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8224 if test "x$ac_ct_OTOOL64" = x; then
8225 OTOOL64=":"
8226 else
8227 case $cross_compiling:$ac_tool_warned in
8228 yes:)
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8231 ac_tool_warned=yes ;;
8232 esac
8233 OTOOL64=$ac_ct_OTOOL64
8235 else
8236 OTOOL64="$ac_cv_prog_OTOOL64"
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8266 $as_echo_n "checking for -single_module linker flag... " >&6; }
8267 if ${lt_cv_apple_cc_single_mod+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 lt_cv_apple_cc_single_mod=no
8271 if test -z "$LT_MULTI_MODULE"; then
8272 # By default we will add the -single_module flag. You can override
8273 # by either setting the environment variable LT_MULTI_MODULE
8274 # non-empty at configure time, or by adding -multi_module to the
8275 # link flags.
8276 rm -rf libconftest.dylib*
8277 echo "int foo(void){return 1;}" > conftest.c
8278 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8279 -dynamiclib -Wl,-single_module conftest.c" >&5
8280 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8281 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8282 _lt_result=$?
8283 # If there is a non-empty error log, and "single_module"
8284 # appears in it, assume the flag caused a linker warning
8285 if test -s conftest.err && $GREP single_module conftest.err; then
8286 cat conftest.err >&5
8287 # Otherwise, if the output was created with a 0 exit code from
8288 # the compiler, it worked.
8289 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8290 lt_cv_apple_cc_single_mod=yes
8291 else
8292 cat conftest.err >&5
8294 rm -rf libconftest.dylib*
8295 rm -f conftest.*
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8299 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8302 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8303 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 lt_cv_ld_exported_symbols_list=no
8307 save_LDFLAGS=$LDFLAGS
8308 echo "_main" > conftest.sym
8309 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8314 main ()
8318 return 0;
8320 _ACEOF
8321 if ac_fn_c_try_link "$LINENO"; then :
8322 lt_cv_ld_exported_symbols_list=yes
8323 else
8324 lt_cv_ld_exported_symbols_list=no
8326 rm -f core conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8328 LDFLAGS=$save_LDFLAGS
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8332 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8335 $as_echo_n "checking for -force_load linker flag... " >&6; }
8336 if ${lt_cv_ld_force_load+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 lt_cv_ld_force_load=no
8340 cat > conftest.c << _LT_EOF
8341 int forced_loaded() { return 2;}
8342 _LT_EOF
8343 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8344 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8345 echo "$AR cru libconftest.a conftest.o" >&5
8346 $AR cru libconftest.a conftest.o 2>&5
8347 echo "$RANLIB libconftest.a" >&5
8348 $RANLIB libconftest.a 2>&5
8349 cat > conftest.c << _LT_EOF
8350 int main() { return 0;}
8351 _LT_EOF
8352 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8353 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8354 _lt_result=$?
8355 if test -s conftest.err && $GREP force_load conftest.err; then
8356 cat conftest.err >&5
8357 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8358 lt_cv_ld_force_load=yes
8359 else
8360 cat conftest.err >&5
8362 rm -f conftest.err libconftest.a conftest conftest.c
8363 rm -rf conftest.dSYM
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8367 $as_echo "$lt_cv_ld_force_load" >&6; }
8368 case $host_os in
8369 rhapsody* | darwin1.[012])
8370 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8371 darwin1.*)
8372 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8373 darwin*) # darwin 5.x on
8374 # if running on 10.5 or later, the deployment target defaults
8375 # to the OS version, if on x86, and 10.4, the deployment
8376 # target defaults to 10.4. Don't you love it?
8377 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8378 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8379 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8380 10.[012][,.]*)
8381 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8382 10.*)
8383 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8384 esac
8386 esac
8387 if test yes = "$lt_cv_apple_cc_single_mod"; then
8388 _lt_dar_single_mod='$single_module'
8390 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8391 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8392 else
8393 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8395 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8396 _lt_dsymutil='~$DSYMUTIL $lib || :'
8397 else
8398 _lt_dsymutil=
8401 esac
8403 # func_munge_path_list VARIABLE PATH
8404 # -----------------------------------
8405 # VARIABLE is name of variable containing _space_ separated list of
8406 # directories to be munged by the contents of PATH, which is string
8407 # having a format:
8408 # "DIR[:DIR]:"
8409 # string "DIR[ DIR]" will be prepended to VARIABLE
8410 # ":DIR[:DIR]"
8411 # string "DIR[ DIR]" will be appended to VARIABLE
8412 # "DIRP[:DIRP]::[DIRA:]DIRA"
8413 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8414 # "DIRA[ DIRA]" will be appended to VARIABLE
8415 # "DIR[:DIR]"
8416 # VARIABLE will be replaced by "DIR[ DIR]"
8417 func_munge_path_list ()
8419 case x$2 in
8423 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8425 x:*)
8426 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8428 *::*)
8429 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8430 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8433 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8435 esac
8438 ac_ext=c
8439 ac_cpp='$CPP $CPPFLAGS'
8440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8445 # On Suns, sometimes $CPP names a directory.
8446 if test -n "$CPP" && test -d "$CPP"; then
8447 CPP=
8449 if test -z "$CPP"; then
8450 if ${ac_cv_prog_CPP+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 # Double quotes because CPP needs to be expanded
8454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8456 ac_preproc_ok=false
8457 for ac_c_preproc_warn_flag in '' yes
8459 # Use a header file that comes with gcc, so configuring glibc
8460 # with a fresh cross-compiler works.
8461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8462 # <limits.h> exists even on freestanding compilers.
8463 # On the NeXT, cc -E runs the code through the compiler's parser,
8464 # not just through cpp. "Syntax error" is here to catch this case.
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #ifdef __STDC__
8468 # include <limits.h>
8469 #else
8470 # include <assert.h>
8471 #endif
8472 Syntax error
8473 _ACEOF
8474 if ac_fn_c_try_cpp "$LINENO"; then :
8476 else
8477 # Broken: fails on valid input.
8478 continue
8480 rm -f conftest.err conftest.i conftest.$ac_ext
8482 # OK, works on sane cases. Now check whether nonexistent headers
8483 # can be detected and how.
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 #include <ac_nonexistent.h>
8487 _ACEOF
8488 if ac_fn_c_try_cpp "$LINENO"; then :
8489 # Broken: success on invalid input.
8490 continue
8491 else
8492 # Passes both tests.
8493 ac_preproc_ok=:
8494 break
8496 rm -f conftest.err conftest.i conftest.$ac_ext
8498 done
8499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8500 rm -f conftest.i conftest.err conftest.$ac_ext
8501 if $ac_preproc_ok; then :
8502 break
8505 done
8506 ac_cv_prog_CPP=$CPP
8509 CPP=$ac_cv_prog_CPP
8510 else
8511 ac_cv_prog_CPP=$CPP
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8514 $as_echo "$CPP" >&6; }
8515 ac_preproc_ok=false
8516 for ac_c_preproc_warn_flag in '' yes
8518 # Use a header file that comes with gcc, so configuring glibc
8519 # with a fresh cross-compiler works.
8520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8521 # <limits.h> exists even on freestanding compilers.
8522 # On the NeXT, cc -E runs the code through the compiler's parser,
8523 # not just through cpp. "Syntax error" is here to catch this case.
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 #ifdef __STDC__
8527 # include <limits.h>
8528 #else
8529 # include <assert.h>
8530 #endif
8531 Syntax error
8532 _ACEOF
8533 if ac_fn_c_try_cpp "$LINENO"; then :
8535 else
8536 # Broken: fails on valid input.
8537 continue
8539 rm -f conftest.err conftest.i conftest.$ac_ext
8541 # OK, works on sane cases. Now check whether nonexistent headers
8542 # can be detected and how.
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <ac_nonexistent.h>
8546 _ACEOF
8547 if ac_fn_c_try_cpp "$LINENO"; then :
8548 # Broken: success on invalid input.
8549 continue
8550 else
8551 # Passes both tests.
8552 ac_preproc_ok=:
8553 break
8555 rm -f conftest.err conftest.i conftest.$ac_ext
8557 done
8558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8559 rm -f conftest.i conftest.err conftest.$ac_ext
8560 if $ac_preproc_ok; then :
8562 else
8563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8565 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8566 See \`config.log' for more details" "$LINENO" 5; }
8569 ac_ext=c
8570 ac_cpp='$CPP $CPPFLAGS'
8571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8577 $as_echo_n "checking for ANSI C header files... " >&6; }
8578 if ${ac_cv_header_stdc+:} false; then :
8579 $as_echo_n "(cached) " >&6
8580 else
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 #include <stdlib.h>
8584 #include <stdarg.h>
8585 #include <string.h>
8586 #include <float.h>
8589 main ()
8593 return 0;
8595 _ACEOF
8596 if ac_fn_c_try_compile "$LINENO"; then :
8597 ac_cv_header_stdc=yes
8598 else
8599 ac_cv_header_stdc=no
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 if test $ac_cv_header_stdc = yes; then
8604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8607 #include <string.h>
8609 _ACEOF
8610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8611 $EGREP "memchr" >/dev/null 2>&1; then :
8613 else
8614 ac_cv_header_stdc=no
8616 rm -f conftest*
8620 if test $ac_cv_header_stdc = yes; then
8621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <stdlib.h>
8626 _ACEOF
8627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8628 $EGREP "free" >/dev/null 2>&1; then :
8630 else
8631 ac_cv_header_stdc=no
8633 rm -f conftest*
8637 if test $ac_cv_header_stdc = yes; then
8638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8639 if test "$cross_compiling" = yes; then :
8641 else
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8644 #include <ctype.h>
8645 #include <stdlib.h>
8646 #if ((' ' & 0x0FF) == 0x020)
8647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8649 #else
8650 # define ISLOWER(c) \
8651 (('a' <= (c) && (c) <= 'i') \
8652 || ('j' <= (c) && (c) <= 'r') \
8653 || ('s' <= (c) && (c) <= 'z'))
8654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8655 #endif
8657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8659 main ()
8661 int i;
8662 for (i = 0; i < 256; i++)
8663 if (XOR (islower (i), ISLOWER (i))
8664 || toupper (i) != TOUPPER (i))
8665 return 2;
8666 return 0;
8668 _ACEOF
8669 if ac_fn_c_try_run "$LINENO"; then :
8671 else
8672 ac_cv_header_stdc=no
8674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8675 conftest.$ac_objext conftest.beam conftest.$ac_ext
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8681 $as_echo "$ac_cv_header_stdc" >&6; }
8682 if test $ac_cv_header_stdc = yes; then
8684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8690 inttypes.h stdint.h unistd.h
8691 do :
8692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8693 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8696 cat >>confdefs.h <<_ACEOF
8697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8698 _ACEOF
8702 done
8705 for ac_header in dlfcn.h
8706 do :
8707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8709 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_DLFCN_H 1
8712 _ACEOF
8716 done
8722 # Set options
8726 enable_dlopen=no
8729 enable_win32_dll=no
8732 # Check whether --enable-shared was given.
8733 if test "${enable_shared+set}" = set; then :
8734 enableval=$enable_shared; p=${PACKAGE-default}
8735 case $enableval in
8736 yes) enable_shared=yes ;;
8737 no) enable_shared=no ;;
8739 enable_shared=no
8740 # Look at the argument we got. We use all the common list separators.
8741 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8742 for pkg in $enableval; do
8743 IFS=$lt_save_ifs
8744 if test "X$pkg" = "X$p"; then
8745 enable_shared=yes
8747 done
8748 IFS=$lt_save_ifs
8750 esac
8751 else
8752 enable_shared=yes
8763 # Check whether --enable-static was given.
8764 if test "${enable_static+set}" = set; then :
8765 enableval=$enable_static; p=${PACKAGE-default}
8766 case $enableval in
8767 yes) enable_static=yes ;;
8768 no) enable_static=no ;;
8770 enable_static=no
8771 # Look at the argument we got. We use all the common list separators.
8772 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8773 for pkg in $enableval; do
8774 IFS=$lt_save_ifs
8775 if test "X$pkg" = "X$p"; then
8776 enable_static=yes
8778 done
8779 IFS=$lt_save_ifs
8781 esac
8782 else
8783 enable_static=yes
8795 # Check whether --with-pic was given.
8796 if test "${with_pic+set}" = set; then :
8797 withval=$with_pic; lt_p=${PACKAGE-default}
8798 case $withval in
8799 yes|no) pic_mode=$withval ;;
8801 pic_mode=default
8802 # Look at the argument we got. We use all the common list separators.
8803 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8804 for lt_pkg in $withval; do
8805 IFS=$lt_save_ifs
8806 if test "X$lt_pkg" = "X$lt_p"; then
8807 pic_mode=yes
8809 done
8810 IFS=$lt_save_ifs
8812 esac
8813 else
8814 pic_mode=default
8824 # Check whether --enable-fast-install was given.
8825 if test "${enable_fast_install+set}" = set; then :
8826 enableval=$enable_fast_install; p=${PACKAGE-default}
8827 case $enableval in
8828 yes) enable_fast_install=yes ;;
8829 no) enable_fast_install=no ;;
8831 enable_fast_install=no
8832 # Look at the argument we got. We use all the common list separators.
8833 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8834 for pkg in $enableval; do
8835 IFS=$lt_save_ifs
8836 if test "X$pkg" = "X$p"; then
8837 enable_fast_install=yes
8839 done
8840 IFS=$lt_save_ifs
8842 esac
8843 else
8844 enable_fast_install=yes
8854 shared_archive_member_spec=
8855 case $host,$enable_shared in
8856 power*-*-aix[5-9]*,yes)
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8858 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8860 # Check whether --with-aix-soname was given.
8861 if test "${with_aix_soname+set}" = set; then :
8862 withval=$with_aix_soname; case $withval in
8863 aix|svr4|both)
8866 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8868 esac
8869 lt_cv_with_aix_soname=$with_aix_soname
8870 else
8871 if ${lt_cv_with_aix_soname+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 lt_cv_with_aix_soname=aix
8877 with_aix_soname=$lt_cv_with_aix_soname
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8881 $as_echo "$with_aix_soname" >&6; }
8882 if test aix != "$with_aix_soname"; then
8883 # For the AIX way of multilib, we name the shared archive member
8884 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8885 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8886 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8887 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8888 if test 64 = "${OBJECT_MODE-32}"; then
8889 shared_archive_member_spec=shr_64
8890 else
8891 shared_archive_member_spec=shr
8896 with_aix_soname=aix
8898 esac
8909 # This can be used to rebuild libtool when needed
8910 LIBTOOL_DEPS=$ltmain
8912 # Always use our own libtool.
8913 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8944 test -z "$LN_S" && LN_S="ln -s"
8959 if test -n "${ZSH_VERSION+set}"; then
8960 setopt NO_GLOB_SUBST
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8964 $as_echo_n "checking for objdir... " >&6; }
8965 if ${lt_cv_objdir+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 rm -f .libs 2>/dev/null
8969 mkdir .libs 2>/dev/null
8970 if test -d .libs; then
8971 lt_cv_objdir=.libs
8972 else
8973 # MS-DOS does not allow filenames that begin with a dot.
8974 lt_cv_objdir=_libs
8976 rmdir .libs 2>/dev/null
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8979 $as_echo "$lt_cv_objdir" >&6; }
8980 objdir=$lt_cv_objdir
8986 cat >>confdefs.h <<_ACEOF
8987 #define LT_OBJDIR "$lt_cv_objdir/"
8988 _ACEOF
8993 case $host_os in
8994 aix3*)
8995 # AIX sometimes has problems with the GCC collect2 program. For some
8996 # reason, if we set the COLLECT_NAMES environment variable, the problems
8997 # vanish in a puff of smoke.
8998 if test set != "${COLLECT_NAMES+set}"; then
8999 COLLECT_NAMES=
9000 export COLLECT_NAMES
9003 esac
9005 # Global variables:
9006 ofile=libtool
9007 can_build_shared=yes
9009 # All known linkers require a '.a' archive for static linking (except MSVC,
9010 # which needs '.lib').
9011 libext=a
9013 with_gnu_ld=$lt_cv_prog_gnu_ld
9015 old_CC=$CC
9016 old_CFLAGS=$CFLAGS
9018 # Set sane defaults for various variables
9019 test -z "$CC" && CC=cc
9020 test -z "$LTCC" && LTCC=$CC
9021 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9022 test -z "$LD" && LD=ld
9023 test -z "$ac_objext" && ac_objext=o
9025 func_cc_basename $compiler
9026 cc_basename=$func_cc_basename_result
9029 # Only perform the check for file, if the check method requires it
9030 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9031 case $deplibs_check_method in
9032 file_magic*)
9033 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9035 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9036 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 case $MAGIC_CMD in
9040 [\\/*] | ?:[\\/]*)
9041 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9044 lt_save_MAGIC_CMD=$MAGIC_CMD
9045 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9047 for ac_dir in $ac_dummy; do
9048 IFS=$lt_save_ifs
9049 test -z "$ac_dir" && ac_dir=.
9050 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9051 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9052 if test -n "$file_magic_test_file"; then
9053 case $deplibs_check_method in
9054 "file_magic "*)
9055 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9056 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9058 $EGREP "$file_magic_regex" > /dev/null; then
9060 else
9061 cat <<_LT_EOF 1>&2
9063 *** Warning: the command libtool uses to detect shared libraries,
9064 *** $file_magic_cmd, produces output that libtool cannot recognize.
9065 *** The result is that libtool may fail to recognize shared libraries
9066 *** as such. This will affect the creation of libtool libraries that
9067 *** depend on shared libraries, but programs linked with such libtool
9068 *** libraries will work regardless of this problem. Nevertheless, you
9069 *** may want to report the problem to your system manager and/or to
9070 *** bug-libtool@gnu.org
9072 _LT_EOF
9073 fi ;;
9074 esac
9076 break
9078 done
9079 IFS=$lt_save_ifs
9080 MAGIC_CMD=$lt_save_MAGIC_CMD
9082 esac
9085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9086 if test -n "$MAGIC_CMD"; then
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9088 $as_echo "$MAGIC_CMD" >&6; }
9089 else
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9098 if test -z "$lt_cv_path_MAGIC_CMD"; then
9099 if test -n "$ac_tool_prefix"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9101 $as_echo_n "checking for file... " >&6; }
9102 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 case $MAGIC_CMD in
9106 [\\/*] | ?:[\\/]*)
9107 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9110 lt_save_MAGIC_CMD=$MAGIC_CMD
9111 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9112 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9113 for ac_dir in $ac_dummy; do
9114 IFS=$lt_save_ifs
9115 test -z "$ac_dir" && ac_dir=.
9116 if test -f "$ac_dir/file"; then
9117 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9118 if test -n "$file_magic_test_file"; then
9119 case $deplibs_check_method in
9120 "file_magic "*)
9121 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9122 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9124 $EGREP "$file_magic_regex" > /dev/null; then
9126 else
9127 cat <<_LT_EOF 1>&2
9129 *** Warning: the command libtool uses to detect shared libraries,
9130 *** $file_magic_cmd, produces output that libtool cannot recognize.
9131 *** The result is that libtool may fail to recognize shared libraries
9132 *** as such. This will affect the creation of libtool libraries that
9133 *** depend on shared libraries, but programs linked with such libtool
9134 *** libraries will work regardless of this problem. Nevertheless, you
9135 *** may want to report the problem to your system manager and/or to
9136 *** bug-libtool@gnu.org
9138 _LT_EOF
9139 fi ;;
9140 esac
9142 break
9144 done
9145 IFS=$lt_save_ifs
9146 MAGIC_CMD=$lt_save_MAGIC_CMD
9148 esac
9151 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9152 if test -n "$MAGIC_CMD"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9154 $as_echo "$MAGIC_CMD" >&6; }
9155 else
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9161 else
9162 MAGIC_CMD=:
9168 esac
9170 # Use C for the default configuration in the libtool script
9172 lt_save_CC=$CC
9173 ac_ext=c
9174 ac_cpp='$CPP $CPPFLAGS'
9175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9180 # Source file extension for C test sources.
9181 ac_ext=c
9183 # Object file extension for compiled C test sources.
9184 objext=o
9185 objext=$objext
9187 # Code to be used in simple compile tests
9188 lt_simple_compile_test_code="int some_variable = 0;"
9190 # Code to be used in simple link tests
9191 lt_simple_link_test_code='int main(){return(0);}'
9199 # If no C compiler was specified, use CC.
9200 LTCC=${LTCC-"$CC"}
9202 # If no C compiler flags were specified, use CFLAGS.
9203 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9205 # Allow CC to be a program name with arguments.
9206 compiler=$CC
9208 # Save the default compiler, since it gets overwritten when the other
9209 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9210 compiler_DEFAULT=$CC
9212 # save warnings/boilerplate of simple test code
9213 ac_outfile=conftest.$ac_objext
9214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9216 _lt_compiler_boilerplate=`cat conftest.err`
9217 $RM conftest*
9219 ac_outfile=conftest.$ac_objext
9220 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9222 _lt_linker_boilerplate=`cat conftest.err`
9223 $RM -r conftest*
9226 ## CAVEAT EMPTOR:
9227 ## There is no encapsulation within the following macros, do not change
9228 ## the running order or otherwise move them around unless you know exactly
9229 ## what you are doing...
9230 if test -n "$compiler"; then
9232 lt_prog_compiler_no_builtin_flag=
9234 if test yes = "$GCC"; then
9235 case $cc_basename in
9236 nvcc*)
9237 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9239 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9240 esac
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9243 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9244 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 lt_cv_prog_compiler_rtti_exceptions=no
9248 ac_outfile=conftest.$ac_objext
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9251 # Insert the option either (1) after the last *FLAGS variable, or
9252 # (2) before a word containing "conftest.", or (3) at the end.
9253 # Note that $ac_compile itself does not contain backslashes and begins
9254 # with a dollar sign (not a hyphen), so the echo should work correctly.
9255 # The option is referenced via a variable to avoid confusing sed.
9256 lt_compile=`echo "$ac_compile" | $SED \
9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259 -e 's:$: $lt_compiler_flag:'`
9260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9261 (eval "$lt_compile" 2>conftest.err)
9262 ac_status=$?
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 if (exit $ac_status) && test -s "$ac_outfile"; then
9266 # The compiler can only warn and ignore the option if not recognized
9267 # So say no if there are warnings other than the usual output.
9268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9271 lt_cv_prog_compiler_rtti_exceptions=yes
9274 $RM conftest*
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9278 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9280 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9281 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9282 else
9293 lt_prog_compiler_wl=
9294 lt_prog_compiler_pic=
9295 lt_prog_compiler_static=
9298 if test yes = "$GCC"; then
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_static='-static'
9302 case $host_os in
9303 aix*)
9304 # All AIX code is PIC.
9305 if test ia64 = "$host_cpu"; then
9306 # AIX 5 now supports IA64 processor
9307 lt_prog_compiler_static='-Bstatic'
9309 lt_prog_compiler_pic='-fPIC'
9312 amigaos*)
9313 case $host_cpu in
9314 powerpc)
9315 # see comment about AmigaOS4 .so support
9316 lt_prog_compiler_pic='-fPIC'
9318 m68k)
9319 # FIXME: we need at least 68020 code to build shared libraries, but
9320 # adding the '-m68020' flag to GCC prevents building anything better,
9321 # like '-m68040'.
9322 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9324 esac
9327 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9328 # PIC is the default for these OSes.
9331 mingw* | cygwin* | pw32* | os2* | cegcc*)
9332 # This hack is so that the source file can tell whether it is being
9333 # built for inclusion in a dll (and should export symbols for example).
9334 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9335 # (--disable-auto-import) libraries
9336 lt_prog_compiler_pic='-DDLL_EXPORT'
9337 case $host_os in
9338 os2*)
9339 lt_prog_compiler_static='$wl-static'
9341 esac
9344 darwin* | rhapsody*)
9345 # PIC is the default on this platform
9346 # Common symbols not allowed in MH_DYLIB files
9347 lt_prog_compiler_pic='-fno-common'
9350 haiku*)
9351 # PIC is the default for Haiku.
9352 # The "-static" flag exists, but is broken.
9353 lt_prog_compiler_static=
9356 hpux*)
9357 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9358 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9359 # sets the default TLS model and affects inlining.
9360 case $host_cpu in
9361 hppa*64*)
9362 # +Z the default
9365 lt_prog_compiler_pic='-fPIC'
9367 esac
9370 interix[3-9]*)
9371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9372 # Instead, we relocate shared libraries at runtime.
9375 msdosdjgpp*)
9376 # Just because we use GCC doesn't mean we suddenly get shared libraries
9377 # on systems that don't support them.
9378 lt_prog_compiler_can_build_shared=no
9379 enable_shared=no
9382 *nto* | *qnx*)
9383 # QNX uses GNU C++, but need to define -shared option too, otherwise
9384 # it will coredump.
9385 lt_prog_compiler_pic='-fPIC -shared'
9388 sysv4*MP*)
9389 if test -d /usr/nec; then
9390 lt_prog_compiler_pic=-Kconform_pic
9395 lt_prog_compiler_pic='-fPIC'
9397 esac
9399 case $cc_basename in
9400 nvcc*) # Cuda Compiler Driver 2.2
9401 lt_prog_compiler_wl='-Xlinker '
9402 if test -n "$lt_prog_compiler_pic"; then
9403 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9406 esac
9407 else
9408 # PORTME Check for flag to pass linker flags through the system compiler.
9409 case $host_os in
9410 aix*)
9411 lt_prog_compiler_wl='-Wl,'
9412 if test ia64 = "$host_cpu"; then
9413 # AIX 5 now supports IA64 processor
9414 lt_prog_compiler_static='-Bstatic'
9415 else
9416 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9420 darwin* | rhapsody*)
9421 # PIC is the default on this platform
9422 # Common symbols not allowed in MH_DYLIB files
9423 lt_prog_compiler_pic='-fno-common'
9424 case $cc_basename in
9425 nagfor*)
9426 # NAG Fortran compiler
9427 lt_prog_compiler_wl='-Wl,-Wl,,'
9428 lt_prog_compiler_pic='-PIC'
9429 lt_prog_compiler_static='-Bstatic'
9431 esac
9434 mingw* | cygwin* | pw32* | os2* | cegcc*)
9435 # This hack is so that the source file can tell whether it is being
9436 # built for inclusion in a dll (and should export symbols for example).
9437 lt_prog_compiler_pic='-DDLL_EXPORT'
9438 case $host_os in
9439 os2*)
9440 lt_prog_compiler_static='$wl-static'
9442 esac
9445 hpux9* | hpux10* | hpux11*)
9446 lt_prog_compiler_wl='-Wl,'
9447 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9448 # not for PA HP-UX.
9449 case $host_cpu in
9450 hppa*64*|ia64*)
9451 # +Z the default
9454 lt_prog_compiler_pic='+Z'
9456 esac
9457 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9458 lt_prog_compiler_static='$wl-a ${wl}archive'
9461 irix5* | irix6* | nonstopux*)
9462 lt_prog_compiler_wl='-Wl,'
9463 # PIC (with -KPIC) is the default.
9464 lt_prog_compiler_static='-non_shared'
9467 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9468 case $cc_basename in
9469 # old Intel for x86_64, which still supported -KPIC.
9470 ecc*)
9471 lt_prog_compiler_wl='-Wl,'
9472 lt_prog_compiler_pic='-KPIC'
9473 lt_prog_compiler_static='-static'
9475 # icc used to be incompatible with GCC.
9476 # ICC 10 doesn't accept -KPIC any more.
9477 icc* | ifort*)
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_pic='-fPIC'
9480 lt_prog_compiler_static='-static'
9482 # Lahey Fortran 8.1.
9483 lf95*)
9484 lt_prog_compiler_wl='-Wl,'
9485 lt_prog_compiler_pic='--shared'
9486 lt_prog_compiler_static='--static'
9488 nagfor*)
9489 # NAG Fortran compiler
9490 lt_prog_compiler_wl='-Wl,-Wl,,'
9491 lt_prog_compiler_pic='-PIC'
9492 lt_prog_compiler_static='-Bstatic'
9494 tcc*)
9495 # Fabrice Bellard et al's Tiny C Compiler
9496 lt_prog_compiler_wl='-Wl,'
9497 lt_prog_compiler_pic='-fPIC'
9498 lt_prog_compiler_static='-static'
9500 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9501 # Portland Group compilers (*not* the Pentium gcc compiler,
9502 # which looks to be a dead project)
9503 lt_prog_compiler_wl='-Wl,'
9504 lt_prog_compiler_pic='-fpic'
9505 lt_prog_compiler_static='-Bstatic'
9507 ccc*)
9508 lt_prog_compiler_wl='-Wl,'
9509 # All Alpha code is PIC.
9510 lt_prog_compiler_static='-non_shared'
9512 xl* | bgxl* | bgf* | mpixl*)
9513 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9514 lt_prog_compiler_wl='-Wl,'
9515 lt_prog_compiler_pic='-qpic'
9516 lt_prog_compiler_static='-qstaticlink'
9519 case `$CC -V 2>&1 | sed 5q` in
9520 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9521 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9522 lt_prog_compiler_pic='-KPIC'
9523 lt_prog_compiler_static='-Bstatic'
9524 lt_prog_compiler_wl=''
9526 *Sun\ F* | *Sun*Fortran*)
9527 lt_prog_compiler_pic='-KPIC'
9528 lt_prog_compiler_static='-Bstatic'
9529 lt_prog_compiler_wl='-Qoption ld '
9531 *Sun\ C*)
9532 # Sun C 5.9
9533 lt_prog_compiler_pic='-KPIC'
9534 lt_prog_compiler_static='-Bstatic'
9535 lt_prog_compiler_wl='-Wl,'
9537 *Intel*\ [CF]*Compiler*)
9538 lt_prog_compiler_wl='-Wl,'
9539 lt_prog_compiler_pic='-fPIC'
9540 lt_prog_compiler_static='-static'
9542 *Portland\ Group*)
9543 lt_prog_compiler_wl='-Wl,'
9544 lt_prog_compiler_pic='-fpic'
9545 lt_prog_compiler_static='-Bstatic'
9547 esac
9549 esac
9552 newsos6)
9553 lt_prog_compiler_pic='-KPIC'
9554 lt_prog_compiler_static='-Bstatic'
9557 *nto* | *qnx*)
9558 # QNX uses GNU C++, but need to define -shared option too, otherwise
9559 # it will coredump.
9560 lt_prog_compiler_pic='-fPIC -shared'
9563 osf3* | osf4* | osf5*)
9564 lt_prog_compiler_wl='-Wl,'
9565 # All OSF/1 code is PIC.
9566 lt_prog_compiler_static='-non_shared'
9569 rdos*)
9570 lt_prog_compiler_static='-non_shared'
9573 solaris*)
9574 lt_prog_compiler_pic='-KPIC'
9575 lt_prog_compiler_static='-Bstatic'
9576 case $cc_basename in
9577 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9578 lt_prog_compiler_wl='-Qoption ld ';;
9580 lt_prog_compiler_wl='-Wl,';;
9581 esac
9584 sunos4*)
9585 lt_prog_compiler_wl='-Qoption ld '
9586 lt_prog_compiler_pic='-PIC'
9587 lt_prog_compiler_static='-Bstatic'
9590 sysv4 | sysv4.2uw2* | sysv4.3*)
9591 lt_prog_compiler_wl='-Wl,'
9592 lt_prog_compiler_pic='-KPIC'
9593 lt_prog_compiler_static='-Bstatic'
9596 sysv4*MP*)
9597 if test -d /usr/nec; then
9598 lt_prog_compiler_pic='-Kconform_pic'
9599 lt_prog_compiler_static='-Bstatic'
9603 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9604 lt_prog_compiler_wl='-Wl,'
9605 lt_prog_compiler_pic='-KPIC'
9606 lt_prog_compiler_static='-Bstatic'
9609 unicos*)
9610 lt_prog_compiler_wl='-Wl,'
9611 lt_prog_compiler_can_build_shared=no
9614 uts4*)
9615 lt_prog_compiler_pic='-pic'
9616 lt_prog_compiler_static='-Bstatic'
9620 lt_prog_compiler_can_build_shared=no
9622 esac
9625 case $host_os in
9626 # For platforms that do not support PIC, -DPIC is meaningless:
9627 *djgpp*)
9628 lt_prog_compiler_pic=
9631 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9633 esac
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9636 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9637 if ${lt_cv_prog_compiler_pic+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9643 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9644 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9647 # Check to make sure the PIC flag actually works.
9649 if test -n "$lt_prog_compiler_pic"; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9651 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9652 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 lt_cv_prog_compiler_pic_works=no
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9658 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9659 # Insert the option either (1) after the last *FLAGS variable, or
9660 # (2) before a word containing "conftest.", or (3) at the end.
9661 # Note that $ac_compile itself does not contain backslashes and begins
9662 # with a dollar sign (not a hyphen), so the echo should work correctly.
9663 # The option is referenced via a variable to avoid confusing sed.
9664 lt_compile=`echo "$ac_compile" | $SED \
9665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9667 -e 's:$: $lt_compiler_flag:'`
9668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9669 (eval "$lt_compile" 2>conftest.err)
9670 ac_status=$?
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 if (exit $ac_status) && test -s "$ac_outfile"; then
9674 # The compiler can only warn and ignore the option if not recognized
9675 # So say no if there are warnings other than the usual output.
9676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9679 lt_cv_prog_compiler_pic_works=yes
9682 $RM conftest*
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9686 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9688 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9689 case $lt_prog_compiler_pic in
9690 "" | " "*) ;;
9691 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9692 esac
9693 else
9694 lt_prog_compiler_pic=
9695 lt_prog_compiler_can_build_shared=no
9711 # Check to make sure the static flag actually works.
9713 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9715 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9716 if ${lt_cv_prog_compiler_static_works+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 lt_cv_prog_compiler_static_works=no
9720 save_LDFLAGS=$LDFLAGS
9721 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9724 # The linker can only warn and ignore the option if not recognized
9725 # So say no if there are warnings
9726 if test -s conftest.err; then
9727 # Append any errors to the config.log.
9728 cat conftest.err 1>&5
9729 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9731 if diff conftest.exp conftest.er2 >/dev/null; then
9732 lt_cv_prog_compiler_static_works=yes
9734 else
9735 lt_cv_prog_compiler_static_works=yes
9738 $RM -r conftest*
9739 LDFLAGS=$save_LDFLAGS
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9743 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9745 if test yes = "$lt_cv_prog_compiler_static_works"; then
9747 else
9748 lt_prog_compiler_static=
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9758 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9759 if ${lt_cv_prog_compiler_c_o+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 lt_cv_prog_compiler_c_o=no
9763 $RM -r conftest 2>/dev/null
9764 mkdir conftest
9765 cd conftest
9766 mkdir out
9767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9769 lt_compiler_flag="-o out/conftest2.$ac_objext"
9770 # Insert the option either (1) after the last *FLAGS variable, or
9771 # (2) before a word containing "conftest.", or (3) at the end.
9772 # Note that $ac_compile itself does not contain backslashes and begins
9773 # with a dollar sign (not a hyphen), so the echo should work correctly.
9774 lt_compile=`echo "$ac_compile" | $SED \
9775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9777 -e 's:$: $lt_compiler_flag:'`
9778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9779 (eval "$lt_compile" 2>out/conftest.err)
9780 ac_status=$?
9781 cat out/conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9784 then
9785 # The compiler can only warn and ignore the option if not recognized
9786 # So say no if there are warnings
9787 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9788 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9789 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9790 lt_cv_prog_compiler_c_o=yes
9793 chmod u+w . 2>&5
9794 $RM conftest*
9795 # SGI C++ compiler will create directory out/ii_files/ for
9796 # template instantiation
9797 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9798 $RM out/* && rmdir out
9799 cd ..
9800 $RM -r conftest
9801 $RM conftest*
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9805 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9813 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9814 if ${lt_cv_prog_compiler_c_o+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 lt_cv_prog_compiler_c_o=no
9818 $RM -r conftest 2>/dev/null
9819 mkdir conftest
9820 cd conftest
9821 mkdir out
9822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9824 lt_compiler_flag="-o out/conftest2.$ac_objext"
9825 # Insert the option either (1) after the last *FLAGS variable, or
9826 # (2) before a word containing "conftest.", or (3) at the end.
9827 # Note that $ac_compile itself does not contain backslashes and begins
9828 # with a dollar sign (not a hyphen), so the echo should work correctly.
9829 lt_compile=`echo "$ac_compile" | $SED \
9830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9832 -e 's:$: $lt_compiler_flag:'`
9833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9834 (eval "$lt_compile" 2>out/conftest.err)
9835 ac_status=$?
9836 cat out/conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9839 then
9840 # The compiler can only warn and ignore the option if not recognized
9841 # So say no if there are warnings
9842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9843 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9844 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9845 lt_cv_prog_compiler_c_o=yes
9848 chmod u+w . 2>&5
9849 $RM conftest*
9850 # SGI C++ compiler will create directory out/ii_files/ for
9851 # template instantiation
9852 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9853 $RM out/* && rmdir out
9854 cd ..
9855 $RM -r conftest
9856 $RM conftest*
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9860 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9865 hard_links=nottested
9866 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9867 # do not overwrite the value of need_locks provided by the user
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9869 $as_echo_n "checking if we can lock with hard links... " >&6; }
9870 hard_links=yes
9871 $RM conftest*
9872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9873 touch conftest.a
9874 ln conftest.a conftest.b 2>&5 || hard_links=no
9875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9877 $as_echo "$hard_links" >&6; }
9878 if test no = "$hard_links"; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9880 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9881 need_locks=warn
9883 else
9884 need_locks=no
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9893 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9895 runpath_var=
9896 allow_undefined_flag=
9897 always_export_symbols=no
9898 archive_cmds=
9899 archive_expsym_cmds=
9900 compiler_needs_object=no
9901 enable_shared_with_static_runtimes=no
9902 export_dynamic_flag_spec=
9903 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9904 hardcode_automatic=no
9905 hardcode_direct=no
9906 hardcode_direct_absolute=no
9907 hardcode_libdir_flag_spec=
9908 hardcode_libdir_separator=
9909 hardcode_minus_L=no
9910 hardcode_shlibpath_var=unsupported
9911 inherit_rpath=no
9912 link_all_deplibs=unknown
9913 module_cmds=
9914 module_expsym_cmds=
9915 old_archive_from_new_cmds=
9916 old_archive_from_expsyms_cmds=
9917 thread_safe_flag_spec=
9918 whole_archive_flag_spec=
9919 # include_expsyms should be a list of space-separated symbols to be *always*
9920 # included in the symbol list
9921 include_expsyms=
9922 # exclude_expsyms can be an extended regexp of symbols to exclude
9923 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9924 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9925 # as well as any symbol that contains 'd'.
9926 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9927 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9928 # platforms (ab)use it in PIC code, but their linkers get confused if
9929 # the symbol is explicitly referenced. Since portable code cannot
9930 # rely on this symbol name, it's probably fine to never include it in
9931 # preloaded symbol tables.
9932 # Exclude shared library initialization/finalization symbols.
9933 extract_expsyms_cmds=
9935 case $host_os in
9936 cygwin* | mingw* | pw32* | cegcc*)
9937 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9938 # When not using gcc, we currently assume that we are using
9939 # Microsoft Visual C++.
9940 if test yes != "$GCC"; then
9941 with_gnu_ld=no
9944 interix*)
9945 # we just hope/assume this is gcc and not c89 (= MSVC++)
9946 with_gnu_ld=yes
9948 openbsd* | bitrig*)
9949 with_gnu_ld=no
9951 esac
9953 ld_shlibs=yes
9955 # On some targets, GNU ld is compatible enough with the native linker
9956 # that we're better off using the native interface for both.
9957 lt_use_gnu_ld_interface=no
9958 if test yes = "$with_gnu_ld"; then
9959 case $host_os in
9960 aix*)
9961 # The AIX port of GNU ld has always aspired to compatibility
9962 # with the native linker. However, as the warning in the GNU ld
9963 # block says, versions before 2.19.5* couldn't really create working
9964 # shared libraries, regardless of the interface used.
9965 case `$LD -v 2>&1` in
9966 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9967 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9968 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9970 lt_use_gnu_ld_interface=yes
9972 esac
9975 lt_use_gnu_ld_interface=yes
9977 esac
9980 if test yes = "$lt_use_gnu_ld_interface"; then
9981 # If archive_cmds runs LD, not CC, wlarc should be empty
9982 wlarc='$wl'
9984 # Set some defaults for GNU ld with shared library support. These
9985 # are reset later if shared libraries are not supported. Putting them
9986 # here allows them to be overridden if necessary.
9987 runpath_var=LD_RUN_PATH
9988 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9989 export_dynamic_flag_spec='$wl--export-dynamic'
9990 # ancient GNU ld didn't support --whole-archive et. al.
9991 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9992 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9993 else
9994 whole_archive_flag_spec=
9996 supports_anon_versioning=no
9997 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9998 *GNU\ gold*) supports_anon_versioning=yes ;;
9999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10002 *\ 2.11.*) ;; # other 2.11 versions
10003 *) supports_anon_versioning=yes ;;
10004 esac
10006 # See if GNU ld supports shared libraries.
10007 case $host_os in
10008 aix[3-9]*)
10009 # On AIX/PPC, the GNU linker is very broken
10010 if test ia64 != "$host_cpu"; then
10011 ld_shlibs=no
10012 cat <<_LT_EOF 1>&2
10014 *** Warning: the GNU linker, at least up to release 2.19, is reported
10015 *** to be unable to reliably create shared libraries on AIX.
10016 *** Therefore, libtool is disabling shared libraries support. If you
10017 *** really care for shared libraries, you may want to install binutils
10018 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10019 *** You will then need to restart the configuration process.
10021 _LT_EOF
10025 amigaos*)
10026 case $host_cpu in
10027 powerpc)
10028 # see comment about AmigaOS4 .so support
10029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10030 archive_expsym_cmds=''
10032 m68k)
10033 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)'
10034 hardcode_libdir_flag_spec='-L$libdir'
10035 hardcode_minus_L=yes
10037 esac
10040 beos*)
10041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10042 allow_undefined_flag=unsupported
10043 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10044 # support --undefined. This deserves some investigation. FIXME
10045 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10046 else
10047 ld_shlibs=no
10051 cygwin* | mingw* | pw32* | cegcc*)
10052 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10053 # as there is no search path for DLLs.
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 export_dynamic_flag_spec='$wl--export-all-symbols'
10056 allow_undefined_flag=unsupported
10057 always_export_symbols=no
10058 enable_shared_with_static_runtimes=yes
10059 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'
10060 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10062 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10064 # If the export-symbols file already is a .def file, use it as
10065 # is; otherwise, prepend EXPORTS...
10066 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10067 cp $export_symbols $output_objdir/$soname.def;
10068 else
10069 echo EXPORTS > $output_objdir/$soname.def;
10070 cat $export_symbols >> $output_objdir/$soname.def;
10072 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10073 else
10074 ld_shlibs=no
10078 haiku*)
10079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10080 link_all_deplibs=yes
10083 os2*)
10084 hardcode_libdir_flag_spec='-L$libdir'
10085 hardcode_minus_L=yes
10086 allow_undefined_flag=unsupported
10087 shrext_cmds=.dll
10088 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10091 $ECHO EXPORTS >> $output_objdir/$libname.def~
10092 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10093 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10094 emximp -o $lib $output_objdir/$libname.def'
10095 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10096 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10097 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10098 $ECHO EXPORTS >> $output_objdir/$libname.def~
10099 prefix_cmds="$SED"~
10100 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10101 prefix_cmds="$prefix_cmds -e 1d";
10103 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10104 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10105 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10106 emximp -o $lib $output_objdir/$libname.def'
10107 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10108 enable_shared_with_static_runtimes=yes
10111 interix[3-9]*)
10112 hardcode_direct=no
10113 hardcode_shlibpath_var=no
10114 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10115 export_dynamic_flag_spec='$wl-E'
10116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10117 # Instead, shared libraries are loaded at an image base (0x10000000 by
10118 # default) and relocated if they conflict, which is a slow very memory
10119 # consuming and fragmenting process. To avoid this, we pick a random,
10120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10123 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'
10126 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10127 tmp_diet=no
10128 if test linux-dietlibc = "$host_os"; then
10129 case $cc_basename in
10130 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10131 esac
10133 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10134 && test no = "$tmp_diet"
10135 then
10136 tmp_addflag=' $pic_flag'
10137 tmp_sharedflag='-shared'
10138 case $cc_basename,$host_cpu in
10139 pgcc*) # Portland Group C compiler
10140 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'
10141 tmp_addflag=' $pic_flag'
10143 pgf77* | pgf90* | pgf95* | pgfortran*)
10144 # Portland Group f77 and f90 compilers
10145 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'
10146 tmp_addflag=' $pic_flag -Mnomain' ;;
10147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10148 tmp_addflag=' -i_dynamic' ;;
10149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10150 tmp_addflag=' -i_dynamic -nofor_main' ;;
10151 ifc* | ifort*) # Intel Fortran compiler
10152 tmp_addflag=' -nofor_main' ;;
10153 lf95*) # Lahey Fortran 8.1
10154 whole_archive_flag_spec=
10155 tmp_sharedflag='--shared' ;;
10156 nagfor*) # NAGFOR 5.3
10157 tmp_sharedflag='-Wl,-shared' ;;
10158 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10159 tmp_sharedflag='-qmkshrobj'
10160 tmp_addflag= ;;
10161 nvcc*) # Cuda Compiler Driver 2.2
10162 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'
10163 compiler_needs_object=yes
10165 esac
10166 case `$CC -V 2>&1 | sed 5q` in
10167 *Sun\ C*) # Sun C 5.9
10168 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'
10169 compiler_needs_object=yes
10170 tmp_sharedflag='-G' ;;
10171 *Sun\ F*) # Sun Fortran 8.3
10172 tmp_sharedflag='-G' ;;
10173 esac
10174 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10176 if test yes = "$supports_anon_versioning"; then
10177 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10179 echo "local: *; };" >> $output_objdir/$libname.ver~
10180 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10183 case $cc_basename in
10184 tcc*)
10185 export_dynamic_flag_spec='-rdynamic'
10187 xlf* | bgf* | bgxlf* | mpixlf*)
10188 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10189 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10191 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10192 if test yes = "$supports_anon_versioning"; then
10193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10195 echo "local: *; };" >> $output_objdir/$libname.ver~
10196 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10199 esac
10200 else
10201 ld_shlibs=no
10205 netbsd*)
10206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10207 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10208 wlarc=
10209 else
10210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10211 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10215 solaris*)
10216 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10217 ld_shlibs=no
10218 cat <<_LT_EOF 1>&2
10220 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10221 *** create shared libraries on Solaris systems. Therefore, libtool
10222 *** is disabling shared libraries support. We urge you to upgrade GNU
10223 *** binutils to release 2.9.1 or newer. Another option is to modify
10224 *** your PATH or compiler configuration so that the native linker is
10225 *** used, and then restart.
10227 _LT_EOF
10228 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10230 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10231 else
10232 ld_shlibs=no
10236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10237 case `$LD -v 2>&1` in
10238 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10239 ld_shlibs=no
10240 cat <<_LT_EOF 1>&2
10242 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10243 *** reliably create shared libraries on SCO systems. Therefore, libtool
10244 *** is disabling shared libraries support. We urge you to upgrade GNU
10245 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10246 *** your PATH or compiler configuration so that the native linker is
10247 *** used, and then restart.
10249 _LT_EOF
10252 # For security reasons, it is highly recommended that you always
10253 # use absolute paths for naming shared libraries, and exclude the
10254 # DT_RUNPATH tag from executables and libraries. But doing so
10255 # requires that you compile everything twice, which is a pain.
10256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10260 else
10261 ld_shlibs=no
10264 esac
10267 sunos4*)
10268 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10269 wlarc=
10270 hardcode_direct=yes
10271 hardcode_shlibpath_var=no
10275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10277 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10278 else
10279 ld_shlibs=no
10282 esac
10284 if test no = "$ld_shlibs"; then
10285 runpath_var=
10286 hardcode_libdir_flag_spec=
10287 export_dynamic_flag_spec=
10288 whole_archive_flag_spec=
10290 else
10291 # PORTME fill in a description of your system's linker (not GNU ld)
10292 case $host_os in
10293 aix3*)
10294 allow_undefined_flag=unsupported
10295 always_export_symbols=yes
10296 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'
10297 # Note: this linker hardcodes the directories in LIBPATH if there
10298 # are no directories specified by -L.
10299 hardcode_minus_L=yes
10300 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10301 # Neither direct hardcoding nor static linking is supported with a
10302 # broken collect2.
10303 hardcode_direct=unsupported
10307 aix[4-9]*)
10308 if test ia64 = "$host_cpu"; then
10309 # On IA64, the linker does run time linking by default, so we don't
10310 # have to do anything special.
10311 aix_use_runtimelinking=no
10312 exp_sym_flag='-Bexport'
10313 no_entry_flag=
10314 else
10315 # If we're using GNU nm, then we don't want the "-C" option.
10316 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10317 # Without the "-l" option, or with the "-B" option, AIX nm treats
10318 # weak defined symbols like other global defined symbols, whereas
10319 # GNU nm marks them as "W".
10320 # While the 'weak' keyword is ignored in the Export File, we need
10321 # it in the Import File for the 'aix-soname' feature, so we have
10322 # to replace the "-B" option with "-P" for AIX nm.
10323 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10324 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10325 else
10326 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10328 aix_use_runtimelinking=no
10330 # Test if we are trying to use run time linking or normal
10331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10332 # have runtime linking enabled, and use it for executables.
10333 # For shared libraries, we enable/disable runtime linking
10334 # depending on the kind of the shared library created -
10335 # when "with_aix_soname,aix_use_runtimelinking" is:
10336 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10337 # "aix,yes" lib.so shared, rtl:yes, for executables
10338 # lib.a static archive
10339 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10340 # lib.a(lib.so.V) shared, rtl:no, for executables
10341 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10342 # lib.a(lib.so.V) shared, rtl:no
10343 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10344 # lib.a static archive
10345 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10346 for ld_flag in $LDFLAGS; do
10347 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10348 aix_use_runtimelinking=yes
10349 break
10351 done
10352 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10353 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10354 # so we don't have lib.a shared libs to link our executables.
10355 # We have to force runtime linking in this case.
10356 aix_use_runtimelinking=yes
10357 LDFLAGS="$LDFLAGS -Wl,-brtl"
10360 esac
10362 exp_sym_flag='-bexport'
10363 no_entry_flag='-bnoentry'
10366 # When large executables or shared objects are built, AIX ld can
10367 # have problems creating the table of contents. If linking a library
10368 # or program results in "error TOC overflow" add -mminimal-toc to
10369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10372 archive_cmds=''
10373 hardcode_direct=yes
10374 hardcode_direct_absolute=yes
10375 hardcode_libdir_separator=':'
10376 link_all_deplibs=yes
10377 file_list_spec='$wl-f,'
10378 case $with_aix_soname,$aix_use_runtimelinking in
10379 aix,*) ;; # traditional, no import file
10380 svr4,* | *,yes) # use import file
10381 # The Import File defines what to hardcode.
10382 hardcode_direct=no
10383 hardcode_direct_absolute=no
10385 esac
10387 if test yes = "$GCC"; then
10388 case $host_os in aix4.[012]|aix4.[012].*)
10389 # We only want to do this on AIX 4.2 and lower, the check
10390 # below for broken collect2 doesn't work under 4.3+
10391 collect2name=`$CC -print-prog-name=collect2`
10392 if test -f "$collect2name" &&
10393 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10394 then
10395 # We have reworked collect2
10397 else
10398 # We have old collect2
10399 hardcode_direct=unsupported
10400 # It fails to find uninstalled libraries when the uninstalled
10401 # path is not listed in the libpath. Setting hardcode_minus_L
10402 # to unsupported forces relinking
10403 hardcode_minus_L=yes
10404 hardcode_libdir_flag_spec='-L$libdir'
10405 hardcode_libdir_separator=
10408 esac
10409 shared_flag='-shared'
10410 if test yes = "$aix_use_runtimelinking"; then
10411 shared_flag="$shared_flag "'$wl-G'
10413 # Need to ensure runtime linking is disabled for the traditional
10414 # shared library, or the linker may eventually find shared libraries
10415 # /with/ Import File - we do not want to mix them.
10416 shared_flag_aix='-shared'
10417 shared_flag_svr4='-shared $wl-G'
10418 else
10419 # not using gcc
10420 if test ia64 = "$host_cpu"; then
10421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10422 # chokes on -Wl,-G. The following line is correct:
10423 shared_flag='-G'
10424 else
10425 if test yes = "$aix_use_runtimelinking"; then
10426 shared_flag='$wl-G'
10427 else
10428 shared_flag='$wl-bM:SRE'
10430 shared_flag_aix='$wl-bM:SRE'
10431 shared_flag_svr4='$wl-G'
10435 export_dynamic_flag_spec='$wl-bexpall'
10436 # It seems that -bexpall does not export symbols beginning with
10437 # underscore (_), so it is better to generate a list of symbols to export.
10438 always_export_symbols=yes
10439 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10440 # Warning - without using the other runtime loading flags (-brtl),
10441 # -berok will link without error, but may produce a broken library.
10442 allow_undefined_flag='-berok'
10443 # Determine the default libpath from the value encoded in an
10444 # empty executable.
10445 if test set = "${lt_cv_aix_libpath+set}"; then
10446 aix_libpath=$lt_cv_aix_libpath
10447 else
10448 if ${lt_cv_aix_libpath_+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10455 main ()
10459 return 0;
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10464 lt_aix_libpath_sed='
10465 /Import File Strings/,/^$/ {
10466 /^0/ {
10467 s/^0 *\([^ ]*\) *$/\1/
10471 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10472 # Check for a 64-bit object if we didn't find anything.
10473 if test -z "$lt_cv_aix_libpath_"; then
10474 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 if test -z "$lt_cv_aix_libpath_"; then
10480 lt_cv_aix_libpath_=/usr/lib:/lib
10485 aix_libpath=$lt_cv_aix_libpath_
10488 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10489 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10490 else
10491 if test ia64 = "$host_cpu"; then
10492 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10493 allow_undefined_flag="-z nodefs"
10494 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"
10495 else
10496 # Determine the default libpath from the value encoded in an
10497 # empty executable.
10498 if test set = "${lt_cv_aix_libpath+set}"; then
10499 aix_libpath=$lt_cv_aix_libpath
10500 else
10501 if ${lt_cv_aix_libpath_+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10508 main ()
10512 return 0;
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10517 lt_aix_libpath_sed='
10518 /Import File Strings/,/^$/ {
10519 /^0/ {
10520 s/^0 *\([^ ]*\) *$/\1/
10524 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10525 # Check for a 64-bit object if we didn't find anything.
10526 if test -z "$lt_cv_aix_libpath_"; then
10527 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10530 rm -f core conftest.err conftest.$ac_objext \
10531 conftest$ac_exeext conftest.$ac_ext
10532 if test -z "$lt_cv_aix_libpath_"; then
10533 lt_cv_aix_libpath_=/usr/lib:/lib
10538 aix_libpath=$lt_cv_aix_libpath_
10541 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10542 # Warning - without using the other run time loading flags,
10543 # -berok will link without error, but may produce a broken library.
10544 no_undefined_flag=' $wl-bernotok'
10545 allow_undefined_flag=' $wl-berok'
10546 if test yes = "$with_gnu_ld"; then
10547 # We only use this code for GNU lds that support --whole-archive.
10548 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10549 else
10550 # Exported symbols can be pulled into shared objects from archives
10551 whole_archive_flag_spec='$convenience'
10553 archive_cmds_need_lc=yes
10554 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10555 # -brtl affects multiple linker settings, -berok does not and is overridden later
10556 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10557 if test svr4 != "$with_aix_soname"; then
10558 # This is similar to how AIX traditionally builds its shared libraries.
10559 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10561 if test aix != "$with_aix_soname"; then
10562 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10563 else
10564 # used by -dlpreopen to get the symbols
10565 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10567 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10572 amigaos*)
10573 case $host_cpu in
10574 powerpc)
10575 # see comment about AmigaOS4 .so support
10576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10577 archive_expsym_cmds=''
10579 m68k)
10580 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)'
10581 hardcode_libdir_flag_spec='-L$libdir'
10582 hardcode_minus_L=yes
10584 esac
10587 bsdi[45]*)
10588 export_dynamic_flag_spec=-rdynamic
10591 cygwin* | mingw* | pw32* | cegcc*)
10592 # When not using gcc, we currently assume that we are using
10593 # Microsoft Visual C++.
10594 # hardcode_libdir_flag_spec is actually meaningless, as there is
10595 # no search path for DLLs.
10596 case $cc_basename in
10597 cl*)
10598 # Native MSVC
10599 hardcode_libdir_flag_spec=' '
10600 allow_undefined_flag=unsupported
10601 always_export_symbols=yes
10602 file_list_spec='@'
10603 # Tell ltmain to make .lib files, not .a files.
10604 libext=lib
10605 # Tell ltmain to make .dll files, not .so files.
10606 shrext_cmds=.dll
10607 # FIXME: Setting linknames here is a bad hack.
10608 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10609 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10610 cp "$export_symbols" "$output_objdir/$soname.def";
10611 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10612 else
10613 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10615 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10616 linknames='
10617 # The linker will not automatically build a static lib if we build a DLL.
10618 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10619 enable_shared_with_static_runtimes=yes
10620 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10622 # Don't use ranlib
10623 old_postinstall_cmds='chmod 644 $oldlib'
10624 postlink_cmds='lt_outputfile="@OUTPUT@"~
10625 lt_tool_outputfile="@TOOL_OUTPUT@"~
10626 case $lt_outputfile in
10627 *.exe|*.EXE) ;;
10629 lt_outputfile=$lt_outputfile.exe
10630 lt_tool_outputfile=$lt_tool_outputfile.exe
10632 esac~
10633 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10634 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10635 $RM "$lt_outputfile.manifest";
10639 # Assume MSVC wrapper
10640 hardcode_libdir_flag_spec=' '
10641 allow_undefined_flag=unsupported
10642 # Tell ltmain to make .lib files, not .a files.
10643 libext=lib
10644 # Tell ltmain to make .dll files, not .so files.
10645 shrext_cmds=.dll
10646 # FIXME: Setting linknames here is a bad hack.
10647 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10648 # The linker will automatically build a .lib file if we build a DLL.
10649 old_archive_from_new_cmds='true'
10650 # FIXME: Should let the user specify the lib program.
10651 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10652 enable_shared_with_static_runtimes=yes
10654 esac
10657 darwin* | rhapsody*)
10660 archive_cmds_need_lc=no
10661 hardcode_direct=no
10662 hardcode_automatic=yes
10663 hardcode_shlibpath_var=unsupported
10664 if test yes = "$lt_cv_ld_force_load"; then
10665 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\"`'
10667 else
10668 whole_archive_flag_spec=''
10670 link_all_deplibs=yes
10671 allow_undefined_flag=$_lt_dar_allow_undefined
10672 case $cc_basename in
10673 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10674 *) _lt_dar_can_shared=$GCC ;;
10675 esac
10676 if test yes = "$_lt_dar_can_shared"; then
10677 output_verbose_link_cmd=func_echo_all
10678 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10679 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10680 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"
10681 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"
10683 else
10684 ld_shlibs=no
10689 dgux*)
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_libdir_flag_spec='-L$libdir'
10692 hardcode_shlibpath_var=no
10695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10696 # support. Future versions do this automatically, but an explicit c++rt0.o
10697 # does not break anything, and helps significantly (at the cost of a little
10698 # extra space).
10699 freebsd2.2*)
10700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10701 hardcode_libdir_flag_spec='-R$libdir'
10702 hardcode_direct=yes
10703 hardcode_shlibpath_var=no
10706 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10707 freebsd2.*)
10708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10709 hardcode_direct=yes
10710 hardcode_minus_L=yes
10711 hardcode_shlibpath_var=no
10714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10715 freebsd* | dragonfly*)
10716 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10717 hardcode_libdir_flag_spec='-R$libdir'
10718 hardcode_direct=yes
10719 hardcode_shlibpath_var=no
10722 hpux9*)
10723 if test yes = "$GCC"; then
10724 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10725 else
10726 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10728 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10729 hardcode_libdir_separator=:
10730 hardcode_direct=yes
10732 # hardcode_minus_L: Not really in the search PATH,
10733 # but as the default location of the library.
10734 hardcode_minus_L=yes
10735 export_dynamic_flag_spec='$wl-E'
10738 hpux10*)
10739 if test yes,no = "$GCC,$with_gnu_ld"; then
10740 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10741 else
10742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10744 if test no = "$with_gnu_ld"; then
10745 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10746 hardcode_libdir_separator=:
10747 hardcode_direct=yes
10748 hardcode_direct_absolute=yes
10749 export_dynamic_flag_spec='$wl-E'
10750 # hardcode_minus_L: Not really in the search PATH,
10751 # but as the default location of the library.
10752 hardcode_minus_L=yes
10756 hpux11*)
10757 if test yes,no = "$GCC,$with_gnu_ld"; then
10758 case $host_cpu in
10759 hppa*64*)
10760 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 ia64*)
10763 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10768 esac
10769 else
10770 case $host_cpu in
10771 hppa*64*)
10772 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10774 ia64*)
10775 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10779 # Older versions of the 11.00 compiler do not understand -b yet
10780 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10782 $as_echo_n "checking if $CC understands -b... " >&6; }
10783 if ${lt_cv_prog_compiler__b+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 lt_cv_prog_compiler__b=no
10787 save_LDFLAGS=$LDFLAGS
10788 LDFLAGS="$LDFLAGS -b"
10789 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10791 # The linker can only warn and ignore the option if not recognized
10792 # So say no if there are warnings
10793 if test -s conftest.err; then
10794 # Append any errors to the config.log.
10795 cat conftest.err 1>&5
10796 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10798 if diff conftest.exp conftest.er2 >/dev/null; then
10799 lt_cv_prog_compiler__b=yes
10801 else
10802 lt_cv_prog_compiler__b=yes
10805 $RM -r conftest*
10806 LDFLAGS=$save_LDFLAGS
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10810 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10812 if test yes = "$lt_cv_prog_compiler__b"; then
10813 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10814 else
10815 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10819 esac
10821 if test no = "$with_gnu_ld"; then
10822 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10823 hardcode_libdir_separator=:
10825 case $host_cpu in
10826 hppa*64*|ia64*)
10827 hardcode_direct=no
10828 hardcode_shlibpath_var=no
10831 hardcode_direct=yes
10832 hardcode_direct_absolute=yes
10833 export_dynamic_flag_spec='$wl-E'
10835 # hardcode_minus_L: Not really in the search PATH,
10836 # but as the default location of the library.
10837 hardcode_minus_L=yes
10839 esac
10843 irix5* | irix6* | nonstopux*)
10844 if test yes = "$GCC"; then
10845 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'
10846 # Try to use the -exported_symbol ld option, if it does not
10847 # work, assume that -exports_file does not work either and
10848 # implicitly export all symbols.
10849 # This should be the same for all languages, so no per-tag cache variable.
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10851 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10852 if ${lt_cv_irix_exported_symbol+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 save_LDFLAGS=$LDFLAGS
10856 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 int foo (void) { return 0; }
10860 _ACEOF
10861 if ac_fn_c_try_link "$LINENO"; then :
10862 lt_cv_irix_exported_symbol=yes
10863 else
10864 lt_cv_irix_exported_symbol=no
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LDFLAGS=$save_LDFLAGS
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10871 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10872 if test yes = "$lt_cv_irix_exported_symbol"; then
10873 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'
10875 else
10876 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'
10877 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'
10879 archive_cmds_need_lc='no'
10880 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10881 hardcode_libdir_separator=:
10882 inherit_rpath=yes
10883 link_all_deplibs=yes
10886 linux*)
10887 case $cc_basename in
10888 tcc*)
10889 # Fabrice Bellard et al's Tiny C Compiler
10890 ld_shlibs=yes
10891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10893 esac
10896 netbsd*)
10897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10899 else
10900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10902 hardcode_libdir_flag_spec='-R$libdir'
10903 hardcode_direct=yes
10904 hardcode_shlibpath_var=no
10907 newsos6)
10908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10909 hardcode_direct=yes
10910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10911 hardcode_libdir_separator=:
10912 hardcode_shlibpath_var=no
10915 *nto* | *qnx*)
10918 openbsd* | bitrig*)
10919 if test -f /usr/libexec/ld.so; then
10920 hardcode_direct=yes
10921 hardcode_shlibpath_var=no
10922 hardcode_direct_absolute=yes
10923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10925 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10926 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10927 export_dynamic_flag_spec='$wl-E'
10928 else
10929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10930 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10932 else
10933 ld_shlibs=no
10937 os2*)
10938 hardcode_libdir_flag_spec='-L$libdir'
10939 hardcode_minus_L=yes
10940 allow_undefined_flag=unsupported
10941 shrext_cmds=.dll
10942 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10945 $ECHO EXPORTS >> $output_objdir/$libname.def~
10946 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10947 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10948 emximp -o $lib $output_objdir/$libname.def'
10949 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10950 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10951 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10952 $ECHO EXPORTS >> $output_objdir/$libname.def~
10953 prefix_cmds="$SED"~
10954 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10955 prefix_cmds="$prefix_cmds -e 1d";
10957 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10958 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10959 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10960 emximp -o $lib $output_objdir/$libname.def'
10961 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10962 enable_shared_with_static_runtimes=yes
10965 osf3*)
10966 if test yes = "$GCC"; then
10967 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10968 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'
10969 else
10970 allow_undefined_flag=' -expect_unresolved \*'
10971 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'
10973 archive_cmds_need_lc='no'
10974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10975 hardcode_libdir_separator=:
10978 osf4* | osf5*) # as osf3* with the addition of -msym flag
10979 if test yes = "$GCC"; then
10980 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10981 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'
10982 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10983 else
10984 allow_undefined_flag=' -expect_unresolved \*'
10985 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'
10986 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~
10987 $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'
10989 # Both c and cxx compiler support -rpath directly
10990 hardcode_libdir_flag_spec='-rpath $libdir'
10992 archive_cmds_need_lc='no'
10993 hardcode_libdir_separator=:
10996 solaris*)
10997 no_undefined_flag=' -z defs'
10998 if test yes = "$GCC"; then
10999 wlarc='$wl'
11000 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11002 $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'
11003 else
11004 case `$CC -V 2>&1` in
11005 *"Compilers 5.0"*)
11006 wlarc=''
11007 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11009 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11012 wlarc='$wl'
11013 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11014 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11015 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11017 esac
11019 hardcode_libdir_flag_spec='-R$libdir'
11020 hardcode_shlibpath_var=no
11021 case $host_os in
11022 solaris2.[0-5] | solaris2.[0-5].*) ;;
11024 # The compiler driver will combine and reorder linker options,
11025 # but understands '-z linker_flag'. GCC discards it without '$wl',
11026 # but is careful enough not to reorder.
11027 # Supported since Solaris 2.6 (maybe 2.5.1?)
11028 if test yes = "$GCC"; then
11029 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11030 else
11031 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11034 esac
11035 link_all_deplibs=yes
11038 sunos4*)
11039 if test sequent = "$host_vendor"; then
11040 # Use $CC to link under sequent, because it throws in some extra .o
11041 # files that make .init and .fini sections work.
11042 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11043 else
11044 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11046 hardcode_libdir_flag_spec='-L$libdir'
11047 hardcode_direct=yes
11048 hardcode_minus_L=yes
11049 hardcode_shlibpath_var=no
11052 sysv4)
11053 case $host_vendor in
11054 sni)
11055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056 hardcode_direct=yes # is this really true???
11058 siemens)
11059 ## LD is ld it makes a PLAMLIB
11060 ## CC just makes a GrossModule.
11061 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11062 reload_cmds='$CC -r -o $output$reload_objs'
11063 hardcode_direct=no
11065 motorola)
11066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11067 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11069 esac
11070 runpath_var='LD_RUN_PATH'
11071 hardcode_shlibpath_var=no
11074 sysv4.3*)
11075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11076 hardcode_shlibpath_var=no
11077 export_dynamic_flag_spec='-Bexport'
11080 sysv4*MP*)
11081 if test -d /usr/nec; then
11082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11083 hardcode_shlibpath_var=no
11084 runpath_var=LD_RUN_PATH
11085 hardcode_runpath_var=yes
11086 ld_shlibs=yes
11090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11091 no_undefined_flag='$wl-z,text'
11092 archive_cmds_need_lc=no
11093 hardcode_shlibpath_var=no
11094 runpath_var='LD_RUN_PATH'
11096 if test yes = "$GCC"; then
11097 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11099 else
11100 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11101 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11105 sysv5* | sco3.2v5* | sco5v6*)
11106 # Note: We CANNOT use -z defs as we might desire, because we do not
11107 # link with -lc, and that would cause any symbols used from libc to
11108 # always be unresolved, which means just about no library would
11109 # ever link correctly. If we're not using GNU ld we use -z text
11110 # though, which does catch some bad symbols but isn't as heavy-handed
11111 # as -z defs.
11112 no_undefined_flag='$wl-z,text'
11113 allow_undefined_flag='$wl-z,nodefs'
11114 archive_cmds_need_lc=no
11115 hardcode_shlibpath_var=no
11116 hardcode_libdir_flag_spec='$wl-R,$libdir'
11117 hardcode_libdir_separator=':'
11118 link_all_deplibs=yes
11119 export_dynamic_flag_spec='$wl-Bexport'
11120 runpath_var='LD_RUN_PATH'
11122 if test yes = "$GCC"; then
11123 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11124 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125 else
11126 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11127 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11131 uts4*)
11132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133 hardcode_libdir_flag_spec='-L$libdir'
11134 hardcode_shlibpath_var=no
11138 ld_shlibs=no
11140 esac
11142 if test sni = "$host_vendor"; then
11143 case $host in
11144 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11145 export_dynamic_flag_spec='$wl-Blargedynsym'
11147 esac
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11152 $as_echo "$ld_shlibs" >&6; }
11153 test no = "$ld_shlibs" && can_build_shared=no
11155 with_gnu_ld=$with_gnu_ld
11172 # Do we need to explicitly link libc?
11174 case "x$archive_cmds_need_lc" in
11175 x|xyes)
11176 # Assume -lc should be added
11177 archive_cmds_need_lc=yes
11179 if test yes,yes = "$GCC,$enable_shared"; then
11180 case $archive_cmds in
11181 *'~'*)
11182 # FIXME: we may have to deal with multi-command sequences.
11184 '$CC '*)
11185 # Test whether the compiler implicitly links with -lc since on some
11186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11187 # to ld, don't add -lc before -lgcc.
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11189 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11190 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 $RM conftest*
11194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11197 (eval $ac_compile) 2>&5
11198 ac_status=$?
11199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11200 test $ac_status = 0; } 2>conftest.err; then
11201 soname=conftest
11202 lib=conftest
11203 libobjs=conftest.$ac_objext
11204 deplibs=
11205 wl=$lt_prog_compiler_wl
11206 pic_flag=$lt_prog_compiler_pic
11207 compiler_flags=-v
11208 linker_flags=-v
11209 verstring=
11210 output_objdir=.
11211 libname=conftest
11212 lt_save_allow_undefined_flag=$allow_undefined_flag
11213 allow_undefined_flag=
11214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11215 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11216 ac_status=$?
11217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11218 test $ac_status = 0; }
11219 then
11220 lt_cv_archive_cmds_need_lc=no
11221 else
11222 lt_cv_archive_cmds_need_lc=yes
11224 allow_undefined_flag=$lt_save_allow_undefined_flag
11225 else
11226 cat conftest.err 1>&5
11228 $RM conftest*
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11232 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11233 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11235 esac
11238 esac
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11392 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11394 if test yes = "$GCC"; then
11395 case $host_os in
11396 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11397 *) lt_awk_arg='/^libraries:/' ;;
11398 esac
11399 case $host_os in
11400 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11401 *) lt_sed_strip_eq='s|=/|/|g' ;;
11402 esac
11403 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11404 case $lt_search_path_spec in
11405 *\;*)
11406 # if the path contains ";" then we assume it to be the separator
11407 # otherwise default to the standard path separator (i.e. ":") - it is
11408 # assumed that no part of a normal pathname contains ";" but that should
11409 # okay in the real world where ";" in dirpaths is itself problematic.
11410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11415 esac
11416 # Ok, now we have the path, separated by spaces, we can step through it
11417 # and add multilib dir if necessary...
11418 lt_tmp_lt_search_path_spec=
11419 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11420 # ...but if some path component already ends with the multilib dir we assume
11421 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11422 case "$lt_multi_os_dir; $lt_search_path_spec " in
11423 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11424 lt_multi_os_dir=
11426 esac
11427 for lt_sys_path in $lt_search_path_spec; do
11428 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11429 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11430 elif test -n "$lt_multi_os_dir"; then
11431 test -d "$lt_sys_path" && \
11432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11434 done
11435 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11436 BEGIN {RS = " "; FS = "/|\n";} {
11437 lt_foo = "";
11438 lt_count = 0;
11439 for (lt_i = NF; lt_i > 0; lt_i--) {
11440 if ($lt_i != "" && $lt_i != ".") {
11441 if ($lt_i == "..") {
11442 lt_count++;
11443 } else {
11444 if (lt_count == 0) {
11445 lt_foo = "/" $lt_i lt_foo;
11446 } else {
11447 lt_count--;
11452 if (lt_foo != "") { lt_freq[lt_foo]++; }
11453 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11455 # AWK program above erroneously prepends '/' to C:/dos/paths
11456 # for these hosts.
11457 case $host_os in
11458 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11459 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11460 esac
11461 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11462 else
11463 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11465 library_names_spec=
11466 libname_spec='lib$name'
11467 soname_spec=
11468 shrext_cmds=.so
11469 postinstall_cmds=
11470 postuninstall_cmds=
11471 finish_cmds=
11472 finish_eval=
11473 shlibpath_var=
11474 shlibpath_overrides_runpath=unknown
11475 version_type=none
11476 dynamic_linker="$host_os ld.so"
11477 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11478 need_lib_prefix=unknown
11479 hardcode_into_libs=no
11481 # when you set need_version to no, make sure it does not cause -set_version
11482 # flags to be left without arguments
11483 need_version=unknown
11487 case $host_os in
11488 aix3*)
11489 version_type=linux # correct to gnu/linux during the next big refactor
11490 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11491 shlibpath_var=LIBPATH
11493 # AIX 3 has no versioning support, so we append a major version to the name.
11494 soname_spec='$libname$release$shared_ext$major'
11497 aix[4-9]*)
11498 version_type=linux # correct to gnu/linux during the next big refactor
11499 need_lib_prefix=no
11500 need_version=no
11501 hardcode_into_libs=yes
11502 if test ia64 = "$host_cpu"; then
11503 # AIX 5 supports IA64
11504 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11505 shlibpath_var=LD_LIBRARY_PATH
11506 else
11507 # With GCC up to 2.95.x, collect2 would create an import file
11508 # for dependence libraries. The import file would start with
11509 # the line '#! .'. This would cause the generated library to
11510 # depend on '.', always an invalid library. This was fixed in
11511 # development snapshots of GCC prior to 3.0.
11512 case $host_os in
11513 aix4 | aix4.[01] | aix4.[01].*)
11514 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11515 echo ' yes '
11516 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11518 else
11519 can_build_shared=no
11522 esac
11523 # Using Import Files as archive members, it is possible to support
11524 # filename-based versioning of shared library archives on AIX. While
11525 # this would work for both with and without runtime linking, it will
11526 # prevent static linking of such archives. So we do filename-based
11527 # shared library versioning with .so extension only, which is used
11528 # when both runtime linking and shared linking is enabled.
11529 # Unfortunately, runtime linking may impact performance, so we do
11530 # not want this to be the default eventually. Also, we use the
11531 # versioned .so libs for executables only if there is the -brtl
11532 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11533 # To allow for filename-based versioning support, we need to create
11534 # libNAME.so.V as an archive file, containing:
11535 # *) an Import File, referring to the versioned filename of the
11536 # archive as well as the shared archive member, telling the
11537 # bitwidth (32 or 64) of that shared object, and providing the
11538 # list of exported symbols of that shared object, eventually
11539 # decorated with the 'weak' keyword
11540 # *) the shared object with the F_LOADONLY flag set, to really avoid
11541 # it being seen by the linker.
11542 # At run time we better use the real file rather than another symlink,
11543 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11545 case $with_aix_soname,$aix_use_runtimelinking in
11546 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11547 # soname into executable. Probably we can add versioning support to
11548 # collect2, so additional links can be useful in future.
11549 aix,yes) # traditional libtool
11550 dynamic_linker='AIX unversionable lib.so'
11551 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11552 # instead of lib<name>.a to let people know that these are not
11553 # typical AIX shared libraries.
11554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11556 aix,no) # traditional AIX only
11557 dynamic_linker='AIX lib.a(lib.so.V)'
11558 # We preserve .a as extension for shared libraries through AIX4.2
11559 # and later when we are not doing run time linking.
11560 library_names_spec='$libname$release.a $libname.a'
11561 soname_spec='$libname$release$shared_ext$major'
11563 svr4,*) # full svr4 only
11564 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11565 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11566 # We do not specify a path in Import Files, so LIBPATH fires.
11567 shlibpath_overrides_runpath=yes
11569 *,yes) # both, prefer svr4
11570 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11571 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11572 # unpreferred sharedlib libNAME.a needs extra handling
11573 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11574 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11575 # We do not specify a path in Import Files, so LIBPATH fires.
11576 shlibpath_overrides_runpath=yes
11578 *,no) # both, prefer aix
11579 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11580 library_names_spec='$libname$release.a $libname.a'
11581 soname_spec='$libname$release$shared_ext$major'
11582 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11583 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11584 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11586 esac
11587 shlibpath_var=LIBPATH
11591 amigaos*)
11592 case $host_cpu in
11593 powerpc)
11594 # Since July 2007 AmigaOS4 officially supports .so libraries.
11595 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598 m68k)
11599 library_names_spec='$libname.ixlibrary $libname.a'
11600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11601 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11603 esac
11606 beos*)
11607 library_names_spec='$libname$shared_ext'
11608 dynamic_linker="$host_os ld.so"
11609 shlibpath_var=LIBRARY_PATH
11612 bsdi[45]*)
11613 version_type=linux # correct to gnu/linux during the next big refactor
11614 need_version=no
11615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11616 soname_spec='$libname$release$shared_ext$major'
11617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11621 # the default ld.so.conf also contains /usr/contrib/lib and
11622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11623 # libtool to hard-code these into programs
11626 cygwin* | mingw* | pw32* | cegcc*)
11627 version_type=windows
11628 shrext_cmds=.dll
11629 need_version=no
11630 need_lib_prefix=no
11632 case $GCC,$cc_basename in
11633 yes,*)
11634 # gcc
11635 library_names_spec='$libname.dll.a'
11636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11637 postinstall_cmds='base_file=`basename \$file`~
11638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11639 dldir=$destdir/`dirname \$dlpath`~
11640 test -d \$dldir || mkdir -p \$dldir~
11641 $install_prog $dir/$dlname \$dldir/$dlname~
11642 chmod a+x \$dldir/$dlname~
11643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11647 dlpath=$dir/\$dldll~
11648 $RM \$dlpath'
11649 shlibpath_overrides_runpath=yes
11651 case $host_os in
11652 cygwin*)
11653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11654 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11658 mingw* | cegcc*)
11659 # MinGW DLLs use traditional 'lib' prefix
11660 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11662 pw32*)
11663 # pw32 DLLs use 'pw' prefix rather than 'lib'
11664 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11666 esac
11667 dynamic_linker='Win32 ld.exe'
11670 *,cl*)
11671 # Native MSVC
11672 libname_spec='$name'
11673 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11674 library_names_spec='$libname.dll.lib'
11676 case $build_os in
11677 mingw*)
11678 sys_lib_search_path_spec=
11679 lt_save_ifs=$IFS
11680 IFS=';'
11681 for lt_path in $LIB
11683 IFS=$lt_save_ifs
11684 # Let DOS variable expansion print the short 8.3 style file name.
11685 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11686 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11687 done
11688 IFS=$lt_save_ifs
11689 # Convert to MSYS style.
11690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11692 cygwin*)
11693 # Convert to unix form, then to dos form, then back to unix form
11694 # but this time dos style (no spaces!) so that the unix form looks
11695 # like /cygdrive/c/PROGRA~1:/cygdr...
11696 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11697 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11698 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11701 sys_lib_search_path_spec=$LIB
11702 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11703 # It is most probably a Windows format PATH.
11704 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11705 else
11706 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11708 # FIXME: find the short name or the path components, as spaces are
11709 # common. (e.g. "Program Files" -> "PROGRA~1")
11711 esac
11713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11714 postinstall_cmds='base_file=`basename \$file`~
11715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11716 dldir=$destdir/`dirname \$dlpath`~
11717 test -d \$dldir || mkdir -p \$dldir~
11718 $install_prog $dir/$dlname \$dldir/$dlname'
11719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11720 dlpath=$dir/\$dldll~
11721 $RM \$dlpath'
11722 shlibpath_overrides_runpath=yes
11723 dynamic_linker='Win32 link.exe'
11727 # Assume MSVC wrapper
11728 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11729 dynamic_linker='Win32 ld.exe'
11731 esac
11732 # FIXME: first we should search . and the directory the executable is in
11733 shlibpath_var=PATH
11736 darwin* | rhapsody*)
11737 dynamic_linker="$host_os dyld"
11738 version_type=darwin
11739 need_lib_prefix=no
11740 need_version=no
11741 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11742 soname_spec='$libname$release$major$shared_ext'
11743 shlibpath_overrides_runpath=yes
11744 shlibpath_var=DYLD_LIBRARY_PATH
11745 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11747 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11751 dgux*)
11752 version_type=linux # correct to gnu/linux during the next big refactor
11753 need_lib_prefix=no
11754 need_version=no
11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756 soname_spec='$libname$release$shared_ext$major'
11757 shlibpath_var=LD_LIBRARY_PATH
11760 freebsd* | dragonfly*)
11761 # DragonFly does not have aout. When/if they implement a new
11762 # versioning mechanism, adjust this.
11763 if test -x /usr/bin/objformat; then
11764 objformat=`/usr/bin/objformat`
11765 else
11766 case $host_os in
11767 freebsd[23].*) objformat=aout ;;
11768 *) objformat=elf ;;
11769 esac
11771 version_type=freebsd-$objformat
11772 case $version_type in
11773 freebsd-elf*)
11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775 soname_spec='$libname$release$shared_ext$major'
11776 need_version=no
11777 need_lib_prefix=no
11779 freebsd-*)
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11781 need_version=yes
11783 esac
11784 shlibpath_var=LD_LIBRARY_PATH
11785 case $host_os in
11786 freebsd2.*)
11787 shlibpath_overrides_runpath=yes
11789 freebsd3.[01]* | freebsdelf3.[01]*)
11790 shlibpath_overrides_runpath=yes
11791 hardcode_into_libs=yes
11793 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11794 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11795 shlibpath_overrides_runpath=no
11796 hardcode_into_libs=yes
11798 *) # from 4.6 on, and DragonFly
11799 shlibpath_overrides_runpath=yes
11800 hardcode_into_libs=yes
11802 esac
11805 haiku*)
11806 version_type=linux # correct to gnu/linux during the next big refactor
11807 need_lib_prefix=no
11808 need_version=no
11809 dynamic_linker="$host_os runtime_loader"
11810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11811 soname_spec='$libname$release$shared_ext$major'
11812 shlibpath_var=LIBRARY_PATH
11813 shlibpath_overrides_runpath=no
11814 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11815 hardcode_into_libs=yes
11818 hpux9* | hpux10* | hpux11*)
11819 # Give a soname corresponding to the major version so that dld.sl refuses to
11820 # link against other versions.
11821 version_type=sunos
11822 need_lib_prefix=no
11823 need_version=no
11824 case $host_cpu in
11825 ia64*)
11826 shrext_cmds='.so'
11827 hardcode_into_libs=yes
11828 dynamic_linker="$host_os dld.so"
11829 shlibpath_var=LD_LIBRARY_PATH
11830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11832 soname_spec='$libname$release$shared_ext$major'
11833 if test 32 = "$HPUX_IA64_MODE"; then
11834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11835 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11836 else
11837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11838 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11841 hppa*64*)
11842 shrext_cmds='.sl'
11843 hardcode_into_libs=yes
11844 dynamic_linker="$host_os dld.sl"
11845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848 soname_spec='$libname$release$shared_ext$major'
11849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11853 shrext_cmds='.sl'
11854 dynamic_linker="$host_os dld.sl"
11855 shlibpath_var=SHLIB_PATH
11856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858 soname_spec='$libname$release$shared_ext$major'
11860 esac
11861 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11862 postinstall_cmds='chmod 555 $lib'
11863 # or fails outright, so override atomically:
11864 install_override_mode=555
11867 interix[3-9]*)
11868 version_type=linux # correct to gnu/linux during the next big refactor
11869 need_lib_prefix=no
11870 need_version=no
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=no
11876 hardcode_into_libs=yes
11879 irix5* | irix6* | nonstopux*)
11880 case $host_os in
11881 nonstopux*) version_type=nonstopux ;;
11883 if test yes = "$lt_cv_prog_gnu_ld"; then
11884 version_type=linux # correct to gnu/linux during the next big refactor
11885 else
11886 version_type=irix
11887 fi ;;
11888 esac
11889 need_lib_prefix=no
11890 need_version=no
11891 soname_spec='$libname$release$shared_ext$major'
11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11893 case $host_os in
11894 irix5* | nonstopux*)
11895 libsuff= shlibsuff=
11898 case $LD in # libtool.m4 will add one of these switches to LD
11899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11900 libsuff= shlibsuff= libmagic=32-bit;;
11901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11902 libsuff=32 shlibsuff=N32 libmagic=N32;;
11903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11905 *) libsuff= shlibsuff= libmagic=never-match;;
11906 esac
11908 esac
11909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11910 shlibpath_overrides_runpath=no
11911 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11912 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11913 hardcode_into_libs=yes
11916 # No shared lib support for Linux oldld, aout, or coff.
11917 linux*oldld* | linux*aout* | linux*coff*)
11918 dynamic_linker=no
11921 linux*android*)
11922 version_type=none # Android doesn't support versioned libraries.
11923 need_lib_prefix=no
11924 need_version=no
11925 library_names_spec='$libname$release$shared_ext'
11926 soname_spec='$libname$release$shared_ext'
11927 finish_cmds=
11928 shlibpath_var=LD_LIBRARY_PATH
11929 shlibpath_overrides_runpath=yes
11931 # This implies no fast_install, which is unacceptable.
11932 # Some rework will be needed to allow for fast_install
11933 # before this can be enabled.
11934 hardcode_into_libs=yes
11936 dynamic_linker='Android linker'
11937 # Don't embed -rpath directories since the linker doesn't support them.
11938 hardcode_libdir_flag_spec='-L$libdir'
11941 # This must be glibc/ELF.
11942 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11943 version_type=linux # correct to gnu/linux during the next big refactor
11944 need_lib_prefix=no
11945 need_version=no
11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11947 soname_spec='$libname$release$shared_ext$major'
11948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=no
11952 # Some binutils ld are patched to set DT_RUNPATH
11953 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 lt_cv_shlibpath_overrides_runpath=no
11957 save_LDFLAGS=$LDFLAGS
11958 save_libdir=$libdir
11959 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11960 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11965 main ()
11969 return 0;
11971 _ACEOF
11972 if ac_fn_c_try_link "$LINENO"; then :
11973 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11974 lt_cv_shlibpath_overrides_runpath=yes
11977 rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LDFLAGS=$save_LDFLAGS
11980 libdir=$save_libdir
11984 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11986 # This implies no fast_install, which is unacceptable.
11987 # Some rework will be needed to allow for fast_install
11988 # before this can be enabled.
11989 hardcode_into_libs=yes
11991 # Ideally, we could use ldconfig to report *all* directores which are
11992 # searched for libraries, however this is still not possible. Aside from not
11993 # being certain /sbin/ldconfig is available, command
11994 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11995 # even though it is searched at run-time. Try to do the best guess by
11996 # appending ld.so.conf contents (and includes) to the search path.
11997 if test -f /etc/ld.so.conf; then
11998 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' ' '`
11999 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12002 # We used to test for /lib/ld.so.1 and disable shared libraries on
12003 # powerpc, because MkLinux only supported shared libraries with the
12004 # GNU dynamic linker. Since this was broken with cross compilers,
12005 # most powerpc-linux boxes support dynamic linking these days and
12006 # people can always --disable-shared, the test was removed, and we
12007 # assume the GNU/Linux dynamic linker is in use.
12008 dynamic_linker='GNU/Linux ld.so'
12011 netbsd*)
12012 version_type=sunos
12013 need_lib_prefix=no
12014 need_version=no
12015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12016 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12018 dynamic_linker='NetBSD (a.out) ld.so'
12019 else
12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12021 soname_spec='$libname$release$shared_ext$major'
12022 dynamic_linker='NetBSD ld.elf_so'
12024 shlibpath_var=LD_LIBRARY_PATH
12025 shlibpath_overrides_runpath=yes
12026 hardcode_into_libs=yes
12029 newsos6)
12030 version_type=linux # correct to gnu/linux during the next big refactor
12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 shlibpath_overrides_runpath=yes
12036 *nto* | *qnx*)
12037 version_type=qnx
12038 need_lib_prefix=no
12039 need_version=no
12040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041 soname_spec='$libname$release$shared_ext$major'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 shlibpath_overrides_runpath=no
12044 hardcode_into_libs=yes
12045 dynamic_linker='ldqnx.so'
12048 openbsd* | bitrig*)
12049 version_type=sunos
12050 sys_lib_dlsearch_path_spec=/usr/lib
12051 need_lib_prefix=no
12052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12053 need_version=no
12054 else
12055 need_version=yes
12057 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12059 shlibpath_var=LD_LIBRARY_PATH
12060 shlibpath_overrides_runpath=yes
12063 os2*)
12064 libname_spec='$name'
12065 version_type=windows
12066 shrext_cmds=.dll
12067 need_version=no
12068 need_lib_prefix=no
12069 # OS/2 can only load a DLL with a base name of 8 characters or less.
12070 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12071 v=$($ECHO $release$versuffix | tr -d .-);
12072 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12073 $ECHO $n$v`$shared_ext'
12074 library_names_spec='${libname}_dll.$libext'
12075 dynamic_linker='OS/2 ld.exe'
12076 shlibpath_var=BEGINLIBPATH
12077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12079 postinstall_cmds='base_file=`basename \$file`~
12080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12081 dldir=$destdir/`dirname \$dlpath`~
12082 test -d \$dldir || mkdir -p \$dldir~
12083 $install_prog $dir/$dlname \$dldir/$dlname~
12084 chmod a+x \$dldir/$dlname~
12085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12089 dlpath=$dir/\$dldll~
12090 $RM \$dlpath'
12093 osf3* | osf4* | osf5*)
12094 version_type=osf
12095 need_lib_prefix=no
12096 need_version=no
12097 soname_spec='$libname$release$shared_ext$major'
12098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12099 shlibpath_var=LD_LIBRARY_PATH
12100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12104 rdos*)
12105 dynamic_linker=no
12108 solaris*)
12109 version_type=linux # correct to gnu/linux during the next big refactor
12110 need_lib_prefix=no
12111 need_version=no
12112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12113 soname_spec='$libname$release$shared_ext$major'
12114 shlibpath_var=LD_LIBRARY_PATH
12115 shlibpath_overrides_runpath=yes
12116 hardcode_into_libs=yes
12117 # ldd complains unless libraries are executable
12118 postinstall_cmds='chmod +x $lib'
12121 sunos4*)
12122 version_type=sunos
12123 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12125 shlibpath_var=LD_LIBRARY_PATH
12126 shlibpath_overrides_runpath=yes
12127 if test yes = "$with_gnu_ld"; then
12128 need_lib_prefix=no
12130 need_version=yes
12133 sysv4 | sysv4.3*)
12134 version_type=linux # correct to gnu/linux during the next big refactor
12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12136 soname_spec='$libname$release$shared_ext$major'
12137 shlibpath_var=LD_LIBRARY_PATH
12138 case $host_vendor in
12139 sni)
12140 shlibpath_overrides_runpath=no
12141 need_lib_prefix=no
12142 runpath_var=LD_RUN_PATH
12144 siemens)
12145 need_lib_prefix=no
12147 motorola)
12148 need_lib_prefix=no
12149 need_version=no
12150 shlibpath_overrides_runpath=no
12151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12153 esac
12156 sysv4*MP*)
12157 if test -d /usr/nec; then
12158 version_type=linux # correct to gnu/linux during the next big refactor
12159 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12160 soname_spec='$libname$shared_ext.$major'
12161 shlibpath_var=LD_LIBRARY_PATH
12165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12166 version_type=sco
12167 need_lib_prefix=no
12168 need_version=no
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12170 soname_spec='$libname$release$shared_ext$major'
12171 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=yes
12173 hardcode_into_libs=yes
12174 if test yes = "$with_gnu_ld"; then
12175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12176 else
12177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12178 case $host_os in
12179 sco3.2v5*)
12180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12182 esac
12184 sys_lib_dlsearch_path_spec='/usr/lib'
12187 tpf*)
12188 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12189 version_type=linux # correct to gnu/linux during the next big refactor
12190 need_lib_prefix=no
12191 need_version=no
12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12193 shlibpath_var=LD_LIBRARY_PATH
12194 shlibpath_overrides_runpath=no
12195 hardcode_into_libs=yes
12198 uts4*)
12199 version_type=linux # correct to gnu/linux during the next big refactor
12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12201 soname_spec='$libname$release$shared_ext$major'
12202 shlibpath_var=LD_LIBRARY_PATH
12206 dynamic_linker=no
12208 esac
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12210 $as_echo "$dynamic_linker" >&6; }
12211 test no = "$dynamic_linker" && can_build_shared=no
12213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12214 if test yes = "$GCC"; then
12215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12218 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12219 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12222 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12223 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12226 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12227 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12229 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12230 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12232 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12233 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12332 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12333 hardcode_action=
12334 if test -n "$hardcode_libdir_flag_spec" ||
12335 test -n "$runpath_var" ||
12336 test yes = "$hardcode_automatic"; then
12338 # We can hardcode non-existent directories.
12339 if test no != "$hardcode_direct" &&
12340 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12341 # have to relink, otherwise we might link with an installed library
12342 # when we should be linking with a yet-to-be-installed one
12343 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12344 test no != "$hardcode_minus_L"; then
12345 # Linking always hardcodes the temporary library directory.
12346 hardcode_action=relink
12347 else
12348 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12349 hardcode_action=immediate
12351 else
12352 # We cannot hardcode anything, or else we can only hardcode existing
12353 # directories.
12354 hardcode_action=unsupported
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12357 $as_echo "$hardcode_action" >&6; }
12359 if test relink = "$hardcode_action" ||
12360 test yes = "$inherit_rpath"; then
12361 # Fast installation is not supported
12362 enable_fast_install=no
12363 elif test yes = "$shlibpath_overrides_runpath" ||
12364 test no = "$enable_shared"; then
12365 # Fast installation is not necessary
12366 enable_fast_install=needless
12374 if test yes != "$enable_dlopen"; then
12375 enable_dlopen=unknown
12376 enable_dlopen_self=unknown
12377 enable_dlopen_self_static=unknown
12378 else
12379 lt_cv_dlopen=no
12380 lt_cv_dlopen_libs=
12382 case $host_os in
12383 beos*)
12384 lt_cv_dlopen=load_add_on
12385 lt_cv_dlopen_libs=
12386 lt_cv_dlopen_self=yes
12389 mingw* | pw32* | cegcc*)
12390 lt_cv_dlopen=LoadLibrary
12391 lt_cv_dlopen_libs=
12394 cygwin*)
12395 lt_cv_dlopen=dlopen
12396 lt_cv_dlopen_libs=
12399 darwin*)
12400 # if libdl is installed we need to link against it
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12402 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12403 if ${ac_cv_lib_dl_dlopen+:} false; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-ldl $LIBS"
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 char dlopen ();
12419 main ()
12421 return dlopen ();
12423 return 0;
12425 _ACEOF
12426 if ac_fn_c_try_link "$LINENO"; then :
12427 ac_cv_lib_dl_dlopen=yes
12428 else
12429 ac_cv_lib_dl_dlopen=no
12431 rm -f core conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 LIBS=$ac_check_lib_save_LIBS
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12436 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12437 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12438 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12439 else
12441 lt_cv_dlopen=dyld
12442 lt_cv_dlopen_libs=
12443 lt_cv_dlopen_self=yes
12449 tpf*)
12450 # Don't try to run any link tests for TPF. We know it's impossible
12451 # because TPF is a cross-compiler, and we know how we open DSOs.
12452 lt_cv_dlopen=dlopen
12453 lt_cv_dlopen_libs=
12454 lt_cv_dlopen_self=no
12458 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12459 if test "x$ac_cv_func_shl_load" = xyes; then :
12460 lt_cv_dlopen=shl_load
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12463 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12464 if ${ac_cv_lib_dld_shl_load+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 ac_check_lib_save_LIBS=$LIBS
12468 LIBS="-ldld $LIBS"
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 char shl_load ();
12480 main ()
12482 return shl_load ();
12484 return 0;
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488 ac_cv_lib_dld_shl_load=yes
12489 else
12490 ac_cv_lib_dld_shl_load=no
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12497 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12498 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12499 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12500 else
12501 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12502 if test "x$ac_cv_func_dlopen" = xyes; then :
12503 lt_cv_dlopen=dlopen
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12506 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12507 if ${ac_cv_lib_dl_dlopen+:} false; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-ldl $LIBS"
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12515 /* Override any GCC internal prototype to avoid an error.
12516 Use char because int might match the return type of a GCC
12517 builtin and then its argument prototype would still apply. */
12518 #ifdef __cplusplus
12519 extern "C"
12520 #endif
12521 char dlopen ();
12523 main ()
12525 return dlopen ();
12527 return 0;
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12531 ac_cv_lib_dl_dlopen=yes
12532 else
12533 ac_cv_lib_dl_dlopen=no
12535 rm -f core conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12540 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12541 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12542 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12545 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12546 if ${ac_cv_lib_svld_dlopen+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 ac_check_lib_save_LIBS=$LIBS
12550 LIBS="-lsvld $LIBS"
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12554 /* Override any GCC internal prototype to avoid an error.
12555 Use char because int might match the return type of a GCC
12556 builtin and then its argument prototype would still apply. */
12557 #ifdef __cplusplus
12558 extern "C"
12559 #endif
12560 char dlopen ();
12562 main ()
12564 return dlopen ();
12566 return 0;
12568 _ACEOF
12569 if ac_fn_c_try_link "$LINENO"; then :
12570 ac_cv_lib_svld_dlopen=yes
12571 else
12572 ac_cv_lib_svld_dlopen=no
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12579 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12580 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12581 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12582 else
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12584 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12585 if ${ac_cv_lib_dld_dld_link+:} false; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-ldld $LIBS"
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char dld_link ();
12601 main ()
12603 return dld_link ();
12605 return 0;
12607 _ACEOF
12608 if ac_fn_c_try_link "$LINENO"; then :
12609 ac_cv_lib_dld_dld_link=yes
12610 else
12611 ac_cv_lib_dld_dld_link=no
12613 rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12618 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12619 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12620 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12639 esac
12641 if test no = "$lt_cv_dlopen"; then
12642 enable_dlopen=no
12643 else
12644 enable_dlopen=yes
12647 case $lt_cv_dlopen in
12648 dlopen)
12649 save_CPPFLAGS=$CPPFLAGS
12650 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12652 save_LDFLAGS=$LDFLAGS
12653 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12655 save_LIBS=$LIBS
12656 LIBS="$lt_cv_dlopen_libs $LIBS"
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12659 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12660 if ${lt_cv_dlopen_self+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 if test yes = "$cross_compiling"; then :
12664 lt_cv_dlopen_self=cross
12665 else
12666 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12667 lt_status=$lt_dlunknown
12668 cat > conftest.$ac_ext <<_LT_EOF
12669 #line $LINENO "configure"
12670 #include "confdefs.h"
12672 #if HAVE_DLFCN_H
12673 #include <dlfcn.h>
12674 #endif
12676 #include <stdio.h>
12678 #ifdef RTLD_GLOBAL
12679 # define LT_DLGLOBAL RTLD_GLOBAL
12680 #else
12681 # ifdef DL_GLOBAL
12682 # define LT_DLGLOBAL DL_GLOBAL
12683 # else
12684 # define LT_DLGLOBAL 0
12685 # endif
12686 #endif
12688 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12689 find out it does not work in some platform. */
12690 #ifndef LT_DLLAZY_OR_NOW
12691 # ifdef RTLD_LAZY
12692 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12693 # else
12694 # ifdef DL_LAZY
12695 # define LT_DLLAZY_OR_NOW DL_LAZY
12696 # else
12697 # ifdef RTLD_NOW
12698 # define LT_DLLAZY_OR_NOW RTLD_NOW
12699 # else
12700 # ifdef DL_NOW
12701 # define LT_DLLAZY_OR_NOW DL_NOW
12702 # else
12703 # define LT_DLLAZY_OR_NOW 0
12704 # endif
12705 # endif
12706 # endif
12707 # endif
12708 #endif
12710 /* When -fvisibility=hidden is used, assume the code has been annotated
12711 correspondingly for the symbols needed. */
12712 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12713 int fnord () __attribute__((visibility("default")));
12714 #endif
12716 int fnord () { return 42; }
12717 int main ()
12719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12720 int status = $lt_dlunknown;
12722 if (self)
12724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12725 else
12727 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12728 else puts (dlerror ());
12730 /* dlclose (self); */
12732 else
12733 puts (dlerror ());
12735 return status;
12737 _LT_EOF
12738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12739 (eval $ac_link) 2>&5
12740 ac_status=$?
12741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12742 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12743 (./conftest; exit; ) >&5 2>/dev/null
12744 lt_status=$?
12745 case x$lt_status in
12746 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12747 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12748 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12749 esac
12750 else :
12751 # compilation failed
12752 lt_cv_dlopen_self=no
12755 rm -fr conftest*
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12760 $as_echo "$lt_cv_dlopen_self" >&6; }
12762 if test yes = "$lt_cv_dlopen_self"; then
12763 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12765 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12766 if ${lt_cv_dlopen_self_static+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 if test yes = "$cross_compiling"; then :
12770 lt_cv_dlopen_self_static=cross
12771 else
12772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12773 lt_status=$lt_dlunknown
12774 cat > conftest.$ac_ext <<_LT_EOF
12775 #line $LINENO "configure"
12776 #include "confdefs.h"
12778 #if HAVE_DLFCN_H
12779 #include <dlfcn.h>
12780 #endif
12782 #include <stdio.h>
12784 #ifdef RTLD_GLOBAL
12785 # define LT_DLGLOBAL RTLD_GLOBAL
12786 #else
12787 # ifdef DL_GLOBAL
12788 # define LT_DLGLOBAL DL_GLOBAL
12789 # else
12790 # define LT_DLGLOBAL 0
12791 # endif
12792 #endif
12794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12795 find out it does not work in some platform. */
12796 #ifndef LT_DLLAZY_OR_NOW
12797 # ifdef RTLD_LAZY
12798 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12799 # else
12800 # ifdef DL_LAZY
12801 # define LT_DLLAZY_OR_NOW DL_LAZY
12802 # else
12803 # ifdef RTLD_NOW
12804 # define LT_DLLAZY_OR_NOW RTLD_NOW
12805 # else
12806 # ifdef DL_NOW
12807 # define LT_DLLAZY_OR_NOW DL_NOW
12808 # else
12809 # define LT_DLLAZY_OR_NOW 0
12810 # endif
12811 # endif
12812 # endif
12813 # endif
12814 #endif
12816 /* When -fvisibility=hidden is used, assume the code has been annotated
12817 correspondingly for the symbols needed. */
12818 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12819 int fnord () __attribute__((visibility("default")));
12820 #endif
12822 int fnord () { return 42; }
12823 int main ()
12825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12826 int status = $lt_dlunknown;
12828 if (self)
12830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12831 else
12833 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12834 else puts (dlerror ());
12836 /* dlclose (self); */
12838 else
12839 puts (dlerror ());
12841 return status;
12843 _LT_EOF
12844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12845 (eval $ac_link) 2>&5
12846 ac_status=$?
12847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12848 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12849 (./conftest; exit; ) >&5 2>/dev/null
12850 lt_status=$?
12851 case x$lt_status in
12852 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12853 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12854 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12855 esac
12856 else :
12857 # compilation failed
12858 lt_cv_dlopen_self_static=no
12861 rm -fr conftest*
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12866 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12869 CPPFLAGS=$save_CPPFLAGS
12870 LDFLAGS=$save_LDFLAGS
12871 LIBS=$save_LIBS
12873 esac
12875 case $lt_cv_dlopen_self in
12876 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12877 *) enable_dlopen_self=unknown ;;
12878 esac
12880 case $lt_cv_dlopen_self_static in
12881 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12882 *) enable_dlopen_self_static=unknown ;;
12883 esac
12902 striplib=
12903 old_striplib=
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12905 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12906 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12907 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12908 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 $as_echo "yes" >&6; }
12911 else
12912 # FIXME - insert some real tests, host_os isn't really good enough
12913 case $host_os in
12914 darwin*)
12915 if test -n "$STRIP"; then
12916 striplib="$STRIP -x"
12917 old_striplib="$STRIP -S"
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12919 $as_echo "yes" >&6; }
12920 else
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12929 esac
12943 # Report what library types will actually be built
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12947 $as_echo "$can_build_shared" >&6; }
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12950 $as_echo_n "checking whether to build shared libraries... " >&6; }
12951 test no = "$can_build_shared" && enable_shared=no
12953 # On AIX, shared libraries and static libraries use the same namespace, and
12954 # are all built from PIC.
12955 case $host_os in
12956 aix3*)
12957 test yes = "$enable_shared" && enable_static=no
12958 if test -n "$RANLIB"; then
12959 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12960 postinstall_cmds='$RANLIB $lib'
12964 aix[4-9]*)
12965 if test ia64 != "$host_cpu"; then
12966 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12967 yes,aix,yes) ;; # shared object as lib.so file only
12968 yes,svr4,*) ;; # shared object as lib.so archive member only
12969 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12970 esac
12973 esac
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12975 $as_echo "$enable_shared" >&6; }
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12978 $as_echo_n "checking whether to build static libraries... " >&6; }
12979 # Make sure either enable_shared or enable_static is yes.
12980 test yes = "$enable_shared" || enable_static=yes
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12982 $as_echo "$enable_static" >&6; }
12988 ac_ext=c
12989 ac_cpp='$CPP $CPPFLAGS'
12990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12994 CC=$lt_save_CC
13010 ac_config_commands="$ac_config_commands libtool"
13015 # Only expand once:
13020 # Extract the first word of "ar", so it can be a program name with args.
13021 set dummy ar; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if ${ac_cv_path_AR+:} false; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 case $AR in
13028 [\\/]* | ?:[\\/]*)
13029 ac_cv_path_AR="$AR" # Let the user override the test with a path.
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13035 IFS=$as_save_IFS
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13039 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
13040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13041 break 2
13043 done
13044 done
13045 IFS=$as_save_IFS
13047 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
13049 esac
13051 AR=$ac_cv_path_AR
13052 if test -n "$AR"; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13054 $as_echo "$AR" >&6; }
13055 else
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13061 # Extract the first word of "rm", so it can be a program name with args.
13062 set dummy rm; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if ${ac_cv_path_RM+:} false; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 case $RM in
13069 [\\/]* | ?:[\\/]*)
13070 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13080 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 break 2
13084 done
13085 done
13086 IFS=$as_save_IFS
13088 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
13090 esac
13092 RM=$ac_cv_path_RM
13093 if test -n "$RM"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13095 $as_echo "$RM" >&6; }
13096 else
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13102 # Extract the first word of "cp", so it can be a program name with args.
13103 set dummy cp; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105 $as_echo_n "checking for $ac_word... " >&6; }
13106 if ${ac_cv_path_CP+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 case $CP in
13110 [\\/]* | ?:[\\/]*)
13111 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13117 IFS=$as_save_IFS
13118 test -z "$as_dir" && as_dir=.
13119 for ac_exec_ext in '' $ac_executable_extensions; do
13120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13121 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123 break 2
13125 done
13126 done
13127 IFS=$as_save_IFS
13129 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
13131 esac
13133 CP=$ac_cv_path_CP
13134 if test -n "$CP"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13136 $as_echo "$CP" >&6; }
13137 else
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139 $as_echo "no" >&6; }
13143 # Extract the first word of "ln", so it can be a program name with args.
13144 set dummy ln; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if ${ac_cv_path_LN+:} false; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 case $LN in
13151 [\\/]* | ?:[\\/]*)
13152 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156 for as_dir in $PATH
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13162 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 break 2
13166 done
13167 done
13168 IFS=$as_save_IFS
13170 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
13172 esac
13174 LN=$ac_cv_path_LN
13175 if test -n "$LN"; then
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13177 $as_echo "$LN" >&6; }
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13184 # Extract the first word of "ls", so it can be a program name with args.
13185 set dummy ls; ac_word=$2
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187 $as_echo_n "checking for $ac_word... " >&6; }
13188 if ${ac_cv_path_LS+:} false; then :
13189 $as_echo_n "(cached) " >&6
13190 else
13191 case $LS in
13192 [\\/]* | ?:[\\/]*)
13193 ac_cv_path_LS="$LS" # Let the user override the test with a path.
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13203 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 break 2
13207 done
13208 done
13209 IFS=$as_save_IFS
13211 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
13213 esac
13215 LS=$ac_cv_path_LS
13216 if test -n "$LS"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
13218 $as_echo "$LS" >&6; }
13219 else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13225 # Extract the first word of "sed", so it can be a program name with args.
13226 set dummy sed; ac_word=$2
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228 $as_echo_n "checking for $ac_word... " >&6; }
13229 if ${ac_cv_path_SED+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 case $SED in
13233 [\\/]* | ?:[\\/]*)
13234 ac_cv_path_SED="$SED" # Let the user override the test with a path.
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13240 IFS=$as_save_IFS
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13244 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246 break 2
13248 done
13249 done
13250 IFS=$as_save_IFS
13252 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
13254 esac
13256 SED=$ac_cv_path_SED
13257 if test -n "$SED"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13259 $as_echo "$SED" >&6; }
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13266 # Extract the first word of "make", so it can be a program name with args.
13267 set dummy make; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 $as_echo_n "checking for $ac_word... " >&6; }
13270 if ${ac_cv_path_MAKE+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 case $MAKE in
13274 [\\/]* | ?:[\\/]*)
13275 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13285 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13289 done
13290 done
13291 IFS=$as_save_IFS
13294 esac
13296 MAKE=$ac_cv_path_MAKE
13297 if test -n "$MAKE"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
13299 $as_echo "$MAKE" >&6; }
13300 else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302 $as_echo "no" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13311 $as_echo_n "checking whether NLS is requested... " >&6; }
13312 # Check whether --enable-nls was given.
13313 if test "${enable_nls+set}" = set; then :
13314 enableval=$enable_nls; USE_NLS=$enableval
13315 else
13316 USE_NLS=yes
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13320 $as_echo "$USE_NLS" >&6; }
13327 # Prepare PATH_SEPARATOR.
13328 # The user is always right.
13329 if test "${PATH_SEPARATOR+set}" != set; then
13330 echo "#! /bin/sh" >conf$$.sh
13331 echo "exit 0" >>conf$$.sh
13332 chmod +x conf$$.sh
13333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13334 PATH_SEPARATOR=';'
13335 else
13336 PATH_SEPARATOR=:
13338 rm -f conf$$.sh
13341 # Find out how to test for executable files. Don't use a zero-byte file,
13342 # as systems may use methods other than mode bits to determine executability.
13343 cat >conf$$.file <<_ASEOF
13344 #! /bin/sh
13345 exit 0
13346 _ASEOF
13347 chmod +x conf$$.file
13348 if test -x conf$$.file >/dev/null 2>&1; then
13349 ac_executable_p="test -x"
13350 else
13351 ac_executable_p="test -f"
13353 rm -f conf$$.file
13355 # Extract the first word of "msgfmt", so it can be a program name with args.
13356 set dummy msgfmt; ac_word=$2
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358 $as_echo_n "checking for $ac_word... " >&6; }
13359 if ${ac_cv_path_MSGFMT+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 case "$MSGFMT" in
13363 [\\/]* | ?:[\\/]*)
13364 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13367 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13368 for ac_dir in $PATH; do
13369 IFS="$ac_save_IFS"
13370 test -z "$ac_dir" && ac_dir=.
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13373 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13374 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13375 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13376 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13377 break 2
13380 done
13381 done
13382 IFS="$ac_save_IFS"
13383 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13385 esac
13387 MSGFMT="$ac_cv_path_MSGFMT"
13388 if test "$MSGFMT" != ":"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13390 $as_echo "$MSGFMT" >&6; }
13391 else
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 $as_echo "no" >&6; }
13396 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13397 set dummy gmsgfmt; ac_word=$2
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399 $as_echo_n "checking for $ac_word... " >&6; }
13400 if ${ac_cv_path_GMSGFMT+:} false; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 case $GMSGFMT in
13404 [\\/]* | ?:[\\/]*)
13405 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13411 IFS=$as_save_IFS
13412 test -z "$as_dir" && as_dir=.
13413 for ac_exec_ext in '' $ac_executable_extensions; do
13414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13417 break 2
13419 done
13420 done
13421 IFS=$as_save_IFS
13423 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13425 esac
13427 GMSGFMT=$ac_cv_path_GMSGFMT
13428 if test -n "$GMSGFMT"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13430 $as_echo "$GMSGFMT" >&6; }
13431 else
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13438 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13439 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13440 *) MSGFMT_015=$MSGFMT ;;
13441 esac
13443 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13444 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13445 *) GMSGFMT_015=$GMSGFMT ;;
13446 esac
13450 # Prepare PATH_SEPARATOR.
13451 # The user is always right.
13452 if test "${PATH_SEPARATOR+set}" != set; then
13453 echo "#! /bin/sh" >conf$$.sh
13454 echo "exit 0" >>conf$$.sh
13455 chmod +x conf$$.sh
13456 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13457 PATH_SEPARATOR=';'
13458 else
13459 PATH_SEPARATOR=:
13461 rm -f conf$$.sh
13464 # Find out how to test for executable files. Don't use a zero-byte file,
13465 # as systems may use methods other than mode bits to determine executability.
13466 cat >conf$$.file <<_ASEOF
13467 #! /bin/sh
13468 exit 0
13469 _ASEOF
13470 chmod +x conf$$.file
13471 if test -x conf$$.file >/dev/null 2>&1; then
13472 ac_executable_p="test -x"
13473 else
13474 ac_executable_p="test -f"
13476 rm -f conf$$.file
13478 # Extract the first word of "xgettext", so it can be a program name with args.
13479 set dummy xgettext; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_path_XGETTEXT+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 case "$XGETTEXT" in
13486 [\\/]* | ?:[\\/]*)
13487 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13490 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13491 for ac_dir in $PATH; do
13492 IFS="$ac_save_IFS"
13493 test -z "$ac_dir" && ac_dir=.
13494 for ac_exec_ext in '' $ac_executable_extensions; do
13495 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13496 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13497 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13498 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13499 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13500 break 2
13503 done
13504 done
13505 IFS="$ac_save_IFS"
13506 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13508 esac
13510 XGETTEXT="$ac_cv_path_XGETTEXT"
13511 if test "$XGETTEXT" != ":"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13513 $as_echo "$XGETTEXT" >&6; }
13514 else
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516 $as_echo "no" >&6; }
13519 rm -f messages.po
13521 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13522 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13523 *) XGETTEXT_015=$XGETTEXT ;;
13524 esac
13528 # Prepare PATH_SEPARATOR.
13529 # The user is always right.
13530 if test "${PATH_SEPARATOR+set}" != set; then
13531 echo "#! /bin/sh" >conf$$.sh
13532 echo "exit 0" >>conf$$.sh
13533 chmod +x conf$$.sh
13534 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13535 PATH_SEPARATOR=';'
13536 else
13537 PATH_SEPARATOR=:
13539 rm -f conf$$.sh
13542 # Find out how to test for executable files. Don't use a zero-byte file,
13543 # as systems may use methods other than mode bits to determine executability.
13544 cat >conf$$.file <<_ASEOF
13545 #! /bin/sh
13546 exit 0
13547 _ASEOF
13548 chmod +x conf$$.file
13549 if test -x conf$$.file >/dev/null 2>&1; then
13550 ac_executable_p="test -x"
13551 else
13552 ac_executable_p="test -f"
13554 rm -f conf$$.file
13556 # Extract the first word of "msgmerge", so it can be a program name with args.
13557 set dummy msgmerge; ac_word=$2
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559 $as_echo_n "checking for $ac_word... " >&6; }
13560 if ${ac_cv_path_MSGMERGE+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 case "$MSGMERGE" in
13564 [\\/]* | ?:[\\/]*)
13565 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13568 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13569 for ac_dir in $PATH; do
13570 IFS="$ac_save_IFS"
13571 test -z "$ac_dir" && ac_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
13573 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13574 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13575 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13576 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13577 break 2
13580 done
13581 done
13582 IFS="$ac_save_IFS"
13583 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13585 esac
13587 MSGMERGE="$ac_cv_path_MSGMERGE"
13588 if test "$MSGMERGE" != ":"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13590 $as_echo "$MSGMERGE" >&6; }
13591 else
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13597 test -n "$localedir" || localedir='${datadir}/locale'
13600 ac_config_commands="$ac_config_commands po-directories"
13604 if test "X$prefix" = "XNONE"; then
13605 acl_final_prefix="$ac_default_prefix"
13606 else
13607 acl_final_prefix="$prefix"
13609 if test "X$exec_prefix" = "XNONE"; then
13610 acl_final_exec_prefix='${prefix}'
13611 else
13612 acl_final_exec_prefix="$exec_prefix"
13614 acl_save_prefix="$prefix"
13615 prefix="$acl_final_prefix"
13616 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13617 prefix="$acl_save_prefix"
13620 # Check whether --with-gnu-ld was given.
13621 if test "${with_gnu_ld+set}" = set; then :
13622 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13623 else
13624 with_gnu_ld=no
13627 # Prepare PATH_SEPARATOR.
13628 # The user is always right.
13629 if test "${PATH_SEPARATOR+set}" != set; then
13630 echo "#! /bin/sh" >conf$$.sh
13631 echo "exit 0" >>conf$$.sh
13632 chmod +x conf$$.sh
13633 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13634 PATH_SEPARATOR=';'
13635 else
13636 PATH_SEPARATOR=:
13638 rm -f conf$$.sh
13640 ac_prog=ld
13641 if test "$GCC" = yes; then
13642 # Check if gcc -print-prog-name=ld gives a path.
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13644 $as_echo_n "checking for ld used by GCC... " >&6; }
13645 case $host in
13646 *-*-mingw*)
13647 # gcc leaves a trailing carriage return which upsets mingw
13648 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13650 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13651 esac
13652 case $ac_prog in
13653 # Accept absolute paths.
13654 [\\/]* | [A-Za-z]:[\\/]*)
13655 re_direlt='/[^/][^/]*/\.\./'
13656 # Canonicalize the path of ld
13657 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13658 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13659 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13660 done
13661 test -z "$LD" && LD="$ac_prog"
13664 # If it fails, then pretend we aren't using GCC.
13665 ac_prog=ld
13668 # If it is relative, then search for the first ld in PATH.
13669 with_gnu_ld=unknown
13671 esac
13672 elif test "$with_gnu_ld" = yes; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13674 $as_echo_n "checking for GNU ld... " >&6; }
13675 else
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13677 $as_echo_n "checking for non-GNU ld... " >&6; }
13679 if ${acl_cv_path_LD+:} false; then :
13680 $as_echo_n "(cached) " >&6
13681 else
13682 if test -z "$LD"; then
13683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13684 for ac_dir in $PATH; do
13685 test -z "$ac_dir" && ac_dir=.
13686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13687 acl_cv_path_LD="$ac_dir/$ac_prog"
13688 # Check to see if the program is GNU ld. I'd rather use --version,
13689 # but apparently some GNU ld's only accept -v.
13690 # Break only if it was the GNU/non-GNU ld that we prefer.
13691 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13692 *GNU* | *'with BFD'*)
13693 test "$with_gnu_ld" != no && break ;;
13695 test "$with_gnu_ld" != yes && break ;;
13696 esac
13698 done
13699 IFS="$ac_save_ifs"
13700 else
13701 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13705 LD="$acl_cv_path_LD"
13706 if test -n "$LD"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13708 $as_echo "$LD" >&6; }
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13713 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13715 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13716 if ${acl_cv_prog_gnu_ld+:} false; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13720 case `$LD -v 2>&1 </dev/null` in
13721 *GNU* | *'with BFD'*)
13722 acl_cv_prog_gnu_ld=yes ;;
13724 acl_cv_prog_gnu_ld=no ;;
13725 esac
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13728 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13729 with_gnu_ld=$acl_cv_prog_gnu_ld
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13735 $as_echo_n "checking for shared library run path origin... " >&6; }
13736 if ${acl_cv_rpath+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13740 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13741 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13742 . ./conftest.sh
13743 rm -f ./conftest.sh
13744 acl_cv_rpath=done
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13748 $as_echo "$acl_cv_rpath" >&6; }
13749 wl="$acl_cv_wl"
13750 libext="$acl_cv_libext"
13751 shlibext="$acl_cv_shlibext"
13752 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13753 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13754 hardcode_direct="$acl_cv_hardcode_direct"
13755 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13756 # Check whether --enable-rpath was given.
13757 if test "${enable_rpath+set}" = set; then :
13758 enableval=$enable_rpath; :
13759 else
13760 enable_rpath=yes
13765 acl_libdirstem=lib
13766 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13767 if test -n "$searchpath"; then
13768 acl_save_IFS="${IFS= }"; IFS=":"
13769 for searchdir in $searchpath; do
13770 if test -d "$searchdir"; then
13771 case "$searchdir" in
13772 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13773 *) searchdir=`cd "$searchdir" && pwd`
13774 case "$searchdir" in
13775 */lib64 ) acl_libdirstem=lib64 ;;
13776 esac ;;
13777 esac
13779 done
13780 IFS="$acl_save_IFS"
13790 use_additional=yes
13792 acl_save_prefix="$prefix"
13793 prefix="$acl_final_prefix"
13794 acl_save_exec_prefix="$exec_prefix"
13795 exec_prefix="$acl_final_exec_prefix"
13797 eval additional_includedir=\"$includedir\"
13798 eval additional_libdir=\"$libdir\"
13800 exec_prefix="$acl_save_exec_prefix"
13801 prefix="$acl_save_prefix"
13804 # Check whether --with-libiconv-prefix was given.
13805 if test "${with_libiconv_prefix+set}" = set; then :
13806 withval=$with_libiconv_prefix;
13807 if test "X$withval" = "Xno"; then
13808 use_additional=no
13809 else
13810 if test "X$withval" = "X"; then
13812 acl_save_prefix="$prefix"
13813 prefix="$acl_final_prefix"
13814 acl_save_exec_prefix="$exec_prefix"
13815 exec_prefix="$acl_final_exec_prefix"
13817 eval additional_includedir=\"$includedir\"
13818 eval additional_libdir=\"$libdir\"
13820 exec_prefix="$acl_save_exec_prefix"
13821 prefix="$acl_save_prefix"
13823 else
13824 additional_includedir="$withval/include"
13825 additional_libdir="$withval/$acl_libdirstem"
13831 LIBICONV=
13832 LTLIBICONV=
13833 INCICONV=
13834 rpathdirs=
13835 ltrpathdirs=
13836 names_already_handled=
13837 names_next_round='iconv '
13838 while test -n "$names_next_round"; do
13839 names_this_round="$names_next_round"
13840 names_next_round=
13841 for name in $names_this_round; do
13842 already_handled=
13843 for n in $names_already_handled; do
13844 if test "$n" = "$name"; then
13845 already_handled=yes
13846 break
13848 done
13849 if test -z "$already_handled"; then
13850 names_already_handled="$names_already_handled $name"
13851 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13852 eval value=\"\$HAVE_LIB$uppername\"
13853 if test -n "$value"; then
13854 if test "$value" = yes; then
13855 eval value=\"\$LIB$uppername\"
13856 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13857 eval value=\"\$LTLIB$uppername\"
13858 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13859 else
13862 else
13863 found_dir=
13864 found_la=
13865 found_so=
13866 found_a=
13867 if test $use_additional = yes; then
13868 if test -n "$shlibext" \
13869 && { test -f "$additional_libdir/lib$name.$shlibext" \
13870 || { test "$shlibext" = dll \
13871 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13872 found_dir="$additional_libdir"
13873 if test -f "$additional_libdir/lib$name.$shlibext"; then
13874 found_so="$additional_libdir/lib$name.$shlibext"
13875 else
13876 found_so="$additional_libdir/lib$name.dll.a"
13878 if test -f "$additional_libdir/lib$name.la"; then
13879 found_la="$additional_libdir/lib$name.la"
13881 else
13882 if test -f "$additional_libdir/lib$name.$libext"; then
13883 found_dir="$additional_libdir"
13884 found_a="$additional_libdir/lib$name.$libext"
13885 if test -f "$additional_libdir/lib$name.la"; then
13886 found_la="$additional_libdir/lib$name.la"
13891 if test "X$found_dir" = "X"; then
13892 for x in $LDFLAGS $LTLIBICONV; do
13894 acl_save_prefix="$prefix"
13895 prefix="$acl_final_prefix"
13896 acl_save_exec_prefix="$exec_prefix"
13897 exec_prefix="$acl_final_exec_prefix"
13898 eval x=\"$x\"
13899 exec_prefix="$acl_save_exec_prefix"
13900 prefix="$acl_save_prefix"
13902 case "$x" in
13903 -L*)
13904 dir=`echo "X$x" | sed -e 's/^X-L//'`
13905 if test -n "$shlibext" \
13906 && { test -f "$dir/lib$name.$shlibext" \
13907 || { test "$shlibext" = dll \
13908 && test -f "$dir/lib$name.dll.a"; }; }; then
13909 found_dir="$dir"
13910 if test -f "$dir/lib$name.$shlibext"; then
13911 found_so="$dir/lib$name.$shlibext"
13912 else
13913 found_so="$dir/lib$name.dll.a"
13915 if test -f "$dir/lib$name.la"; then
13916 found_la="$dir/lib$name.la"
13918 else
13919 if test -f "$dir/lib$name.$libext"; then
13920 found_dir="$dir"
13921 found_a="$dir/lib$name.$libext"
13922 if test -f "$dir/lib$name.la"; then
13923 found_la="$dir/lib$name.la"
13928 esac
13929 if test "X$found_dir" != "X"; then
13930 break
13932 done
13934 if test "X$found_dir" != "X"; then
13935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13936 if test "X$found_so" != "X"; then
13937 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13938 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13939 else
13940 haveit=
13941 for x in $ltrpathdirs; do
13942 if test "X$x" = "X$found_dir"; then
13943 haveit=yes
13944 break
13946 done
13947 if test -z "$haveit"; then
13948 ltrpathdirs="$ltrpathdirs $found_dir"
13950 if test "$hardcode_direct" = yes; then
13951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13952 else
13953 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13954 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13955 haveit=
13956 for x in $rpathdirs; do
13957 if test "X$x" = "X$found_dir"; then
13958 haveit=yes
13959 break
13961 done
13962 if test -z "$haveit"; then
13963 rpathdirs="$rpathdirs $found_dir"
13965 else
13966 haveit=
13967 for x in $LDFLAGS $LIBICONV; do
13969 acl_save_prefix="$prefix"
13970 prefix="$acl_final_prefix"
13971 acl_save_exec_prefix="$exec_prefix"
13972 exec_prefix="$acl_final_exec_prefix"
13973 eval x=\"$x\"
13974 exec_prefix="$acl_save_exec_prefix"
13975 prefix="$acl_save_prefix"
13977 if test "X$x" = "X-L$found_dir"; then
13978 haveit=yes
13979 break
13981 done
13982 if test -z "$haveit"; then
13983 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13985 if test "$hardcode_minus_L" != no; then
13986 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13987 else
13988 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13993 else
13994 if test "X$found_a" != "X"; then
13995 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13996 else
13997 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14000 additional_includedir=
14001 case "$found_dir" in
14002 */$acl_libdirstem | */$acl_libdirstem/)
14003 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14004 additional_includedir="$basedir/include"
14006 esac
14007 if test "X$additional_includedir" != "X"; then
14008 if test "X$additional_includedir" != "X/usr/include"; then
14009 haveit=
14010 if test "X$additional_includedir" = "X/usr/local/include"; then
14011 if test -n "$GCC"; then
14012 case $host_os in
14013 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14014 esac
14017 if test -z "$haveit"; then
14018 for x in $CPPFLAGS $INCICONV; do
14020 acl_save_prefix="$prefix"
14021 prefix="$acl_final_prefix"
14022 acl_save_exec_prefix="$exec_prefix"
14023 exec_prefix="$acl_final_exec_prefix"
14024 eval x=\"$x\"
14025 exec_prefix="$acl_save_exec_prefix"
14026 prefix="$acl_save_prefix"
14028 if test "X$x" = "X-I$additional_includedir"; then
14029 haveit=yes
14030 break
14032 done
14033 if test -z "$haveit"; then
14034 if test -d "$additional_includedir"; then
14035 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14041 if test -n "$found_la"; then
14042 save_libdir="$libdir"
14043 case "$found_la" in
14044 */* | *\\*) . "$found_la" ;;
14045 *) . "./$found_la" ;;
14046 esac
14047 libdir="$save_libdir"
14048 for dep in $dependency_libs; do
14049 case "$dep" in
14050 -L*)
14051 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14052 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14053 haveit=
14054 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14055 if test -n "$GCC"; then
14056 case $host_os in
14057 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14058 esac
14061 if test -z "$haveit"; then
14062 haveit=
14063 for x in $LDFLAGS $LIBICONV; do
14065 acl_save_prefix="$prefix"
14066 prefix="$acl_final_prefix"
14067 acl_save_exec_prefix="$exec_prefix"
14068 exec_prefix="$acl_final_exec_prefix"
14069 eval x=\"$x\"
14070 exec_prefix="$acl_save_exec_prefix"
14071 prefix="$acl_save_prefix"
14073 if test "X$x" = "X-L$additional_libdir"; then
14074 haveit=yes
14075 break
14077 done
14078 if test -z "$haveit"; then
14079 if test -d "$additional_libdir"; then
14080 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14083 haveit=
14084 for x in $LDFLAGS $LTLIBICONV; do
14086 acl_save_prefix="$prefix"
14087 prefix="$acl_final_prefix"
14088 acl_save_exec_prefix="$exec_prefix"
14089 exec_prefix="$acl_final_exec_prefix"
14090 eval x=\"$x\"
14091 exec_prefix="$acl_save_exec_prefix"
14092 prefix="$acl_save_prefix"
14094 if test "X$x" = "X-L$additional_libdir"; then
14095 haveit=yes
14096 break
14098 done
14099 if test -z "$haveit"; then
14100 if test -d "$additional_libdir"; then
14101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14107 -R*)
14108 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14109 if test "$enable_rpath" != no; then
14110 haveit=
14111 for x in $rpathdirs; do
14112 if test "X$x" = "X$dir"; then
14113 haveit=yes
14114 break
14116 done
14117 if test -z "$haveit"; then
14118 rpathdirs="$rpathdirs $dir"
14120 haveit=
14121 for x in $ltrpathdirs; do
14122 if test "X$x" = "X$dir"; then
14123 haveit=yes
14124 break
14126 done
14127 if test -z "$haveit"; then
14128 ltrpathdirs="$ltrpathdirs $dir"
14132 -l*)
14133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14135 *.la)
14136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14139 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14142 esac
14143 done
14145 else
14146 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14147 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14151 done
14152 done
14153 if test "X$rpathdirs" != "X"; then
14154 if test -n "$hardcode_libdir_separator"; then
14155 alldirs=
14156 for found_dir in $rpathdirs; do
14157 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14158 done
14159 acl_save_libdir="$libdir"
14160 libdir="$alldirs"
14161 eval flag=\"$hardcode_libdir_flag_spec\"
14162 libdir="$acl_save_libdir"
14163 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14164 else
14165 for found_dir in $rpathdirs; do
14166 acl_save_libdir="$libdir"
14167 libdir="$found_dir"
14168 eval flag=\"$hardcode_libdir_flag_spec\"
14169 libdir="$acl_save_libdir"
14170 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14171 done
14174 if test "X$ltrpathdirs" != "X"; then
14175 for found_dir in $ltrpathdirs; do
14176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14177 done
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14205 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14206 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209 gt_save_LIBS="$LIBS"
14210 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14213 #include <CoreFoundation/CFPreferences.h>
14215 main ()
14217 CFPreferencesCopyAppValue(NULL, NULL)
14219 return 0;
14221 _ACEOF
14222 if ac_fn_c_try_link "$LINENO"; then :
14223 gt_cv_func_CFPreferencesCopyAppValue=yes
14224 else
14225 gt_cv_func_CFPreferencesCopyAppValue=no
14227 rm -f core conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229 LIBS="$gt_save_LIBS"
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14232 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14233 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14235 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14239 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14240 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14241 $as_echo_n "(cached) " >&6
14242 else
14243 gt_save_LIBS="$LIBS"
14244 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 #include <CoreFoundation/CFLocale.h>
14249 main ()
14251 CFLocaleCopyCurrent();
14253 return 0;
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 gt_cv_func_CFLocaleCopyCurrent=yes
14258 else
14259 gt_cv_func_CFLocaleCopyCurrent=no
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14263 LIBS="$gt_save_LIBS"
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14266 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14267 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14269 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14272 INTL_MACOSX_LIBS=
14273 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14274 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14282 LIBINTL=
14283 LTLIBINTL=
14284 POSUB=
14286 case " $gt_needs " in
14287 *" need-formatstring-macros "*) gt_api_version=3 ;;
14288 *" need-ngettext "*) gt_api_version=2 ;;
14289 *) gt_api_version=1 ;;
14290 esac
14291 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14292 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14294 if test "$USE_NLS" = "yes"; then
14295 gt_use_preinstalled_gnugettext=no
14298 if test $gt_api_version -ge 3; then
14299 gt_revision_test_code='
14300 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14301 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14302 #endif
14303 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14305 else
14306 gt_revision_test_code=
14308 if test $gt_api_version -ge 2; then
14309 gt_expression_test_code=' + * ngettext ("", "", 0)'
14310 else
14311 gt_expression_test_code=
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14315 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14316 if eval \${$gt_func_gnugettext_libc+:} false; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 #include <libintl.h>
14322 $gt_revision_test_code
14323 extern int _nl_msg_cat_cntr;
14324 extern int *_nl_domain_bindings;
14326 main ()
14328 bindtextdomain ("", "");
14329 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14331 return 0;
14333 _ACEOF
14334 if ac_fn_c_try_link "$LINENO"; then :
14335 eval "$gt_func_gnugettext_libc=yes"
14336 else
14337 eval "$gt_func_gnugettext_libc=no"
14339 rm -f core conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
14342 eval ac_res=\$$gt_func_gnugettext_libc
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14344 $as_echo "$ac_res" >&6; }
14346 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14352 am_save_CPPFLAGS="$CPPFLAGS"
14354 for element in $INCICONV; do
14355 haveit=
14356 for x in $CPPFLAGS; do
14358 acl_save_prefix="$prefix"
14359 prefix="$acl_final_prefix"
14360 acl_save_exec_prefix="$exec_prefix"
14361 exec_prefix="$acl_final_exec_prefix"
14362 eval x=\"$x\"
14363 exec_prefix="$acl_save_exec_prefix"
14364 prefix="$acl_save_prefix"
14366 if test "X$x" = "X$element"; then
14367 haveit=yes
14368 break
14370 done
14371 if test -z "$haveit"; then
14372 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14374 done
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14378 $as_echo_n "checking for iconv... " >&6; }
14379 if ${am_cv_func_iconv+:} false; then :
14380 $as_echo_n "(cached) " >&6
14381 else
14383 am_cv_func_iconv="no, consider installing GNU libiconv"
14384 am_cv_lib_iconv=no
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387 #include <stdlib.h>
14388 #include <iconv.h>
14390 main ()
14392 iconv_t cd = iconv_open("","");
14393 iconv(cd,NULL,NULL,NULL,NULL);
14394 iconv_close(cd);
14396 return 0;
14398 _ACEOF
14399 if ac_fn_c_try_link "$LINENO"; then :
14400 am_cv_func_iconv=yes
14402 rm -f core conftest.err conftest.$ac_objext \
14403 conftest$ac_exeext conftest.$ac_ext
14404 if test "$am_cv_func_iconv" != yes; then
14405 am_save_LIBS="$LIBS"
14406 LIBS="$LIBS $LIBICONV"
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 #include <stdlib.h>
14410 #include <iconv.h>
14412 main ()
14414 iconv_t cd = iconv_open("","");
14415 iconv(cd,NULL,NULL,NULL,NULL);
14416 iconv_close(cd);
14418 return 0;
14420 _ACEOF
14421 if ac_fn_c_try_link "$LINENO"; then :
14422 am_cv_lib_iconv=yes
14423 am_cv_func_iconv=yes
14425 rm -f core conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
14427 LIBS="$am_save_LIBS"
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14432 $as_echo "$am_cv_func_iconv" >&6; }
14433 if test "$am_cv_func_iconv" = yes; then
14435 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14438 if test "$am_cv_lib_iconv" = yes; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14440 $as_echo_n "checking how to link with libiconv... " >&6; }
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14442 $as_echo "$LIBICONV" >&6; }
14443 else
14444 CPPFLAGS="$am_save_CPPFLAGS"
14445 LIBICONV=
14446 LTLIBICONV=
14455 use_additional=yes
14457 acl_save_prefix="$prefix"
14458 prefix="$acl_final_prefix"
14459 acl_save_exec_prefix="$exec_prefix"
14460 exec_prefix="$acl_final_exec_prefix"
14462 eval additional_includedir=\"$includedir\"
14463 eval additional_libdir=\"$libdir\"
14465 exec_prefix="$acl_save_exec_prefix"
14466 prefix="$acl_save_prefix"
14469 # Check whether --with-libintl-prefix was given.
14470 if test "${with_libintl_prefix+set}" = set; then :
14471 withval=$with_libintl_prefix;
14472 if test "X$withval" = "Xno"; then
14473 use_additional=no
14474 else
14475 if test "X$withval" = "X"; then
14477 acl_save_prefix="$prefix"
14478 prefix="$acl_final_prefix"
14479 acl_save_exec_prefix="$exec_prefix"
14480 exec_prefix="$acl_final_exec_prefix"
14482 eval additional_includedir=\"$includedir\"
14483 eval additional_libdir=\"$libdir\"
14485 exec_prefix="$acl_save_exec_prefix"
14486 prefix="$acl_save_prefix"
14488 else
14489 additional_includedir="$withval/include"
14490 additional_libdir="$withval/$acl_libdirstem"
14496 LIBINTL=
14497 LTLIBINTL=
14498 INCINTL=
14499 rpathdirs=
14500 ltrpathdirs=
14501 names_already_handled=
14502 names_next_round='intl '
14503 while test -n "$names_next_round"; do
14504 names_this_round="$names_next_round"
14505 names_next_round=
14506 for name in $names_this_round; do
14507 already_handled=
14508 for n in $names_already_handled; do
14509 if test "$n" = "$name"; then
14510 already_handled=yes
14511 break
14513 done
14514 if test -z "$already_handled"; then
14515 names_already_handled="$names_already_handled $name"
14516 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14517 eval value=\"\$HAVE_LIB$uppername\"
14518 if test -n "$value"; then
14519 if test "$value" = yes; then
14520 eval value=\"\$LIB$uppername\"
14521 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14522 eval value=\"\$LTLIB$uppername\"
14523 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14524 else
14527 else
14528 found_dir=
14529 found_la=
14530 found_so=
14531 found_a=
14532 if test $use_additional = yes; then
14533 if test -n "$shlibext" \
14534 && { test -f "$additional_libdir/lib$name.$shlibext" \
14535 || { test "$shlibext" = dll \
14536 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14537 found_dir="$additional_libdir"
14538 if test -f "$additional_libdir/lib$name.$shlibext"; then
14539 found_so="$additional_libdir/lib$name.$shlibext"
14540 else
14541 found_so="$additional_libdir/lib$name.dll.a"
14543 if test -f "$additional_libdir/lib$name.la"; then
14544 found_la="$additional_libdir/lib$name.la"
14546 else
14547 if test -f "$additional_libdir/lib$name.$libext"; then
14548 found_dir="$additional_libdir"
14549 found_a="$additional_libdir/lib$name.$libext"
14550 if test -f "$additional_libdir/lib$name.la"; then
14551 found_la="$additional_libdir/lib$name.la"
14556 if test "X$found_dir" = "X"; then
14557 for x in $LDFLAGS $LTLIBINTL; do
14559 acl_save_prefix="$prefix"
14560 prefix="$acl_final_prefix"
14561 acl_save_exec_prefix="$exec_prefix"
14562 exec_prefix="$acl_final_exec_prefix"
14563 eval x=\"$x\"
14564 exec_prefix="$acl_save_exec_prefix"
14565 prefix="$acl_save_prefix"
14567 case "$x" in
14568 -L*)
14569 dir=`echo "X$x" | sed -e 's/^X-L//'`
14570 if test -n "$shlibext" \
14571 && { test -f "$dir/lib$name.$shlibext" \
14572 || { test "$shlibext" = dll \
14573 && test -f "$dir/lib$name.dll.a"; }; }; then
14574 found_dir="$dir"
14575 if test -f "$dir/lib$name.$shlibext"; then
14576 found_so="$dir/lib$name.$shlibext"
14577 else
14578 found_so="$dir/lib$name.dll.a"
14580 if test -f "$dir/lib$name.la"; then
14581 found_la="$dir/lib$name.la"
14583 else
14584 if test -f "$dir/lib$name.$libext"; then
14585 found_dir="$dir"
14586 found_a="$dir/lib$name.$libext"
14587 if test -f "$dir/lib$name.la"; then
14588 found_la="$dir/lib$name.la"
14593 esac
14594 if test "X$found_dir" != "X"; then
14595 break
14597 done
14599 if test "X$found_dir" != "X"; then
14600 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14601 if test "X$found_so" != "X"; then
14602 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14603 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14604 else
14605 haveit=
14606 for x in $ltrpathdirs; do
14607 if test "X$x" = "X$found_dir"; then
14608 haveit=yes
14609 break
14611 done
14612 if test -z "$haveit"; then
14613 ltrpathdirs="$ltrpathdirs $found_dir"
14615 if test "$hardcode_direct" = yes; then
14616 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14617 else
14618 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14619 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14620 haveit=
14621 for x in $rpathdirs; do
14622 if test "X$x" = "X$found_dir"; then
14623 haveit=yes
14624 break
14626 done
14627 if test -z "$haveit"; then
14628 rpathdirs="$rpathdirs $found_dir"
14630 else
14631 haveit=
14632 for x in $LDFLAGS $LIBINTL; do
14634 acl_save_prefix="$prefix"
14635 prefix="$acl_final_prefix"
14636 acl_save_exec_prefix="$exec_prefix"
14637 exec_prefix="$acl_final_exec_prefix"
14638 eval x=\"$x\"
14639 exec_prefix="$acl_save_exec_prefix"
14640 prefix="$acl_save_prefix"
14642 if test "X$x" = "X-L$found_dir"; then
14643 haveit=yes
14644 break
14646 done
14647 if test -z "$haveit"; then
14648 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14650 if test "$hardcode_minus_L" != no; then
14651 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14652 else
14653 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14658 else
14659 if test "X$found_a" != "X"; then
14660 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14661 else
14662 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14665 additional_includedir=
14666 case "$found_dir" in
14667 */$acl_libdirstem | */$acl_libdirstem/)
14668 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14669 additional_includedir="$basedir/include"
14671 esac
14672 if test "X$additional_includedir" != "X"; then
14673 if test "X$additional_includedir" != "X/usr/include"; then
14674 haveit=
14675 if test "X$additional_includedir" = "X/usr/local/include"; then
14676 if test -n "$GCC"; then
14677 case $host_os in
14678 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14679 esac
14682 if test -z "$haveit"; then
14683 for x in $CPPFLAGS $INCINTL; do
14685 acl_save_prefix="$prefix"
14686 prefix="$acl_final_prefix"
14687 acl_save_exec_prefix="$exec_prefix"
14688 exec_prefix="$acl_final_exec_prefix"
14689 eval x=\"$x\"
14690 exec_prefix="$acl_save_exec_prefix"
14691 prefix="$acl_save_prefix"
14693 if test "X$x" = "X-I$additional_includedir"; then
14694 haveit=yes
14695 break
14697 done
14698 if test -z "$haveit"; then
14699 if test -d "$additional_includedir"; then
14700 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14706 if test -n "$found_la"; then
14707 save_libdir="$libdir"
14708 case "$found_la" in
14709 */* | *\\*) . "$found_la" ;;
14710 *) . "./$found_la" ;;
14711 esac
14712 libdir="$save_libdir"
14713 for dep in $dependency_libs; do
14714 case "$dep" in
14715 -L*)
14716 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14717 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14718 haveit=
14719 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14720 if test -n "$GCC"; then
14721 case $host_os in
14722 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14723 esac
14726 if test -z "$haveit"; then
14727 haveit=
14728 for x in $LDFLAGS $LIBINTL; do
14730 acl_save_prefix="$prefix"
14731 prefix="$acl_final_prefix"
14732 acl_save_exec_prefix="$exec_prefix"
14733 exec_prefix="$acl_final_exec_prefix"
14734 eval x=\"$x\"
14735 exec_prefix="$acl_save_exec_prefix"
14736 prefix="$acl_save_prefix"
14738 if test "X$x" = "X-L$additional_libdir"; then
14739 haveit=yes
14740 break
14742 done
14743 if test -z "$haveit"; then
14744 if test -d "$additional_libdir"; then
14745 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14748 haveit=
14749 for x in $LDFLAGS $LTLIBINTL; do
14751 acl_save_prefix="$prefix"
14752 prefix="$acl_final_prefix"
14753 acl_save_exec_prefix="$exec_prefix"
14754 exec_prefix="$acl_final_exec_prefix"
14755 eval x=\"$x\"
14756 exec_prefix="$acl_save_exec_prefix"
14757 prefix="$acl_save_prefix"
14759 if test "X$x" = "X-L$additional_libdir"; then
14760 haveit=yes
14761 break
14763 done
14764 if test -z "$haveit"; then
14765 if test -d "$additional_libdir"; then
14766 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14772 -R*)
14773 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14774 if test "$enable_rpath" != no; then
14775 haveit=
14776 for x in $rpathdirs; do
14777 if test "X$x" = "X$dir"; then
14778 haveit=yes
14779 break
14781 done
14782 if test -z "$haveit"; then
14783 rpathdirs="$rpathdirs $dir"
14785 haveit=
14786 for x in $ltrpathdirs; do
14787 if test "X$x" = "X$dir"; then
14788 haveit=yes
14789 break
14791 done
14792 if test -z "$haveit"; then
14793 ltrpathdirs="$ltrpathdirs $dir"
14797 -l*)
14798 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14800 *.la)
14801 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14804 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14805 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14807 esac
14808 done
14810 else
14811 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14812 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14816 done
14817 done
14818 if test "X$rpathdirs" != "X"; then
14819 if test -n "$hardcode_libdir_separator"; then
14820 alldirs=
14821 for found_dir in $rpathdirs; do
14822 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14823 done
14824 acl_save_libdir="$libdir"
14825 libdir="$alldirs"
14826 eval flag=\"$hardcode_libdir_flag_spec\"
14827 libdir="$acl_save_libdir"
14828 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14829 else
14830 for found_dir in $rpathdirs; do
14831 acl_save_libdir="$libdir"
14832 libdir="$found_dir"
14833 eval flag=\"$hardcode_libdir_flag_spec\"
14834 libdir="$acl_save_libdir"
14835 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14836 done
14839 if test "X$ltrpathdirs" != "X"; then
14840 for found_dir in $ltrpathdirs; do
14841 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14842 done
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14846 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14847 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14848 $as_echo_n "(cached) " >&6
14849 else
14850 gt_save_CPPFLAGS="$CPPFLAGS"
14851 CPPFLAGS="$CPPFLAGS $INCINTL"
14852 gt_save_LIBS="$LIBS"
14853 LIBS="$LIBS $LIBINTL"
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14856 #include <libintl.h>
14857 $gt_revision_test_code
14858 extern int _nl_msg_cat_cntr;
14859 extern
14860 #ifdef __cplusplus
14862 #endif
14863 const char *_nl_expand_alias (const char *);
14865 main ()
14867 bindtextdomain ("", "");
14868 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14870 return 0;
14872 _ACEOF
14873 if ac_fn_c_try_link "$LINENO"; then :
14874 eval "$gt_func_gnugettext_libintl=yes"
14875 else
14876 eval "$gt_func_gnugettext_libintl=no"
14878 rm -f core conftest.err conftest.$ac_objext \
14879 conftest$ac_exeext conftest.$ac_ext
14880 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14881 LIBS="$LIBS $LIBICONV"
14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h. */
14884 #include <libintl.h>
14885 $gt_revision_test_code
14886 extern int _nl_msg_cat_cntr;
14887 extern
14888 #ifdef __cplusplus
14890 #endif
14891 const char *_nl_expand_alias (const char *);
14893 main ()
14895 bindtextdomain ("", "");
14896 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14898 return 0;
14900 _ACEOF
14901 if ac_fn_c_try_link "$LINENO"; then :
14902 LIBINTL="$LIBINTL $LIBICONV"
14903 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14904 eval "$gt_func_gnugettext_libintl=yes"
14907 rm -f core conftest.err conftest.$ac_objext \
14908 conftest$ac_exeext conftest.$ac_ext
14910 CPPFLAGS="$gt_save_CPPFLAGS"
14911 LIBS="$gt_save_LIBS"
14913 eval ac_res=\$$gt_func_gnugettext_libintl
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14915 $as_echo "$ac_res" >&6; }
14918 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14919 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14920 && test "$PACKAGE" != gettext-runtime \
14921 && test "$PACKAGE" != gettext-tools; }; then
14922 gt_use_preinstalled_gnugettext=yes
14923 else
14924 LIBINTL=
14925 LTLIBINTL=
14926 INCINTL=
14931 if test -n "$INTL_MACOSX_LIBS"; then
14932 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14933 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14934 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14935 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14939 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14940 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14942 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14944 else
14945 USE_NLS=no
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14950 $as_echo_n "checking whether to use NLS... " >&6; }
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14952 $as_echo "$USE_NLS" >&6; }
14953 if test "$USE_NLS" = "yes"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14955 $as_echo_n "checking where the gettext function comes from... " >&6; }
14956 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14957 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14958 gt_source="external libintl"
14959 else
14960 gt_source="libc"
14962 else
14963 gt_source="included intl directory"
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14966 $as_echo "$gt_source" >&6; }
14969 if test "$USE_NLS" = "yes"; then
14971 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14972 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14974 $as_echo_n "checking how to link with libintl... " >&6; }
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14976 $as_echo "$LIBINTL" >&6; }
14978 for element in $INCINTL; do
14979 haveit=
14980 for x in $CPPFLAGS; do
14982 acl_save_prefix="$prefix"
14983 prefix="$acl_final_prefix"
14984 acl_save_exec_prefix="$exec_prefix"
14985 exec_prefix="$acl_final_exec_prefix"
14986 eval x=\"$x\"
14987 exec_prefix="$acl_save_exec_prefix"
14988 prefix="$acl_save_prefix"
14990 if test "X$x" = "X$element"; then
14991 haveit=yes
14992 break
14994 done
14995 if test -z "$haveit"; then
14996 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14998 done
15003 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15006 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15010 POSUB=po
15015 INTLLIBS="$LIBINTL"
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
15024 $as_echo_n "checking option: dmalloc enabled... " >&6; }
15025 # Check whether --enable-dmalloc was given.
15026 if test "${enable_dmalloc+set}" = set; then :
15027 enableval=$enable_dmalloc;
15030 if test x$enable_dmalloc = "xyes" ; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15032 $as_echo "yes" >&6; }
15033 else
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035 $as_echo "no" >&6; }
15039 # Check whether --with-dmalloc-dir was given.
15040 if test "${with_dmalloc_dir+set}" = set; then :
15041 withval=$with_dmalloc_dir;
15042 if test "x$withval" != "xno" ; then
15043 enable_dmalloc = "yes"
15044 CPPFLAGS="$CPPFLAGS -I${withval}"
15045 LDFLAGS="$LDFLAGS -L${withval}"
15051 if test x$enable_dmalloc = "xyes" ; then
15053 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
15057 ALPINE_psefcmd="/bin/ps auxww"
15058 ALPINE_psfailed="0"
15059 ALPINE_PSTEST="-"
15061 # Check whether --with-ps-cmd was given.
15062 if test "${with_ps_cmd+set}" = set; then :
15063 withval=$with_ps_cmd;
15064 if test "x$withval" = "xno" -o "x$withval" = "xyes" -o "x$withval" = "x" ; then
15065 withval=$ALPINE_psefcmd
15067 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
15068 if test -n "$ALPINE_PSTEST" ; then
15069 ALPINE_psefcmd="$withval"
15070 else
15071 ALPINE_psfailed="1"
15072 if test "x$ALPINE_psefcmd" != "x$withval" ; then
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&5
15074 $as_echo "$as_me: WARNING: failed command $withval. Trying $ALPINE_psefcmd" >&2;}
15080 if test "$ALPINE_psfailed" = "1" -o "$ALPINE_PSTEST" = "-" ; then
15081 withval="$ALPINE_psefcmd"
15082 ALPINE_PSTEST=`$withval | $EGREP "$withval" | $EGREP -v $EGREP`
15083 if test -z "$ALPINE_PSTEST" ; then
15084 ALPINE_psfailed="1"
15085 else
15086 ALPINE_psfailed="0"
15089 if test "$ALPINE_psfailed" = "0" ; then
15091 cat >>confdefs.h <<_ACEOF
15092 #define PSEFCMD "$ALPINE_psefcmd"
15093 _ACEOF
15097 case $host in
15098 *apple-darwin*)
15099 if test -d /opt/local ; then
15100 localedir="/opt/local/share/locale"
15101 else
15102 localedir="\${datadir}/locale"
15105 *-*-cygwin)
15106 localedir="/usr/share"
15109 localedir="\${datadir}/locale"
15111 esac
15114 # Check whether --with-localedir was given.
15115 if test "${with_localedir+set}" = set; then :
15116 withval=$with_localedir;
15117 case $withval in
15118 yes)
15123 localedir=$withval
15125 esac
15129 localedir="$localedir"
15132 # Setup OS-Specific features
15133 case "$host" in
15134 *darwin*)
15135 # Check whether --enable-osx-universal-binaries was given.
15136 if test "${enable_osx_universal_binaries+set}" = set; then :
15137 enableval=$enable_osx_universal_binaries;
15140 if test "x$enable_osx_universal_binaries" = "xyes" ; then
15141 if test "x$enable_dependency_tracking" != xno ; then
15142 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
15143 Please re-run configure with these options:
15144 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
15146 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
15147 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
15148 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
15149 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
15150 else
15151 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
15153 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
15154 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
15155 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
15156 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
15157 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
15158 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
15161 esac
15164 # Check whether --with-include-path was given.
15165 if test "${with_include_path+set}" = set; then :
15166 withval=$with_include_path;
15167 case $withval in
15170 yes)
15173 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
15174 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
15175 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
15177 esac
15183 # Check whether --with-lib-path was given.
15184 if test "${with_lib_path+set}" = set; then :
15185 withval=$with_lib_path;
15186 case $withval in
15189 yes)
15192 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
15193 LDFLAGS="$LDFLAGS $new_ldflags"
15194 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
15196 esac
15202 # Check whether --with-pubcookie was given.
15203 if test "${with_pubcookie+set}" = set; then :
15204 withval=$with_pubcookie;
15205 if test "x$withval" != "xno" ; then
15206 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
15214 # Check whether --with-web-bin was given.
15215 if test "${with_web_bin+set}" = set; then :
15216 withval=$with_web_bin;
15217 case "$withval" in
15220 yes)
15223 WEB_BINDIR=$withval
15225 esac
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
15231 $as_echo_n "checking option: debugging is enabled... " >&6; }
15232 # Check whether --enable-debug was given.
15233 if test "${enable_debug+set}" = set; then :
15234 enableval=$enable_debug;
15237 if test x$enable_debug != "xno" ; then
15238 AM_CFLAGS="$AM_CFLAGS -g"
15240 $as_echo "#define DEBUG 1" >>confdefs.h
15243 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15246 $as_echo "yes" >&6; }
15247 else
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15249 $as_echo "no" >&6; }
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
15253 $as_echo_n "checking option: optimization is enabled... " >&6; }
15254 # Check whether --enable-optimization was given.
15255 if test "${enable_optimization+set}" = set; then :
15256 enableval=$enable_optimization;
15259 if test x$enable_optimization != "xno" ; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15261 $as_echo "yes" >&6; }
15262 else
15263 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
15264 alpine_c_client_gccoptlevel="-O0"
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15266 $as_echo "no" >&6; }
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
15270 $as_echo_n "checking option: mouse support enabled... " >&6; }
15271 # Check whether --enable-mouse was given.
15272 if test "${enable_mouse+set}" = set; then :
15273 enableval=$enable_mouse;
15276 if test x$enable_mouse != "xno" ; then
15278 $as_echo "#define MOUSE /**/" >>confdefs.h
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15281 $as_echo "yes" >&6; }
15282 else
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15284 $as_echo "no" >&6; }
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
15288 $as_echo_n "checking option: quotas enabled... " >&6; }
15289 # Check whether --enable-quotas was given.
15290 if test "${enable_quotas+set}" = set; then :
15291 enableval=$enable_quotas;
15294 if test x$enable_quotas = "xyes" ; then
15296 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15299 $as_echo "yes" >&6; }
15300 else
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302 $as_echo "no" >&6; }
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
15306 $as_echo_n "checking option: From changing enabled... " >&6; }
15307 # Check whether --enable-from_changing was given.
15308 if test "${enable_from_changing+set}" = set; then :
15309 enableval=$enable_from_changing;
15312 if test x$enable_from_changing != "xno" ; then
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15314 $as_echo "yes" >&6; }
15315 else
15317 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320 $as_echo "no" >&6; }
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
15324 $as_echo_n "checking option: background post enabled... " >&6; }
15325 # Check whether --enable-background-post was given.
15326 if test "${enable_background_post+set}" = set; then :
15327 enableval=$enable_background_post;
15330 if test x$enable_background_post != "xno" ; then
15332 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15335 $as_echo "yes" >&6; }
15336 else
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15338 $as_echo "no" >&6; }
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
15342 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
15343 # Check whether --enable-keyboard-lock was given.
15344 if test "${enable_keyboard_lock+set}" = set; then :
15345 enableval=$enable_keyboard_lock;
15348 if test x$enable_keyboard_lock != "xno" ; then
15350 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15353 $as_echo "yes" >&6; }
15354 else
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15356 $as_echo "no" >&6; }
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
15360 $as_echo_n "checking option: from encoding enabled... " >&6; }
15361 # Check whether --enable-from-encoding was given.
15362 if test "${enable_from_encoding+set}" = set; then :
15363 enableval=$enable_from_encoding;
15366 if test x$enable_from_encoding = "xyes" ; then
15368 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15371 $as_echo "yes" >&6; }
15372 else
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15374 $as_echo "no" >&6; }
15378 # Check whether --with-smtp-msa was given.
15379 if test "${with_smtp_msa+set}" = set; then :
15380 withval=$with_smtp_msa;
15381 case "$withval" in
15384 yes)
15385 # Extract the first word of "sendmail", so it can be a program name with args.
15386 set dummy sendmail; ac_word=$2
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15388 $as_echo_n "checking for $ac_word... " >&6; }
15389 if ${ac_cv_path_SENDMAIL+:} false; then :
15390 $as_echo_n "(cached) " >&6
15391 else
15392 case $SENDMAIL in
15393 [\\/]* | ?:[\\/]*)
15394 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15398 as_dummy="$PATH:/usr/sbin:/usr/lib"
15399 for as_dir in $as_dummy
15401 IFS=$as_save_IFS
15402 test -z "$as_dir" && as_dir=.
15403 for ac_exec_ext in '' $ac_executable_extensions; do
15404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15405 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15407 break 2
15409 done
15410 done
15411 IFS=$as_save_IFS
15413 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15415 esac
15417 SENDMAIL=$ac_cv_path_SENDMAIL
15418 if test -n "$SENDMAIL"; then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15420 $as_echo "$SENDMAIL" >&6; }
15421 else
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15423 $as_echo "no" >&6; }
15429 SENDMAIL=$withval
15431 esac
15433 else
15435 # Extract the first word of "sendmail", so it can be a program name with args.
15436 set dummy sendmail; ac_word=$2
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15438 $as_echo_n "checking for $ac_word... " >&6; }
15439 if ${ac_cv_path_SENDMAIL+:} false; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 case $SENDMAIL in
15443 [\\/]* | ?:[\\/]*)
15444 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
15447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15448 as_dummy="$PATH:/usr/sbin:/usr/lib"
15449 for as_dir in $as_dummy
15451 IFS=$as_save_IFS
15452 test -z "$as_dir" && as_dir=.
15453 for ac_exec_ext in '' $ac_executable_extensions; do
15454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15455 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15457 break 2
15459 done
15460 done
15461 IFS=$as_save_IFS
15463 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
15465 esac
15467 SENDMAIL=$ac_cv_path_SENDMAIL
15468 if test -n "$SENDMAIL"; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
15470 $as_echo "$SENDMAIL" >&6; }
15471 else
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15473 $as_echo "no" >&6; }
15480 if test -n "$SENDMAIL" ; then
15482 cat >>confdefs.h <<_ACEOF
15483 #define SENDMAIL "$SENDMAIL"
15484 _ACEOF
15488 smtp_msa_flags="-bs -odb -oem"
15490 # Check whether --with-smtp-msa-flags was given.
15491 if test "${with_smtp_msa_flags+set}" = set; then :
15492 withval=$with_smtp_msa_flags;
15493 if test "x$withval" != "xno" ; then
15494 smtp_msa_flags=$withval
15500 cat >>confdefs.h <<_ACEOF
15501 #define SENDMAILFLAGS "$smtp_msa_flags"
15502 _ACEOF
15505 npa="inews"
15507 # Check whether --with-npa was given.
15508 if test "${with_npa+set}" = set; then :
15509 withval=$with_npa;
15510 case "$withval" in
15513 yes)
15514 # Extract the first word of "inews", so it can be a program name with args.
15515 set dummy inews; ac_word=$2
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15517 $as_echo_n "checking for $ac_word... " >&6; }
15518 if ${ac_cv_path_NPA_PROG+:} false; then :
15519 $as_echo_n "(cached) " >&6
15520 else
15521 case $NPA_PROG in
15522 [\\/]* | ?:[\\/]*)
15523 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15527 as_dummy="$PATH:/usr/sbin:/usr/lib"
15528 for as_dir in $as_dummy
15530 IFS=$as_save_IFS
15531 test -z "$as_dir" && as_dir=.
15532 for ac_exec_ext in '' $ac_executable_extensions; do
15533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15534 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15536 break 2
15538 done
15539 done
15540 IFS=$as_save_IFS
15542 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15544 esac
15546 NPA_PROG=$ac_cv_path_NPA_PROG
15547 if test -n "$NPA_PROG"; then
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15549 $as_echo "$NPA_PROG" >&6; }
15550 else
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15552 $as_echo "no" >&6; }
15558 NPA_PROG=$withval
15560 esac
15562 else
15564 # Extract the first word of "inews", so it can be a program name with args.
15565 set dummy inews; ac_word=$2
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15567 $as_echo_n "checking for $ac_word... " >&6; }
15568 if ${ac_cv_path_NPA_PROG+:} false; then :
15569 $as_echo_n "(cached) " >&6
15570 else
15571 case $NPA_PROG in
15572 [\\/]* | ?:[\\/]*)
15573 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
15576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15577 as_dummy="$PATH:/usr/sbin:/usr/lib"
15578 for as_dir in $as_dummy
15580 IFS=$as_save_IFS
15581 test -z "$as_dir" && as_dir=.
15582 for ac_exec_ext in '' $ac_executable_extensions; do
15583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15584 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
15585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15586 break 2
15588 done
15589 done
15590 IFS=$as_save_IFS
15592 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
15594 esac
15596 NPA_PROG=$ac_cv_path_NPA_PROG
15597 if test -n "$NPA_PROG"; then
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
15599 $as_echo "$NPA_PROG" >&6; }
15600 else
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602 $as_echo "no" >&6; }
15610 npa_flags="-h"
15612 # Check whether --with-npa-flags was given.
15613 if test "${with_npa_flags+set}" = set; then :
15614 withval=$with_npa_flags;
15615 if test "x$withval" != "xno" ; then
15616 npa_flags=$withval
15621 if test -n "$NPA_PROG" ; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define SENDNEWS "$NPA_PROG $npa_flags"
15625 _ACEOF
15630 # Check whether --with-password-prog was given.
15631 if test "${with_password_prog+set}" = set; then :
15632 withval=$with_password_prog;
15633 case "$withval" in
15636 yes)
15637 # Extract the first word of "passwd", so it can be a program name with args.
15638 set dummy passwd; ac_word=$2
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15640 $as_echo_n "checking for $ac_word... " >&6; }
15641 if ${ac_cv_path_PWPROG+:} false; then :
15642 $as_echo_n "(cached) " >&6
15643 else
15644 case $PWPROG in
15645 [\\/]* | ?:[\\/]*)
15646 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15650 as_dummy="$PATH:/usr/sbin:/usr/lib"
15651 for as_dir in $as_dummy
15653 IFS=$as_save_IFS
15654 test -z "$as_dir" && as_dir=.
15655 for ac_exec_ext in '' $ac_executable_extensions; do
15656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15657 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15659 break 2
15661 done
15662 done
15663 IFS=$as_save_IFS
15665 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15667 esac
15669 PWPROG=$ac_cv_path_PWPROG
15670 if test -n "$PWPROG"; then
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15672 $as_echo "$PWPROG" >&6; }
15673 else
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675 $as_echo "no" >&6; }
15681 # Extract the first word of "$withval", so it can be a program name with args.
15682 set dummy $withval; ac_word=$2
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15684 $as_echo_n "checking for $ac_word... " >&6; }
15685 if ${ac_cv_path_PWPROG+:} false; then :
15686 $as_echo_n "(cached) " >&6
15687 else
15688 case $PWPROG in
15689 [\\/]* | ?:[\\/]*)
15690 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694 as_dummy="$PATH:/usr/sbin:/usr/lib"
15695 for as_dir in $as_dummy
15697 IFS=$as_save_IFS
15698 test -z "$as_dir" && as_dir=.
15699 for ac_exec_ext in '' $ac_executable_extensions; do
15700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15701 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15703 break 2
15705 done
15706 done
15707 IFS=$as_save_IFS
15709 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15711 esac
15713 PWPROG=$ac_cv_path_PWPROG
15714 if test -n "$PWPROG"; then
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15716 $as_echo "$PWPROG" >&6; }
15717 else
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15719 $as_echo "no" >&6; }
15724 esac
15726 else
15728 # Extract the first word of "passwd", so it can be a program name with args.
15729 set dummy passwd; ac_word=$2
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15731 $as_echo_n "checking for $ac_word... " >&6; }
15732 if ${ac_cv_path_PWPROG+:} false; then :
15733 $as_echo_n "(cached) " >&6
15734 else
15735 case $PWPROG in
15736 [\\/]* | ?:[\\/]*)
15737 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
15740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15741 as_dummy="$PATH:/usr/sbin:/usr/lib"
15742 for as_dir in $as_dummy
15744 IFS=$as_save_IFS
15745 test -z "$as_dir" && as_dir=.
15746 for ac_exec_ext in '' $ac_executable_extensions; do
15747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15748 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
15749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15750 break 2
15752 done
15753 done
15754 IFS=$as_save_IFS
15756 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
15758 esac
15760 PWPROG=$ac_cv_path_PWPROG
15761 if test -n "$PWPROG"; then
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
15763 $as_echo "$PWPROG" >&6; }
15764 else
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15766 $as_echo "no" >&6; }
15773 if test -n "$PWPROG" ; then
15775 cat >>confdefs.h <<_ACEOF
15776 #define PASSWD_PROG "$PWPROG"
15777 _ACEOF
15782 # Check whether --with-simple-spellcheck was given.
15783 if test "${with_simple_spellcheck+set}" = set; then :
15784 withval=$with_simple_spellcheck;
15785 if test "x$withval" != "xno" ; then
15786 SPELLPROG=$withval
15789 else
15791 # Extract the first word of "hunspell", so it can be a program name with args.
15792 set dummy hunspell; ac_word=$2
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15794 $as_echo_n "checking for $ac_word... " >&6; }
15795 if ${ac_cv_prog_SPELLPROG+:} false; then :
15796 $as_echo_n "(cached) " >&6
15797 else
15798 if test -n "$SPELLPROG"; then
15799 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15800 else
15801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15802 for as_dir in $PATH
15804 IFS=$as_save_IFS
15805 test -z "$as_dir" && as_dir=.
15806 for ac_exec_ext in '' $ac_executable_extensions; do
15807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15808 ac_cv_prog_SPELLPROG="hunspell"
15809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15810 break 2
15812 done
15813 done
15814 IFS=$as_save_IFS
15818 SPELLPROG=$ac_cv_prog_SPELLPROG
15819 if test -n "$SPELLPROG"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15821 $as_echo "$SPELLPROG" >&6; }
15822 else
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824 $as_echo "no" >&6; }
15828 if test -z "$SPELLPROG" ; then
15829 # Extract the first word of "aspell", so it can be a program name with args.
15830 set dummy aspell; ac_word=$2
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15832 $as_echo_n "checking for $ac_word... " >&6; }
15833 if ${ac_cv_prog_SPELLPROG+:} false; then :
15834 $as_echo_n "(cached) " >&6
15835 else
15836 if test -n "$SPELLPROG"; then
15837 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15838 else
15839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15840 for as_dir in $PATH
15842 IFS=$as_save_IFS
15843 test -z "$as_dir" && as_dir=.
15844 for ac_exec_ext in '' $ac_executable_extensions; do
15845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15846 ac_cv_prog_SPELLPROG="aspell"
15847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15848 break 2
15850 done
15851 done
15852 IFS=$as_save_IFS
15856 SPELLPROG=$ac_cv_prog_SPELLPROG
15857 if test -n "$SPELLPROG"; then
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15859 $as_echo "$SPELLPROG" >&6; }
15860 else
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15862 $as_echo "no" >&6; }
15866 if test -z "$SPELLPROG" ; then
15867 # Extract the first word of "ispell", so it can be a program name with args.
15868 set dummy ispell; ac_word=$2
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15870 $as_echo_n "checking for $ac_word... " >&6; }
15871 if ${ac_cv_prog_SPELLPROG+:} false; then :
15872 $as_echo_n "(cached) " >&6
15873 else
15874 if test -n "$SPELLPROG"; then
15875 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
15876 else
15877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15878 for as_dir in $PATH
15880 IFS=$as_save_IFS
15881 test -z "$as_dir" && as_dir=.
15882 for ac_exec_ext in '' $ac_executable_extensions; do
15883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15884 ac_cv_prog_SPELLPROG="ispell"
15885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15886 break 2
15888 done
15889 done
15890 IFS=$as_save_IFS
15894 SPELLPROG=$ac_cv_prog_SPELLPROG
15895 if test -n "$SPELLPROG"; then
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
15897 $as_echo "$SPELLPROG" >&6; }
15898 else
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15900 $as_echo "no" >&6; }
15904 if test -z "$SPELLPROG" ; then
15905 SPELLPROG="spell"
15913 if test "x$SPELLPROG" != "xno" ; then
15914 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
15915 set dummy $SPELLPROG; ac_word=$2
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15917 $as_echo_n "checking for $ac_word... " >&6; }
15918 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
15919 $as_echo_n "(cached) " >&6
15920 else
15921 case $alpine_simple_spellcheck in
15922 [\\/]* | ?:[\\/]*)
15923 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
15926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15927 for as_dir in $PATH
15929 IFS=$as_save_IFS
15930 test -z "$as_dir" && as_dir=.
15931 for ac_exec_ext in '' $ac_executable_extensions; do
15932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15933 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
15934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15935 break 2
15937 done
15938 done
15939 IFS=$as_save_IFS
15942 esac
15944 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
15945 if test -n "$alpine_simple_spellcheck"; then
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
15947 $as_echo "$alpine_simple_spellcheck" >&6; }
15948 else
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15950 $as_echo "no" >&6; }
15954 if test -n "$alpine_simple_spellcheck" ; then
15955 case "$SPELLPROG" in
15956 hunspell)
15957 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15959 aspell)
15960 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
15962 ispell)
15963 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
15967 esac
15972 # Check whether --with-interactive-spellcheck was given.
15973 if test "${with_interactive_spellcheck+set}" = set; then :
15974 withval=$with_interactive_spellcheck;
15975 if test "x$withval" != "xno" ; then
15976 ISPELLPROG=$withval
15979 else
15981 # Extract the first word of "hunspell", so it can be a program name with args.
15982 set dummy hunspell; ac_word=$2
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15984 $as_echo_n "checking for $ac_word... " >&6; }
15985 if ${ac_cv_prog_ISPELLPROG+:} false; then :
15986 $as_echo_n "(cached) " >&6
15987 else
15988 if test -n "$ISPELLPROG"; then
15989 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
15990 else
15991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15992 for as_dir in $PATH
15994 IFS=$as_save_IFS
15995 test -z "$as_dir" && as_dir=.
15996 for ac_exec_ext in '' $ac_executable_extensions; do
15997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15998 ac_cv_prog_ISPELLPROG="hunspell"
15999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16000 break 2
16002 done
16003 done
16004 IFS=$as_save_IFS
16008 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16009 if test -n "$ISPELLPROG"; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16011 $as_echo "$ISPELLPROG" >&6; }
16012 else
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16014 $as_echo "no" >&6; }
16018 if test -z "$ISPELLPROG" ; then
16019 # Extract the first word of "aspell", so it can be a program name with args.
16020 set dummy aspell; ac_word=$2
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16022 $as_echo_n "checking for $ac_word... " >&6; }
16023 if ${ac_cv_prog_ISPELLPROG+:} false; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16026 if test -n "$ISPELLPROG"; then
16027 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
16028 else
16029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16030 for as_dir in $PATH
16032 IFS=$as_save_IFS
16033 test -z "$as_dir" && as_dir=.
16034 for ac_exec_ext in '' $ac_executable_extensions; do
16035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16036 ac_cv_prog_ISPELLPROG="aspell"
16037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16038 break 2
16040 done
16041 done
16042 IFS=$as_save_IFS
16046 ISPELLPROG=$ac_cv_prog_ISPELLPROG
16047 if test -n "$ISPELLPROG"; then
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
16049 $as_echo "$ISPELLPROG" >&6; }
16050 else
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16052 $as_echo "no" >&6; }
16056 if test -z "$SPELLPROG" ; then
16057 ISPELLPROG="ispell"
16064 if test "x$ISPELLPROG" != "xno" ; then
16065 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
16066 set dummy $ISPELLPROG; ac_word=$2
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16068 $as_echo_n "checking for $ac_word... " >&6; }
16069 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
16070 $as_echo_n "(cached) " >&6
16071 else
16072 case $alpine_interactive_spellcheck in
16073 [\\/]* | ?:[\\/]*)
16074 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
16077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16078 for as_dir in $PATH
16080 IFS=$as_save_IFS
16081 test -z "$as_dir" && as_dir=.
16082 for ac_exec_ext in '' $ac_executable_extensions; do
16083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16084 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
16085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16086 break 2
16088 done
16089 done
16090 IFS=$as_save_IFS
16093 esac
16095 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
16096 if test -n "$alpine_interactive_spellcheck"; then
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
16098 $as_echo "$alpine_interactive_spellcheck" >&6; }
16099 else
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16101 $as_echo "no" >&6; }
16105 if test -n "$alpine_interactive_spellcheck" ; then
16106 case "$ISPELLPROG" in
16107 aspell)
16108 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
16112 esac
16116 if test -n "$alpine_interactive_spellcheck" ; then
16118 cat >>confdefs.h <<_ACEOF
16119 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
16120 _ACEOF
16124 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
16125 alpine_simple_spellcheck=test
16128 cat >>confdefs.h <<_ACEOF
16129 #define SPELLER "$alpine_simple_spellcheck"
16130 _ACEOF
16133 case "$prefix" in
16134 NONE) dpv=/usr/local/lib/pine.conf ;;
16135 *) dpv=${prefix}/lib/pine.conf ;;
16136 esac
16138 # Check whether --with-system-pinerc was given.
16139 if test "${with_system_pinerc+set}" = set; then :
16140 withval=$with_system_pinerc;
16141 case "$withval" in
16144 yes)
16147 dpv=$withval
16149 esac
16154 cat >>confdefs.h <<_ACEOF
16155 #define SYSTEM_PINERC "$dpv"
16156 _ACEOF
16159 case "$prefix" in
16160 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
16161 *) dpv=${prefix}/lib/pine.conf.fixed ;;
16162 esac
16164 # Check whether --with-system-fixed-pinerc was given.
16165 if test "${with_system_fixed_pinerc+set}" = set; then :
16166 withval=$with_system_fixed_pinerc;
16167 case "$withval" in
16170 yes)
16173 dpv=$withval
16175 esac
16180 cat >>confdefs.h <<_ACEOF
16181 #define SYSTEM_PINERC_FIXED "$dpv"
16182 _ACEOF
16185 case "$prefix" in
16186 NONE) dpv=/usr/local/lib/pine.info ;;
16187 *) dpv=${prefix}/lib/pine.info ;;
16188 esac
16190 # Check whether --with-local-support-info was given.
16191 if test "${with_local_support_info+set}" = set; then :
16192 withval=$with_local_support_info;
16193 case "$withval" in
16196 yes)
16199 dpv=$withval
16201 esac
16206 cat >>confdefs.h <<_ACEOF
16207 #define SYSTEM_PINE_INFO_PATH "$dpv"
16208 _ACEOF
16216 dpv=150
16218 # Check whether --with-mailcheck-interval was given.
16219 if test "${with_mailcheck_interval+set}" = set; then :
16220 withval=$with_mailcheck_interval;
16221 if test "x$withval" != "xno" ; then
16222 dpv=$withval
16228 cat >>confdefs.h <<_ACEOF
16229 #define DF_MAILCHECK "$dpv"
16230 _ACEOF
16234 dpv=420
16236 # Check whether --with-checkpoint-interval was given.
16237 if test "${with_checkpoint_interval+set}" = set; then :
16238 withval=$with_checkpoint_interval;
16239 if test "x$withval" != "xno" ; then
16240 dpv=$withval
16246 cat >>confdefs.h <<_ACEOF
16247 #define CHECK_POINT_TIME $dpv
16248 _ACEOF
16252 dpv=12
16254 # Check whether --with-checkpoint-frequency was given.
16255 if test "${with_checkpoint_frequency+set}" = set; then :
16256 withval=$with_checkpoint_frequency;
16257 if test "x$withval" != "xno" ; then
16258 dpv=$withval
16264 cat >>confdefs.h <<_ACEOF
16265 #define CHECK_POINT_FREQ $dpv
16266 _ACEOF
16270 dpv=24
16272 # Check whether --with-display-rows was given.
16273 if test "${with_display_rows+set}" = set; then :
16274 withval=$with_display_rows;
16275 if test "x$withval" != "xno" ; then
16276 dpv=$withval
16282 cat >>confdefs.h <<_ACEOF
16283 #define DEFAULT_LINES_ON_TERMINAL $dpv
16284 _ACEOF
16288 dpv=80
16290 # Check whether --with-display-columns was given.
16291 if test "${with_display_columns+set}" = set; then :
16292 withval=$with_display_columns;
16293 if test "x$withval" != "xno" ; then
16294 dpv=$withval
16300 cat >>confdefs.h <<_ACEOF
16301 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
16302 _ACEOF
16306 dpv=200
16308 # Check whether --with-max-display-rows was given.
16309 if test "${with_max_display_rows+set}" = set; then :
16310 withval=$with_max_display_rows;
16311 if test "x$withval" != "xno" ; then
16312 dpv=$withval
16318 cat >>confdefs.h <<_ACEOF
16319 #define MAX_SCREEN_ROWS $dpv
16320 _ACEOF
16324 dpv=500
16326 # Check whether --with-max-display-columns was given.
16327 if test "${with_max_display_columns+set}" = set; then :
16328 withval=$with_max_display_columns;
16329 if test "x$withval" != "xno" ; then
16330 dpv=$withval
16336 cat >>confdefs.h <<_ACEOF
16337 #define MAX_SCREEN_COLS $dpv
16338 _ACEOF
16342 dpv=74
16344 # Check whether --with-fill-column was given.
16345 if test "${with_fill_column+set}" = set; then :
16346 withval=$with_fill_column;
16347 if test "x$withval" != "xno" ; then
16348 dpv=$withval
16354 cat >>confdefs.h <<_ACEOF
16355 #define DF_FILLCOL "$dpv"
16356 _ACEOF
16360 dpv=80
16362 # Check whether --with-max_fill-column was given.
16363 if test "${with_max_fill_column+set}" = set; then :
16364 withval=$with_max_fill_column;
16365 if test "x$withval" != "xno" ; then
16366 dpv=$withval
16372 cat >>confdefs.h <<_ACEOF
16373 #define MAX_FILLCOL $dpv
16374 _ACEOF
16378 dpv=2
16380 # Check whether --with-debug-level was given.
16381 if test "${with_debug_level+set}" = set; then :
16382 withval=$with_debug_level;
16383 if test "x$withval" != "xno" ; then
16384 dpv=$withval
16390 cat >>confdefs.h <<_ACEOF
16391 #define DEFAULT_DEBUG $dpv
16392 _ACEOF
16396 dpv=4
16398 # Check whether --with-debug-files was given.
16399 if test "${with_debug_files+set}" = set; then :
16400 withval=$with_debug_files;
16401 if test "x$withval" != "xno" ; then
16402 dpv=$withval
16408 cat >>confdefs.h <<_ACEOF
16409 #define NUMDEBUGFILES $dpv
16410 _ACEOF
16414 dpv=.pine-debug
16416 # Check whether --with-debug-file was given.
16417 if test "${with_debug_file+set}" = set; then :
16418 withval=$with_debug_file;
16419 if test "x$withval" != "xno" ; then
16420 dpv=$withval
16426 cat >>confdefs.h <<_ACEOF
16427 #define DEBUGFILE "$dpv"
16428 _ACEOF
16432 dpv="\$Forwarded"
16434 # Check whether --with-forwarded-keyword was given.
16435 if test "${with_forwarded_keyword+set}" = set; then :
16436 withval=$with_forwarded_keyword;
16437 if test "x$withval" != "xno" ; then
16438 dpv=$withval
16444 cat >>confdefs.h <<_ACEOF
16445 #define FORWARDED_FLAG "$dpv"
16446 _ACEOF
16450 dpv=2
16452 # Check whether --with-display-overlap was given.
16453 if test "${with_display_overlap+set}" = set; then :
16454 withval=$with_display_overlap;
16455 if test "x$withval" != "xno" ; then
16456 dpv=$withval
16462 cat >>confdefs.h <<_ACEOF
16463 #define DF_OVERLAP "$dpv"
16464 _ACEOF
16468 dpv=0
16470 # Check whether --with-display-margin was given.
16471 if test "${with_display_margin+set}" = set; then :
16472 withval=$with_display_margin;
16473 if test "x$withval" != "xno" ; then
16474 dpv=$withval
16480 cat >>confdefs.h <<_ACEOF
16481 #define DF_MARGIN "$dpv"
16482 _ACEOF
16486 dpv=sent-mail
16488 # Check whether --with-default-fcc was given.
16489 if test "${with_default_fcc+set}" = set; then :
16490 withval=$with_default_fcc;
16491 if test "x$withval" != "xno" ; then
16492 dpv=$withval
16498 cat >>confdefs.h <<_ACEOF
16499 #define DF_DEFAULT_FCC "$dpv"
16500 _ACEOF
16504 dpv=saved-messages
16506 # Check whether --with-default-save-folder was given.
16507 if test "${with_default_save_folder+set}" = set; then :
16508 withval=$with_default_save_folder;
16509 if test "x$withval" != "xno" ; then
16510 dpv=$withval
16516 cat >>confdefs.h <<_ACEOF
16517 #define DEFAULT_SAVE "$dpv"
16518 _ACEOF
16522 dpv=postponed-mail
16524 # Check whether --with-default-legacy-postponed-folder was given.
16525 if test "${with_default_legacy_postponed_folder+set}" = set; then :
16526 withval=$with_default_legacy_postponed_folder;
16527 if test "x$withval" != "xno" ; then
16528 dpv=$withval
16534 cat >>confdefs.h <<_ACEOF
16535 #define POSTPONED_MAIL "$dpv"
16536 _ACEOF
16540 dpv=postponed-msgs
16542 # Check whether --with-default-postponed-folder was given.
16543 if test "${with_default_postponed_folder+set}" = set; then :
16544 withval=$with_default_postponed_folder;
16545 if test "x$withval" != "xno" ; then
16546 dpv=$withval
16552 cat >>confdefs.h <<_ACEOF
16553 #define POSTPONED_MSGS "$dpv"
16554 _ACEOF
16558 dpv=Trash
16560 # Check whether --with-default-trash-folder was given.
16561 if test "${with_default_trash_folder+set}" = set; then :
16562 withval=$with_default_trash_folder;
16563 if test "x$withval" != "xno" ; then
16564 dpv=$withval
16570 cat >>confdefs.h <<_ACEOF
16571 #define TRASH_FOLDER "$dpv"
16572 _ACEOF
16576 dpv=.pine-interrupted-mail
16578 # Check whether --with-default-interrupted-mail was given.
16579 if test "${with_default_interrupted_mail+set}" = set; then :
16580 withval=$with_default_interrupted_mail;
16581 if test "x$withval" != "xno" ; then
16582 dpv=$withval
16588 cat >>confdefs.h <<_ACEOF
16589 #define INTERRUPTED_MAIL "$dpv"
16590 _ACEOF
16594 dpv=dead.letter
16596 # Check whether --with-default-dead-letter-folder was given.
16597 if test "${with_default_dead_letter_folder+set}" = set; then :
16598 withval=$with_default_dead_letter_folder;
16599 if test "x$withval" != "xno" ; then
16600 dpv=$withval
16606 cat >>confdefs.h <<_ACEOF
16607 #define DEADLETTER "$dpv"
16608 _ACEOF
16612 dpv=mail
16614 # Check whether --with-default-mail-directory was given.
16615 if test "${with_default_mail_directory+set}" = set; then :
16616 withval=$with_default_mail_directory;
16617 if test "x$withval" != "xno" ; then
16618 dpv=$withval
16624 cat >>confdefs.h <<_ACEOF
16625 #define DF_MAIL_DIRECTORY "$dpv"
16626 _ACEOF
16630 dpv=INBOX
16632 # Check whether --with-default-inbox-name was given.
16633 if test "${with_default_inbox_name+set}" = set; then :
16634 withval=$with_default_inbox_name;
16635 if test "x$withval" != "xno" ; then
16636 dpv=$withval
16642 cat >>confdefs.h <<_ACEOF
16643 #define INBOX_NAME "$dpv"
16644 _ACEOF
16648 dpv=.signature
16650 # Check whether --with-default-signature-file was given.
16651 if test "${with_default_signature_file+set}" = set; then :
16652 withval=$with_default_signature_file;
16653 if test "x$withval" != "xno" ; then
16654 dpv=$withval
16660 cat >>confdefs.h <<_ACEOF
16661 #define DF_SIGNATURE_FILE "$dpv"
16662 _ACEOF
16666 dpv=no
16668 # Check whether --with-default-elm-style-save was given.
16669 if test "${with_default_elm_style_save+set}" = set; then :
16670 withval=$with_default_elm_style_save;
16671 if test "x$withval" != "xno" ; then
16672 dpv=$withval
16678 cat >>confdefs.h <<_ACEOF
16679 #define DF_ELM_STYLE_SAVE "$dpv"
16680 _ACEOF
16684 dpv=no
16686 # Check whether --with-default-header-in-reply was given.
16687 if test "${with_default_header_in_reply+set}" = set; then :
16688 withval=$with_default_header_in_reply;
16689 if test "x$withval" != "xno" ; then
16690 dpv=$withval
16696 cat >>confdefs.h <<_ACEOF
16697 #define DF_HEADER_IN_REPLY "$dpv"
16698 _ACEOF
16702 dpv=no
16704 # Check whether --with-default-old-style-reply was given.
16705 if test "${with_default_old_style_reply+set}" = set; then :
16706 withval=$with_default_old_style_reply;
16707 if test "x$withval" != "xno" ; then
16708 dpv=$withval
16714 cat >>confdefs.h <<_ACEOF
16715 #define DF_OLD_STYLE_REPLY "$dpv"
16716 _ACEOF
16720 dpv=no
16722 # Check whether --with-default-use-only-domain-name was given.
16723 if test "${with_default_use_only_domain_name+set}" = set; then :
16724 withval=$with_default_use_only_domain_name;
16725 if test "x$withval" != "xno" ; then
16726 dpv=$withval
16732 cat >>confdefs.h <<_ACEOF
16733 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
16734 _ACEOF
16738 dpv=no
16740 # Check whether --with-default-save-by-sender was given.
16741 if test "${with_default_save_by_sender+set}" = set; then :
16742 withval=$with_default_save_by_sender;
16743 if test "x$withval" != "xno" ; then
16744 dpv=$withval
16750 cat >>confdefs.h <<_ACEOF
16751 #define DF_SAVE_BY_SENDER "$dpv"
16752 _ACEOF
16756 dpv=arrival
16758 # Check whether --with-default-sort-key was given.
16759 if test "${with_default_sort_key+set}" = set; then :
16760 withval=$with_default_sort_key;
16761 if test "x$withval" != "xno" ; then
16762 dpv=$withval
16768 cat >>confdefs.h <<_ACEOF
16769 #define DF_SORT_KEY "$dpv"
16770 _ACEOF
16774 dpv=fullname-with-lists-last
16776 # Check whether --with-default-addressbook-sort-rule was given.
16777 if test "${with_default_addressbook_sort_rule+set}" = set; then :
16778 withval=$with_default_addressbook_sort_rule;
16779 if test "x$withval" != "xno" ; then
16780 dpv=$withval
16786 cat >>confdefs.h <<_ACEOF
16787 #define DF_AB_SORT_RULE "$dpv"
16788 _ACEOF
16792 dpv=alphabetical
16794 # Check whether --with-default-folder-sort-rule was given.
16795 if test "${with_default_folder_sort_rule+set}" = set; then :
16796 withval=$with_default_folder_sort_rule;
16797 if test "x$withval" != "xno" ; then
16798 dpv=$withval
16804 cat >>confdefs.h <<_ACEOF
16805 #define DF_FLD_SORT_RULE "$dpv"
16806 _ACEOF
16810 dpv=default-folder
16812 # Check whether --with-default-saved-message-name-rule was given.
16813 if test "${with_default_saved_message_name_rule+set}" = set; then :
16814 withval=$with_default_saved_message_name_rule;
16815 if test "x$withval" != "xno" ; then
16816 dpv=$withval
16822 cat >>confdefs.h <<_ACEOF
16823 #define DF_SAVED_MSG_NAME_RULE "$dpv"
16824 _ACEOF
16828 dpv=default-fcc
16830 # Check whether --with-default-fcc-rule was given.
16831 if test "${with_default_fcc_rule+set}" = set; then :
16832 withval=$with_default_fcc_rule;
16833 if test "x$withval" != "xno" ; then
16834 dpv=$withval
16840 cat >>confdefs.h <<_ACEOF
16841 #define DF_FCC_RULE "$dpv"
16842 _ACEOF
16846 dpv=lpr
16848 # Check whether --with-default-standard-printer was given.
16849 if test "${with_default_standard_printer+set}" = set; then :
16850 withval=$with_default_standard_printer;
16851 if test "x$withval" != "xno" ; then
16852 dpv=$withval
16858 cat >>confdefs.h <<_ACEOF
16859 #define DF_STANDARD_PRINTER "$dpv"
16860 _ACEOF
16864 dpv=attached-to-ansi
16866 # Check whether --with-default-ansi-printer was given.
16867 if test "${with_default_ansi_printer+set}" = set; then :
16868 withval=$with_default_ansi_printer;
16869 if test "x$withval" != "xno" ; then
16870 dpv=$withval
16876 cat >>confdefs.h <<_ACEOF
16877 #define ANSI_PRINTER "$dpv"
16878 _ACEOF
16882 dpv=.addressbook
16884 # Check whether --with-default-addressbook was given.
16885 if test "${with_default_addressbook+set}" = set; then :
16886 withval=$with_default_addressbook;
16887 if test "x$withval" != "xno" ; then
16888 dpv=$withval
16894 cat >>confdefs.h <<_ACEOF
16895 #define DF_ADDRESSBOOK "$dpv"
16896 _ACEOF
16900 dpv="Local Support"
16902 # Check whether --with-default-local-fullname was given.
16903 if test "${with_default_local_fullname+set}" = set; then :
16904 withval=$with_default_local_fullname;
16905 if test "x$withval" != "xno" ; then
16906 dpv=$withval
16912 cat >>confdefs.h <<_ACEOF
16913 #define DF_LOCAL_FULLNAME "$dpv"
16914 _ACEOF
16918 dpv=postmaster
16920 # Check whether --with-default-local-address was given.
16921 if test "${with_default_local_address+set}" = set; then :
16922 withval=$with_default_local_address;
16923 if test "x$withval" != "xno" ; then
16924 dpv=$withval
16930 cat >>confdefs.h <<_ACEOF
16931 #define DF_LOCAL_ADDRESS "$dpv"
16932 _ACEOF
16936 dpv=1
16938 # Check whether --with-default-keyboard-lock-count was given.
16939 if test "${with_default_keyboard_lock_count+set}" = set; then :
16940 withval=$with_default_keyboard_lock_count;
16941 if test "x$withval" != "xno" ; then
16942 dpv=$withval
16948 cat >>confdefs.h <<_ACEOF
16949 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
16950 _ACEOF
16954 dpv=3
16956 # Check whether --with-default-remote-addressbook-history was given.
16957 if test "${with_default_remote_addressbook_history+set}" = set; then :
16958 withval=$with_default_remote_addressbook_history;
16959 if test "x$withval" != "xno" ; then
16960 dpv=$withval
16966 cat >>confdefs.h <<_ACEOF
16967 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
16968 _ACEOF
16972 dpv=.alpine-smime/public
16974 # Check whether --with-smime-public-cert-directory was given.
16975 if test "${with_smime_public_cert_directory+set}" = set; then :
16976 withval=$with_smime_public_cert_directory;
16977 if test "x$withval" != "xno" ; then
16978 dpv=$withval
16984 cat >>confdefs.h <<_ACEOF
16985 #define DF_PUBLICCERT_DIR "$dpv"
16986 _ACEOF
16990 dpv=.alpine-smime/private
16992 # Check whether --with-smime-private-key-directory was given.
16993 if test "${with_smime_private_key_directory+set}" = set; then :
16994 withval=$with_smime_private_key_directory;
16995 if test "x$withval" != "xno" ; then
16996 dpv=$withval
17002 cat >>confdefs.h <<_ACEOF
17003 #define DF_PRIVATEKEY_DIR "$dpv"
17004 _ACEOF
17008 dpv=.alpine-smime/ca
17010 # Check whether --with-smime-cacert-directory was given.
17011 if test "${with_smime_cacert_directory+set}" = set; then :
17012 withval=$with_smime_cacert_directory;
17013 if test "x$withval" != "xno" ; then
17014 dpv=$withval
17020 cat >>confdefs.h <<_ACEOF
17021 #define DF_CACERT_DIR "$dpv"
17022 _ACEOF
17026 dpv=ANSI_PRINTER
17028 # Check whether --with-default-printer was given.
17029 if test "${with_default_printer+set}" = set; then :
17030 withval=$with_default_printer;
17031 if test "x$withval" != "xno" ; then
17032 dpv=$withval
17038 cat >>confdefs.h <<_ACEOF
17039 #define DF_DEFAULT_PRINTER $dpv
17040 _ACEOF
17045 cat >>confdefs.h <<_ACEOF
17046 #define DF_PUBLIC_CONTAINER "PublicContainer"
17047 _ACEOF
17050 cat >>confdefs.h <<_ACEOF
17051 #define DF_PRIVATE_CONTAINER "PrivateContainer"
17052 _ACEOF
17055 cat >>confdefs.h <<_ACEOF
17056 #define DF_CA_CONTAINER "CAContainer"
17057 _ACEOF
17061 # Check whether --with-passfile was given.
17062 if test "${with_passfile+set}" = set; then :
17063 withval=$with_passfile;
17064 case "$withval" in
17067 yes)
17070 alpine_PASSFILE=$withval
17072 esac
17079 # Check whether --with-local-password-cache was given.
17080 if test "${with_local_password_cache+set}" = set; then :
17081 withval=$with_local_password_cache;
17082 alpine_os_credential_cache=$withval
17088 # Check whether --with-local-password-cache-method was given.
17089 if test "${with_local_password_cache_method+set}" = set; then :
17090 withval=$with_local_password_cache_method;
17091 alpine_os_credential_cache_method=$withval
17096 if test -n "$alpine_PASSFILE" ; then
17097 case $alpine_os_credential_cache in
17101 alpine_os_credential_cache="no"
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
17103 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
17105 esac
17107 cat >>confdefs.h <<_ACEOF
17108 #define PASSFILE "$alpine_PASSFILE"
17109 _ACEOF
17114 # Check whether --with-default-sshpath was given.
17115 if test "${with_default_sshpath+set}" = set; then :
17116 withval=$with_default_sshpath;
17117 case "$withval" in
17120 yes)
17124 cat >>confdefs.h <<_ACEOF
17125 #define DF_SSHPATH "$withval"
17126 _ACEOF
17129 esac
17135 # Check whether --with-default-sshcmd was given.
17136 if test "${with_default_sshcmd+set}" = set; then :
17137 withval=$with_default_sshcmd;
17138 case "$withval" in
17141 yes)
17145 cat >>confdefs.h <<_ACEOF
17146 #define DF_SSHCMD "$withval"
17147 _ACEOF
17150 esac
17156 # Check whether --with-ssl was given.
17157 if test "${with_ssl+set}" = set; then :
17158 withval=$with_ssl; with_ssl=$withval
17162 if test "x$with_ssl" = "xno" ; then
17163 alpine_SSLTYPE="none"
17164 elif test -d /usr/local/ssl ; then
17165 alpine_SSLDIR="/usr/local/ssl"
17166 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17167 alpine_SSLLIB="$alpine_SSLDIR/lib"
17168 else
17169 case $host in
17170 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
17171 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
17172 alpine_SSLTYPE="nopwd"
17173 if test -d /etc/pki/tls ; then
17174 alpine_SSLDIR="/etc/pki/tls"
17175 else
17176 alpine_SSLDIR="/usr/share/ssl"
17178 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17179 alpine_SSLKEYS="$alpine_SSLDIR/private"
17180 alpine_SSLINCLUDE="/usr/include/openssl"
17181 alpine_SSLLIB="/usr/lib"
17182 elif test -f /etc/mandrake-release ; then
17183 alpine_SSLDIR="/usr/lib/ssl"
17184 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17185 alpine_SSLKEYS="$alpine_SSLDIR/private"
17186 alpine_SSLINCLUDE="/usr/include/openssl"
17187 alpine_SSLLIB="/usr/lib"
17188 elif test -f /etc/SuSE-release ; then
17189 alpine_SSLTYPE="nopwd"
17190 alpine_SSLDIR="/etc/ssl"
17191 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17192 alpine_SSLKEYS="$alpine_SSLDIR/private"
17193 alpine_SSLINCLUDE="/usr/include/openssl"
17194 alpine_SSLLIB="/usr/lib"
17195 elif test -d /etc/osso-af-init ; then
17196 alpine_SSLTYPE="nopwd"
17197 alpine_SSLDIR="/usr"
17198 alpine_SSLCERTS="/usr/share/certs"
17199 alpine_SSLINCLUDE="/usr/include/openssl"
17200 alpine_SSLLIB="/usr/lib"
17201 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17202 if test ! -d /etc/osso-af-init ; then
17203 alpine_SSLDIR="/etc/ssl"
17204 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17205 alpine_SSLKEYS="$alpine_SSLDIR/private"
17206 alpine_SSLINCLUDE="/usr/include/openssl"
17207 alpine_SSLLIB="/usr/lib"
17209 elif test -f /etc/manjaro-release ; then
17210 alpine_SSLDIR="/etc/ssl"
17211 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17212 alpine_SSLKEYS="$alpine_SSLDIR/private"
17213 alpine_SSLINCLUDE="/usr/include/openssl"
17214 alpine_SSLLIB="/usr/lib"
17215 else
17216 alpine_SSLTYPE="nopwd"
17217 alpine_SSLDIR="/usr"
17218 alpine_SSLCERTS="/etc/ssl/certs"
17221 *-apple-darwin*)
17222 alpine_SSLTYPE="nopwd"
17223 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
17224 if test -d /usr/local/opt/openssl ; then
17225 alpine_SSLDIR="/usr/local/opt/openssl"
17226 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17227 alpine_SSLLIB="$alpine_SSLDIR/lib"
17228 alpine_SSLCERTS="/usr/local/etc/openssl"
17229 alpine_SSLKEYS="$alpine_SSLDIR/private"
17230 elif test -d /opt/local/etc/openssl ; then
17231 alpine_SSLDIR="/opt/local"
17232 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
17233 alpine_SSLLIB="$alpine_SSLDIR/lib"
17234 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
17235 alpine_SSLKEYS="/opt/local/etc/openssl/private"
17236 elif test -d /sw/etc/ssl ; then
17237 alpine_SSLDIR="/sw/etc/ssl"
17238 alpine_SSLINCLUDE="/sw/include"
17239 alpine_SSLLIB="/sw/lib"
17240 alpine_SSLCERTS="/sw/etc/ssl/certs"
17241 alpine_SSLKEYS="/sw/etc/ssl/private"
17242 elif test -d /usr/local/ssl ; then
17243 alpine_SSLDIR="/usr/local/ssl"
17244 elif test -d /System/Library/OpenSSL ; then
17245 alpine_SSLDIR="/System/Library/OpenSSL"
17246 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17247 alpine_SSLKEYS="$alpine_SSLDIR/private"
17248 alpine_SSLLIB="/usr/lib"
17249 alpine_SSLINCLUDE="/usr/include/openssl"
17252 *-*-netbsd*)
17253 alpine_SSLDIR="/etc/openssl"
17254 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17255 alpine_SSLKEYS="$alpine_SSLDIR/private"
17256 alpine_SSLINCLUDE="/usr/include/openssl"
17257 alpine_SSLLIB="/usr/lib"
17259 *-*-dragonfly*)
17260 alpine_SSLDIR="/etc/openssl"
17261 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17262 alpine_SSLKEYS="$alpine_SSLDIR/private"
17263 alpine_SSLINCLUDE="/usr/include/openssl"
17264 alpine_SSLLIB="/usr/lib"
17266 *-openbsd*)
17267 alpine_SSLTYPE="nopwd"
17268 alpine_SSLDIR="/usr"
17269 alpine_SSLCERTS="/etc/ssl/certs"
17271 *-*-freebsd*)
17272 alpine_SSLDIR="/etc/ssl"
17273 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17274 alpine_SSLKEYS="$alpine_SSLDIR/private"
17275 if test -d /usr/local/include/openssl ; then
17276 alpine_SSLINCLUDE="/usr/local/include/openssl"
17277 alpine_SSLLIB="/usr/local/lib"
17278 else
17279 alpine_SSLINCLUDE="/usr/include/openssl"
17280 alpine_SSLLIB="/usr/lib"
17283 *-*-openbsd*)
17284 alpine_SSLDIR="/etc/ssl"
17285 alpine_SSLINCLUDE="/usr/include/openssl"
17286 alpine_SSLLIB="/usr/lib"
17287 alpine_SSLCERTS="/etc/ssl"
17288 alpine_SSLKEYS="/etc/ssl/private"
17290 *-*-cygwin)
17291 alpine_SSLDIR="/usr/ssl"
17292 alpine_SSLCERTS="$alpine_SSLDIR/certs"
17293 alpine_SSLKEYS="$alpine_SSLDIR/certs"
17294 alpine_SSLINCLUDE="/usr/include/openssl"
17295 alpine_SSLLIB="/usr/lib"
17297 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
17298 alpine_SSLTYPE="sco.nopwd"
17299 alpine_SSLDIR="/usr/local/ssl"
17301 *-*-solaris*)
17302 if test -d /usr/include/openssl ; then
17303 alpine_SSLINCLUDE="/usr/include/openssl"
17304 elif test -d /usr/sfw/include/openssl ; then
17305 alpine_SSLDIR="/usr/sfw"
17306 elif test -d /opt/csw/include/openssl ; then
17307 alpine_SSLDIR="/opt/csw"
17308 if test -d /opt/csw/ssl/certs ; then
17309 alpine_SSLCERTS="/opt/csw/ssl/certs"
17312 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
17313 alpine_SSLCERTS="/etc/certs"
17317 alpine_SSLTYPE="nopwd"
17318 alpine_SSLDIR="/usr/local/ssl"
17320 esac
17323 if test "x$alpine_SSLTYPE" != "xnone" ; then
17325 # Check whether --with-ssl-dir was given.
17326 if test "${with_ssl_dir+set}" = set; then :
17327 withval=$with_ssl_dir;
17328 if test "x$withval" != "xno" ; then
17329 alpine_SSLDIR=$withval
17330 alpine_SSLINCLUDE=$alpine_SSLDIR/include
17331 alpine_SSLLIB=$alpine_SSLDIR/lib
17338 # Check whether --with-ssl-certs-dir was given.
17339 if test "${with_ssl_certs_dir+set}" = set; then :
17340 withval=$with_ssl_certs_dir;
17341 if test "x$withval" != "xno" ; then
17342 alpine_SSLCERTS=$withval
17349 # Check whether --with-ssl-include-dir was given.
17350 if test "${with_ssl_include_dir+set}" = set; then :
17351 withval=$with_ssl_include_dir;
17352 if test "x$withval" != "xno" ; then
17353 alpine_SSLINCLUDE=$withval
17360 # Check whether --with-ssl-lib-dir was given.
17361 if test "${with_ssl_lib_dir+set}" = set; then :
17362 withval=$with_ssl_lib_dir;
17363 if test "x$withval" != "xno" ; then
17364 alpine_SSLLIB=$withval
17370 if test -n "$alpine_SSLINCLUDE" ; then
17371 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
17372 elif test -n "$alpine_SSLDIR" ; then
17373 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
17375 if test -n "$alpine_SSLLIB" ; then
17376 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
17377 elif test -n "$alpine_SSLDIR" ; then
17378 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
17384 # Check whether --with-krb5 was given.
17385 if test "${with_krb5+set}" = set; then :
17386 withval=$with_krb5; with_krb5=$withval
17390 if test "x$with_krb5" = "xno" ; then
17391 alpine_GSSTYPE="none"
17392 else
17393 alpine_GSSTYPE=
17396 # Check whether --with-krb5-dir was given.
17397 if test "${with_krb5_dir+set}" = set; then :
17398 withval=$with_krb5_dir;
17399 if test "x$withval" != "xno" ; then
17400 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17401 LDFLAGS="$LDFLAGS -L${withval}/lib"
17408 # Check whether --with-krb5-include-dir was given.
17409 if test "${with_krb5_include_dir+set}" = set; then :
17410 withval=$with_krb5_include_dir;
17411 if test "x$withval" != "xno" ; then
17412 CPPFLAGS="$CPPFLAGS -I$withval"
17419 # Check whether --with-krb5-lib-dir was given.
17420 if test "${with_krb5_lib_dir+set}" = set; then :
17421 withval=$with_krb5_lib_dir;
17422 if test "x$withval" != "xno" ; then
17423 LDFLAGS="$LDFLAGS -L$withval"
17431 # Check whether --with-ldap was given.
17432 if test "${with_ldap+set}" = set; then :
17433 withval=$with_ldap; with_ldap=$withval
17437 if test "x$with_ldap" = "xno" ; then
17438 alpine_with_ldap=
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
17440 $as_echo "$as_me: Excluding LDAP Support" >&6;}
17441 else
17443 alpine_with_ldap=yes
17445 # Check whether --with-ldap-dir was given.
17446 if test "${with_ldap_dir+set}" = set; then :
17447 withval=$with_ldap_dir;
17448 if test "x$withval" != "xno" ; then
17449 CPPFLAGS="$CPPFLAGS -I${withval}/include"
17450 LDFLAGS="$LDFLAGS -L${withval}/lib"
17457 # Check whether --with-ldap-include-dir was given.
17458 if test "${with_ldap_include_dir+set}" = set; then :
17459 withval=$with_ldap_include_dir;
17460 if test "x$withval" != "xno" ; then
17461 CPPFLAGS="$CPPFLAGS -I$withval"
17468 # Check whether --with-ldap-lib-dir was given.
17469 if test "${with_ldap_lib_dir+set}" = set; then :
17470 withval=$with_ldap_lib_dir;
17471 if test "x$withval" != "xno" ; then
17472 LDFLAGS="$LDFLAGS -L$withval"
17480 # Check whether --with-smime was given.
17481 if test "${with_smime+set}" = set; then :
17482 withval=$with_smime; with_smime=$withval
17487 # Check whether --with-tcl was given.
17488 if test "${with_tcl+set}" = set; then :
17489 withval=$with_tcl; with_tcl=$withval
17493 if test "x$with_tcl" = "xno" ; then
17494 WEB_BUILD=
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
17496 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
17497 else
17499 # Check whether --with-tcl-lib was given.
17500 if test "${with_tcl_lib+set}" = set; then :
17501 withval=$with_tcl_lib;
17502 if test "x$withval" != "xno" ; then
17503 alpine_TCLLIB=$withval
17509 # Check whether --with-tcl-include was given.
17510 if test "${with_tcl_include+set}" = set; then :
17511 withval=$with_tcl_include;
17512 if test "x$withval" != "xno" ; then
17513 CPPFLAGS="$CPPFLAGS -I$withval"
17514 alpine_TCLINC=$withval
17522 # Check whether --with-supplied-regex was given.
17523 if test "${with_supplied_regex+set}" = set; then :
17524 withval=$with_supplied_regex; alpine_REGEX=$withval
17529 # Check whether --with-pthread was given.
17530 if test "${with_pthread+set}" = set; then :
17531 withval=$with_pthread; with_pthread=$withval
17536 # Check whether --with-system-mail-directory was given.
17537 if test "${with_system_mail_directory+set}" = set; then :
17538 withval=$with_system_mail_directory;
17539 if test "x$withval" != "xno" ; then
17540 alpine_with_local_maildir="$withval"
17547 # Check whether --with-c-client-target was given.
17548 if test "${with_c_client_target+set}" = set; then :
17549 withval=$with_c_client_target;
17550 if test "x$withval" != "xno" ;then
17551 alpine_with_c_client_target="$withval"
17558 alpine_PAM="none"
17560 case "$host" in
17561 *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*)
17562 alpine_path_delim="/"
17563 alpine_mode_readonly="(0600)"
17564 if test -f /etc/fedora-release ; then
17565 systype="LFD"
17566 alpine_PAM="yes"
17567 if test -d /etc/pki/tls ; then
17568 alpine_c_client_target="lfd"
17569 else
17570 alpine_c_client_target="lrh"
17572 elif test -f /etc/mandrake-release ; then
17573 systype="LMD"
17574 alpine_c_client_target="lmd"
17575 alpine_PAM="yes"
17576 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
17577 systype="LRH"
17578 alpine_PAM="yes"
17579 if test -d /etc/pki/tls ; then
17580 alpine_c_client_target="lr5"
17581 else
17582 alpine_c_client_target="lrh"
17584 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
17585 if test -d /etc/osso-af-init ; then
17586 systype="LN8"
17587 alpine_c_client_target="ln8"
17588 else
17589 systype="DEB"
17590 alpine_c_client_target="ldb"
17591 alpine_PAM="yes"
17593 elif test -f /etc/SuSE-release ; then
17594 systype="LSU"
17595 alpine_c_client_target="lsu"
17596 alpine_PAM="yes"
17597 else
17598 systype="LNX"
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17600 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17601 if ${ac_cv_lib_pam_pam_start+:} false; then :
17602 $as_echo_n "(cached) " >&6
17603 else
17604 ac_check_lib_save_LIBS=$LIBS
17605 LIBS="-lpam $LIBS"
17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607 /* end confdefs.h. */
17609 /* Override any GCC internal prototype to avoid an error.
17610 Use char because int might match the return type of a GCC
17611 builtin and then its argument prototype would still apply. */
17612 #ifdef __cplusplus
17613 extern "C"
17614 #endif
17615 char pam_start ();
17617 main ()
17619 return pam_start ();
17621 return 0;
17623 _ACEOF
17624 if ac_fn_c_try_link "$LINENO"; then :
17625 ac_cv_lib_pam_pam_start=yes
17626 else
17627 ac_cv_lib_pam_pam_start=no
17629 rm -f core conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17631 LIBS=$ac_check_lib_save_LIBS
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17634 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17635 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17637 alpine_c_client_target="lnp"
17638 alpine_PAM="yes"
17640 else
17642 if test -f /etc/shadow ; then
17643 alpine_c_client_target="slx"
17644 else
17645 alpine_c_client_target="lnx"
17652 *-apple-darwin*)
17653 systype="OSX"
17654 alpine_path_delim="/"
17655 alpine_mode_readonly="(0600)"
17656 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
17657 AM_CFLAGS="$AM_CFLAGS -Dbsd"
17659 $as_echo "#define OSX_TARGET 1" >>confdefs.h
17661 case "$alpine_os_credential_cache" in
17666 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
17669 esac
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17671 $as_echo_n "checking for pam_start in -lpam... " >&6; }
17672 if ${ac_cv_lib_pam_pam_start+:} false; then :
17673 $as_echo_n "(cached) " >&6
17674 else
17675 ac_check_lib_save_LIBS=$LIBS
17676 LIBS="-lpam $LIBS"
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17680 /* Override any GCC internal prototype to avoid an error.
17681 Use char because int might match the return type of a GCC
17682 builtin and then its argument prototype would still apply. */
17683 #ifdef __cplusplus
17684 extern "C"
17685 #endif
17686 char pam_start ();
17688 main ()
17690 return pam_start ();
17692 return 0;
17694 _ACEOF
17695 if ac_fn_c_try_link "$LINENO"; then :
17696 ac_cv_lib_pam_pam_start=yes
17697 else
17698 ac_cv_lib_pam_pam_start=no
17700 rm -f core conftest.err conftest.$ac_objext \
17701 conftest$ac_exeext conftest.$ac_ext
17702 LIBS=$ac_check_lib_save_LIBS
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17705 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
17706 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
17708 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
17709 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
17711 alpine_PAM="yes"
17712 alpine_c_client_target="oxs"
17714 else
17715 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
17716 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
17718 alpine_PAM="yes"
17719 alpine_c_client_target="oxp"
17721 else
17723 alpine_PAM="none"
17724 alpine_pam_none_reason="header files not found"
17734 else
17736 alpine_c_client_target="osx"
17741 *-*-solaris*)
17742 if test x$GCC = "xyes" ; then
17743 systype="GSO"
17744 alpine_c_client_target="gso"
17745 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
17746 else
17747 systype="SOC"
17748 alpine_c_client_target="soc"
17750 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17753 alpine_path_delim="/"
17754 alpine_mode_readonly="(0600)"
17756 *-*-sunos4*)
17757 systype="SUN"
17758 alpine_path_delim="/"
17759 alpine_mode_readonly="(0600)"
17760 alpine_c_client_target="s40"
17762 *-*-sco3.2v5*)
17763 if test x$GCC = "xyes" ; then
17764 systype="GO5"
17765 alpine_c_client_target="go5"
17766 else
17767 systype="SC5"
17768 alpine_c_client_target="sc5"
17770 alpine_path_delim="/"
17771 alpine_mode_readonly="(0600)"
17773 *-next-*)
17774 systype="NXT"
17775 alpine_path_delim="/"
17776 alpine_mode_readonly="(0600)"
17777 alpine_c_client_target="nx3"
17779 *-*-netbsd*)
17780 systype="NEB"
17781 alpine_path_delim="/"
17782 alpine_mode_readonly="(0600)"
17783 alpine_c_client_target="neb"
17785 *-*-dragonfly*)
17786 systype="DFB"
17787 alpine_path_delim="/"
17788 alpine_mode_readonly="(0600)"
17789 alpine_c_client_target="neb"
17791 *-*-bsdi*)
17792 systype="BSI"
17793 alpine_path_delim="/"
17794 alpine_mode_readonly="(0600)"
17795 alpine_c_client_target="bsi"
17797 *-*-freebsd*)
17798 systype="BSF"
17799 alpine_path_delim="/"
17800 alpine_mode_readonly="(0600)"
17801 alpine_c_client_target="bsf"
17802 LIBS="$LIBS $LIBINTL"
17804 *-*-openbsd*)
17805 systype="BSO"
17806 alpine_path_delim="/"
17807 alpine_mode_readonly="(0600)"
17808 alpine_c_client_target="bso"
17809 LIBS="$LIBS $LIBINTL"
17811 *-*-aix5*)
17812 systype="A52"
17813 alpine_path_delim="/"
17814 alpine_mode_readonly="(0600)"
17815 alpine_c_client_target="a52"
17817 *-*-aix4*)
17818 systype="A41"
17819 alpine_path_delim="/"
17820 alpine_mode_readonly="(0600)"
17821 alpine_c_client_target="a41"
17823 *-*-aix3*)
17824 systype="A32"
17825 alpine_path_delim="/"
17826 alpine_mode_readonly="(0600)"
17827 alpine_c_client_target="a32"
17829 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
17830 systype="UW2"
17831 alpine_path_delim="/"
17832 alpine_mode_readonly="(0600)"
17833 alpine_c_client_target="uw2"
17835 *-*-osf5*)
17836 systype="OSF"
17837 alpine_path_delim="/"
17838 alpine_mode_readonly="(0600)"
17839 alpine_c_client_target="osf"
17841 *-*-cygwin)
17842 systype="CYG"
17843 alpine_path_delim="/"
17844 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17845 alpine_c_client_target="cyg"
17846 LIBS="$LIBS $LIBINTL"
17848 windows* | *-*-pw32*)
17849 systype="WNT"
17850 alpine_path_delim="\\"
17851 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
17852 alpine_c_client_target="wnt"
17854 $as_echo "#define _WINDOWS 1" >>confdefs.h
17858 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
17860 esac
17863 # Check whether --with-ipv6 was given.
17864 if test "${with_ipv6+set}" = set; then :
17865 withval=$with_ipv6; with_ipv6=$withval
17869 if test "x$with_ipv6" = "xno" ; then
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
17871 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
17872 c_client_specials="${c_client_specials}IP6=4 "
17873 c_client_ip6="true"
17874 else
17875 c_client_ip6="touch imap/ip6"
17880 if test x$enable_dmalloc = "xyes" ; then
17881 if test "x$with_pthread" = "xyes" ; then
17882 dmalloc_lib=dmallocth
17883 else
17884 dmalloc_lib=dmalloc
17887 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
17889 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
17890 if eval \${$as_ac_Lib+:} false; then :
17891 $as_echo_n "(cached) " >&6
17892 else
17893 ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-l$dmalloc_lib $LIBS"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char dmalloc_shutdown ();
17906 main ()
17908 return dmalloc_shutdown ();
17910 return 0;
17912 _ACEOF
17913 if ac_fn_c_try_link "$LINENO"; then :
17914 eval "$as_ac_Lib=yes"
17915 else
17916 eval "$as_ac_Lib=no"
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17922 eval ac_res=\$$as_ac_Lib
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17924 $as_echo "$ac_res" >&6; }
17925 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17926 cat >>confdefs.h <<_ACEOF
17927 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
17928 _ACEOF
17930 LIBS="-l$dmalloc_lib $LIBS"
17932 else
17934 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
17941 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
17942 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
17943 $as_echo_n "(cached) " >&6
17944 else
17945 ac_check_lib_save_LIBS=$LIBS
17946 LIBS="-ltinfo $LIBS"
17947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948 /* end confdefs.h. */
17950 /* Override any GCC internal prototype to avoid an error.
17951 Use char because int might match the return type of a GCC
17952 builtin and then its argument prototype would still apply. */
17953 #ifdef __cplusplus
17954 extern "C"
17955 #endif
17956 char setupterm ();
17958 main ()
17960 return setupterm ();
17962 return 0;
17964 _ACEOF
17965 if ac_fn_c_try_link "$LINENO"; then :
17966 ac_cv_lib_tinfo_setupterm=yes
17967 else
17968 ac_cv_lib_tinfo_setupterm=no
17970 rm -f core conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
17972 LIBS=$ac_check_lib_save_LIBS
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
17975 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
17976 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
17978 alpine_termdata=info
17979 LIBS="$LIBS -ltinfo"
17981 else
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
17984 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
17985 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
17986 $as_echo_n "(cached) " >&6
17987 else
17988 ac_check_lib_save_LIBS=$LIBS
17989 LIBS="-lncurses $LIBS"
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17993 /* Override any GCC internal prototype to avoid an error.
17994 Use char because int might match the return type of a GCC
17995 builtin and then its argument prototype would still apply. */
17996 #ifdef __cplusplus
17997 extern "C"
17998 #endif
17999 char setupterm ();
18001 main ()
18003 return setupterm ();
18005 return 0;
18007 _ACEOF
18008 if ac_fn_c_try_link "$LINENO"; then :
18009 ac_cv_lib_ncurses_setupterm=yes
18010 else
18011 ac_cv_lib_ncurses_setupterm=no
18013 rm -f core conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015 LIBS=$ac_check_lib_save_LIBS
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
18018 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
18019 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
18021 alpine_termdata=info
18022 LIBS="$LIBS -lncurses"
18024 else
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
18027 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
18028 if ${ac_cv_lib_curses_setupterm+:} false; then :
18029 $as_echo_n "(cached) " >&6
18030 else
18031 ac_check_lib_save_LIBS=$LIBS
18032 LIBS="-lcurses $LIBS"
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 char setupterm ();
18044 main ()
18046 return setupterm ();
18048 return 0;
18050 _ACEOF
18051 if ac_fn_c_try_link "$LINENO"; then :
18052 ac_cv_lib_curses_setupterm=yes
18053 else
18054 ac_cv_lib_curses_setupterm=no
18056 rm -f core conftest.err conftest.$ac_objext \
18057 conftest$ac_exeext conftest.$ac_ext
18058 LIBS=$ac_check_lib_save_LIBS
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
18061 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
18062 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
18064 alpine_termdata=info
18065 LIBS="$LIBS -lcurses"
18067 else
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
18070 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
18071 if ${ac_cv_lib_termlib_tgetent+:} false; then :
18072 $as_echo_n "(cached) " >&6
18073 else
18074 ac_check_lib_save_LIBS=$LIBS
18075 LIBS="-ltermlib $LIBS"
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18079 /* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18082 #ifdef __cplusplus
18083 extern "C"
18084 #endif
18085 char tgetent ();
18087 main ()
18089 return tgetent ();
18091 return 0;
18093 _ACEOF
18094 if ac_fn_c_try_link "$LINENO"; then :
18095 ac_cv_lib_termlib_tgetent=yes
18096 else
18097 ac_cv_lib_termlib_tgetent=no
18099 rm -f core conftest.err conftest.$ac_objext \
18100 conftest$ac_exeext conftest.$ac_ext
18101 LIBS=$ac_check_lib_save_LIBS
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
18104 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
18105 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
18107 alpine_termdata=cap
18108 LIBS="$LIBS -ltermlib"
18110 else
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18113 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
18114 if ${ac_cv_lib_termcap_tgetent+:} false; then :
18115 $as_echo_n "(cached) " >&6
18116 else
18117 ac_check_lib_save_LIBS=$LIBS
18118 LIBS="-ltermcap $LIBS"
18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18122 /* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18125 #ifdef __cplusplus
18126 extern "C"
18127 #endif
18128 char tgetent ();
18130 main ()
18132 return tgetent ();
18134 return 0;
18136 _ACEOF
18137 if ac_fn_c_try_link "$LINENO"; then :
18138 ac_cv_lib_termcap_tgetent=yes
18139 else
18140 ac_cv_lib_termcap_tgetent=no
18142 rm -f core conftest.err conftest.$ac_objext \
18143 conftest$ac_exeext conftest.$ac_ext
18144 LIBS=$ac_check_lib_save_LIBS
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
18147 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
18148 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
18150 alpine_termdata=cap
18151 LIBS="$LIBS -ltermcap"
18153 else
18155 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
18171 case $alpine_termdata in
18172 info)
18174 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
18177 cap)
18179 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
18182 esac
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18185 $as_echo_n "checking for library containing dlopen... " >&6; }
18186 if ${ac_cv_search_dlopen+:} false; then :
18187 $as_echo_n "(cached) " >&6
18188 else
18189 ac_func_search_save_LIBS=$LIBS
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18196 #ifdef __cplusplus
18197 extern "C"
18198 #endif
18199 char dlopen ();
18201 main ()
18203 return dlopen ();
18205 return 0;
18207 _ACEOF
18208 for ac_lib in '' dl dld; do
18209 if test -z "$ac_lib"; then
18210 ac_res="none required"
18211 else
18212 ac_res=-l$ac_lib
18213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18215 if ac_fn_c_try_link "$LINENO"; then :
18216 ac_cv_search_dlopen=$ac_res
18218 rm -f core conftest.err conftest.$ac_objext \
18219 conftest$ac_exeext
18220 if ${ac_cv_search_dlopen+:} false; then :
18221 break
18223 done
18224 if ${ac_cv_search_dlopen+:} false; then :
18226 else
18227 ac_cv_search_dlopen=no
18229 rm conftest.$ac_ext
18230 LIBS=$ac_func_search_save_LIBS
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18233 $as_echo "$ac_cv_search_dlopen" >&6; }
18234 ac_res=$ac_cv_search_dlopen
18235 if test "$ac_res" != no; then :
18236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18238 else
18239 alpine_DL="none"
18242 if test "x$alpine_DL" = "xnone" ; then
18243 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
18244 exit 1
18247 if test "x$alpine_SSLTYPE" != "xnone" ; then
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
18249 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
18250 if test "$cross_compiling" = yes; then :
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
18252 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
18253 else
18254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18257 #include <stdio.h>
18258 #include <stdlib.h>
18259 #if HAVE_STDINT_H
18260 #include <stdint.h>
18261 #endif /* HAVE_STDINT_H */
18262 #include <openssl/ssl.h>
18263 int main(void) {
18265 if (LIBRESSL_VERSION_NUMBER >= 0x20000000L)
18266 exit(0);
18268 exit(2);
18271 _ACEOF
18272 if ac_fn_c_try_run "$LINENO"; then :
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18274 $as_echo "yes" >&6; }
18275 alpine_SSLPROVIDER="libressl"
18277 else
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18279 $as_echo "no" >&6; }
18282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18283 conftest.$ac_objext conftest.beam conftest.$ac_ext
18288 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
18290 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
18291 if test "$cross_compiling" = yes; then :
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
18293 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
18294 else
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18298 #include <stdio.h>
18299 #include <stdlib.h>
18300 #if HAVE_STDINT_H
18301 #include <stdint.h>
18302 #endif /* HAVE_STDINT_H */
18303 #include <openssl/ssl.h>
18304 int main(void) {
18306 if (OPENSSL_VERSION_NUMBER >= 0x1000003fL)
18307 exit(0);
18309 exit(2);
18312 _ACEOF
18313 if ac_fn_c_try_run "$LINENO"; then :
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18315 $as_echo "yes" >&6; }
18316 alpine_SSLPROVIDER="openssl"
18318 else
18319 alpine_SSLTYPE="none"
18321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18322 conftest.$ac_objext conftest.beam conftest.$ac_ext
18326 if test "x$alpine_SSLTYPE" = "xnone" ; then
18327 as_fn_error $? "Install openssl version >= 1.0.0c" "$LINENO" 5
18328 exit 1
18332 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
18334 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
18335 if test "$cross_compiling" = yes; then :
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
18337 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
18338 else
18339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340 /* end confdefs.h. */
18342 #include <stdio.h>
18343 #include <stdlib.h>
18344 #if HAVE_STDINT_H
18345 #include <stdint.h>
18346 #endif /* HAVE_STDINT_H */
18347 #include <openssl/ssl.h>
18348 int main(void) {
18350 if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
18351 exit(0);
18353 exit(2);
18356 _ACEOF
18357 if ac_fn_c_try_run "$LINENO"; then :
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18359 $as_echo "yes" >&6; }
18360 alpine_SSLVERSION="new"
18361 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
18363 else
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18365 $as_echo "no" >&6; }
18366 alpine_SSLVERSION="old"
18368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18369 conftest.$ac_objext conftest.beam conftest.$ac_ext
18374 if test "x$alpine_SSLTYPE" != "xnone" ; then
18375 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
18377 $as_echo_n "checking for library containing SSLeay... " >&6; }
18378 if ${ac_cv_search_SSLeay+:} false; then :
18379 $as_echo_n "(cached) " >&6
18380 else
18381 ac_func_search_save_LIBS=$LIBS
18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18385 /* Override any GCC internal prototype to avoid an error.
18386 Use char because int might match the return type of a GCC
18387 builtin and then its argument prototype would still apply. */
18388 #ifdef __cplusplus
18389 extern "C"
18390 #endif
18391 char SSLeay ();
18393 main ()
18395 return SSLeay ();
18397 return 0;
18399 _ACEOF
18400 for ac_lib in '' crypto; do
18401 if test -z "$ac_lib"; then
18402 ac_res="none required"
18403 else
18404 ac_res=-l$ac_lib
18405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18407 if ac_fn_c_try_link "$LINENO"; then :
18408 ac_cv_search_SSLeay=$ac_res
18410 rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext
18412 if ${ac_cv_search_SSLeay+:} false; then :
18413 break
18415 done
18416 if ${ac_cv_search_SSLeay+:} false; then :
18418 else
18419 ac_cv_search_SSLeay=no
18421 rm conftest.$ac_ext
18422 LIBS=$ac_func_search_save_LIBS
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
18425 $as_echo "$ac_cv_search_SSLeay" >&6; }
18426 ac_res=$ac_cv_search_SSLeay
18427 if test "$ac_res" != no; then :
18428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18430 else
18431 alpine_CRYPTO="none"
18434 else
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
18436 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
18437 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18438 $as_echo_n "(cached) " >&6
18439 else
18440 ac_func_search_save_LIBS=$LIBS
18441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18444 /* Override any GCC internal prototype to avoid an error.
18445 Use char because int might match the return type of a GCC
18446 builtin and then its argument prototype would still apply. */
18447 #ifdef __cplusplus
18448 extern "C"
18449 #endif
18450 char OpenSSL_version_num ();
18452 main ()
18454 return OpenSSL_version_num ();
18456 return 0;
18458 _ACEOF
18459 for ac_lib in '' crypto; do
18460 if test -z "$ac_lib"; then
18461 ac_res="none required"
18462 else
18463 ac_res=-l$ac_lib
18464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18466 if ac_fn_c_try_link "$LINENO"; then :
18467 ac_cv_search_OpenSSL_version_num=$ac_res
18469 rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext
18471 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18472 break
18474 done
18475 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
18477 else
18478 ac_cv_search_OpenSSL_version_num=no
18480 rm conftest.$ac_ext
18481 LIBS=$ac_func_search_save_LIBS
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
18484 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
18485 ac_res=$ac_cv_search_OpenSSL_version_num
18486 if test "$ac_res" != no; then :
18487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18489 else
18490 alpine_CRYPTO="none"
18494 if test "x$alpine_CRYPTO" = "xnone" ; then
18495 as_fn_error $? "crypto library NOT found" "$LINENO" 5
18496 exit 1
18498 case $host in
18499 *-*-cygwin)
18500 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
18501 if test "x$ac_cv_header_crypto_h" = xyes; then :
18503 else
18504 alpine_CRYPTO_DEVEL="none"
18508 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
18509 as_fn_error $? "crypto library file crypto.h NOT found. Install correspoding libcrypt-devel package" "$LINENO" 5
18510 exit 1
18513 *) ;;
18514 esac
18517 if test "x$alpine_SSLTYPE" != "xnone" ; then
18518 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_2_client_method" >&5
18520 $as_echo_n "checking for library containing TLSv1_2_client_method... " >&6; }
18521 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
18522 $as_echo_n "(cached) " >&6
18523 else
18524 ac_func_search_save_LIBS=$LIBS
18525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526 /* end confdefs.h. */
18528 /* Override any GCC internal prototype to avoid an error.
18529 Use char because int might match the return type of a GCC
18530 builtin and then its argument prototype would still apply. */
18531 #ifdef __cplusplus
18532 extern "C"
18533 #endif
18534 char TLSv1_2_client_method ();
18536 main ()
18538 return TLSv1_2_client_method ();
18540 return 0;
18542 _ACEOF
18543 for ac_lib in '' ssl; do
18544 if test -z "$ac_lib"; then
18545 ac_res="none required"
18546 else
18547 ac_res=-l$ac_lib
18548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18550 if ac_fn_c_try_link "$LINENO"; then :
18551 ac_cv_search_TLSv1_2_client_method=$ac_res
18553 rm -f core conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext
18555 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
18556 break
18558 done
18559 if ${ac_cv_search_TLSv1_2_client_method+:} false; then :
18561 else
18562 ac_cv_search_TLSv1_2_client_method=no
18564 rm conftest.$ac_ext
18565 LIBS=$ac_func_search_save_LIBS
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_2_client_method" >&5
18568 $as_echo "$ac_cv_search_TLSv1_2_client_method" >&6; }
18569 ac_res=$ac_cv_search_TLSv1_2_client_method
18570 if test "$ac_res" != no; then :
18571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18572 alpine_c_client_cflags="$alpine_c_client_cflags -DTLSV1_2"
18574 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
18579 else
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLS_client_method" >&5
18581 $as_echo_n "checking for library containing TLS_client_method... " >&6; }
18582 if ${ac_cv_search_TLS_client_method+:} false; then :
18583 $as_echo_n "(cached) " >&6
18584 else
18585 ac_func_search_save_LIBS=$LIBS
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h. */
18589 /* Override any GCC internal prototype to avoid an error.
18590 Use char because int might match the return type of a GCC
18591 builtin and then its argument prototype would still apply. */
18592 #ifdef __cplusplus
18593 extern "C"
18594 #endif
18595 char TLS_client_method ();
18597 main ()
18599 return TLS_client_method ();
18601 return 0;
18603 _ACEOF
18604 for ac_lib in '' ssl; do
18605 if test -z "$ac_lib"; then
18606 ac_res="none required"
18607 else
18608 ac_res=-l$ac_lib
18609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18611 if ac_fn_c_try_link "$LINENO"; then :
18612 ac_cv_search_TLS_client_method=$ac_res
18614 rm -f core conftest.err conftest.$ac_objext \
18615 conftest$ac_exeext
18616 if ${ac_cv_search_TLS_client_method+:} false; then :
18617 break
18619 done
18620 if ${ac_cv_search_TLS_client_method+:} false; then :
18622 else
18623 ac_cv_search_TLS_client_method=no
18625 rm conftest.$ac_ext
18626 LIBS=$ac_func_search_save_LIBS
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLS_client_method" >&5
18629 $as_echo "$ac_cv_search_TLS_client_method" >&6; }
18630 ac_res=$ac_cv_search_TLS_client_method
18631 if test "$ac_res" != no; then :
18632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18634 else
18635 alpine_SSLTYPE="none"
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DTLS_client_method" >&5
18639 $as_echo_n "checking for library containing DTLS_client_method... " >&6; }
18640 if ${ac_cv_search_DTLS_client_method+:} false; then :
18641 $as_echo_n "(cached) " >&6
18642 else
18643 ac_func_search_save_LIBS=$LIBS
18644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645 /* end confdefs.h. */
18647 /* Override any GCC internal prototype to avoid an error.
18648 Use char because int might match the return type of a GCC
18649 builtin and then its argument prototype would still apply. */
18650 #ifdef __cplusplus
18651 extern "C"
18652 #endif
18653 char DTLS_client_method ();
18655 main ()
18657 return DTLS_client_method ();
18659 return 0;
18661 _ACEOF
18662 for ac_lib in '' ssl; do
18663 if test -z "$ac_lib"; then
18664 ac_res="none required"
18665 else
18666 ac_res=-l$ac_lib
18667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18669 if ac_fn_c_try_link "$LINENO"; then :
18670 ac_cv_search_DTLS_client_method=$ac_res
18672 rm -f core conftest.err conftest.$ac_objext \
18673 conftest$ac_exeext
18674 if ${ac_cv_search_DTLS_client_method+:} false; then :
18675 break
18677 done
18678 if ${ac_cv_search_DTLS_client_method+:} false; then :
18680 else
18681 ac_cv_search_DTLS_client_method=no
18683 rm conftest.$ac_ext
18684 LIBS=$ac_func_search_save_LIBS
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DTLS_client_method" >&5
18687 $as_echo "$ac_cv_search_DTLS_client_method" >&6; }
18688 ac_res=$ac_cv_search_DTLS_client_method
18689 if test "$ac_res" != no; then :
18690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18692 else
18693 alpine_SSLTYPE="none"
18696 if test "x$alpine_SSLTYPE" != "xnone" ; then
18698 $as_echo "#define SSL_SUPPORTS_TLSV1_2 1" >>confdefs.h
18704 if test "x$alpine_SSLTYPE" != "xnone" ; then
18705 if test "x$alpine_SSLVERSION" = "xold" -o "x$alpine_SSLPROVIDER" = "xlibressl" ; then
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
18707 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
18708 if ${ac_cv_search_SSL_library_init+:} false; then :
18709 $as_echo_n "(cached) " >&6
18710 else
18711 ac_func_search_save_LIBS=$LIBS
18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 char SSL_library_init ();
18723 main ()
18725 return SSL_library_init ();
18727 return 0;
18729 _ACEOF
18730 for ac_lib in '' ssl; do
18731 if test -z "$ac_lib"; then
18732 ac_res="none required"
18733 else
18734 ac_res=-l$ac_lib
18735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18737 if ac_fn_c_try_link "$LINENO"; then :
18738 ac_cv_search_SSL_library_init=$ac_res
18740 rm -f core conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext
18742 if ${ac_cv_search_SSL_library_init+:} false; then :
18743 break
18745 done
18746 if ${ac_cv_search_SSL_library_init+:} false; then :
18748 else
18749 ac_cv_search_SSL_library_init=no
18751 rm conftest.$ac_ext
18752 LIBS=$ac_func_search_save_LIBS
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
18755 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
18756 ac_res=$ac_cv_search_SSL_library_init
18757 if test "$ac_res" != no; then :
18758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18760 else
18761 alpine_SSLTYPE="none"
18764 if test "x$alpine_SSLTYPE" = "xnone" ; then
18765 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
18766 exit 1
18768 else
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
18770 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
18771 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18772 $as_echo_n "(cached) " >&6
18773 else
18774 ac_func_search_save_LIBS=$LIBS
18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18778 /* Override any GCC internal prototype to avoid an error.
18779 Use char because int might match the return type of a GCC
18780 builtin and then its argument prototype would still apply. */
18781 #ifdef __cplusplus
18782 extern "C"
18783 #endif
18784 char OPENSSL_init_ssl ();
18786 main ()
18788 return OPENSSL_init_ssl ();
18790 return 0;
18792 _ACEOF
18793 for ac_lib in '' ssl; do
18794 if test -z "$ac_lib"; then
18795 ac_res="none required"
18796 else
18797 ac_res=-l$ac_lib
18798 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18800 if ac_fn_c_try_link "$LINENO"; then :
18801 ac_cv_search_OPENSSL_init_ssl=$ac_res
18803 rm -f core conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext
18805 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18806 break
18808 done
18809 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
18811 else
18812 ac_cv_search_OPENSSL_init_ssl=no
18814 rm conftest.$ac_ext
18815 LIBS=$ac_func_search_save_LIBS
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
18818 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
18819 ac_res=$ac_cv_search_OPENSSL_init_ssl
18820 if test "$ac_res" != no; then :
18821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18823 else
18824 alpine_SSLTYPE="none"
18827 if test "x$alpine_SSLTYPE" = "xnone" ; then
18828 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
18829 exit 1
18834 if test "$alpine_with_ldap" = "yes" ; then
18835 alpine_has_ldap=
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
18837 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
18838 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
18839 $as_echo_n "(cached) " >&6
18840 else
18841 ac_check_lib_save_LIBS=$LIBS
18842 LIBS="-llber $LIBS"
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18846 /* Override any GCC internal prototype to avoid an error.
18847 Use char because int might match the return type of a GCC
18848 builtin and then its argument prototype would still apply. */
18849 #ifdef __cplusplus
18850 extern "C"
18851 #endif
18852 char ber_alloc ();
18854 main ()
18856 return ber_alloc ();
18858 return 0;
18860 _ACEOF
18861 if ac_fn_c_try_link "$LINENO"; then :
18862 ac_cv_lib_lber_ber_alloc=yes
18863 else
18864 ac_cv_lib_lber_ber_alloc=no
18866 rm -f core conftest.err conftest.$ac_objext \
18867 conftest$ac_exeext conftest.$ac_ext
18868 LIBS=$ac_check_lib_save_LIBS
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
18871 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
18872 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
18874 LIBS="$LIBS -llber"
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
18879 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
18880 if ${ac_cv_search_ldap_initialize+:} false; then :
18881 $as_echo_n "(cached) " >&6
18882 else
18883 ac_func_search_save_LIBS=$LIBS
18884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h. */
18887 /* Override any GCC internal prototype to avoid an error.
18888 Use char because int might match the return type of a GCC
18889 builtin and then its argument prototype would still apply. */
18890 #ifdef __cplusplus
18891 extern "C"
18892 #endif
18893 char ldap_initialize ();
18895 main ()
18897 return ldap_initialize ();
18899 return 0;
18901 _ACEOF
18902 for ac_lib in '' ldap; do
18903 if test -z "$ac_lib"; then
18904 ac_res="none required"
18905 else
18906 ac_res=-l$ac_lib
18907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18909 if ac_fn_c_try_link "$LINENO"; then :
18910 ac_cv_search_ldap_initialize=$ac_res
18912 rm -f core conftest.err conftest.$ac_objext \
18913 conftest$ac_exeext
18914 if ${ac_cv_search_ldap_initialize+:} false; then :
18915 break
18917 done
18918 if ${ac_cv_search_ldap_initialize+:} false; then :
18920 else
18921 ac_cv_search_ldap_initialize=no
18923 rm conftest.$ac_ext
18924 LIBS=$ac_func_search_save_LIBS
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
18927 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
18928 ac_res=$ac_cv_search_ldap_initialize
18929 if test "$ac_res" != no; then :
18930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18932 alpine_has_ldap=yes
18934 else
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
18937 $as_echo_n "checking for library containing ldap_open... " >&6; }
18938 if ${ac_cv_search_ldap_open+:} false; then :
18939 $as_echo_n "(cached) " >&6
18940 else
18941 ac_func_search_save_LIBS=$LIBS
18942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18943 /* end confdefs.h. */
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 char ldap_open ();
18953 main ()
18955 return ldap_open ();
18957 return 0;
18959 _ACEOF
18960 for ac_lib in '' ldap; do
18961 if test -z "$ac_lib"; then
18962 ac_res="none required"
18963 else
18964 ac_res=-l$ac_lib
18965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18967 if ac_fn_c_try_link "$LINENO"; then :
18968 ac_cv_search_ldap_open=$ac_res
18970 rm -f core conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext
18972 if ${ac_cv_search_ldap_open+:} false; then :
18973 break
18975 done
18976 if ${ac_cv_search_ldap_open+:} false; then :
18978 else
18979 ac_cv_search_ldap_open=no
18981 rm conftest.$ac_ext
18982 LIBS=$ac_func_search_save_LIBS
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
18985 $as_echo "$ac_cv_search_ldap_open" >&6; }
18986 ac_res=$ac_cv_search_ldap_open
18987 if test "$ac_res" != no; then :
18988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18990 alpine_has_ldap=yes
18998 if test "$alpine_has_ldap" = "yes" ; then
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
19000 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
19002 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
19007 if test "x$alpine_PAM" != "xnone" ; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
19009 $as_echo_n "checking for library containing pam_start... " >&6; }
19010 if ${ac_cv_search_pam_start+:} false; then :
19011 $as_echo_n "(cached) " >&6
19012 else
19013 ac_func_search_save_LIBS=$LIBS
19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19017 /* Override any GCC internal prototype to avoid an error.
19018 Use char because int might match the return type of a GCC
19019 builtin and then its argument prototype would still apply. */
19020 #ifdef __cplusplus
19021 extern "C"
19022 #endif
19023 char pam_start ();
19025 main ()
19027 return pam_start ();
19029 return 0;
19031 _ACEOF
19032 for ac_lib in '' pam; do
19033 if test -z "$ac_lib"; then
19034 ac_res="none required"
19035 else
19036 ac_res=-l$ac_lib
19037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19039 if ac_fn_c_try_link "$LINENO"; then :
19040 ac_cv_search_pam_start=$ac_res
19042 rm -f core conftest.err conftest.$ac_objext \
19043 conftest$ac_exeext
19044 if ${ac_cv_search_pam_start+:} false; then :
19045 break
19047 done
19048 if ${ac_cv_search_pam_start+:} false; then :
19050 else
19051 ac_cv_search_pam_start=no
19053 rm conftest.$ac_ext
19054 LIBS=$ac_func_search_save_LIBS
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
19057 $as_echo "$ac_cv_search_pam_start" >&6; }
19058 ac_res=$ac_cv_search_pam_start
19059 if test "$ac_res" != no; then :
19060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19062 LIBS="$LIBS -lpam"
19063 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
19064 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
19066 alpine_PAM="yes"
19068 else
19069 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
19070 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
19072 alpine_PAM="yes"
19073 if test "x$alpine_c_client_target" != "xoxp" ; then
19074 alpine_PAM="none"
19075 alpine_pam_none_reason="header files not in security/ directory"
19078 else
19080 alpine_PAM="none"
19081 alpine_pam_none_reason="header files not found"
19091 else
19093 alpine_PAM="none"
19094 alpine_pam_none_reason="library files not found"
19098 if test -n "$alpine_pam_none_reason" ; then
19099 as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5
19104 if test "x$alpine_GSSTYPE" != "xnone" ; then
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
19106 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
19107 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19108 $as_echo_n "(cached) " >&6
19109 else
19110 ac_func_search_save_LIBS=$LIBS
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h. */
19114 /* Override any GCC internal prototype to avoid an error.
19115 Use char because int might match the return type of a GCC
19116 builtin and then its argument prototype would still apply. */
19117 #ifdef __cplusplus
19118 extern "C"
19119 #endif
19120 char gss_init_sec_context ();
19122 main ()
19124 return gss_init_sec_context ();
19126 return 0;
19128 _ACEOF
19129 for ac_lib in '' gss gssapi gssapi_krb5; do
19130 if test -z "$ac_lib"; then
19131 ac_res="none required"
19132 else
19133 ac_res=-l$ac_lib
19134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19136 if ac_fn_c_try_link "$LINENO"; then :
19137 ac_cv_search_gss_init_sec_context=$ac_res
19139 rm -f core conftest.err conftest.$ac_objext \
19140 conftest$ac_exeext
19141 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19142 break
19144 done
19145 if ${ac_cv_search_gss_init_sec_context+:} false; then :
19147 else
19148 ac_cv_search_gss_init_sec_context=no
19150 rm conftest.$ac_ext
19151 LIBS=$ac_func_search_save_LIBS
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
19154 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
19155 ac_res=$ac_cv_search_gss_init_sec_context
19156 if test "$ac_res" != no; then :
19157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19159 LIBS="$LIBS -lkrb5"
19160 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
19161 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
19163 else
19165 if test ! -d /usr/kerberos/include ; then
19166 alpine_GSSTYPE="none"
19167 alpine_gss_none_reason="header files not found"
19174 else
19176 alpine_GSSTYPE="none"
19177 alpine_gss_none_reason="libraries not found"
19181 if test -n "$alpine_gss_none_reason" ; then
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
19183 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
19188 # Check whether --with-ntlm was given.
19189 if test "${with_ntlm+set}" = set; then :
19190 withval=$with_ntlm; with_ntlm=$withval
19194 if test "x$with_ntlm" = "xno" ; then
19195 alpine_NTLM="none"
19196 else
19197 alpine_NTLM=
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
19200 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
19201 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19202 $as_echo_n "(cached) " >&6
19203 else
19204 ac_func_search_save_LIBS=$LIBS
19205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19206 /* end confdefs.h. */
19208 /* Override any GCC internal prototype to avoid an error.
19209 Use char because int might match the return type of a GCC
19210 builtin and then its argument prototype would still apply. */
19211 #ifdef __cplusplus
19212 extern "C"
19213 #endif
19214 char buildSmbNtlmAuthRequest ();
19216 main ()
19218 return buildSmbNtlmAuthRequest ();
19220 return 0;
19222 _ACEOF
19223 for ac_lib in '' ntlm; do
19224 if test -z "$ac_lib"; then
19225 ac_res="none required"
19226 else
19227 ac_res=-l$ac_lib
19228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19230 if ac_fn_c_try_link "$LINENO"; then :
19231 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
19233 rm -f core conftest.err conftest.$ac_objext \
19234 conftest$ac_exeext
19235 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19236 break
19238 done
19239 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
19241 else
19242 ac_cv_search_buildSmbNtlmAuthRequest=no
19244 rm conftest.$ac_ext
19245 LIBS=$ac_func_search_save_LIBS
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
19248 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
19249 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
19250 if test "$ac_res" != no; then :
19251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19253 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
19254 if test "x$ac_cv_header_ntlm_h" = xyes; then :
19256 extra_auth_ntlm=ntl
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
19258 $as_echo "$as_me: including NTLM support" >&6;}
19260 else
19262 alpine_NTLM="none"
19263 alpine_ntlm_none_reason="header file ntlm.h not found"
19269 else
19271 alpine_NTLM="none"
19272 alpine_ntlm_none_reason="ntlm library not found"
19276 if test -n "$alpine_ntlm_none_reason" ; then
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
19278 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
19282 if test -n "$WEB_BUILD" ; then
19283 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
19284 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
19285 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
19287 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
19288 if ${ac_cv_search_Tcl_Eval+:} false; then :
19289 $as_echo_n "(cached) " >&6
19290 else
19291 ac_func_search_save_LIBS=$LIBS
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19295 /* Override any GCC internal prototype to avoid an error.
19296 Use char because int might match the return type of a GCC
19297 builtin and then its argument prototype would still apply. */
19298 #ifdef __cplusplus
19299 extern "C"
19300 #endif
19301 char Tcl_Eval ();
19303 main ()
19305 return Tcl_Eval ();
19307 return 0;
19309 _ACEOF
19310 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
19311 if test -z "$ac_lib"; then
19312 ac_res="none required"
19313 else
19314 ac_res=-l$ac_lib
19315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19317 if ac_fn_c_try_link "$LINENO"; then :
19318 ac_cv_search_Tcl_Eval=$ac_res
19320 rm -f core conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext
19322 if ${ac_cv_search_Tcl_Eval+:} false; then :
19323 break
19325 done
19326 if ${ac_cv_search_Tcl_Eval+:} false; then :
19328 else
19329 ac_cv_search_Tcl_Eval=no
19331 rm conftest.$ac_ext
19332 LIBS=$ac_func_search_save_LIBS
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
19335 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
19336 ac_res=$ac_cv_search_Tcl_Eval
19337 if test "$ac_res" != no; then :
19338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19340 else
19342 WEB_BUILD=
19347 if test -n "$alpine_TCLINC" ; then
19348 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
19349 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
19350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19352 else
19354 WEB_BUILD=
19359 if test -z "$WEB_BUILD" ; then
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
19361 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
19363 else
19364 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19365 if test "x$ac_cv_header_tcl_h" = xyes; then :
19367 else
19369 for base in /usr /usr/local ; do
19370 for dir in ${TCL_VERSIONS} ; do
19371 as_ac_File=`$as_echo "ac_cv_file_$base/include/$dir/tcl.h" | $as_tr_sh`
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $base/include/$dir/tcl.h" >&5
19373 $as_echo_n "checking for $base/include/$dir/tcl.h... " >&6; }
19374 if eval \${$as_ac_File+:} false; then :
19375 $as_echo_n "(cached) " >&6
19376 else
19377 test "$cross_compiling" = yes &&
19378 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19379 if test -r "$base/include/$dir/tcl.h"; then
19380 eval "$as_ac_File=yes"
19381 else
19382 eval "$as_ac_File=no"
19385 eval ac_res=\$$as_ac_File
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19387 $as_echo "$ac_res" >&6; }
19388 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
19390 found=yes
19394 if test "$found" = "yes" ; then
19395 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
19396 break
19398 done
19399 if test "$found" = "yes" ; then
19400 break
19402 done
19403 if test "$found" != "yes" ; then
19404 WEB_BUILD=
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
19406 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
19415 if test "x$alpine_REGEX" != "xyes" ; then
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
19417 $as_echo_n "checking for library containing regcomp... " >&6; }
19418 if ${ac_cv_search_regcomp+:} false; then :
19419 $as_echo_n "(cached) " >&6
19420 else
19421 ac_func_search_save_LIBS=$LIBS
19422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19423 /* end confdefs.h. */
19425 /* Override any GCC internal prototype to avoid an error.
19426 Use char because int might match the return type of a GCC
19427 builtin and then its argument prototype would still apply. */
19428 #ifdef __cplusplus
19429 extern "C"
19430 #endif
19431 char regcomp ();
19433 main ()
19435 return regcomp ();
19437 return 0;
19439 _ACEOF
19440 for ac_lib in '' posix regexp regex re; do
19441 if test -z "$ac_lib"; then
19442 ac_res="none required"
19443 else
19444 ac_res=-l$ac_lib
19445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19447 if ac_fn_c_try_link "$LINENO"; then :
19448 ac_cv_search_regcomp=$ac_res
19450 rm -f core conftest.err conftest.$ac_objext \
19451 conftest$ac_exeext
19452 if ${ac_cv_search_regcomp+:} false; then :
19453 break
19455 done
19456 if ${ac_cv_search_regcomp+:} false; then :
19458 else
19459 ac_cv_search_regcomp=no
19461 rm conftest.$ac_ext
19462 LIBS=$ac_func_search_save_LIBS
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
19465 $as_echo "$ac_cv_search_regcomp" >&6; }
19466 ac_res=$ac_cv_search_regcomp
19467 if test "$ac_res" != no; then :
19468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19470 else
19472 if test x$alpine_REGEX = "xno" ; then
19473 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
19474 else
19475 alpine_REGEX=yes
19481 if test "x$alpine_REGEX" != "xyes" ; then
19482 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
19483 if test "x$ac_cv_header_regex_h" = xyes; then :
19485 else
19487 if test x$alpine_REGEX = "xno" ; then
19488 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
19489 else
19490 alpine_REGEX=yes
19498 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
19500 if test "x$alpine_REGEX" = "xyes" ; then
19501 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
19502 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
19503 REGEX_BUILD=regex
19504 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
19507 if test "x$with_pthread" != "xno" ; then
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
19509 $as_echo_n "checking for pthread support... " >&6; }
19513 ac_ext=c
19514 ac_cpp='$CPP $CPPFLAGS'
19515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19519 acx_pthread_ok=no
19521 # We used to check for pthread.h first, but this fails if pthread.h
19522 # requires special compiler flags (e.g. on True64 or Sequent).
19523 # It gets checked for in the link test anyway.
19525 # First of all, check if the user has set any of the PTHREAD_LIBS,
19526 # etcetera environment variables, and if threads linking works using
19527 # them:
19528 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19529 save_CFLAGS="$CFLAGS"
19530 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19531 save_LIBS="$LIBS"
19532 LIBS="$PTHREAD_LIBS $LIBS"
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19534 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19538 /* Override any GCC internal prototype to avoid an error.
19539 Use char because int might match the return type of a GCC
19540 builtin and then its argument prototype would still apply. */
19541 #ifdef __cplusplus
19542 extern "C"
19543 #endif
19544 char pthread_join ();
19546 main ()
19548 return pthread_join ();
19550 return 0;
19552 _ACEOF
19553 if ac_fn_c_try_link "$LINENO"; then :
19554 acx_pthread_ok=yes
19556 rm -f core conftest.err conftest.$ac_objext \
19557 conftest$ac_exeext conftest.$ac_ext
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19559 $as_echo "$acx_pthread_ok" >&6; }
19560 if test x"$acx_pthread_ok" = xno; then
19561 PTHREAD_LIBS=""
19562 PTHREAD_CFLAGS=""
19564 LIBS="$save_LIBS"
19565 CFLAGS="$save_CFLAGS"
19568 # We must check for the threads library under a number of different
19569 # names; the ordering is very important because some systems
19570 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19571 # libraries is broken (non-POSIX).
19573 # Create a list of thread flags to try. Items starting with a "-" are
19574 # C compiler flags, and other items are library names, except for "none"
19575 # which indicates that we try without any flags at all, and "pthread-config"
19576 # which is a program returning the flags for the Pth emulation library.
19578 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19580 # The ordering *is* (sometimes) important. Some notes on the
19581 # individual items follow:
19583 # pthreads: AIX (must check this before -lpthread)
19584 # none: in case threads are in libc; should be tried before -Kthread and
19585 # other compiler flags to prevent continual compiler warnings
19586 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19587 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19588 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19589 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19590 # -pthreads: Solaris/gcc
19591 # -mthreads: Mingw32/gcc, Lynx/gcc
19592 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19593 # doesn't hurt to check since this sometimes defines pthreads too;
19594 # also defines -D_REENTRANT)
19595 # ... -mt is also the pthreads flag for HP/aCC
19596 # pthread: Linux, etcetera
19597 # --thread-safe: KAI C++
19598 # pthread-config: use pthread-config program (for GNU Pth library)
19600 case "${host_cpu}-${host_os}" in
19601 *solaris*)
19603 # On Solaris (at least, for some versions), libc contains stubbed
19604 # (non-functional) versions of the pthreads routines, so link-based
19605 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19606 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19607 # a function called by this macro, so we could check for that, but
19608 # who knows whether they'll stub that too in a future libc.) So,
19609 # we'll just look for -pthreads and -lpthread first:
19611 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
19613 esac
19615 if test x"$acx_pthread_ok" = xno; then
19616 for flag in $acx_pthread_flags; do
19618 case $flag in
19619 none)
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19621 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19626 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19627 PTHREAD_CFLAGS="$flag"
19630 pthread-config)
19631 # Extract the first word of "pthread-config", so it can be a program name with args.
19632 set dummy pthread-config; ac_word=$2
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19634 $as_echo_n "checking for $ac_word... " >&6; }
19635 if ${ac_cv_prog_acx_pthread_config+:} false; then :
19636 $as_echo_n "(cached) " >&6
19637 else
19638 if test -n "$acx_pthread_config"; then
19639 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19640 else
19641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19642 for as_dir in $PATH
19644 IFS=$as_save_IFS
19645 test -z "$as_dir" && as_dir=.
19646 for ac_exec_ext in '' $ac_executable_extensions; do
19647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19648 ac_cv_prog_acx_pthread_config="yes"
19649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19650 break 2
19652 done
19653 done
19654 IFS=$as_save_IFS
19656 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19659 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19660 if test -n "$acx_pthread_config"; then
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
19662 $as_echo "$acx_pthread_config" >&6; }
19663 else
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19665 $as_echo "no" >&6; }
19669 if test x"$acx_pthread_config" = xno; then continue; fi
19670 PTHREAD_CFLAGS="`pthread-config --cflags`"
19671 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19676 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19677 PTHREAD_LIBS="-l$flag"
19679 esac
19681 save_LIBS="$LIBS"
19682 save_CFLAGS="$CFLAGS"
19683 LIBS="$PTHREAD_LIBS $LIBS"
19684 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19686 # Check for various functions. We must include pthread.h,
19687 # since some functions may be macros. (On the Sequent, we
19688 # need a special flag -Kthread to make this header compile.)
19689 # We check for pthread_join because it is in -lpthread on IRIX
19690 # while pthread_create is in libc. We check for pthread_attr_init
19691 # due to DEC craziness with -lpthreads. We check for
19692 # pthread_cleanup_push because it is one of the few pthread
19693 # functions on Solaris that doesn't have a non-functional libc stub.
19694 # We try pthread_create on general principles.
19695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h. */
19697 #include <pthread.h>
19699 main ()
19701 pthread_t th; pthread_join(th, 0);
19702 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19703 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19705 return 0;
19707 _ACEOF
19708 if ac_fn_c_try_link "$LINENO"; then :
19709 acx_pthread_ok=yes
19711 rm -f core conftest.err conftest.$ac_objext \
19712 conftest$ac_exeext conftest.$ac_ext
19714 LIBS="$save_LIBS"
19715 CFLAGS="$save_CFLAGS"
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
19718 $as_echo "$acx_pthread_ok" >&6; }
19719 if test "x$acx_pthread_ok" = xyes; then
19720 break;
19723 PTHREAD_LIBS=""
19724 PTHREAD_CFLAGS=""
19725 done
19728 # Various other checks:
19729 if test "x$acx_pthread_ok" = xyes; then
19730 save_LIBS="$LIBS"
19731 LIBS="$PTHREAD_LIBS $LIBS"
19732 save_CFLAGS="$CFLAGS"
19733 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19735 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19737 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19738 attr_name=unknown
19739 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741 /* end confdefs.h. */
19742 #include <pthread.h>
19744 main ()
19746 int attr=$attr; return attr;
19748 return 0;
19750 _ACEOF
19751 if ac_fn_c_try_link "$LINENO"; then :
19752 attr_name=$attr; break
19754 rm -f core conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
19756 done
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19758 $as_echo "$attr_name" >&6; }
19759 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19761 cat >>confdefs.h <<_ACEOF
19762 #define PTHREAD_CREATE_JOINABLE $attr_name
19763 _ACEOF
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19768 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19769 flag=no
19770 case "${host_cpu}-${host_os}" in
19771 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19772 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19773 esac
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19775 $as_echo "${flag}" >&6; }
19776 if test "x$flag" != xno; then
19777 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19780 LIBS="$save_LIBS"
19781 CFLAGS="$save_CFLAGS"
19783 # More AIX lossage: must compile with xlc_r or cc_r
19784 if test x"$GCC" != xyes; then
19785 for ac_prog in xlc_r cc_r
19787 # Extract the first word of "$ac_prog", so it can be a program name with args.
19788 set dummy $ac_prog; ac_word=$2
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19790 $as_echo_n "checking for $ac_word... " >&6; }
19791 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19792 $as_echo_n "(cached) " >&6
19793 else
19794 if test -n "$PTHREAD_CC"; then
19795 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19796 else
19797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19798 for as_dir in $PATH
19800 IFS=$as_save_IFS
19801 test -z "$as_dir" && as_dir=.
19802 for ac_exec_ext in '' $ac_executable_extensions; do
19803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19804 ac_cv_prog_PTHREAD_CC="$ac_prog"
19805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19806 break 2
19808 done
19809 done
19810 IFS=$as_save_IFS
19814 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19815 if test -n "$PTHREAD_CC"; then
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19817 $as_echo "$PTHREAD_CC" >&6; }
19818 else
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19820 $as_echo "no" >&6; }
19824 test -n "$PTHREAD_CC" && break
19825 done
19826 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19828 else
19829 PTHREAD_CC=$CC
19831 else
19832 PTHREAD_CC="$CC"
19839 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19840 if test x"$acx_pthread_ok" = xyes; then
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19843 $as_echo "yes" >&6; }
19844 case "$target" in
19845 *openbsd*)
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
19847 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
19848 AM_CFLAGS="$AM_CFLAGS -pthread"
19850 esac
19851 LIBS="$PTHREAD_LIBS $LIBS"
19852 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
19853 CC="$PTHREAD_CC"
19855 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19859 else
19860 acx_pthread_ok=no
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19863 $as_echo "no" >&6; }
19866 ac_ext=c
19867 ac_cpp='$CPP $CPPFLAGS'
19868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
19875 $as_echo_n "checking for library containing nanosleep... " >&6; }
19876 if ${ac_cv_search_nanosleep+:} false; then :
19877 $as_echo_n "(cached) " >&6
19878 else
19879 ac_func_search_save_LIBS=$LIBS
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19883 /* Override any GCC internal prototype to avoid an error.
19884 Use char because int might match the return type of a GCC
19885 builtin and then its argument prototype would still apply. */
19886 #ifdef __cplusplus
19887 extern "C"
19888 #endif
19889 char nanosleep ();
19891 main ()
19893 return nanosleep ();
19895 return 0;
19897 _ACEOF
19898 for ac_lib in '' rt posix4; do
19899 if test -z "$ac_lib"; then
19900 ac_res="none required"
19901 else
19902 ac_res=-l$ac_lib
19903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19905 if ac_fn_c_try_link "$LINENO"; then :
19906 ac_cv_search_nanosleep=$ac_res
19908 rm -f core conftest.err conftest.$ac_objext \
19909 conftest$ac_exeext
19910 if ${ac_cv_search_nanosleep+:} false; then :
19911 break
19913 done
19914 if ${ac_cv_search_nanosleep+:} false; then :
19916 else
19917 ac_cv_search_nanosleep=no
19919 rm conftest.$ac_ext
19920 LIBS=$ac_func_search_save_LIBS
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
19923 $as_echo "$ac_cv_search_nanosleep" >&6; }
19924 ac_res=$ac_cv_search_nanosleep
19925 if test "$ac_res" != no; then :
19926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19929 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19940 $as_echo_n "checking for ANSI C header files... " >&6; }
19941 if ${ac_cv_header_stdc+:} false; then :
19942 $as_echo_n "(cached) " >&6
19943 else
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19946 #include <stdlib.h>
19947 #include <stdarg.h>
19948 #include <string.h>
19949 #include <float.h>
19952 main ()
19956 return 0;
19958 _ACEOF
19959 if ac_fn_c_try_compile "$LINENO"; then :
19960 ac_cv_header_stdc=yes
19961 else
19962 ac_cv_header_stdc=no
19964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19966 if test $ac_cv_header_stdc = yes; then
19967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19969 /* end confdefs.h. */
19970 #include <string.h>
19972 _ACEOF
19973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19974 $EGREP "memchr" >/dev/null 2>&1; then :
19976 else
19977 ac_cv_header_stdc=no
19979 rm -f conftest*
19983 if test $ac_cv_header_stdc = yes; then
19984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19986 /* end confdefs.h. */
19987 #include <stdlib.h>
19989 _ACEOF
19990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19991 $EGREP "free" >/dev/null 2>&1; then :
19993 else
19994 ac_cv_header_stdc=no
19996 rm -f conftest*
20000 if test $ac_cv_header_stdc = yes; then
20001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20002 if test "$cross_compiling" = yes; then :
20004 else
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20007 #include <ctype.h>
20008 #include <stdlib.h>
20009 #if ((' ' & 0x0FF) == 0x020)
20010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20012 #else
20013 # define ISLOWER(c) \
20014 (('a' <= (c) && (c) <= 'i') \
20015 || ('j' <= (c) && (c) <= 'r') \
20016 || ('s' <= (c) && (c) <= 'z'))
20017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20018 #endif
20020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20022 main ()
20024 int i;
20025 for (i = 0; i < 256; i++)
20026 if (XOR (islower (i), ISLOWER (i))
20027 || toupper (i) != TOUPPER (i))
20028 return 2;
20029 return 0;
20031 _ACEOF
20032 if ac_fn_c_try_run "$LINENO"; then :
20034 else
20035 ac_cv_header_stdc=no
20037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20038 conftest.$ac_objext conftest.beam conftest.$ac_ext
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20044 $as_echo "$ac_cv_header_stdc" >&6; }
20045 if test $ac_cv_header_stdc = yes; then
20047 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20051 ac_header_dirent=no
20052 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20053 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20055 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20056 if eval \${$as_ac_Header+:} false; then :
20057 $as_echo_n "(cached) " >&6
20058 else
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20061 #include <sys/types.h>
20062 #include <$ac_hdr>
20065 main ()
20067 if ((DIR *) 0)
20068 return 0;
20070 return 0;
20072 _ACEOF
20073 if ac_fn_c_try_compile "$LINENO"; then :
20074 eval "$as_ac_Header=yes"
20075 else
20076 eval "$as_ac_Header=no"
20078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20080 eval ac_res=\$$as_ac_Header
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20082 $as_echo "$ac_res" >&6; }
20083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20084 cat >>confdefs.h <<_ACEOF
20085 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20086 _ACEOF
20088 ac_header_dirent=$ac_hdr; break
20091 done
20092 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20093 if test $ac_header_dirent = dirent.h; then
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20095 $as_echo_n "checking for library containing opendir... " >&6; }
20096 if ${ac_cv_search_opendir+:} false; then :
20097 $as_echo_n "(cached) " >&6
20098 else
20099 ac_func_search_save_LIBS=$LIBS
20100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h. */
20103 /* Override any GCC internal prototype to avoid an error.
20104 Use char because int might match the return type of a GCC
20105 builtin and then its argument prototype would still apply. */
20106 #ifdef __cplusplus
20107 extern "C"
20108 #endif
20109 char opendir ();
20111 main ()
20113 return opendir ();
20115 return 0;
20117 _ACEOF
20118 for ac_lib in '' dir; do
20119 if test -z "$ac_lib"; then
20120 ac_res="none required"
20121 else
20122 ac_res=-l$ac_lib
20123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20125 if ac_fn_c_try_link "$LINENO"; then :
20126 ac_cv_search_opendir=$ac_res
20128 rm -f core conftest.err conftest.$ac_objext \
20129 conftest$ac_exeext
20130 if ${ac_cv_search_opendir+:} false; then :
20131 break
20133 done
20134 if ${ac_cv_search_opendir+:} false; then :
20136 else
20137 ac_cv_search_opendir=no
20139 rm conftest.$ac_ext
20140 LIBS=$ac_func_search_save_LIBS
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20143 $as_echo "$ac_cv_search_opendir" >&6; }
20144 ac_res=$ac_cv_search_opendir
20145 if test "$ac_res" != no; then :
20146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20150 else
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20152 $as_echo_n "checking for library containing opendir... " >&6; }
20153 if ${ac_cv_search_opendir+:} false; then :
20154 $as_echo_n "(cached) " >&6
20155 else
20156 ac_func_search_save_LIBS=$LIBS
20157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20158 /* end confdefs.h. */
20160 /* Override any GCC internal prototype to avoid an error.
20161 Use char because int might match the return type of a GCC
20162 builtin and then its argument prototype would still apply. */
20163 #ifdef __cplusplus
20164 extern "C"
20165 #endif
20166 char opendir ();
20168 main ()
20170 return opendir ();
20172 return 0;
20174 _ACEOF
20175 for ac_lib in '' x; do
20176 if test -z "$ac_lib"; then
20177 ac_res="none required"
20178 else
20179 ac_res=-l$ac_lib
20180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20182 if ac_fn_c_try_link "$LINENO"; then :
20183 ac_cv_search_opendir=$ac_res
20185 rm -f core conftest.err conftest.$ac_objext \
20186 conftest$ac_exeext
20187 if ${ac_cv_search_opendir+:} false; then :
20188 break
20190 done
20191 if ${ac_cv_search_opendir+:} false; then :
20193 else
20194 ac_cv_search_opendir=no
20196 rm conftest.$ac_ext
20197 LIBS=$ac_func_search_save_LIBS
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20200 $as_echo "$ac_cv_search_opendir" >&6; }
20201 ac_res=$ac_cv_search_opendir
20202 if test "$ac_res" != no; then :
20203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20210 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20211 if ${ac_cv_header_stat_broken+:} false; then :
20212 $as_echo_n "(cached) " >&6
20213 else
20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215 /* end confdefs.h. */
20216 #include <sys/types.h>
20217 #include <sys/stat.h>
20219 #if defined S_ISBLK && defined S_IFDIR
20220 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20221 #endif
20223 #if defined S_ISBLK && defined S_IFCHR
20224 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20225 #endif
20227 #if defined S_ISLNK && defined S_IFREG
20228 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20229 #endif
20231 #if defined S_ISSOCK && defined S_IFREG
20232 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20233 #endif
20235 _ACEOF
20236 if ac_fn_c_try_compile "$LINENO"; then :
20237 ac_cv_header_stat_broken=no
20238 else
20239 ac_cv_header_stat_broken=yes
20241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20244 $as_echo "$ac_cv_header_stat_broken" >&6; }
20245 if test $ac_cv_header_stat_broken = yes; then
20247 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20252 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20253 if ${ac_cv_header_sys_wait_h+:} false; then :
20254 $as_echo_n "(cached) " >&6
20255 else
20256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h. */
20258 #include <sys/types.h>
20259 #include <sys/wait.h>
20260 #ifndef WEXITSTATUS
20261 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20262 #endif
20263 #ifndef WIFEXITED
20264 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20265 #endif
20268 main ()
20270 int s;
20271 wait (&s);
20272 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20274 return 0;
20276 _ACEOF
20277 if ac_fn_c_try_compile "$LINENO"; then :
20278 ac_cv_header_sys_wait_h=yes
20279 else
20280 ac_cv_header_sys_wait_h=no
20282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20285 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20286 if test $ac_cv_header_sys_wait_h = yes; then
20288 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20293 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20294 if ${ac_cv_header_time+:} false; then :
20295 $as_echo_n "(cached) " >&6
20296 else
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20299 #include <sys/types.h>
20300 #include <sys/time.h>
20301 #include <time.h>
20304 main ()
20306 if ((struct tm *) 0)
20307 return 0;
20309 return 0;
20311 _ACEOF
20312 if ac_fn_c_try_compile "$LINENO"; then :
20313 ac_cv_header_time=yes
20314 else
20315 ac_cv_header_time=no
20317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20320 $as_echo "$ac_cv_header_time" >&6; }
20321 if test $ac_cv_header_time = yes; then
20323 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20328 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20329 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
20330 $as_echo_n "(cached) " >&6
20331 else
20332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h. */
20334 #include <sys/types.h>
20335 #include <termios.h>
20336 #ifdef TIOCGWINSZ
20338 #endif
20340 _ACEOF
20341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20342 $EGREP "yes" >/dev/null 2>&1; then :
20343 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20344 else
20345 ac_cv_sys_tiocgwinsz_in_termios_h=no
20347 rm -f conftest*
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20351 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20353 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20355 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20356 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
20357 $as_echo_n "(cached) " >&6
20358 else
20359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20360 /* end confdefs.h. */
20361 #include <sys/types.h>
20362 #include <sys/ioctl.h>
20363 #ifdef TIOCGWINSZ
20365 #endif
20367 _ACEOF
20368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20369 $EGREP "yes" >/dev/null 2>&1; then :
20370 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
20371 else
20372 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
20374 rm -f conftest*
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20378 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20380 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20382 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20388 for ac_header in unistd.h
20389 do :
20390 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20391 if test "x$ac_cv_header_unistd_h" = xyes; then :
20392 cat >>confdefs.h <<_ACEOF
20393 #define HAVE_UNISTD_H 1
20394 _ACEOF
20398 done
20401 for ac_header in errno.h \
20402 ctype.h \
20403 fcntl.h \
20404 signal.h \
20405 setjmp.h \
20406 memory.h \
20407 sys/ioctl.h \
20408 sys/param.h \
20409 sys/socket.h \
20410 sys/uio.h \
20411 sys/un.h \
20412 limits.h \
20413 wchar.h \
20414 sys/poll.h \
20415 stropts.h \
20416 netdb.h \
20417 syslog.h \
20418 sys/syslog.h \
20419 locale.h \
20420 langinfo.h \
20421 utime.h \
20422 sys/utime.h \
20423 pthread.h \
20424 pwd.h \
20425 assert.h
20426 do :
20427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20428 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20430 cat >>confdefs.h <<_ACEOF
20431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20432 _ACEOF
20436 done
20439 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20440 if test "x$ac_cv_header_termios_h" = xyes; then :
20442 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
20444 else
20446 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
20447 if test "x$ac_cv_header_termio_h" = xyes; then :
20449 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
20451 else
20453 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
20454 if test "x$ac_cv_header_sgtty_h" = xyes; then :
20456 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
20458 else
20460 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20477 $as_echo_n "checking return type of signal handlers... " >&6; }
20478 if ${ac_cv_type_signal+:} false; then :
20479 $as_echo_n "(cached) " >&6
20480 else
20481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h. */
20483 #include <sys/types.h>
20484 #include <signal.h>
20487 main ()
20489 return *(signal (0, 0)) (0) == 1;
20491 return 0;
20493 _ACEOF
20494 if ac_fn_c_try_compile "$LINENO"; then :
20495 ac_cv_type_signal=int
20496 else
20497 ac_cv_type_signal=void
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20502 $as_echo "$ac_cv_type_signal" >&6; }
20504 cat >>confdefs.h <<_ACEOF
20505 #define RETSIGTYPE $ac_cv_type_signal
20506 _ACEOF
20509 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20510 if test "x$ac_cv_type_size_t" = xyes; then :
20512 else
20514 cat >>confdefs.h <<_ACEOF
20515 #define size_t unsigned int
20516 _ACEOF
20520 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20521 if test "x$ac_cv_type_mode_t" = xyes; then :
20523 else
20525 cat >>confdefs.h <<_ACEOF
20526 #define mode_t int
20527 _ACEOF
20531 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20532 if test "x$ac_cv_type_pid_t" = xyes; then :
20534 else
20536 cat >>confdefs.h <<_ACEOF
20537 #define pid_t int
20538 _ACEOF
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20543 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20544 if ${ac_cv_type_uid_t+:} false; then :
20545 $as_echo_n "(cached) " >&6
20546 else
20547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548 /* end confdefs.h. */
20549 #include <sys/types.h>
20551 _ACEOF
20552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20553 $EGREP "uid_t" >/dev/null 2>&1; then :
20554 ac_cv_type_uid_t=yes
20555 else
20556 ac_cv_type_uid_t=no
20558 rm -f conftest*
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20562 $as_echo "$ac_cv_type_uid_t" >&6; }
20563 if test $ac_cv_type_uid_t = no; then
20565 $as_echo "#define uid_t int" >>confdefs.h
20568 $as_echo "#define gid_t int" >>confdefs.h
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20573 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20574 if ${ac_cv_struct_tm+:} false; then :
20575 $as_echo_n "(cached) " >&6
20576 else
20577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20578 /* end confdefs.h. */
20579 #include <sys/types.h>
20580 #include <time.h>
20583 main ()
20585 struct tm tm;
20586 int *p = &tm.tm_sec;
20587 return !p;
20589 return 0;
20591 _ACEOF
20592 if ac_fn_c_try_compile "$LINENO"; then :
20593 ac_cv_struct_tm=time.h
20594 else
20595 ac_cv_struct_tm=sys/time.h
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20600 $as_echo "$ac_cv_struct_tm" >&6; }
20601 if test $ac_cv_struct_tm = sys/time.h; then
20603 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20608 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
20609 if test "x$ac_cv_type_union_wait" = xyes; then :
20611 cat >>confdefs.h <<_ACEOF
20612 #define HAVE_UNION_WAIT 1
20613 _ACEOF
20619 for ac_header in stdint.h
20620 do :
20621 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20622 if test "x$ac_cv_header_stdint_h" = xyes; then :
20623 cat >>confdefs.h <<_ACEOF
20624 #define HAVE_STDINT_H 1
20625 _ACEOF
20626 uint16=uint16_t
20627 else
20629 for ac_header in inttypes.h
20630 do :
20631 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20632 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20633 cat >>confdefs.h <<_ACEOF
20634 #define HAVE_INTTYPES_H 1
20635 _ACEOF
20636 uint16=uint16_t
20637 else
20639 for ac_header in sys/types.h
20640 do :
20641 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20642 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20643 cat >>confdefs.h <<_ACEOF
20644 #define HAVE_SYS_TYPES_H 1
20645 _ACEOF
20646 uint16=u_int16_t
20647 else
20649 # The cast to long int works around a bug in the HP C Compiler
20650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20652 # This bug is HP SR number 8606223364.
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20654 $as_echo_n "checking size of unsigned short... " >&6; }
20655 if ${ac_cv_sizeof_unsigned_short+:} false; then :
20656 $as_echo_n "(cached) " >&6
20657 else
20658 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20660 else
20661 if test "$ac_cv_type_unsigned_short" = yes; then
20662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20664 as_fn_error 77 "cannot compute sizeof (unsigned short)
20665 See \`config.log' for more details" "$LINENO" 5; }
20666 else
20667 ac_cv_sizeof_unsigned_short=0
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20673 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20677 cat >>confdefs.h <<_ACEOF
20678 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20679 _ACEOF
20682 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
20683 uint16="unsigned short"
20684 else
20685 # The cast to long int works around a bug in the HP C Compiler
20686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20688 # This bug is HP SR number 8606223364.
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20690 $as_echo_n "checking size of unsigned int... " >&6; }
20691 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20692 $as_echo_n "(cached) " >&6
20693 else
20694 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20696 else
20697 if test "$ac_cv_type_unsigned_int" = yes; then
20698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20700 as_fn_error 77 "cannot compute sizeof (unsigned int)
20701 See \`config.log' for more details" "$LINENO" 5; }
20702 else
20703 ac_cv_sizeof_unsigned_int=0
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20709 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20713 cat >>confdefs.h <<_ACEOF
20714 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20715 _ACEOF
20718 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
20719 uint16="unsigned int"
20720 else
20721 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
20727 done
20732 done
20737 done
20740 cat >>confdefs.h <<_ACEOF
20741 #define UINT16 $uint16
20742 _ACEOF
20745 for ac_header in stdint.h
20746 do :
20747 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20748 if test "x$ac_cv_header_stdint_h" = xyes; then :
20749 cat >>confdefs.h <<_ACEOF
20750 #define HAVE_STDINT_H 1
20751 _ACEOF
20752 uint32=uint32_t
20753 else
20755 for ac_header in inttypes.h
20756 do :
20757 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
20758 if test "x$ac_cv_header_inttypes_h" = xyes; then :
20759 cat >>confdefs.h <<_ACEOF
20760 #define HAVE_INTTYPES_H 1
20761 _ACEOF
20762 uint32=uint32_t
20763 else
20765 for ac_header in sys/types.h
20766 do :
20767 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20768 if test "x$ac_cv_header_sys_types_h" = xyes; then :
20769 cat >>confdefs.h <<_ACEOF
20770 #define HAVE_SYS_TYPES_H 1
20771 _ACEOF
20772 uint32=u_int32_t
20773 else
20775 # The cast to long int works around a bug in the HP C Compiler
20776 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20777 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20778 # This bug is HP SR number 8606223364.
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20780 $as_echo_n "checking size of unsigned int... " >&6; }
20781 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20782 $as_echo_n "(cached) " >&6
20783 else
20784 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20786 else
20787 if test "$ac_cv_type_unsigned_int" = yes; then
20788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20790 as_fn_error 77 "cannot compute sizeof (unsigned int)
20791 See \`config.log' for more details" "$LINENO" 5; }
20792 else
20793 ac_cv_sizeof_unsigned_int=0
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20799 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20803 cat >>confdefs.h <<_ACEOF
20804 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20805 _ACEOF
20808 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
20809 uint32="unsigned int"
20810 else
20811 # The cast to long int works around a bug in the HP C Compiler
20812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20814 # This bug is HP SR number 8606223364.
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20816 $as_echo_n "checking size of unsigned long... " >&6; }
20817 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20818 $as_echo_n "(cached) " >&6
20819 else
20820 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20822 else
20823 if test "$ac_cv_type_unsigned_long" = yes; then
20824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20826 as_fn_error 77 "cannot compute sizeof (unsigned long)
20827 See \`config.log' for more details" "$LINENO" 5; }
20828 else
20829 ac_cv_sizeof_unsigned_long=0
20834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20835 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20839 cat >>confdefs.h <<_ACEOF
20840 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20841 _ACEOF
20844 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
20845 uint32="unsigned long"
20846 else
20847 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
20853 done
20858 done
20863 done
20866 cat >>confdefs.h <<_ACEOF
20867 #define UINT32 $uint32
20868 _ACEOF
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
20872 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
20873 if ${ac_cv_func_qsort_argtype+:} false; then :
20874 $as_echo_n "(cached) " >&6
20875 else
20876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877 /* end confdefs.h. */
20879 #if HAVE_STDLIB_H
20880 #include "stdlib.h"
20881 #endif
20883 extern void *base;
20884 extern sortf(const void *, const void *);
20885 int sortf(a, b)
20886 const void *a;
20887 const void *b; { return 0; }
20890 main ()
20893 qsort(base, 2, sizeof(char *), sortf);
20896 return 0;
20898 _ACEOF
20899 if ac_fn_c_try_compile "$LINENO"; then :
20900 ac_cv_func_qsort_argtype=void
20901 else
20902 ac_cv_func_qsort_argtype=char
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
20908 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
20910 cat >>confdefs.h <<_ACEOF
20911 #define qsort_t $ac_cv_func_qsort_argtype
20912 _ACEOF
20916 for ac_header in sys/select.h sys/socket.h
20917 do :
20918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20919 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20921 cat >>confdefs.h <<_ACEOF
20922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20923 _ACEOF
20927 done
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20930 $as_echo_n "checking types of arguments for select... " >&6; }
20931 if ${ac_cv_func_select_args+:} false; then :
20932 $as_echo_n "(cached) " >&6
20933 else
20934 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20935 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20936 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20938 /* end confdefs.h. */
20939 $ac_includes_default
20940 #ifdef HAVE_SYS_SELECT_H
20941 # include <sys/select.h>
20942 #endif
20943 #ifdef HAVE_SYS_SOCKET_H
20944 # include <sys/socket.h>
20945 #endif
20948 main ()
20950 extern int select ($ac_arg1,
20951 $ac_arg234, $ac_arg234, $ac_arg234,
20952 $ac_arg5);
20954 return 0;
20956 _ACEOF
20957 if ac_fn_c_try_compile "$LINENO"; then :
20958 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 done
20962 done
20963 done
20964 # Provide a safe default value.
20965 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20969 $as_echo "$ac_cv_func_select_args" >&6; }
20970 ac_save_IFS=$IFS; IFS=','
20971 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20972 IFS=$ac_save_IFS
20973 shift
20975 cat >>confdefs.h <<_ACEOF
20976 #define SELECT_TYPE_ARG1 $1
20977 _ACEOF
20980 cat >>confdefs.h <<_ACEOF
20981 #define SELECT_TYPE_ARG234 ($2)
20982 _ACEOF
20985 cat >>confdefs.h <<_ACEOF
20986 #define SELECT_TYPE_ARG5 ($3)
20987 _ACEOF
20989 rm -f conftest*
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
20993 $as_echo_n "checking for working strcoll... " >&6; }
20994 if ${ac_cv_func_strcoll_works+:} false; then :
20995 $as_echo_n "(cached) " >&6
20996 else
20997 if test "$cross_compiling" = yes; then :
20998 ac_cv_func_strcoll_works=no
20999 else
21000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21001 /* end confdefs.h. */
21002 $ac_includes_default
21004 main ()
21006 return (strcoll ("abc", "def") >= 0 ||
21007 strcoll ("ABC", "DEF") >= 0 ||
21008 strcoll ("123", "456") >= 0)
21010 return 0;
21012 _ACEOF
21013 if ac_fn_c_try_run "$LINENO"; then :
21014 ac_cv_func_strcoll_works=yes
21015 else
21016 ac_cv_func_strcoll_works=no
21018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21019 conftest.$ac_objext conftest.beam conftest.$ac_ext
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
21024 $as_echo "$ac_cv_func_strcoll_works" >&6; }
21025 if test $ac_cv_func_strcoll_works = yes; then
21027 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
21033 for ac_header in vfork.h
21034 do :
21035 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21036 if test "x$ac_cv_header_vfork_h" = xyes; then :
21037 cat >>confdefs.h <<_ACEOF
21038 #define HAVE_VFORK_H 1
21039 _ACEOF
21043 done
21045 for ac_func in fork vfork
21046 do :
21047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21048 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21049 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21050 cat >>confdefs.h <<_ACEOF
21051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21052 _ACEOF
21055 done
21057 if test "x$ac_cv_func_fork" = xyes; then
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21059 $as_echo_n "checking for working fork... " >&6; }
21060 if ${ac_cv_func_fork_works+:} false; then :
21061 $as_echo_n "(cached) " >&6
21062 else
21063 if test "$cross_compiling" = yes; then :
21064 ac_cv_func_fork_works=cross
21065 else
21066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21067 /* end confdefs.h. */
21068 $ac_includes_default
21070 main ()
21073 /* By Ruediger Kuhlmann. */
21074 return fork () < 0;
21077 return 0;
21079 _ACEOF
21080 if ac_fn_c_try_run "$LINENO"; then :
21081 ac_cv_func_fork_works=yes
21082 else
21083 ac_cv_func_fork_works=no
21085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21086 conftest.$ac_objext conftest.beam conftest.$ac_ext
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21091 $as_echo "$ac_cv_func_fork_works" >&6; }
21093 else
21094 ac_cv_func_fork_works=$ac_cv_func_fork
21096 if test "x$ac_cv_func_fork_works" = xcross; then
21097 case $host in
21098 *-*-amigaos* | *-*-msdosdjgpp*)
21099 # Override, as these systems have only a dummy fork() stub
21100 ac_cv_func_fork_works=no
21103 ac_cv_func_fork_works=yes
21105 esac
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21107 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21109 ac_cv_func_vfork_works=$ac_cv_func_vfork
21110 if test "x$ac_cv_func_vfork" = xyes; then
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21112 $as_echo_n "checking for working vfork... " >&6; }
21113 if ${ac_cv_func_vfork_works+:} false; then :
21114 $as_echo_n "(cached) " >&6
21115 else
21116 if test "$cross_compiling" = yes; then :
21117 ac_cv_func_vfork_works=cross
21118 else
21119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21121 /* Thanks to Paul Eggert for this test. */
21122 $ac_includes_default
21123 #include <sys/wait.h>
21124 #ifdef HAVE_VFORK_H
21125 # include <vfork.h>
21126 #endif
21127 /* On some sparc systems, changes by the child to local and incoming
21128 argument registers are propagated back to the parent. The compiler
21129 is told about this with #include <vfork.h>, but some compilers
21130 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21131 static variable whose address is put into a register that is
21132 clobbered by the vfork. */
21133 static void
21134 #ifdef __cplusplus
21135 sparc_address_test (int arg)
21136 # else
21137 sparc_address_test (arg) int arg;
21138 #endif
21140 static pid_t child;
21141 if (!child) {
21142 child = vfork ();
21143 if (child < 0) {
21144 perror ("vfork");
21145 _exit(2);
21147 if (!child) {
21148 arg = getpid();
21149 write(-1, "", 0);
21150 _exit (arg);
21156 main ()
21158 pid_t parent = getpid ();
21159 pid_t child;
21161 sparc_address_test (0);
21163 child = vfork ();
21165 if (child == 0) {
21166 /* Here is another test for sparc vfork register problems. This
21167 test uses lots of local variables, at least as many local
21168 variables as main has allocated so far including compiler
21169 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21170 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21171 reuse the register of parent for one of the local variables,
21172 since it will think that parent can't possibly be used any more
21173 in this routine. Assigning to the local variable will thus
21174 munge parent in the parent process. */
21175 pid_t
21176 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21177 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21178 /* Convince the compiler that p..p7 are live; otherwise, it might
21179 use the same hardware register for all 8 local variables. */
21180 if (p != p1 || p != p2 || p != p3 || p != p4
21181 || p != p5 || p != p6 || p != p7)
21182 _exit(1);
21184 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21185 from child file descriptors. If the child closes a descriptor
21186 before it execs or exits, this munges the parent's descriptor
21187 as well. Test for this by closing stdout in the child. */
21188 _exit(close(fileno(stdout)) != 0);
21189 } else {
21190 int status;
21191 struct stat st;
21193 while (wait(&status) != child)
21195 return (
21196 /* Was there some problem with vforking? */
21197 child < 0
21199 /* Did the child fail? (This shouldn't happen.) */
21200 || status
21202 /* Did the vfork/compiler bug occur? */
21203 || parent != getpid()
21205 /* Did the file descriptor bug occur? */
21206 || fstat(fileno(stdout), &st) != 0
21210 _ACEOF
21211 if ac_fn_c_try_run "$LINENO"; then :
21212 ac_cv_func_vfork_works=yes
21213 else
21214 ac_cv_func_vfork_works=no
21216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21217 conftest.$ac_objext conftest.beam conftest.$ac_ext
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21222 $as_echo "$ac_cv_func_vfork_works" >&6; }
21225 if test "x$ac_cv_func_fork_works" = xcross; then
21226 ac_cv_func_vfork_works=$ac_cv_func_vfork
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21228 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21231 if test "x$ac_cv_func_vfork_works" = xyes; then
21233 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21235 else
21237 $as_echo "#define vfork fork" >>confdefs.h
21240 if test "x$ac_cv_func_fork_works" = xyes; then
21242 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21246 for ac_func in strchr \
21247 memcpy \
21248 strtol \
21249 strtoul \
21250 select \
21251 poll \
21252 qsort \
21253 getuid \
21254 getpwuid \
21255 getpwnam \
21256 gettimeofday \
21257 tmpfile \
21258 uname \
21259 rename \
21260 read \
21261 signal \
21262 setjmp \
21263 chown \
21264 wait4 \
21265 waitpid \
21266 wait \
21267 srandom \
21268 popen \
21269 pclose \
21270 fsync \
21271 truncate \
21272 listen \
21273 wcwidth \
21274 mbstowcs \
21275 wcrtomb \
21276 putenv \
21277 setenv
21278 do :
21279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21280 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21281 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21282 cat >>confdefs.h <<_ACEOF
21283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21284 _ACEOF
21287 done
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
21291 $as_echo_n "checking for library containing gethostname... " >&6; }
21292 if ${ac_cv_search_gethostname+:} false; then :
21293 $as_echo_n "(cached) " >&6
21294 else
21295 ac_func_search_save_LIBS=$LIBS
21296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21297 /* end confdefs.h. */
21299 /* Override any GCC internal prototype to avoid an error.
21300 Use char because int might match the return type of a GCC
21301 builtin and then its argument prototype would still apply. */
21302 #ifdef __cplusplus
21303 extern "C"
21304 #endif
21305 char gethostname ();
21307 main ()
21309 return gethostname ();
21311 return 0;
21313 _ACEOF
21314 for ac_lib in '' nsl; do
21315 if test -z "$ac_lib"; then
21316 ac_res="none required"
21317 else
21318 ac_res=-l$ac_lib
21319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21321 if ac_fn_c_try_link "$LINENO"; then :
21322 ac_cv_search_gethostname=$ac_res
21324 rm -f core conftest.err conftest.$ac_objext \
21325 conftest$ac_exeext
21326 if ${ac_cv_search_gethostname+:} false; then :
21327 break
21329 done
21330 if ${ac_cv_search_gethostname+:} false; then :
21332 else
21333 ac_cv_search_gethostname=no
21335 rm conftest.$ac_ext
21336 LIBS=$ac_func_search_save_LIBS
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
21339 $as_echo "$ac_cv_search_gethostname" >&6; }
21340 ac_res=$ac_cv_search_gethostname
21341 if test "$ac_res" != no; then :
21342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21348 $as_echo_n "checking for library containing socket... " >&6; }
21349 if ${ac_cv_search_socket+:} false; then :
21350 $as_echo_n "(cached) " >&6
21351 else
21352 ac_func_search_save_LIBS=$LIBS
21353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h. */
21356 /* Override any GCC internal prototype to avoid an error.
21357 Use char because int might match the return type of a GCC
21358 builtin and then its argument prototype would still apply. */
21359 #ifdef __cplusplus
21360 extern "C"
21361 #endif
21362 char socket ();
21364 main ()
21366 return socket ();
21368 return 0;
21370 _ACEOF
21371 for ac_lib in '' socket; do
21372 if test -z "$ac_lib"; then
21373 ac_res="none required"
21374 else
21375 ac_res=-l$ac_lib
21376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21378 if ac_fn_c_try_link "$LINENO"; then :
21379 ac_cv_search_socket=$ac_res
21381 rm -f core conftest.err conftest.$ac_objext \
21382 conftest$ac_exeext
21383 if ${ac_cv_search_socket+:} false; then :
21384 break
21386 done
21387 if ${ac_cv_search_socket+:} false; then :
21389 else
21390 ac_cv_search_socket=no
21392 rm conftest.$ac_ext
21393 LIBS=$ac_func_search_save_LIBS
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21396 $as_echo "$ac_cv_search_socket" >&6; }
21397 ac_res=$ac_cv_search_socket
21398 if test "$ac_res" != no; then :
21399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21401 else
21403 WEB_BUILD=
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
21409 $as_echo_n "checking for library containing bind... " >&6; }
21410 if ${ac_cv_search_bind+:} false; then :
21411 $as_echo_n "(cached) " >&6
21412 else
21413 ac_func_search_save_LIBS=$LIBS
21414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21415 /* end confdefs.h. */
21417 /* Override any GCC internal prototype to avoid an error.
21418 Use char because int might match the return type of a GCC
21419 builtin and then its argument prototype would still apply. */
21420 #ifdef __cplusplus
21421 extern "C"
21422 #endif
21423 char bind ();
21425 main ()
21427 return bind ();
21429 return 0;
21431 _ACEOF
21432 for ac_lib in '' bind; do
21433 if test -z "$ac_lib"; then
21434 ac_res="none required"
21435 else
21436 ac_res=-l$ac_lib
21437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21439 if ac_fn_c_try_link "$LINENO"; then :
21440 ac_cv_search_bind=$ac_res
21442 rm -f core conftest.err conftest.$ac_objext \
21443 conftest$ac_exeext
21444 if ${ac_cv_search_bind+:} false; then :
21445 break
21447 done
21448 if ${ac_cv_search_bind+:} false; then :
21450 else
21451 ac_cv_search_bind=no
21453 rm conftest.$ac_ext
21454 LIBS=$ac_func_search_save_LIBS
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
21457 $as_echo "$ac_cv_search_bind" >&6; }
21458 ac_res=$ac_cv_search_bind
21459 if test "$ac_res" != no; then :
21460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21462 else
21464 WEB_BUILD=
21469 for ac_func in sigaction sigemptyset sigaddset sigprocmask
21470 do :
21471 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21472 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21473 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21474 cat >>confdefs.h <<_ACEOF
21475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21476 _ACEOF
21479 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
21482 else
21484 for ac_func in sigset sigrelse
21485 do :
21486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21487 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21488 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21489 cat >>confdefs.h <<_ACEOF
21490 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21491 _ACEOF
21494 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
21498 done
21502 done
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
21506 $as_echo_n "checking for library containing syslog... " >&6; }
21507 if ${ac_cv_search_syslog+:} false; then :
21508 $as_echo_n "(cached) " >&6
21509 else
21510 ac_func_search_save_LIBS=$LIBS
21511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21512 /* end confdefs.h. */
21514 /* Override any GCC internal prototype to avoid an error.
21515 Use char because int might match the return type of a GCC
21516 builtin and then its argument prototype would still apply. */
21517 #ifdef __cplusplus
21518 extern "C"
21519 #endif
21520 char syslog ();
21522 main ()
21524 return syslog ();
21526 return 0;
21528 _ACEOF
21529 for ac_lib in '' bsd socket inet; do
21530 if test -z "$ac_lib"; then
21531 ac_res="none required"
21532 else
21533 ac_res=-l$ac_lib
21534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21536 if ac_fn_c_try_link "$LINENO"; then :
21537 ac_cv_search_syslog=$ac_res
21539 rm -f core conftest.err conftest.$ac_objext \
21540 conftest$ac_exeext
21541 if ${ac_cv_search_syslog+:} false; then :
21542 break
21544 done
21545 if ${ac_cv_search_syslog+:} false; then :
21547 else
21548 ac_cv_search_syslog=no
21550 rm conftest.$ac_ext
21551 LIBS=$ac_func_search_save_LIBS
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
21554 $as_echo "$ac_cv_search_syslog" >&6; }
21555 ac_res=$ac_cv_search_syslog
21556 if test "$ac_res" != no; then :
21557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21560 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
21567 if test -n "$alpine_with_local_maildir" ; then
21568 alpine_local_maildir=$alpine_with_local_maildir
21569 elif test -d /var/spool/mail ; then
21570 alpine_local_maildir="/var/spool/mail"
21571 elif test -d /var/mail ; then
21572 alpine_local_maildir="/var/mail"
21573 else
21574 alpine_local_maildir="/usr/spool/mail"
21577 if test -n "$alpine_with_c_client_target" ; then
21578 alpine_c_client_target=$alpine_with_c_client_target
21582 cat >>confdefs.h <<_ACEOF
21583 #define SYSTYPE "$systype"
21584 _ACEOF
21587 cat >>confdefs.h <<_ACEOF
21588 #define C_FILESEP '$alpine_path_delim'
21589 _ACEOF
21592 cat >>confdefs.h <<_ACEOF
21593 #define S_FILESEP "$alpine_path_delim"
21594 _ACEOF
21597 cat >>confdefs.h <<_ACEOF
21598 #define MAILDIR "$alpine_local_maildir"
21599 _ACEOF
21602 cat >>confdefs.h <<_ACEOF
21603 #define MODE_READONLY $alpine_mode_readonly
21604 _ACEOF
21607 C_CLIENT_TARGET=$alpine_c_client_target
21609 C_CLIENT_WITH_IPV6=$c_client_ip6
21611 if test "x$alpine_SSLTYPE" = "xnone" ; then
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
21613 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
21614 c_client_specials="${c_client_specials}SSLTYPE=none "
21615 else
21617 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
21618 certdir="$alpine_SSLCERTS"
21619 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
21620 certdir="${alpine_SSLDIR}/certs"
21621 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
21622 certdir="${alpine_SSLDIR}/ssl/certs"
21623 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
21624 certdir="$alpine_SSLCERTS_ORIG"
21625 elif test -n "$alpine_SSLCERTS" ; then
21626 certdir="$alpine_SSLCERTS"
21627 else
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
21629 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
21632 if test "x$with_smime" != "xno" ; then
21633 if test -n "$certdir" ; then
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
21635 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
21637 $as_echo "#define SMIME /**/" >>confdefs.h
21640 cat >>confdefs.h <<_ACEOF
21641 #define SMIME_SSLCERTS "$certdir"
21642 _ACEOF
21648 SSL_CERT_LINK="no"
21649 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
21650 SSL_BUNDLE_EXISTS="no"
21651 SSL_PEM="factory.pem ca-bundle.pem"
21652 for SSL_BUNDLE in $SSL_PEM
21654 if test -f ${certdir}/${SSL_BUNDLE} ; then
21655 SSL_BUNDLE_EXISTS="yes"
21657 done
21658 else
21659 SSL_CERT_LINK="yes"
21662 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
21664 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
21666 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
21668 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
21670 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
21673 if test -n "$alpine_SSLINCLUDE" ; then
21674 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
21677 if test -n "$alpine_SSLLIB" ; then
21678 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
21681 if test -n "$alpine_SSLDIR" ; then
21682 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
21685 if test -n "$certdir" ; then
21686 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
21689 if test -n "$alpine_SSLKEYS" ; then
21690 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
21694 extra_auth_gss=
21695 if test "x$alpine_GSSTYPE" != "xnone" ; then
21696 extra_auth_gss=gss
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
21698 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
21701 extra_auth_ntlm=
21702 if test "x$alpine_NTLM" != "xnone" ; then
21703 extra_auth_ntlm=ntl
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
21705 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
21708 if test -n "$CPPFLAGS" ; then
21709 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
21711 if test -n "$CFLAGS" ; then
21712 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
21715 if test -n "$alpine_c_client_cflags" ; then
21716 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
21720 if test -n "$LDFLAGS" ; then
21721 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
21723 if test -n "$LIBS" ; then
21724 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
21727 if test -n "$alpine_c_client_ldflags" ; then
21728 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
21732 if test -n "$alpine_c_client_gccoptlevel" ; then
21733 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
21737 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
21738 C_CLIENT_AUTHS=$c_client_auths
21741 C_CLIENT_SPECIALS=$c_client_specials
21744 if test -z "$WEB_BUILD" ; then
21745 WEB_PUBCOOKIE_BUILD=
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
21747 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
21749 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
21750 else
21751 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
21752 if test "x$alpine_GSSTYPE" = "xnone" ; then
21753 WEB_PUBCOOKIE_BUILD=
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
21755 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
21757 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
21758 elif test -z "$WEB_BINDIR" ; then
21759 WEB_PUBCOOKIE_BUILD=
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
21761 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
21762 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
21763 Please re-run configure with these options:
21764 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
21765 else
21767 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
21769 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
21770 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
21786 ac_config_files="$ac_config_files m4/Makefile po/Makefile.in $REGEX_MAKEFILE pith/osdep/Makefile pith/charconv/Makefile pith/Makefile pico/osdep/Makefile pico/Makefile alpine/osdep/Makefile alpine/Makefile web/src/Makefile web/src/pubcookie/Makefile web/src/alpined.d/Makefile Makefile"
21788 cat >confcache <<\_ACEOF
21789 # This file is a shell script that caches the results of configure
21790 # tests run on this system so they can be shared between configure
21791 # scripts and configure runs, see configure's option --config-cache.
21792 # It is not useful on other systems. If it contains results you don't
21793 # want to keep, you may remove or edit it.
21795 # config.status only pays attention to the cache file if you give it
21796 # the --recheck option to rerun configure.
21798 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21799 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21800 # following values.
21802 _ACEOF
21804 # The following way of writing the cache mishandles newlines in values,
21805 # but we know of no workaround that is simple, portable, and efficient.
21806 # So, we kill variables containing newlines.
21807 # Ultrix sh set writes to stderr and can't be redirected directly,
21808 # and sets the high bit in the cache file unless we assign to the vars.
21810 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21811 eval ac_val=\$$ac_var
21812 case $ac_val in #(
21813 *${as_nl}*)
21814 case $ac_var in #(
21815 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21817 esac
21818 case $ac_var in #(
21819 _ | IFS | as_nl) ;; #(
21820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21821 *) { eval $ac_var=; unset $ac_var;} ;;
21822 esac ;;
21823 esac
21824 done
21826 (set) 2>&1 |
21827 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21828 *${as_nl}ac_space=\ *)
21829 # `set' does not quote correctly, so add quotes: double-quote
21830 # substitution turns \\\\ into \\, and sed turns \\ into \.
21831 sed -n \
21832 "s/'/'\\\\''/g;
21833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21834 ;; #(
21836 # `set' quotes correctly as required by POSIX, so do not add quotes.
21837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21839 esac |
21840 sort
21842 sed '
21843 /^ac_cv_env_/b end
21844 t clear
21845 :clear
21846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21847 t end
21848 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21849 :end' >>confcache
21850 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21851 if test -w "$cache_file"; then
21852 if test "x$cache_file" != "x/dev/null"; then
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21854 $as_echo "$as_me: updating cache $cache_file" >&6;}
21855 if test ! -f "$cache_file" || test -h "$cache_file"; then
21856 cat confcache >"$cache_file"
21857 else
21858 case $cache_file in #(
21859 */* | ?:*)
21860 mv -f confcache "$cache_file"$$ &&
21861 mv -f "$cache_file"$$ "$cache_file" ;; #(
21863 mv -f confcache "$cache_file" ;;
21864 esac
21867 else
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21869 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21872 rm -f confcache
21874 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21875 # Let make expand exec_prefix.
21876 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21878 DEFS=-DHAVE_CONFIG_H
21880 ac_libobjs=
21881 ac_ltlibobjs=
21883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21884 # 1. Remove the extension, and $U if already installed.
21885 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21886 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21887 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21888 # will be set to the directory where LIBOBJS objects are built.
21889 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21890 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21891 done
21892 LIBOBJS=$ac_libobjs
21894 LTLIBOBJS=$ac_ltlibobjs
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21898 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21899 if test -n "$am_sleep_pid"; then
21900 # Hide warnings about reused PIDs.
21901 wait $am_sleep_pid 2>/dev/null
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21904 $as_echo "done" >&6; }
21905 if test -n "$EXEEXT"; then
21906 am__EXEEXT_TRUE=
21907 am__EXEEXT_FALSE='#'
21908 else
21909 am__EXEEXT_TRUE='#'
21910 am__EXEEXT_FALSE=
21913 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21914 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21917 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21918 as_fn_error $? "conditional \"AMDEP\" was never defined.
21919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21921 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21922 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21926 : "${CONFIG_STATUS=./config.status}"
21927 ac_write_fail=0
21928 ac_clean_files_save=$ac_clean_files
21929 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21931 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21932 as_write_fail=0
21933 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21934 #! $SHELL
21935 # Generated by $as_me.
21936 # Run this file to recreate the current configuration.
21937 # Compiler output produced by configure, useful for debugging
21938 # configure, is in config.log if it exists.
21940 debug=false
21941 ac_cs_recheck=false
21942 ac_cs_silent=false
21944 SHELL=\${CONFIG_SHELL-$SHELL}
21945 export SHELL
21946 _ASEOF
21947 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21948 ## -------------------- ##
21949 ## M4sh Initialization. ##
21950 ## -------------------- ##
21952 # Be more Bourne compatible
21953 DUALCASE=1; export DUALCASE # for MKS sh
21954 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21955 emulate sh
21956 NULLCMD=:
21957 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21958 # is contrary to our usage. Disable this feature.
21959 alias -g '${1+"$@"}'='"$@"'
21960 setopt NO_GLOB_SUBST
21961 else
21962 case `(set -o) 2>/dev/null` in #(
21963 *posix*) :
21964 set -o posix ;; #(
21965 *) :
21967 esac
21971 as_nl='
21973 export as_nl
21974 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21975 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21976 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21977 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21978 # Prefer a ksh shell builtin over an external printf program on Solaris,
21979 # but without wasting forks for bash or zsh.
21980 if test -z "$BASH_VERSION$ZSH_VERSION" \
21981 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21982 as_echo='print -r --'
21983 as_echo_n='print -rn --'
21984 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21985 as_echo='printf %s\n'
21986 as_echo_n='printf %s'
21987 else
21988 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21989 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21990 as_echo_n='/usr/ucb/echo -n'
21991 else
21992 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21993 as_echo_n_body='eval
21994 arg=$1;
21995 case $arg in #(
21996 *"$as_nl"*)
21997 expr "X$arg" : "X\\(.*\\)$as_nl";
21998 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21999 esac;
22000 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22002 export as_echo_n_body
22003 as_echo_n='sh -c $as_echo_n_body as_echo'
22005 export as_echo_body
22006 as_echo='sh -c $as_echo_body as_echo'
22009 # The user is always right.
22010 if test "${PATH_SEPARATOR+set}" != set; then
22011 PATH_SEPARATOR=:
22012 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22013 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22014 PATH_SEPARATOR=';'
22019 # IFS
22020 # We need space, tab and new line, in precisely that order. Quoting is
22021 # there to prevent editors from complaining about space-tab.
22022 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22023 # splitting by setting IFS to empty value.)
22024 IFS=" "" $as_nl"
22026 # Find who we are. Look in the path if we contain no directory separator.
22027 as_myself=
22028 case $0 in #((
22029 *[\\/]* ) as_myself=$0 ;;
22030 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22031 for as_dir in $PATH
22033 IFS=$as_save_IFS
22034 test -z "$as_dir" && as_dir=.
22035 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22036 done
22037 IFS=$as_save_IFS
22040 esac
22041 # We did not find ourselves, most probably we were run as `sh COMMAND'
22042 # in which case we are not to be found in the path.
22043 if test "x$as_myself" = x; then
22044 as_myself=$0
22046 if test ! -f "$as_myself"; then
22047 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22048 exit 1
22051 # Unset variables that we do not need and which cause bugs (e.g. in
22052 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22053 # suppresses any "Segmentation fault" message there. '((' could
22054 # trigger a bug in pdksh 5.2.14.
22055 for as_var in BASH_ENV ENV MAIL MAILPATH
22056 do eval test x\${$as_var+set} = xset \
22057 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22058 done
22059 PS1='$ '
22060 PS2='> '
22061 PS4='+ '
22063 # NLS nuisances.
22064 LC_ALL=C
22065 export LC_ALL
22066 LANGUAGE=C
22067 export LANGUAGE
22069 # CDPATH.
22070 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22073 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22074 # ----------------------------------------
22075 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22076 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22077 # script with STATUS, using 1 if that was 0.
22078 as_fn_error ()
22080 as_status=$1; test $as_status -eq 0 && as_status=1
22081 if test "$4"; then
22082 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22083 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22085 $as_echo "$as_me: error: $2" >&2
22086 as_fn_exit $as_status
22087 } # as_fn_error
22090 # as_fn_set_status STATUS
22091 # -----------------------
22092 # Set $? to STATUS, without forking.
22093 as_fn_set_status ()
22095 return $1
22096 } # as_fn_set_status
22098 # as_fn_exit STATUS
22099 # -----------------
22100 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22101 as_fn_exit ()
22103 set +e
22104 as_fn_set_status $1
22105 exit $1
22106 } # as_fn_exit
22108 # as_fn_unset VAR
22109 # ---------------
22110 # Portably unset VAR.
22111 as_fn_unset ()
22113 { eval $1=; unset $1;}
22115 as_unset=as_fn_unset
22116 # as_fn_append VAR VALUE
22117 # ----------------------
22118 # Append the text in VALUE to the end of the definition contained in VAR. Take
22119 # advantage of any shell optimizations that allow amortized linear growth over
22120 # repeated appends, instead of the typical quadratic growth present in naive
22121 # implementations.
22122 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22123 eval 'as_fn_append ()
22125 eval $1+=\$2
22127 else
22128 as_fn_append ()
22130 eval $1=\$$1\$2
22132 fi # as_fn_append
22134 # as_fn_arith ARG...
22135 # ------------------
22136 # Perform arithmetic evaluation on the ARGs, and store the result in the
22137 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22138 # must be portable across $(()) and expr.
22139 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22140 eval 'as_fn_arith ()
22142 as_val=$(( $* ))
22144 else
22145 as_fn_arith ()
22147 as_val=`expr "$@" || test $? -eq 1`
22149 fi # as_fn_arith
22152 if expr a : '\(a\)' >/dev/null 2>&1 &&
22153 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22154 as_expr=expr
22155 else
22156 as_expr=false
22159 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22160 as_basename=basename
22161 else
22162 as_basename=false
22165 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22166 as_dirname=dirname
22167 else
22168 as_dirname=false
22171 as_me=`$as_basename -- "$0" ||
22172 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22173 X"$0" : 'X\(//\)$' \| \
22174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22175 $as_echo X/"$0" |
22176 sed '/^.*\/\([^/][^/]*\)\/*$/{
22177 s//\1/
22180 /^X\/\(\/\/\)$/{
22181 s//\1/
22184 /^X\/\(\/\).*/{
22185 s//\1/
22188 s/.*/./; q'`
22190 # Avoid depending upon Character Ranges.
22191 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22192 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22193 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22194 as_cr_digits='0123456789'
22195 as_cr_alnum=$as_cr_Letters$as_cr_digits
22197 ECHO_C= ECHO_N= ECHO_T=
22198 case `echo -n x` in #(((((
22199 -n*)
22200 case `echo 'xy\c'` in
22201 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22202 xy) ECHO_C='\c';;
22203 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22204 ECHO_T=' ';;
22205 esac;;
22207 ECHO_N='-n';;
22208 esac
22210 rm -f conf$$ conf$$.exe conf$$.file
22211 if test -d conf$$.dir; then
22212 rm -f conf$$.dir/conf$$.file
22213 else
22214 rm -f conf$$.dir
22215 mkdir conf$$.dir 2>/dev/null
22217 if (echo >conf$$.file) 2>/dev/null; then
22218 if ln -s conf$$.file conf$$ 2>/dev/null; then
22219 as_ln_s='ln -s'
22220 # ... but there are two gotchas:
22221 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22222 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22223 # In both cases, we have to default to `cp -pR'.
22224 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22225 as_ln_s='cp -pR'
22226 elif ln conf$$.file conf$$ 2>/dev/null; then
22227 as_ln_s=ln
22228 else
22229 as_ln_s='cp -pR'
22231 else
22232 as_ln_s='cp -pR'
22234 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22235 rmdir conf$$.dir 2>/dev/null
22238 # as_fn_mkdir_p
22239 # -------------
22240 # Create "$as_dir" as a directory, including parents if necessary.
22241 as_fn_mkdir_p ()
22244 case $as_dir in #(
22245 -*) as_dir=./$as_dir;;
22246 esac
22247 test -d "$as_dir" || eval $as_mkdir_p || {
22248 as_dirs=
22249 while :; do
22250 case $as_dir in #(
22251 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22252 *) as_qdir=$as_dir;;
22253 esac
22254 as_dirs="'$as_qdir' $as_dirs"
22255 as_dir=`$as_dirname -- "$as_dir" ||
22256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22257 X"$as_dir" : 'X\(//\)[^/]' \| \
22258 X"$as_dir" : 'X\(//\)$' \| \
22259 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22260 $as_echo X"$as_dir" |
22261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22262 s//\1/
22265 /^X\(\/\/\)[^/].*/{
22266 s//\1/
22269 /^X\(\/\/\)$/{
22270 s//\1/
22273 /^X\(\/\).*/{
22274 s//\1/
22277 s/.*/./; q'`
22278 test -d "$as_dir" && break
22279 done
22280 test -z "$as_dirs" || eval "mkdir $as_dirs"
22281 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22284 } # as_fn_mkdir_p
22285 if mkdir -p . 2>/dev/null; then
22286 as_mkdir_p='mkdir -p "$as_dir"'
22287 else
22288 test -d ./-p && rmdir ./-p
22289 as_mkdir_p=false
22293 # as_fn_executable_p FILE
22294 # -----------------------
22295 # Test if FILE is an executable regular file.
22296 as_fn_executable_p ()
22298 test -f "$1" && test -x "$1"
22299 } # as_fn_executable_p
22300 as_test_x='test -x'
22301 as_executable_p=as_fn_executable_p
22303 # Sed expression to map a string onto a valid CPP name.
22304 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22306 # Sed expression to map a string onto a valid variable name.
22307 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22310 exec 6>&1
22311 ## ----------------------------------- ##
22312 ## Main body of $CONFIG_STATUS script. ##
22313 ## ----------------------------------- ##
22314 _ASEOF
22315 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22318 # Save the log message, to keep $0 and so on meaningful, and to
22319 # report actual input values of CONFIG_FILES etc. instead of their
22320 # values after options handling.
22321 ac_log="
22322 This file was extended by alpine $as_me 2.21.9, which was
22323 generated by GNU Autoconf 2.69. Invocation command line was
22325 CONFIG_FILES = $CONFIG_FILES
22326 CONFIG_HEADERS = $CONFIG_HEADERS
22327 CONFIG_LINKS = $CONFIG_LINKS
22328 CONFIG_COMMANDS = $CONFIG_COMMANDS
22329 $ $0 $@
22331 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22334 _ACEOF
22336 case $ac_config_files in *"
22337 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22338 esac
22340 case $ac_config_headers in *"
22341 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22342 esac
22345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22346 # Files that config.status was made for.
22347 config_files="$ac_config_files"
22348 config_headers="$ac_config_headers"
22349 config_commands="$ac_config_commands"
22351 _ACEOF
22353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22354 ac_cs_usage="\
22355 \`$as_me' instantiates files and other configuration actions
22356 from templates according to the current configuration. Unless the files
22357 and actions are specified as TAGs, all are instantiated by default.
22359 Usage: $0 [OPTION]... [TAG]...
22361 -h, --help print this help, then exit
22362 -V, --version print version number and configuration settings, then exit
22363 --config print configuration, then exit
22364 -q, --quiet, --silent
22365 do not print progress messages
22366 -d, --debug don't remove temporary files
22367 --recheck update $as_me by reconfiguring in the same conditions
22368 --file=FILE[:TEMPLATE]
22369 instantiate the configuration file FILE
22370 --header=FILE[:TEMPLATE]
22371 instantiate the configuration header FILE
22373 Configuration files:
22374 $config_files
22376 Configuration headers:
22377 $config_headers
22379 Configuration commands:
22380 $config_commands
22382 Report bugs to <chappa@washington.edu>."
22384 _ACEOF
22385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22386 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22387 ac_cs_version="\\
22388 alpine config.status 2.21.9
22389 configured by $0, generated by GNU Autoconf 2.69,
22390 with options \\"\$ac_cs_config\\"
22392 Copyright (C) 2012 Free Software Foundation, Inc.
22393 This config.status script is free software; the Free Software Foundation
22394 gives unlimited permission to copy, distribute and modify it."
22396 ac_pwd='$ac_pwd'
22397 srcdir='$srcdir'
22398 INSTALL='$INSTALL'
22399 MKDIR_P='$MKDIR_P'
22400 AWK='$AWK'
22401 test -n "\$AWK" || AWK=awk
22402 _ACEOF
22404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22405 # The default lists apply if the user does not specify any file.
22406 ac_need_defaults=:
22407 while test $# != 0
22409 case $1 in
22410 --*=?*)
22411 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22412 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22413 ac_shift=:
22415 --*=)
22416 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22417 ac_optarg=
22418 ac_shift=:
22421 ac_option=$1
22422 ac_optarg=$2
22423 ac_shift=shift
22425 esac
22427 case $ac_option in
22428 # Handling of the options.
22429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22430 ac_cs_recheck=: ;;
22431 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22432 $as_echo "$ac_cs_version"; exit ;;
22433 --config | --confi | --conf | --con | --co | --c )
22434 $as_echo "$ac_cs_config"; exit ;;
22435 --debug | --debu | --deb | --de | --d | -d )
22436 debug=: ;;
22437 --file | --fil | --fi | --f )
22438 $ac_shift
22439 case $ac_optarg in
22440 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22441 '') as_fn_error $? "missing file argument" ;;
22442 esac
22443 as_fn_append CONFIG_FILES " '$ac_optarg'"
22444 ac_need_defaults=false;;
22445 --header | --heade | --head | --hea )
22446 $ac_shift
22447 case $ac_optarg in
22448 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22449 esac
22450 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22451 ac_need_defaults=false;;
22452 --he | --h)
22453 # Conflict between --help and --header
22454 as_fn_error $? "ambiguous option: \`$1'
22455 Try \`$0 --help' for more information.";;
22456 --help | --hel | -h )
22457 $as_echo "$ac_cs_usage"; exit ;;
22458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22459 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22460 ac_cs_silent=: ;;
22462 # This is an error.
22463 -*) as_fn_error $? "unrecognized option: \`$1'
22464 Try \`$0 --help' for more information." ;;
22466 *) as_fn_append ac_config_targets " $1"
22467 ac_need_defaults=false ;;
22469 esac
22470 shift
22471 done
22473 ac_configure_extra_args=
22475 if $ac_cs_silent; then
22476 exec 6>/dev/null
22477 ac_configure_extra_args="$ac_configure_extra_args --silent"
22480 _ACEOF
22481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22482 if \$ac_cs_recheck; then
22483 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22484 shift
22485 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22486 CONFIG_SHELL='$SHELL'
22487 export CONFIG_SHELL
22488 exec "\$@"
22491 _ACEOF
22492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22493 exec 5>>config.log
22495 echo
22496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22497 ## Running $as_me. ##
22498 _ASBOX
22499 $as_echo "$ac_log"
22500 } >&5
22502 _ACEOF
22503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22505 # INIT-COMMANDS
22507 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22510 # The HP-UX ksh and POSIX shell print the target directory to stdout
22511 # if CDPATH is set.
22512 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22514 sed_quote_subst='$sed_quote_subst'
22515 double_quote_subst='$double_quote_subst'
22516 delay_variable_subst='$delay_variable_subst'
22517 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22518 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22519 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22520 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22521 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22522 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22523 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22524 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22525 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22526 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22527 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22528 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22529 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22530 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22531 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22532 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22533 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22534 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22535 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22536 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22537 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22538 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22539 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22540 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22541 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22542 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22543 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22544 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22545 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22546 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22547 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22548 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22549 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22550 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22551 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22552 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22553 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22554 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22555 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22556 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22557 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22558 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22559 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22560 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22561 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22562 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22563 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22564 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22565 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22566 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22567 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22568 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22569 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22570 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22571 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22572 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22573 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22574 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22575 lt_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"`'
22576 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22577 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22578 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22579 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22580 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22581 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22582 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22583 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22584 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22585 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22586 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22587 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22588 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22589 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22590 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22591 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22592 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22593 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22594 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22595 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22596 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22597 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22598 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22599 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22600 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22601 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22602 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22603 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22604 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22605 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22606 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22607 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22608 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22609 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22610 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22611 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22612 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22613 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22614 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22615 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22616 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22617 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22618 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22619 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22620 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22621 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22622 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22623 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22624 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22625 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22626 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22627 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22628 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22629 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22630 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22631 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22632 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22633 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22634 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22635 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22636 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22637 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22638 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22639 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22640 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22641 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22642 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22643 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22644 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22645 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22646 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22647 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22648 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22649 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22650 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22651 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22653 LTCC='$LTCC'
22654 LTCFLAGS='$LTCFLAGS'
22655 compiler='$compiler_DEFAULT'
22657 # A function that is used when there is no print builtin or printf.
22658 func_fallback_echo ()
22660 eval 'cat <<_LTECHO_EOF
22662 _LTECHO_EOF'
22665 # Quote evaled strings.
22666 for var in SHELL \
22667 ECHO \
22668 PATH_SEPARATOR \
22669 SED \
22670 GREP \
22671 EGREP \
22672 FGREP \
22673 LD \
22674 NM \
22675 LN_S \
22676 lt_SP2NL \
22677 lt_NL2SP \
22678 reload_flag \
22679 OBJDUMP \
22680 deplibs_check_method \
22681 file_magic_cmd \
22682 file_magic_glob \
22683 want_nocaseglob \
22684 DLLTOOL \
22685 sharedlib_from_linklib_cmd \
22686 AR \
22687 AR_FLAGS \
22688 archiver_list_spec \
22689 STRIP \
22690 RANLIB \
22691 CC \
22692 CFLAGS \
22693 compiler \
22694 lt_cv_sys_global_symbol_pipe \
22695 lt_cv_sys_global_symbol_to_cdecl \
22696 lt_cv_sys_global_symbol_to_import \
22697 lt_cv_sys_global_symbol_to_c_name_address \
22698 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22699 lt_cv_nm_interface \
22700 nm_file_list_spec \
22701 lt_cv_truncate_bin \
22702 lt_prog_compiler_no_builtin_flag \
22703 lt_prog_compiler_pic \
22704 lt_prog_compiler_wl \
22705 lt_prog_compiler_static \
22706 lt_cv_prog_compiler_c_o \
22707 need_locks \
22708 MANIFEST_TOOL \
22709 DSYMUTIL \
22710 NMEDIT \
22711 LIPO \
22712 OTOOL \
22713 OTOOL64 \
22714 shrext_cmds \
22715 export_dynamic_flag_spec \
22716 whole_archive_flag_spec \
22717 compiler_needs_object \
22718 with_gnu_ld \
22719 allow_undefined_flag \
22720 no_undefined_flag \
22721 hardcode_libdir_flag_spec \
22722 hardcode_libdir_separator \
22723 exclude_expsyms \
22724 include_expsyms \
22725 file_list_spec \
22726 variables_saved_for_relink \
22727 libname_spec \
22728 library_names_spec \
22729 soname_spec \
22730 install_override_mode \
22731 finish_eval \
22732 old_striplib \
22733 striplib; do
22734 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22735 *[\\\\\\\`\\"\\\$]*)
22736 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22739 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22741 esac
22742 done
22744 # Double-quote double-evaled strings.
22745 for var in reload_cmds \
22746 old_postinstall_cmds \
22747 old_postuninstall_cmds \
22748 old_archive_cmds \
22749 extract_expsyms_cmds \
22750 old_archive_from_new_cmds \
22751 old_archive_from_expsyms_cmds \
22752 archive_cmds \
22753 archive_expsym_cmds \
22754 module_cmds \
22755 module_expsym_cmds \
22756 export_symbols_cmds \
22757 prelink_cmds \
22758 postlink_cmds \
22759 postinstall_cmds \
22760 postuninstall_cmds \
22761 finish_cmds \
22762 sys_lib_search_path_spec \
22763 configure_time_dlsearch_path \
22764 configure_time_lt_sys_library_path; do
22765 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22766 *[\\\\\\\`\\"\\\$]*)
22767 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22770 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22772 esac
22773 done
22775 ac_aux_dir='$ac_aux_dir'
22777 # See if we are running on zsh, and set the options that allow our
22778 # commands through without removal of \ escapes INIT.
22779 if test -n "\${ZSH_VERSION+set}"; then
22780 setopt NO_GLOB_SUBST
22784 PACKAGE='$PACKAGE'
22785 VERSION='$VERSION'
22786 RM='$RM'
22787 ofile='$ofile'
22791 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22792 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22793 # from automake < 1.5.
22794 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22795 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22796 LINGUAS="${LINGUAS-%UNSET%}"
22799 _ACEOF
22801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22803 # Handling of arguments.
22804 for ac_config_target in $ac_config_targets
22806 case $ac_config_target in
22807 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22808 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22809 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22810 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22811 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22812 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22813 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
22814 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
22815 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
22816 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
22817 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
22818 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
22819 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
22820 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
22821 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
22822 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
22823 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
22824 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22826 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22827 esac
22828 done
22831 # If the user did not use the arguments to specify the items to instantiate,
22832 # then the envvar interface is used. Set only those that are not.
22833 # We use the long form for the default assignment because of an extremely
22834 # bizarre bug on SunOS 4.1.3.
22835 if $ac_need_defaults; then
22836 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22837 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22838 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22841 # Have a temporary directory for convenience. Make it in the build tree
22842 # simply because there is no reason against having it here, and in addition,
22843 # creating and moving files from /tmp can sometimes cause problems.
22844 # Hook for its removal unless debugging.
22845 # Note that there is a small window in which the directory will not be cleaned:
22846 # after its creation but before its name has been assigned to `$tmp'.
22847 $debug ||
22849 tmp= ac_tmp=
22850 trap 'exit_status=$?
22851 : "${ac_tmp:=$tmp}"
22852 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22854 trap 'as_fn_exit 1' 1 2 13 15
22856 # Create a (secure) tmp directory for tmp files.
22859 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22860 test -d "$tmp"
22861 } ||
22863 tmp=./conf$$-$RANDOM
22864 (umask 077 && mkdir "$tmp")
22865 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22866 ac_tmp=$tmp
22868 # Set up the scripts for CONFIG_FILES section.
22869 # No need to generate them if there are no CONFIG_FILES.
22870 # This happens for instance with `./config.status config.h'.
22871 if test -n "$CONFIG_FILES"; then
22874 ac_cr=`echo X | tr X '\015'`
22875 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22876 # But we know of no other shell where ac_cr would be empty at this
22877 # point, so we can use a bashism as a fallback.
22878 if test "x$ac_cr" = x; then
22879 eval ac_cr=\$\'\\r\'
22881 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22882 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22883 ac_cs_awk_cr='\\r'
22884 else
22885 ac_cs_awk_cr=$ac_cr
22888 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22889 _ACEOF
22893 echo "cat >conf$$subs.awk <<_ACEOF" &&
22894 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22895 echo "_ACEOF"
22896 } >conf$$subs.sh ||
22897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22898 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22899 ac_delim='%!_!# '
22900 for ac_last_try in false false false false false :; do
22901 . ./conf$$subs.sh ||
22902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22904 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22905 if test $ac_delim_n = $ac_delim_num; then
22906 break
22907 elif $ac_last_try; then
22908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22909 else
22910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22912 done
22913 rm -f conf$$subs.sh
22915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22916 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22917 _ACEOF
22918 sed -n '
22920 s/^/S["/; s/!.*/"]=/
22923 s/^[^!]*!//
22924 :repl
22925 t repl
22926 s/'"$ac_delim"'$//
22927 t delim
22930 s/\(.\{148\}\)..*/\1/
22931 t more1
22932 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22935 b repl
22936 :more1
22937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22940 s/.\{148\}//
22941 t nl
22942 :delim
22944 s/\(.\{148\}\)..*/\1/
22945 t more2
22946 s/["\\]/\\&/g; s/^/"/; s/$/"/
22949 :more2
22950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22953 s/.\{148\}//
22954 t delim
22955 ' <conf$$subs.awk | sed '
22956 /^[^""]/{
22958 s/\n//
22960 ' >>$CONFIG_STATUS || ac_write_fail=1
22961 rm -f conf$$subs.awk
22962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22963 _ACAWK
22964 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22965 for (key in S) S_is_set[key] = 1
22966 FS = "\a"
22970 line = $ 0
22971 nfields = split(line, field, "@")
22972 substed = 0
22973 len = length(field[1])
22974 for (i = 2; i < nfields; i++) {
22975 key = field[i]
22976 keylen = length(key)
22977 if (S_is_set[key]) {
22978 value = S[key]
22979 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22980 len += length(value) + length(field[++i])
22981 substed = 1
22982 } else
22983 len += 1 + keylen
22986 print line
22989 _ACAWK
22990 _ACEOF
22991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22993 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22994 else
22996 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22997 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22998 _ACEOF
23000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23002 # trailing colons and then remove the whole line if VPATH becomes empty
23003 # (actually we leave an empty line to preserve line numbers).
23004 if test "x$srcdir" = x.; then
23005 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23007 s///
23008 s/^/:/
23009 s/[ ]*$/:/
23010 s/:\$(srcdir):/:/g
23011 s/:\${srcdir}:/:/g
23012 s/:@srcdir@:/:/g
23013 s/^:*//
23014 s/:*$//
23016 s/\(=[ ]*\).*/\1/
23018 s/\n//
23019 s/^[^=]*=[ ]*$//
23023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23024 fi # test -n "$CONFIG_FILES"
23026 # Set up the scripts for CONFIG_HEADERS section.
23027 # No need to generate them if there are no CONFIG_HEADERS.
23028 # This happens for instance with `./config.status Makefile'.
23029 if test -n "$CONFIG_HEADERS"; then
23030 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23031 BEGIN {
23032 _ACEOF
23034 # Transform confdefs.h into an awk script `defines.awk', embedded as
23035 # here-document in config.status, that substitutes the proper values into
23036 # config.h.in to produce config.h.
23038 # Create a delimiter string that does not exist in confdefs.h, to ease
23039 # handling of long lines.
23040 ac_delim='%!_!# '
23041 for ac_last_try in false false :; do
23042 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23043 if test -z "$ac_tt"; then
23044 break
23045 elif $ac_last_try; then
23046 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23047 else
23048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23050 done
23052 # For the awk script, D is an array of macro values keyed by name,
23053 # likewise P contains macro parameters if any. Preserve backslash
23054 # newline sequences.
23056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23057 sed -n '
23058 s/.\{148\}/&'"$ac_delim"'/g
23059 t rset
23060 :rset
23061 s/^[ ]*#[ ]*define[ ][ ]*/ /
23062 t def
23064 :def
23065 s/\\$//
23066 t bsnl
23067 s/["\\]/\\&/g
23068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23069 D["\1"]=" \3"/p
23070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23072 :bsnl
23073 s/["\\]/\\&/g
23074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23075 D["\1"]=" \3\\\\\\n"\\/p
23076 t cont
23077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23078 t cont
23080 :cont
23082 s/.\{148\}/&'"$ac_delim"'/g
23083 t clear
23084 :clear
23085 s/\\$//
23086 t bsnlc
23087 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23089 :bsnlc
23090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23091 b cont
23092 ' <confdefs.h | sed '
23093 s/'"$ac_delim"'/"\\\
23094 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23097 for (key in D) D_is_set[key] = 1
23098 FS = "\a"
23100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23101 line = \$ 0
23102 split(line, arg, " ")
23103 if (arg[1] == "#") {
23104 defundef = arg[2]
23105 mac1 = arg[3]
23106 } else {
23107 defundef = substr(arg[1], 2)
23108 mac1 = arg[2]
23110 split(mac1, mac2, "(") #)
23111 macro = mac2[1]
23112 prefix = substr(line, 1, index(line, defundef) - 1)
23113 if (D_is_set[macro]) {
23114 # Preserve the white space surrounding the "#".
23115 print prefix "define", macro P[macro] D[macro]
23116 next
23117 } else {
23118 # Replace #undef with comments. This is necessary, for example,
23119 # in the case of _POSIX_SOURCE, which is predefined and required
23120 # on some systems where configure will not decide to define it.
23121 if (defundef == "undef") {
23122 print "/*", prefix defundef, macro, "*/"
23123 next
23127 { print }
23128 _ACAWK
23129 _ACEOF
23130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23131 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23132 fi # test -n "$CONFIG_HEADERS"
23135 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23136 shift
23137 for ac_tag
23139 case $ac_tag in
23140 :[FHLC]) ac_mode=$ac_tag; continue;;
23141 esac
23142 case $ac_mode$ac_tag in
23143 :[FHL]*:*);;
23144 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23145 :[FH]-) ac_tag=-:-;;
23146 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23147 esac
23148 ac_save_IFS=$IFS
23149 IFS=:
23150 set x $ac_tag
23151 IFS=$ac_save_IFS
23152 shift
23153 ac_file=$1
23154 shift
23156 case $ac_mode in
23157 :L) ac_source=$1;;
23158 :[FH])
23159 ac_file_inputs=
23160 for ac_f
23162 case $ac_f in
23163 -) ac_f="$ac_tmp/stdin";;
23164 *) # Look for the file first in the build tree, then in the source tree
23165 # (if the path is not absolute). The absolute path cannot be DOS-style,
23166 # because $ac_f cannot contain `:'.
23167 test -f "$ac_f" ||
23168 case $ac_f in
23169 [\\/$]*) false;;
23170 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23171 esac ||
23172 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23173 esac
23174 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23175 as_fn_append ac_file_inputs " '$ac_f'"
23176 done
23178 # Let's still pretend it is `configure' which instantiates (i.e., don't
23179 # use $as_me), people would be surprised to read:
23180 # /* config.h. Generated by config.status. */
23181 configure_input='Generated from '`
23182 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23183 `' by configure.'
23184 if test x"$ac_file" != x-; then
23185 configure_input="$ac_file. $configure_input"
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23187 $as_echo "$as_me: creating $ac_file" >&6;}
23189 # Neutralize special characters interpreted by sed in replacement strings.
23190 case $configure_input in #(
23191 *\&* | *\|* | *\\* )
23192 ac_sed_conf_input=`$as_echo "$configure_input" |
23193 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23194 *) ac_sed_conf_input=$configure_input;;
23195 esac
23197 case $ac_tag in
23198 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23200 esac
23202 esac
23204 ac_dir=`$as_dirname -- "$ac_file" ||
23205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23206 X"$ac_file" : 'X\(//\)[^/]' \| \
23207 X"$ac_file" : 'X\(//\)$' \| \
23208 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23209 $as_echo X"$ac_file" |
23210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23211 s//\1/
23214 /^X\(\/\/\)[^/].*/{
23215 s//\1/
23218 /^X\(\/\/\)$/{
23219 s//\1/
23222 /^X\(\/\).*/{
23223 s//\1/
23226 s/.*/./; q'`
23227 as_dir="$ac_dir"; as_fn_mkdir_p
23228 ac_builddir=.
23230 case "$ac_dir" in
23231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23233 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23234 # A ".." for each directory in $ac_dir_suffix.
23235 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23236 case $ac_top_builddir_sub in
23237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23239 esac ;;
23240 esac
23241 ac_abs_top_builddir=$ac_pwd
23242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23243 # for backward compatibility:
23244 ac_top_builddir=$ac_top_build_prefix
23246 case $srcdir in
23247 .) # We are building in place.
23248 ac_srcdir=.
23249 ac_top_srcdir=$ac_top_builddir_sub
23250 ac_abs_top_srcdir=$ac_pwd ;;
23251 [\\/]* | ?:[\\/]* ) # Absolute name.
23252 ac_srcdir=$srcdir$ac_dir_suffix;
23253 ac_top_srcdir=$srcdir
23254 ac_abs_top_srcdir=$srcdir ;;
23255 *) # Relative name.
23256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23257 ac_top_srcdir=$ac_top_build_prefix$srcdir
23258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23259 esac
23260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23263 case $ac_mode in
23266 # CONFIG_FILE
23269 case $INSTALL in
23270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23271 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23272 esac
23273 ac_MKDIR_P=$MKDIR_P
23274 case $MKDIR_P in
23275 [\\/$]* | ?:[\\/]* ) ;;
23276 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23277 esac
23278 _ACEOF
23280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23281 # If the template does not know about datarootdir, expand it.
23282 # FIXME: This hack should be removed a few years after 2.60.
23283 ac_datarootdir_hack=; ac_datarootdir_seen=
23284 ac_sed_dataroot='
23285 /datarootdir/ {
23289 /@datadir@/p
23290 /@docdir@/p
23291 /@infodir@/p
23292 /@localedir@/p
23293 /@mandir@/p'
23294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23295 *datarootdir*) ac_datarootdir_seen=yes;;
23296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23298 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23299 _ACEOF
23300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23301 ac_datarootdir_hack='
23302 s&@datadir@&$datadir&g
23303 s&@docdir@&$docdir&g
23304 s&@infodir@&$infodir&g
23305 s&@localedir@&$localedir&g
23306 s&@mandir@&$mandir&g
23307 s&\\\${datarootdir}&$datarootdir&g' ;;
23308 esac
23309 _ACEOF
23311 # Neutralize VPATH when `$srcdir' = `.'.
23312 # Shell code in configure.ac might set extrasub.
23313 # FIXME: do we really want to maintain this feature?
23314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23315 ac_sed_extra="$ac_vpsub
23316 $extrasub
23317 _ACEOF
23318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23321 s|@configure_input@|$ac_sed_conf_input|;t t
23322 s&@top_builddir@&$ac_top_builddir_sub&;t t
23323 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23324 s&@srcdir@&$ac_srcdir&;t t
23325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23326 s&@top_srcdir@&$ac_top_srcdir&;t t
23327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23328 s&@builddir@&$ac_builddir&;t t
23329 s&@abs_builddir@&$ac_abs_builddir&;t t
23330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23331 s&@INSTALL@&$ac_INSTALL&;t t
23332 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23333 $ac_datarootdir_hack
23335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23336 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23339 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23341 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23343 which seems to be undefined. Please make sure it is defined" >&5
23344 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23345 which seems to be undefined. Please make sure it is defined" >&2;}
23347 rm -f "$ac_tmp/stdin"
23348 case $ac_file in
23349 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23350 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23351 esac \
23352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23356 # CONFIG_HEADER
23358 if test x"$ac_file" != x-; then
23360 $as_echo "/* $configure_input */" \
23361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23362 } >"$ac_tmp/config.h" \
23363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23364 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23366 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23367 else
23368 rm -f "$ac_file"
23369 mv "$ac_tmp/config.h" "$ac_file" \
23370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23372 else
23373 $as_echo "/* $configure_input */" \
23374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23375 || as_fn_error $? "could not create -" "$LINENO" 5
23377 # Compute "$ac_file"'s index in $config_headers.
23378 _am_arg="$ac_file"
23379 _am_stamp_count=1
23380 for _am_header in $config_headers :; do
23381 case $_am_header in
23382 $_am_arg | $_am_arg:* )
23383 break ;;
23385 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23386 esac
23387 done
23388 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23389 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23390 X"$_am_arg" : 'X\(//\)[^/]' \| \
23391 X"$_am_arg" : 'X\(//\)$' \| \
23392 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23393 $as_echo X"$_am_arg" |
23394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23395 s//\1/
23398 /^X\(\/\/\)[^/].*/{
23399 s//\1/
23402 /^X\(\/\/\)$/{
23403 s//\1/
23406 /^X\(\/\).*/{
23407 s//\1/
23410 s/.*/./; q'`/stamp-h$_am_stamp_count
23413 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23414 $as_echo "$as_me: executing $ac_file commands" >&6;}
23416 esac
23419 case $ac_file$ac_mode in
23420 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23421 # Older Autoconf quotes --file arguments for eval, but not when files
23422 # are listed without --file. Let's play safe and only enable the eval
23423 # if we detect the quoting.
23424 case $CONFIG_FILES in
23425 *\'*) eval set x "$CONFIG_FILES" ;;
23426 *) set x $CONFIG_FILES ;;
23427 esac
23428 shift
23429 for mf
23431 # Strip MF so we end up with the name of the file.
23432 mf=`echo "$mf" | sed -e 's/:.*$//'`
23433 # Check whether this is an Automake generated Makefile or not.
23434 # We used to match only the files named 'Makefile.in', but
23435 # some people rename them; so instead we look at the file content.
23436 # Grep'ing the first line is not enough: some people post-process
23437 # each Makefile.in and add a new line on top of each file to say so.
23438 # Grep'ing the whole file is not good either: AIX grep has a line
23439 # limit of 2048, but all sed's we know have understand at least 4000.
23440 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23441 dirpart=`$as_dirname -- "$mf" ||
23442 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23443 X"$mf" : 'X\(//\)[^/]' \| \
23444 X"$mf" : 'X\(//\)$' \| \
23445 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23446 $as_echo X"$mf" |
23447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23448 s//\1/
23451 /^X\(\/\/\)[^/].*/{
23452 s//\1/
23455 /^X\(\/\/\)$/{
23456 s//\1/
23459 /^X\(\/\).*/{
23460 s//\1/
23463 s/.*/./; q'`
23464 else
23465 continue
23467 # Extract the definition of DEPDIR, am__include, and am__quote
23468 # from the Makefile without running 'make'.
23469 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23470 test -z "$DEPDIR" && continue
23471 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23472 test -z "$am__include" && continue
23473 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23474 # Find all dependency output files, they are included files with
23475 # $(DEPDIR) in their names. We invoke sed twice because it is the
23476 # simplest approach to changing $(DEPDIR) to its actual value in the
23477 # expansion.
23478 for file in `sed -n "
23479 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23480 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23481 # Make sure the directory exists.
23482 test -f "$dirpart/$file" && continue
23483 fdir=`$as_dirname -- "$file" ||
23484 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23485 X"$file" : 'X\(//\)[^/]' \| \
23486 X"$file" : 'X\(//\)$' \| \
23487 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23488 $as_echo X"$file" |
23489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23490 s//\1/
23493 /^X\(\/\/\)[^/].*/{
23494 s//\1/
23497 /^X\(\/\/\)$/{
23498 s//\1/
23501 /^X\(\/\).*/{
23502 s//\1/
23505 s/.*/./; q'`
23506 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23507 # echo "creating $dirpart/$file"
23508 echo '# dummy' > "$dirpart/$file"
23509 done
23510 done
23513 "libtool":C)
23515 # See if we are running on zsh, and set the options that allow our
23516 # commands through without removal of \ escapes.
23517 if test -n "${ZSH_VERSION+set}"; then
23518 setopt NO_GLOB_SUBST
23521 cfgfile=${ofile}T
23522 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23523 $RM "$cfgfile"
23525 cat <<_LT_EOF >> "$cfgfile"
23526 #! $SHELL
23527 # Generated automatically by $as_me ($PACKAGE) $VERSION
23528 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23530 # Provide generalized library-building support services.
23531 # Written by Gordon Matzigkeit, 1996
23533 # Copyright (C) 2014 Free Software Foundation, Inc.
23534 # This is free software; see the source for copying conditions. There is NO
23535 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23537 # GNU Libtool is free software; you can redistribute it and/or modify
23538 # it under the terms of the GNU General Public License as published by
23539 # the Free Software Foundation; either version 2 of of the License, or
23540 # (at your option) any later version.
23542 # As a special exception to the GNU General Public License, if you
23543 # distribute this file as part of a program or library that is built
23544 # using GNU Libtool, you may include this file under the same
23545 # distribution terms that you use for the rest of that program.
23547 # GNU Libtool is distributed in the hope that it will be useful, but
23548 # WITHOUT ANY WARRANTY; without even the implied warranty of
23549 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23550 # GNU General Public License for more details.
23552 # You should have received a copy of the GNU General Public License
23553 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23556 # The names of the tagged configurations supported by this script.
23557 available_tags=''
23559 # Configured defaults for sys_lib_dlsearch_path munging.
23560 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23562 # ### BEGIN LIBTOOL CONFIG
23564 # Which release of libtool.m4 was used?
23565 macro_version=$macro_version
23566 macro_revision=$macro_revision
23568 # Whether or not to build shared libraries.
23569 build_libtool_libs=$enable_shared
23571 # Whether or not to build static libraries.
23572 build_old_libs=$enable_static
23574 # What type of objects to build.
23575 pic_mode=$pic_mode
23577 # Whether or not to optimize for fast installation.
23578 fast_install=$enable_fast_install
23580 # Shared archive member basename,for filename based shared library versioning on AIX.
23581 shared_archive_member_spec=$shared_archive_member_spec
23583 # Shell to use when invoking shell scripts.
23584 SHELL=$lt_SHELL
23586 # An echo program that protects backslashes.
23587 ECHO=$lt_ECHO
23589 # The PATH separator for the build system.
23590 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23592 # The host system.
23593 host_alias=$host_alias
23594 host=$host
23595 host_os=$host_os
23597 # The build system.
23598 build_alias=$build_alias
23599 build=$build
23600 build_os=$build_os
23602 # A sed program that does not truncate output.
23603 SED=$lt_SED
23605 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23606 Xsed="\$SED -e 1s/^X//"
23608 # A grep program that handles long lines.
23609 GREP=$lt_GREP
23611 # An ERE matcher.
23612 EGREP=$lt_EGREP
23614 # A literal string matcher.
23615 FGREP=$lt_FGREP
23617 # A BSD- or MS-compatible name lister.
23618 NM=$lt_NM
23620 # Whether we need soft or hard links.
23621 LN_S=$lt_LN_S
23623 # What is the maximum length of a command?
23624 max_cmd_len=$max_cmd_len
23626 # Object file suffix (normally "o").
23627 objext=$ac_objext
23629 # Executable file suffix (normally "").
23630 exeext=$exeext
23632 # whether the shell understands "unset".
23633 lt_unset=$lt_unset
23635 # turn spaces into newlines.
23636 SP2NL=$lt_lt_SP2NL
23638 # turn newlines into spaces.
23639 NL2SP=$lt_lt_NL2SP
23641 # convert \$build file names to \$host format.
23642 to_host_file_cmd=$lt_cv_to_host_file_cmd
23644 # convert \$build files to toolchain format.
23645 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23647 # An object symbol dumper.
23648 OBJDUMP=$lt_OBJDUMP
23650 # Method to check whether dependent libraries are shared objects.
23651 deplibs_check_method=$lt_deplibs_check_method
23653 # Command to use when deplibs_check_method = "file_magic".
23654 file_magic_cmd=$lt_file_magic_cmd
23656 # How to find potential files when deplibs_check_method = "file_magic".
23657 file_magic_glob=$lt_file_magic_glob
23659 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23660 want_nocaseglob=$lt_want_nocaseglob
23662 # DLL creation program.
23663 DLLTOOL=$lt_DLLTOOL
23665 # Command to associate shared and link libraries.
23666 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23668 # The archiver.
23669 AR=$lt_AR
23671 # Flags to create an archive.
23672 AR_FLAGS=$lt_AR_FLAGS
23674 # How to feed a file listing to the archiver.
23675 archiver_list_spec=$lt_archiver_list_spec
23677 # A symbol stripping program.
23678 STRIP=$lt_STRIP
23680 # Commands used to install an old-style archive.
23681 RANLIB=$lt_RANLIB
23682 old_postinstall_cmds=$lt_old_postinstall_cmds
23683 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23685 # Whether to use a lock for old archive extraction.
23686 lock_old_archive_extraction=$lock_old_archive_extraction
23688 # A C compiler.
23689 LTCC=$lt_CC
23691 # LTCC compiler flags.
23692 LTCFLAGS=$lt_CFLAGS
23694 # Take the output of nm and produce a listing of raw symbols and C names.
23695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23697 # Transform the output of nm in a proper C declaration.
23698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23700 # Transform the output of nm into a list of symbols to manually relocate.
23701 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23703 # Transform the output of nm in a C name address pair.
23704 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23706 # Transform the output of nm in a C name address pair when lib prefix is needed.
23707 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23709 # The name lister interface.
23710 nm_interface=$lt_lt_cv_nm_interface
23712 # Specify filename containing input files for \$NM.
23713 nm_file_list_spec=$lt_nm_file_list_spec
23715 # The root where to search for dependent libraries,and where our libraries should be installed.
23716 lt_sysroot=$lt_sysroot
23718 # Command to truncate a binary pipe.
23719 lt_truncate_bin=$lt_lt_cv_truncate_bin
23721 # The name of the directory that contains temporary libtool files.
23722 objdir=$objdir
23724 # Used to examine libraries when file_magic_cmd begins with "file".
23725 MAGIC_CMD=$MAGIC_CMD
23727 # Must we lock files when doing compilation?
23728 need_locks=$lt_need_locks
23730 # Manifest tool.
23731 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23733 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23734 DSYMUTIL=$lt_DSYMUTIL
23736 # Tool to change global to local symbols on Mac OS X.
23737 NMEDIT=$lt_NMEDIT
23739 # Tool to manipulate fat objects and archives on Mac OS X.
23740 LIPO=$lt_LIPO
23742 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23743 OTOOL=$lt_OTOOL
23745 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23746 OTOOL64=$lt_OTOOL64
23748 # Old archive suffix (normally "a").
23749 libext=$libext
23751 # Shared library suffix (normally ".so").
23752 shrext_cmds=$lt_shrext_cmds
23754 # The commands to extract the exported symbol list from a shared archive.
23755 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23757 # Variables whose values should be saved in libtool wrapper scripts and
23758 # restored at link time.
23759 variables_saved_for_relink=$lt_variables_saved_for_relink
23761 # Do we need the "lib" prefix for modules?
23762 need_lib_prefix=$need_lib_prefix
23764 # Do we need a version for libraries?
23765 need_version=$need_version
23767 # Library versioning type.
23768 version_type=$version_type
23770 # Shared library runtime path variable.
23771 runpath_var=$runpath_var
23773 # Shared library path variable.
23774 shlibpath_var=$shlibpath_var
23776 # Is shlibpath searched before the hard-coded library search path?
23777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23779 # Format of library name prefix.
23780 libname_spec=$lt_libname_spec
23782 # List of archive names. First name is the real one, the rest are links.
23783 # The last name is the one that the linker finds with -lNAME
23784 library_names_spec=$lt_library_names_spec
23786 # The coded name of the library, if different from the real name.
23787 soname_spec=$lt_soname_spec
23789 # Permission mode override for installation of shared libraries.
23790 install_override_mode=$lt_install_override_mode
23792 # Command to use after installation of a shared archive.
23793 postinstall_cmds=$lt_postinstall_cmds
23795 # Command to use after uninstallation of a shared archive.
23796 postuninstall_cmds=$lt_postuninstall_cmds
23798 # Commands used to finish a libtool library installation in a directory.
23799 finish_cmds=$lt_finish_cmds
23801 # As "finish_cmds", except a single script fragment to be evaled but
23802 # not shown.
23803 finish_eval=$lt_finish_eval
23805 # Whether we should hardcode library paths into libraries.
23806 hardcode_into_libs=$hardcode_into_libs
23808 # Compile-time system search path for libraries.
23809 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23811 # Detected run-time system search path for libraries.
23812 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23814 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23815 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23817 # Whether dlopen is supported.
23818 dlopen_support=$enable_dlopen
23820 # Whether dlopen of programs is supported.
23821 dlopen_self=$enable_dlopen_self
23823 # Whether dlopen of statically linked programs is supported.
23824 dlopen_self_static=$enable_dlopen_self_static
23826 # Commands to strip libraries.
23827 old_striplib=$lt_old_striplib
23828 striplib=$lt_striplib
23831 # The linker used to build libraries.
23832 LD=$lt_LD
23834 # How to create reloadable object files.
23835 reload_flag=$lt_reload_flag
23836 reload_cmds=$lt_reload_cmds
23838 # Commands used to build an old-style archive.
23839 old_archive_cmds=$lt_old_archive_cmds
23841 # A language specific compiler.
23842 CC=$lt_compiler
23844 # Is the compiler the GNU compiler?
23845 with_gcc=$GCC
23847 # Compiler flag to turn off builtin functions.
23848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23850 # Additional compiler flags for building library objects.
23851 pic_flag=$lt_lt_prog_compiler_pic
23853 # How to pass a linker flag through the compiler.
23854 wl=$lt_lt_prog_compiler_wl
23856 # Compiler flag to prevent dynamic linking.
23857 link_static_flag=$lt_lt_prog_compiler_static
23859 # Does compiler simultaneously support -c and -o options?
23860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23862 # Whether or not to add -lc for building shared libraries.
23863 build_libtool_need_lc=$archive_cmds_need_lc
23865 # Whether or not to disallow shared libs when runtime libs are static.
23866 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23868 # Compiler flag to allow reflexive dlopens.
23869 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23871 # Compiler flag to generate shared objects directly from archives.
23872 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23874 # Whether the compiler copes with passing no objects directly.
23875 compiler_needs_object=$lt_compiler_needs_object
23877 # Create an old-style archive from a shared archive.
23878 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23880 # Create a temporary old-style archive to link instead of a shared archive.
23881 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23883 # Commands used to build a shared archive.
23884 archive_cmds=$lt_archive_cmds
23885 archive_expsym_cmds=$lt_archive_expsym_cmds
23887 # Commands used to build a loadable module if different from building
23888 # a shared archive.
23889 module_cmds=$lt_module_cmds
23890 module_expsym_cmds=$lt_module_expsym_cmds
23892 # Whether we are building with GNU ld or not.
23893 with_gnu_ld=$lt_with_gnu_ld
23895 # Flag that allows shared libraries with undefined symbols to be built.
23896 allow_undefined_flag=$lt_allow_undefined_flag
23898 # Flag that enforces no undefined symbols.
23899 no_undefined_flag=$lt_no_undefined_flag
23901 # Flag to hardcode \$libdir into a binary during linking.
23902 # This must work even if \$libdir does not exist
23903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23905 # Whether we need a single "-rpath" flag with a separated argument.
23906 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23908 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23909 # DIR into the resulting binary.
23910 hardcode_direct=$hardcode_direct
23912 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23913 # DIR into the resulting binary and the resulting library dependency is
23914 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23915 # library is relocated.
23916 hardcode_direct_absolute=$hardcode_direct_absolute
23918 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23919 # into the resulting binary.
23920 hardcode_minus_L=$hardcode_minus_L
23922 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23923 # into the resulting binary.
23924 hardcode_shlibpath_var=$hardcode_shlibpath_var
23926 # Set to "yes" if building a shared library automatically hardcodes DIR
23927 # into the library and all subsequent libraries and executables linked
23928 # against it.
23929 hardcode_automatic=$hardcode_automatic
23931 # Set to yes if linker adds runtime paths of dependent libraries
23932 # to runtime path list.
23933 inherit_rpath=$inherit_rpath
23935 # Whether libtool must link a program against all its dependency libraries.
23936 link_all_deplibs=$link_all_deplibs
23938 # Set to "yes" if exported symbols are required.
23939 always_export_symbols=$always_export_symbols
23941 # The commands to list exported symbols.
23942 export_symbols_cmds=$lt_export_symbols_cmds
23944 # Symbols that should not be listed in the preloaded symbols.
23945 exclude_expsyms=$lt_exclude_expsyms
23947 # Symbols that must always be exported.
23948 include_expsyms=$lt_include_expsyms
23950 # Commands necessary for linking programs (against libraries) with templates.
23951 prelink_cmds=$lt_prelink_cmds
23953 # Commands necessary for finishing linking programs.
23954 postlink_cmds=$lt_postlink_cmds
23956 # Specify filename containing input files.
23957 file_list_spec=$lt_file_list_spec
23959 # How to hardcode a shared library path into an executable.
23960 hardcode_action=$hardcode_action
23962 # ### END LIBTOOL CONFIG
23964 _LT_EOF
23966 cat <<'_LT_EOF' >> "$cfgfile"
23968 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23970 # func_munge_path_list VARIABLE PATH
23971 # -----------------------------------
23972 # VARIABLE is name of variable containing _space_ separated list of
23973 # directories to be munged by the contents of PATH, which is string
23974 # having a format:
23975 # "DIR[:DIR]:"
23976 # string "DIR[ DIR]" will be prepended to VARIABLE
23977 # ":DIR[:DIR]"
23978 # string "DIR[ DIR]" will be appended to VARIABLE
23979 # "DIRP[:DIRP]::[DIRA:]DIRA"
23980 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23981 # "DIRA[ DIRA]" will be appended to VARIABLE
23982 # "DIR[:DIR]"
23983 # VARIABLE will be replaced by "DIR[ DIR]"
23984 func_munge_path_list ()
23986 case x$2 in
23990 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23992 x:*)
23993 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23995 *::*)
23996 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23997 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24000 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24002 esac
24006 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24007 func_cc_basename ()
24009 for cc_temp in $*""; do
24010 case $cc_temp in
24011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24013 \-*) ;;
24014 *) break;;
24015 esac
24016 done
24017 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24021 # ### END FUNCTIONS SHARED WITH CONFIGURE
24023 _LT_EOF
24025 case $host_os in
24026 aix3*)
24027 cat <<\_LT_EOF >> "$cfgfile"
24028 # AIX sometimes has problems with the GCC collect2 program. For some
24029 # reason, if we set the COLLECT_NAMES environment variable, the problems
24030 # vanish in a puff of smoke.
24031 if test set != "${COLLECT_NAMES+set}"; then
24032 COLLECT_NAMES=
24033 export COLLECT_NAMES
24035 _LT_EOF
24037 esac
24040 ltmain=$ac_aux_dir/ltmain.sh
24043 # We use sed instead of cat because bash on DJGPP gets confused if
24044 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24045 # text mode, it properly converts lines to CR/LF. This bash problem
24046 # is reportedly fixed, but why not run on old versions too?
24047 sed '$q' "$ltmain" >> "$cfgfile" \
24048 || (rm -f "$cfgfile"; exit 1)
24050 mv -f "$cfgfile" "$ofile" ||
24051 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24052 chmod +x "$ofile"
24055 "po-directories":C)
24056 for ac_file in $CONFIG_FILES; do
24057 # Support "outfile[:infile[:infile...]]"
24058 case "$ac_file" in
24059 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24060 esac
24061 # PO directories have a Makefile.in generated from Makefile.in.in.
24062 case "$ac_file" in */Makefile.in)
24063 # Adjust a relative srcdir.
24064 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24065 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24066 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24067 # In autoconf-2.13 it is called $ac_given_srcdir.
24068 # In autoconf-2.50 it is called $srcdir.
24069 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24070 case "$ac_given_srcdir" in
24071 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24072 /*) top_srcdir="$ac_given_srcdir" ;;
24073 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24074 esac
24075 # Treat a directory as a PO directory if and only if it has a
24076 # POTFILES.in file. This allows packages to have multiple PO
24077 # directories under different names or in different locations.
24078 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24079 rm -f "$ac_dir/POTFILES"
24080 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24081 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24082 POMAKEFILEDEPS="POTFILES.in"
24083 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24084 # on $ac_dir but don't depend on user-specified configuration
24085 # parameters.
24086 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24087 # The LINGUAS file contains the set of available languages.
24088 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24089 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24091 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24092 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24093 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24094 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24095 else
24096 # The set of available languages was given in configure.in.
24097 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24098 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24100 # Compute POFILES
24101 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24102 # Compute UPDATEPOFILES
24103 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24104 # Compute DUMMYPOFILES
24105 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24106 # Compute GMOFILES
24107 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24108 case "$ac_given_srcdir" in
24109 .) srcdirpre= ;;
24110 *) srcdirpre='$(srcdir)/' ;;
24111 esac
24112 POFILES=
24113 UPDATEPOFILES=
24114 DUMMYPOFILES=
24115 GMOFILES=
24116 for lang in $ALL_LINGUAS; do
24117 POFILES="$POFILES $srcdirpre$lang.po"
24118 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24119 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24120 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24121 done
24122 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24123 # environment variable.
24124 INST_LINGUAS=
24125 if test -n "$ALL_LINGUAS"; then
24126 for presentlang in $ALL_LINGUAS; do
24127 useit=no
24128 if test "%UNSET%" != "$LINGUAS"; then
24129 desiredlanguages="$LINGUAS"
24130 else
24131 desiredlanguages="$ALL_LINGUAS"
24133 for desiredlang in $desiredlanguages; do
24134 # Use the presentlang catalog if desiredlang is
24135 # a. equal to presentlang, or
24136 # b. a variant of presentlang (because in this case,
24137 # presentlang can be used as a fallback for messages
24138 # which are not translated in the desiredlang catalog).
24139 case "$desiredlang" in
24140 "$presentlang"*) useit=yes;;
24141 esac
24142 done
24143 if test $useit = yes; then
24144 INST_LINGUAS="$INST_LINGUAS $presentlang"
24146 done
24148 CATALOGS=
24149 if test -n "$INST_LINGUAS"; then
24150 for lang in $INST_LINGUAS; do
24151 CATALOGS="$CATALOGS $lang.gmo"
24152 done
24154 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24155 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24156 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24157 if test -f "$f"; then
24158 case "$f" in
24159 *.orig | *.bak | *~) ;;
24160 *) cat "$f" >> "$ac_dir/Makefile" ;;
24161 esac
24163 done
24166 esac
24167 done ;;
24169 esac
24170 done # for ac_tag
24173 as_fn_exit 0
24174 _ACEOF
24175 ac_clean_files=$ac_clean_files_save
24177 test $ac_write_fail = 0 ||
24178 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24181 # configure is writing to config.log, and then calls config.status.
24182 # config.status does its own redirection, appending to config.log.
24183 # Unfortunately, on DOS this fails, as config.log is still kept open
24184 # by configure, so config.status won't be able to write to it; its
24185 # output is simply discarded. So we exec the FD to /dev/null,
24186 # effectively closing config.log, so it can be properly (re)opened and
24187 # appended to by config.status. When coming back to configure, we
24188 # need to make the FD available again.
24189 if test "$no_create" != yes; then
24190 ac_cs_success=:
24191 ac_config_status_args=
24192 test "$silent" = yes &&
24193 ac_config_status_args="$ac_config_status_args --quiet"
24194 exec 5>/dev/null
24195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24196 exec 5>>config.log
24197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24198 # would make configure fail if this is the last instruction.
24199 $ac_cs_success || as_fn_exit 1
24201 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24203 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}